diff --git a/amd/react-bootstrap.js b/amd/react-bootstrap.js index b0890fefc8..5dbeabbc30 100644 --- a/amd/react-bootstrap.js +++ b/amd/react-bootstrap.js @@ -39,55 +39,6 @@ var store = global[SHARED] || (global[SHARED] = {}); /***/ }), -/***/ 312: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -exports.__esModule = true; -exports["default"] = isOverflowing; - -var _isWindow = __webpack_require__(4976); - -var _isWindow2 = _interopRequireDefault(_isWindow); - -var _ownerDocument = __webpack_require__(1999); - -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function isBody(node) { - return node && node.tagName.toLowerCase() === 'body'; -} - -function bodyIsOverflowing(node) { - var doc = (0, _ownerDocument2.default)(node); - var win = (0, _isWindow2.default)(doc); - var fullWidth = win.innerWidth; // Support: ie8, no innerWidth - - if (!fullWidth) { - var documentElementRect = doc.documentElement.getBoundingClientRect(); - fullWidth = documentElementRect.right - Math.abs(documentElementRect.left); - } - - return doc.body.clientWidth < fullWidth; -} - -function isOverflowing(container) { - var win = (0, _isWindow2.default)(container); - return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight; -} - -module.exports = exports['default']; - -/***/ }), - /***/ 344: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { @@ -154,35 +105,6 @@ module.exports = function (it) { /***/ }), -/***/ 385: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = addClass; - -var _hasClass = __webpack_require__(2536); - -var _hasClass2 = _interopRequireDefault(_hasClass); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function addClass(element, className) { - 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); -} - -module.exports = exports['default']; - -/***/ }), - /***/ 687: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { @@ -304,169 +226,6 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ }), -/***/ 904: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -exports.__esModule = true; - -var _inDOM = __webpack_require__(8647); - -var _inDOM2 = _interopRequireDefault(_inDOM); - -var _propTypes = __webpack_require__(5762); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _componentOrElement = __webpack_require__(6387); - -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); - -var _react = __webpack_require__(5442); - -var _react2 = _interopRequireDefault(_react); - -var _reactDom = __webpack_require__(6003); - -var _reactDom2 = _interopRequireDefault(_reactDom); - -var _getContainer = __webpack_require__(2799); - -var _getContainer2 = _interopRequireDefault(_getContainer); - -var _ownerDocument = __webpack_require__(3296); - -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - -var _LegacyPortal = __webpack_require__(6563); - -var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/** - * The `` component renders its children into a new "subtree" outside of current component hierarchy. - * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`. - * The children of `` component will be appended to the `container` specified. - */ - - -var Portal = function (_React$Component) { - _inherits(Portal, _React$Component); - - function Portal() { - var _temp, _this, _ret; - - _classCallCheck(this, Portal); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.getMountNode = function () { - return _this._portalContainerNode; - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - Portal.prototype.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { - if (!_inDOM2.default) { - return; - } - - var container = this.props.container; - - if (typeof container === 'function') { - container = container(); - } - - if (container && !_reactDom2.default.findDOMNode(container)) { - // The container is a React component that has not yet been rendered. - // Don't set the container node yet. - return; - } - - this.setContainer(container); - }; - - Portal.prototype.componentDidMount = function componentDidMount() { - if (!this._portalContainerNode) { - this.setContainer(this.props.container); - this.forceUpdate(this.props.onRendered); - } else if (this.props.onRendered) { - this.props.onRendered(); - } - }; - - Portal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.container !== this.props.container) { - this.setContainer(nextProps.container); - } - }; - - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this._portalContainerNode = null; - }; - - Portal.prototype.setContainer = function setContainer(container) { - this._portalContainerNode = (0, _getContainer2.default)(container, (0, _ownerDocument2.default)(this).body); - }; - - Portal.prototype.render = function render() { - return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null; - }; - - return Portal; -}(_react2.default.Component); - -Portal.displayName = 'Portal'; -Portal.propTypes = { - /** - * A Node, Component instance, or function that returns either. The `container` will have the Portal children - * appended to it. - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), - onRendered: _propTypes2.default.func -}; -exports["default"] = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default; -module.exports = exports['default']; - -/***/ }), - /***/ 957: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { @@ -561,895 +320,758 @@ module.exports = {}; /***/ }), -/***/ 1485: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 1510: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; -var __webpack_unused_export__; -__webpack_unused_export__ = true; -exports.ze = exports._K = exports.ns = exports.kp = __webpack_unused_export__ = undefined; +var create = __webpack_require__(9345); -var _propTypes = __webpack_require__(5762); +var descriptor = __webpack_require__(3650); -var PropTypes = _interopRequireWildcard(_propTypes); +var setToStringTag = __webpack_require__(9874); -var _react = __webpack_require__(5442); +var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -var _react2 = _interopRequireDefault(_react); +__webpack_require__(1795)(IteratorPrototype, __webpack_require__(6932)('iterator'), function () { + return this; +}); -var _reactDom = __webpack_require__(6003); +module.exports = function (Constructor, NAME, next) { + Constructor.prototype = create(IteratorPrototype, { + next: descriptor(1, next) + }); + setToStringTag(Constructor, NAME + ' Iterator'); +}; -var _reactDom2 = _interopRequireDefault(_reactDom); +/***/ }), -var _reactLifecyclesCompat = __webpack_require__(4343); +/***/ 1614: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _PropTypes = __webpack_require__(2740); +module.exports = !__webpack_require__(4725) && !__webpack_require__(2250)(function () { + return Object.defineProperty(__webpack_require__(7788)('div'), 'a', { + get: function () { + return 7; + } + }).a != 7; +}); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +/***/ }), -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; +/***/ 1649: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - } +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - newObj.default = obj; - return newObj; - } -} -function _objectWithoutProperties(obj, keys) { - var target = {}; +var ReactPropTypesSecret = __webpack_require__(9050); - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } +function emptyFunction() {} - return target; -} +function emptyFunctionWithReset() {} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +emptyFunctionWithReset.resetWarningCache = emptyFunction; -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); +module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + + 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'); + err.name = 'Invariant Violation'; + throw err; } - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} + ; + shim.isRequired = shim; -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + function getShim() { + return shim; } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} + ; // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. -var UNMOUNTED = __webpack_unused_export__ = 'unmounted'; -var EXITED = exports.kp = 'exited'; -var ENTERING = exports.ns = 'entering'; -var ENTERED = exports._K = 'entered'; -var EXITING = exports.ze = 'exiting'; -/** - * The Transition component lets you describe a transition from one component - * state to another _over time_ with a simple declarative API. Most commonly - * it's used to animate the mounting and unmounting of a component, but can also - * be used to describe in-place transition states as well. - * - * By default the `Transition` component does not alter the behavior of the - * component it renders, it only tracks "enter" and "exit" states for the components. - * It's up to you to give meaning and effect to those states. For example we can - * add styles to a component when it enters or exits: - * - * ```jsx - * import Transition from 'react-transition-group/Transition'; - * - * const duration = 300; - * - * const defaultStyle = { - * transition: `opacity ${duration}ms ease-in-out`, - * opacity: 0, - * } - * - * const transitionStyles = { - * entering: { opacity: 0 }, - * entered: { opacity: 1 }, - * }; - * - * const Fade = ({ in: inProp }) => ( - * - * {(state) => ( - *
- * I'm a fade Transition! - *
- * )} - *
- * ); - * ``` - * - * As noted the `Transition` component doesn't _do_ anything by itself to its child component. - * What it does do is track transition states over time so you can update the - * component (such as by adding styles or classes) when it changes states. - * - * There are 4 main states a Transition can be in: - * - `'entering'` - * - `'entered'` - * - `'exiting'` - * - `'exited'` - * - * Transition state is toggled via the `in` prop. When `true` the component begins the - * "Enter" stage. During this stage, the component will shift from its current transition state, - * to `'entering'` for the duration of the transition and then to the `'entered'` stage once - * it's complete. Let's take the following example: - * - * ```jsx - * state = { in: false }; - * - * toggleEnterState = () => { - * this.setState({ in: true }); - * } - * - * render() { - * return ( - *
- * - * - *
- * ); - * } - * ``` - * - * When the button is clicked the component will shift to the `'entering'` state and - * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`. - * - * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`. - * - * ## Timing - * - * Timing is often the trickiest part of animation, mistakes can result in slight delays - * that are hard to pin down. A common example is when you want to add an exit transition, - * you should set the desired final styles when the state is `'exiting'`. That's when the - * transition to those styles will start and, if you matched the `timeout` prop with the - * CSS Transition duration, it will end exactly when the state changes to `'exited'`. - * - * > **Note**: For simpler transitions the `Transition` component might be enough, but - * > take into account that it's platform-agnostic, while the `CSSTransition` component - * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215) - * > in order to make more complex transitions more predictable. For example, even though - * > classes `example-enter` and `example-enter-active` are applied immediately one after - * > another, you can still transition from one to the other because of the forced reflow - * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171) - * > for more info). Take this into account when choosing between `Transition` and - * > `CSSTransition`. - * - * ## Example - * - * - * - */ + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; +}; + +/***/ }), -var Transition = function (_React$Component) { - _inherits(Transition, _React$Component); +/***/ 1685: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - function Transition(props, context) { - _classCallCheck(this, Transition); +"use strict"; +var __webpack_unused_export__; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears +__webpack_unused_export__ = ({ + value: true +}); +__webpack_unused_export__ = __webpack_unused_export__ = undefined; - var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; - var initialStatus = void 0; - _this.appearStatus = null; +var _end = __webpack_require__(4112); - if (props.in) { - if (appear) { - initialStatus = EXITED; - _this.appearStatus = ENTERING; - } else { - initialStatus = ENTERED; - } - } else { - if (props.unmountOnExit || props.mountOnEnter) { - initialStatus = UNMOUNTED; - } else { - initialStatus = EXITED; - } - } +var _end2 = _interopRequireDefault(_end); - _this.state = { - status: initialStatus - }; - _this.nextCallback = null; - return _this; - } +var _properties = __webpack_require__(3152); - Transition.prototype.getChildContext = function getChildContext() { - return { - transitionGroup: null // allows for nested Transitions +var _properties2 = _interopRequireDefault(_properties); - }; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; +} - Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var nextIn = _ref.in; +__webpack_unused_export__ = _end2.default; +__webpack_unused_export__ = _properties2.default; +exports.Ay = { + end: _end2.default, + properties: _properties2.default +}; - if (nextIn && prevState.status === UNMOUNTED) { - return { - status: EXITED - }; - } +/***/ }), - return null; - }; // getSnapshotBeforeUpdate(prevProps) { - // let nextStatus = null - // if (prevProps !== this.props) { - // const { status } = this.state - // if (this.props.in) { - // if (status !== ENTERING && status !== ENTERED) { - // nextStatus = ENTERING - // } - // } else { - // if (status === ENTERING || status === ENTERED) { - // nextStatus = EXITING - // } - // } - // } - // return { nextStatus } - // } +/***/ 1700: +/***/ ((module, exports) => { +"use strict"; - Transition.prototype.componentDidMount = function componentDidMount() { - this.updateStatus(true, this.appearStatus); - }; - Transition.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var nextStatus = null; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = camelize; +var rHyphen = /-(.)/g; - if (prevProps !== this.props) { - var status = this.state.status; +function camelize(string) { + return string.replace(rHyphen, function (_, chr) { + return chr.toUpperCase(); + }); +} - if (this.props.in) { - if (status !== ENTERING && status !== ENTERED) { - nextStatus = ENTERING; - } - } else { - if (status === ENTERING || status === ENTERED) { - nextStatus = EXITING; - } - } - } +module.exports = exports["default"]; - this.updateStatus(false, nextStatus); - }; +/***/ }), - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; +/***/ 1795: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - Transition.prototype.getTimeouts = function getTimeouts() { - var timeout = this.props.timeout; - var exit = void 0, - enter = void 0, - appear = void 0; - exit = enter = appear = timeout; +var dP = __webpack_require__(8449); - if (timeout != null && typeof timeout !== 'number') { - exit = timeout.exit; - enter = timeout.enter; - appear = timeout.appear; - } +var createDesc = __webpack_require__(3650); - return { - exit: exit, - enter: enter, - appear: appear - }; - }; +module.exports = __webpack_require__(4725) ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; - Transition.prototype.updateStatus = function updateStatus() { - var mounting = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var nextStatus = arguments[1]; +/***/ }), - if (nextStatus !== null) { - // nextStatus will always be ENTERING or EXITING. - this.cancelNextCallback(); +/***/ 1897: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - var node = _reactDom2.default.findDOMNode(this); +var core = __webpack_require__(9520); - if (nextStatus === ENTERING) { - this.performEnter(node, mounting); - } else { - this.performExit(node); - } - } else if (this.props.unmountOnExit && this.state.status === EXITED) { - this.setState({ - status: UNMOUNTED - }); - } - }; +var $JSON = core.JSON || (core.JSON = { + stringify: JSON.stringify +}); - Transition.prototype.performEnter = function performEnter(node, mounting) { - var _this2 = this; +module.exports = function stringify(it) { + // eslint-disable-line no-unused-vars + return $JSON.stringify.apply($JSON, arguments); +}; - var enter = this.props.enter; - var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; - var timeouts = this.getTimeouts(); // no enter animation skip right to ENTERED - // if we are mounting and running this it means appear _must_ be set +/***/ }), - if (!mounting && !enter) { - this.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node); - }); - return; - } +/***/ 1933: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - this.props.onEnter(node, appearing); - this.safeSetState({ - status: ENTERING - }, function () { - _this2.props.onEntering(node, appearing); // FIXME: appear timeout? +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +if (false) // removed by dead control flow +{ var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(1649)(); +} +/***/ }), - _this2.onTransitionEnd(node, timeouts.enter, function () { - _this2.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node, appearing); - }); - }); - }); - }; +/***/ 1953: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - Transition.prototype.performExit = function performExit(node) { - var _this3 = this; +module.exports = __webpack_require__(9253); - var exit = this.props.exit; - var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED +/***/ }), - if (!exit) { - this.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - return; - } +/***/ 1999: +/***/ ((module, exports) => { - this.props.onExit(node); - this.safeSetState({ - status: EXITING - }, function () { - _this3.props.onExiting(node); - - _this3.onTransitionEnd(node, timeouts.exit, function () { - _this3.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; - - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; - - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // This shouldn't be necessary, but there are weird race conditions with - // setState callbacks and unmounting in testing, so always make sure that - // we can cancel any pending setState callbacks after we unmount. - callback = this.setNextCallback(callback); - this.setState(nextState, callback); - }; - - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; - - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - callback(event); - } - }; +"use strict"; - this.nextCallback.cancel = function () { - active = false; - }; - return this.nextCallback; - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = ownerDocument; - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { - this.setNextCallback(handler); +function ownerDocument(node) { + return node && node.ownerDocument || document; +} - if (node) { - if (this.props.addEndListener) { - this.props.addEndListener(node, this.nextCallback); - } +module.exports = exports["default"]; - if (timeout != null) { - setTimeout(this.nextCallback, timeout); - } - } else { - setTimeout(this.nextCallback, 0); - } - }; +/***/ }), - Transition.prototype.render = function render() { - var status = this.state.status; +/***/ 2069: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (status === UNMOUNTED) { - return null; - } +// most Object methods by ES6 should accept primitives +var $export = __webpack_require__(3445); - var _props = this.props, - children = _props.children, - childProps = _objectWithoutProperties(_props, ['children']); // filter props for Transtition +var core = __webpack_require__(9520); +var fails = __webpack_require__(2250); - delete childProps.in; - delete childProps.mountOnEnter; - delete childProps.unmountOnExit; - delete childProps.appear; - delete childProps.enter; - delete childProps.exit; - delete childProps.timeout; - delete childProps.addEndListener; - delete childProps.onEnter; - delete childProps.onEntering; - delete childProps.onEntered; - delete childProps.onExit; - delete childProps.onExiting; - delete childProps.onExited; +module.exports = function (KEY, exec) { + var fn = (core.Object || {})[KEY] || Object[KEY]; + var exp = {}; + exp[KEY] = exec(fn); + $export($export.S + $export.F * fails(function () { + fn(1); + }), 'Object', exp); +}; - if (typeof children === 'function') { - return children(status, childProps); - } +/***/ }), - var child = _react2.default.Children.only(children); +/***/ 2103: +/***/ ((module) => { - return _react2.default.cloneElement(child, childProps); - }; +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; - return Transition; -}(_react2.default.Component); +/***/ }), -Transition.contextTypes = { - transitionGroup: PropTypes.object -}; -Transition.childContextTypes = { - transitionGroup: function transitionGroup() {} -}; -Transition.propTypes = false ? 0 : {}; +/***/ 2125: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -function noop() {} +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) +var $export = __webpack_require__(3445); -Transition.defaultProps = { - in: false, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - enter: true, - exit: true, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop -}; -Transition.UNMOUNTED = 0; -Transition.EXITED = 1; -Transition.ENTERING = 2; -Transition.ENTERED = 3; -Transition.EXITING = 4; -exports.Ay = (0, _reactLifecyclesCompat.polyfill)(Transition); +$export($export.S, 'Array', { + isArray: __webpack_require__(8727) +}); /***/ }), -/***/ 1510: +/***/ 2235: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var has = __webpack_require__(8283); +var toIObject = __webpack_require__(8759); -var create = __webpack_require__(9345); +var arrayIndexOf = __webpack_require__(1354)(false); -var descriptor = __webpack_require__(3650); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var setToStringTag = __webpack_require__(9874); +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; -var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys -__webpack_require__(1795)(IteratorPrototype, __webpack_require__(6932)('iterator'), function () { - return this; -}); -module.exports = function (Constructor, NAME, next) { - Constructor.prototype = create(IteratorPrototype, { - next: descriptor(1, next) - }); - setToStringTag(Constructor, NAME + ' Iterator'); + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + + return result; }; /***/ }), -/***/ 1547: -/***/ ((module, exports, __webpack_require__) => { +/***/ 2250: +/***/ ((module) => { -"use strict"; +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = offsetParent; +/***/ 2289: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _ownerDocument = __webpack_require__(1999); +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) +var has = __webpack_require__(8283); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var toObject = __webpack_require__(5332); -var _style = __webpack_require__(7735); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var _style2 = _interopRequireDefault(_style); +var ObjectProto = Object.prototype; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +module.exports = Object.getPrototypeOf || function (O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; -function nodeName(node) { - return node.nodeName && node.nodeName.toLowerCase(); -} + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } -function offsetParent(node) { - var doc = (0, _ownerDocument2.default)(node), - offsetParent = node && node.offsetParent; + return O instanceof Object ? ObjectProto : null; +}; - while (offsetParent && nodeName(node) !== 'html' && (0, _style2.default)(offsetParent, 'position') === 'static') { - offsetParent = offsetParent.offsetParent; - } +/***/ }), - return offsetParent || doc.documentElement; -} +/***/ 2309: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = exports['default']; +module.exports = __webpack_require__(2713); /***/ }), -/***/ 1590: -/***/ ((__unused_webpack_module, exports) => { +/***/ 2384: +/***/ ((module) => { "use strict"; +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ -exports.__esModule = true; -exports.ariaHidden = ariaHidden; -exports.hideSiblings = hideSiblings; -exports.showSiblings = showSiblings; -var BLACKLIST = ['template', 'script', 'style']; +var __DEV__ = "production" !== 'production'; -var isHidable = function isHidable(_ref) { - var nodeType = _ref.nodeType, - tagName = _ref.tagName; - return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1; -}; +var warning = function () {}; -var siblings = function siblings(container, mount, cb) { - mount = [].concat(mount); - [].forEach.call(container.children, function (node) { - if (mount.indexOf(node) === -1 && isHidable(node)) { - cb(node); +if (__DEV__) { + var printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + + for (var key = 1; key < len; key++) { + args[key - 1] = arguments[key]; } - }); -}; -function ariaHidden(show, node) { - if (!node) { - return; - } + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); - if (show) { - node.setAttribute('aria-hidden', 'true'); - } else { - node.removeAttribute('aria-hidden'); - } -} + if (typeof console !== 'undefined') { + console.error(message); + } -function hideSiblings(container, mountNode) { - siblings(container, mountNode, function (node) { - return ariaHidden(true, node); - }); -} + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; -function showSiblings(container, mountNode) { - siblings(container, mountNode, function (node) { - return ariaHidden(false, node); - }); + warning = function (condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; + } + + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (!condition) { + printWarning.apply(null, [format].concat(args)); + } + }; } +module.exports = warning; + /***/ }), -/***/ 1614: +/***/ 2426: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = !__webpack_require__(4725) && !__webpack_require__(2250)(function () { - return Object.defineProperty(__webpack_require__(7788)('div'), 'a', { - get: function () { - return 7; - } - }).a != 7; -}); +var document = (__webpack_require__(8248).document); + +module.exports = document && document.documentElement; /***/ }), -/***/ 1685: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 2573: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; -var __webpack_unused_export__; +module.exports = __webpack_require__(3825); +/***/ }), -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = __webpack_unused_export__ = undefined; +/***/ 2691: +/***/ ((__unused_webpack_module, exports) => { -var _end = __webpack_require__(4112); +"use strict"; +var __webpack_unused_export__; +/** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ -var _end2 = _interopRequireDefault(_end); -var _properties = __webpack_require__(3152); +var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); + +function typeOf(object) { + if ("object" === typeof object && null !== object) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + switch (object = object.type, object) { + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: + return object; -var _properties2 = _interopRequireDefault(_properties); + default: + switch (object = object && object.$$typeof, object) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + return object; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + case REACT_CONSUMER_TYPE: + return object; + + default: + return $$typeof; + } + + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } } -__webpack_unused_export__ = _end2.default; -__webpack_unused_export__ = _properties2.default; -exports.Ay = { - end: _end2.default, - properties: _properties2.default +__webpack_unused_export__ = REACT_CONSUMER_TYPE; +__webpack_unused_export__ = REACT_CONTEXT_TYPE; +__webpack_unused_export__ = REACT_ELEMENT_TYPE; +__webpack_unused_export__ = REACT_FORWARD_REF_TYPE; +__webpack_unused_export__ = REACT_FRAGMENT_TYPE; +__webpack_unused_export__ = REACT_LAZY_TYPE; +__webpack_unused_export__ = REACT_MEMO_TYPE; +__webpack_unused_export__ = REACT_PORTAL_TYPE; +__webpack_unused_export__ = REACT_PROFILER_TYPE; +__webpack_unused_export__ = REACT_STRICT_MODE_TYPE; +__webpack_unused_export__ = REACT_SUSPENSE_TYPE; +__webpack_unused_export__ = REACT_SUSPENSE_LIST_TYPE; + +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_CONSUMER_TYPE; }; -/***/ }), +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_CONTEXT_TYPE; +}; -/***/ 1700: -/***/ ((module, exports) => { +__webpack_unused_export__ = function (object) { + return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; +}; -"use strict"; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; +}; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; +}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = camelize; -var rHyphen = /-(.)/g; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_LAZY_TYPE; +}; -function camelize(string) { - return string.replace(rHyphen, function (_, chr) { - return chr.toUpperCase(); - }); -} +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_MEMO_TYPE; +}; -module.exports = exports["default"]; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_PORTAL_TYPE; +}; -/***/ }), +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_PROFILER_TYPE; +}; -/***/ 1795: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; +}; -var dP = __webpack_require__(8449); +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; +}; -var createDesc = __webpack_require__(3650); +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; +}; -module.exports = __webpack_require__(4725) ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; +exports.Hy = function (type) { + return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? !0 : !1; }; +__webpack_unused_export__ = typeOf; + /***/ }), -/***/ 1953: +/***/ 2713: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = __webpack_require__(9253); +__webpack_require__(3537); + +var $Object = (__webpack_require__(9520).Object); + +module.exports = function create(P, D) { + return $Object.create(P, D); +}; /***/ }), -/***/ 1999: -/***/ ((module, exports) => { +/***/ 2948: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = ownerDocument; - -function ownerDocument(node) { - return node && node.ownerDocument || document; -} +var ReactPropTypesSecret = __webpack_require__(8643); -module.exports = exports["default"]; +function emptyFunction() {} -/***/ }), +module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } -/***/ 2069: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + 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'); + err.name = 'Invariant Violation'; + throw err; + } -// most Object methods by ES6 should accept primitives -var $export = __webpack_require__(3445); + ; + shim.isRequired = shim; -var core = __webpack_require__(9520); + function getShim() { + return shim; + } -var fails = __webpack_require__(2250); + ; // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. -module.exports = function (KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY]; - var exp = {}; - exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function () { - fn(1); - }), 'Object', exp); + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; }; /***/ }), -/***/ 2103: -/***/ ((module) => { +/***/ 3044: +/***/ ((module, exports, __webpack_require__) => { -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; +"use strict"; -/***/ }), -/***/ 2125: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) -var $export = __webpack_require__(3445); +var _inDOM = __webpack_require__(8647); -$export($export.S, 'Array', { - isArray: __webpack_require__(8727) -}); +var _inDOM2 = _interopRequireDefault(_inDOM); -/***/ }), +var _on = __webpack_require__(8774); -/***/ 2235: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _on2 = _interopRequireDefault(_on); -var has = __webpack_require__(8283); +var _off = __webpack_require__(6170); -var toIObject = __webpack_require__(8759); +var _off2 = _interopRequireDefault(_off); -var arrayIndexOf = __webpack_require__(1354)(false); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); +var listen = function listen() {}; -module.exports = function (object, names) { - var O = toIObject(object); - var i = 0; - var result = []; - var key; +if (_inDOM2.default) { + listen = function listen(node, eventName, handler, capture) { + (0, _on2.default)(node, eventName, handler, capture); + return function () { + (0, _off2.default)(node, eventName, handler, capture); + }; + }; +} - for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys +exports["default"] = listen; +module.exports = exports['default']; +/***/ }), - while (names.length > i) if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } +/***/ 3105: +/***/ ((module, exports, __webpack_require__) => { - return result; -}; +"use strict"; -/***/ }), -/***/ 2250: -/***/ ((module) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } -}; +var _react = __webpack_require__(5442); -/***/ }), +var _react2 = _interopRequireDefault(_react); -/***/ 2289: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _reactIs = __webpack_require__(9523); -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = __webpack_require__(8283); +var _createChainableTypeChecker = __webpack_require__(8663); -var toObject = __webpack_require__(5332); +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var ObjectProto = Object.prototype; +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; -module.exports = Object.getPrototypeOf || function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).'); } - return O instanceof Object ? ObjectProto : null; -}; - -/***/ }), - -/***/ 2309: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(2713); - -/***/ }), - -/***/ 2426: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + if (!(0, _reactIs.isValidElementType)(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).'); + } -var document = (__webpack_require__(8248).document); + return null; +} -module.exports = document && document.documentElement; +exports["default"] = (0, _createChainableTypeChecker2.default)(elementType); +module.exports = exports['default']; /***/ }), -/***/ 2536: -/***/ ((module, exports) => { +/***/ 3152: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; @@ -1457,97 +1079,151 @@ module.exports = document && document.documentElement; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = hasClass; - -function hasClass(element, className) { - if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1; -} - -module.exports = exports["default"]; - -/***/ }), - -/***/ 2573: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; -module.exports = __webpack_require__(3825); +var _inDOM = __webpack_require__(8647); -/***/ }), +var _inDOM2 = _interopRequireDefault(_inDOM); -/***/ 2595: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -"use strict"; -var __webpack_unused_export__; +var transform = 'transform'; +var prefix = void 0, + transitionEnd = void 0, + animationEnd = void 0; +var transitionProperty = void 0, + transitionDuration = void 0, + transitionTiming = void 0, + transitionDelay = void 0; +var animationName = void 0, + animationDuration = void 0, + animationTiming = void 0, + animationDelay = void 0; +if (_inDOM2.default) { + var _getTransitionPropert = getTransitionProperties(); -__webpack_unused_export__ = true; + prefix = _getTransitionPropert.prefix; + exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; + exports.transform = transform = prefix + '-' + transform; + exports.transitionProperty = transitionProperty = prefix + '-transition-property'; + exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; + exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; + exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; + exports.animationName = animationName = prefix + '-animation-name'; + exports.animationDuration = animationDuration = prefix + '-animation-duration'; + exports.animationTiming = animationTiming = prefix + '-animation-delay'; + exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; +} -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { - return typeof obj; -} : function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; +exports.transform = transform; +exports.transitionProperty = transitionProperty; +exports.transitionTiming = transitionTiming; +exports.transitionDelay = transitionDelay; +exports.transitionDuration = transitionDuration; +exports.transitionEnd = transitionEnd; +exports.animationName = animationName; +exports.animationDuration = animationDuration; +exports.animationTiming = animationTiming; +exports.animationDelay = animationDelay; +exports.animationEnd = animationEnd; +exports["default"] = { + transform: transform, + end: transitionEnd, + property: transitionProperty, + timing: transitionTiming, + delay: transitionDelay, + duration: transitionDuration }; -var _react = __webpack_require__(5442); - -var _react2 = _interopRequireDefault(_react); - -var _createChainableTypeChecker = __webpack_require__(4152); - -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +function getTransitionProperties() { + var style = document.createElement('div').style; + var vendorMap = { + O: function O(e) { + return 'o' + e.toLowerCase(); + }, + Moz: function Moz(e) { + return e.toLowerCase(); + }, + Webkit: function Webkit(e) { + return 'webkit' + e; + }, + ms: function ms(e) { + return 'MS' + e; + } }; -} - -function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + var vendors = Object.keys(vendorMap); + var transitionEnd = void 0, + animationEnd = void 0; + var prefix = ''; - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } + for (var i = 0; i < vendors.length; i++) { + var vendor = vendors[i]; - if (propType !== 'function' && propType !== 'string') { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + if (vendor + 'TransitionProperty' in style) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = vendorMap[vendor]('TransitionEnd'); + animationEnd = vendorMap[vendor]('AnimationEnd'); + break; + } } - return null; + if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; + if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; + style = null; + return { + animationEnd: animationEnd, + transitionEnd: transitionEnd, + prefix: prefix + }; } -exports.A = (0, _createChainableTypeChecker2.default)(elementType); - /***/ }), -/***/ 2713: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 3215: +/***/ ((module, exports, __webpack_require__) => { -__webpack_require__(3537); +"use strict"; -var $Object = (__webpack_require__(9520).Object); -module.exports = function create(P, D) { - return $Object.create(P, D); -}; +exports.__esModule = true; +exports["default"] = uncontrollable; -/***/ }), +var _react = _interopRequireDefault(__webpack_require__(5442)); -/***/ 2740: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var _invariant = _interopRequireDefault(__webpack_require__(3737)); -"use strict"; +var Utils = _interopRequireWildcard(__webpack_require__(7770)); +function _interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } else { + var newObj = {}; -exports.__esModule = true; -exports.classNamesShape = exports.timeoutsShape = undefined; -exports.transitionTimeout = transitionTimeout; + if (obj != null) { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; -var _propTypes = __webpack_require__(5762); + if (desc.get || desc.set) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + } -var _propTypes2 = _interopRequireDefault(_propTypes); + newObj.default = obj; + return newObj; + } +} function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -1555,589 +1231,518 @@ function _interopRequireDefault(obj) { }; } -function transitionTimeout(transitionType) { - var timeoutPropName = 'transition' + transitionType + 'Timeout'; - var enabledPropName = 'transition' + transitionType; - return function (props) { - // If the transition is enabled - if (props[enabledPropName]) { - // If no timeout duration is provided - if (props[timeoutPropName] == null) { - 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 - } else if (typeof props[timeoutPropName] !== 'number') { - return new Error(timeoutPropName + ' must be a number (in milliseconds)'); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } } } - return null; + return target; }; + + return _extends.apply(this, arguments); } -var timeoutsShape = exports.timeoutsShape = _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.shape({ - enter: _propTypes2.default.number, - exit: _propTypes2.default.number -}).isRequired]); - -var classNamesShape = exports.classNamesShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({ - enter: _propTypes2.default.string, - exit: _propTypes2.default.string, - active: _propTypes2.default.string -}), _propTypes2.default.shape({ - enter: _propTypes2.default.string, - enterDone: _propTypes2.default.string, - enterActive: _propTypes2.default.string, - exit: _propTypes2.default.string, - exitDone: _propTypes2.default.string, - exitActive: _propTypes2.default.string -})]); +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} -/***/ }), +function uncontrollable(Component, controlledValues, methods) { + if (methods === void 0) { + methods = []; + } -/***/ 2799: -/***/ ((module, exports, __webpack_require__) => { + var displayName = Component.displayName || Component.name || 'Component'; + var isCompositeComponent = Utils.isReactComponent(Component); + var controlledProps = Object.keys(controlledValues); + var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey); + !(isCompositeComponent || !methods.length) ? false ? 0 : invariant(false) : void 0; -"use strict"; + var UncontrolledComponent = + /*#__PURE__*/ + function (_React$Component) { + _inheritsLoose(UncontrolledComponent, _React$Component); + function UncontrolledComponent() { + var _this; -exports.__esModule = true; -exports["default"] = getContainer; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -var _reactDom = __webpack_require__(6003); + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + _this.handlers = Object.create(null); + controlledProps.forEach(function (propName) { + var handlerName = controlledValues[propName]; -var _reactDom2 = _interopRequireDefault(_reactDom); + var handleChange = function handleChange(value) { + if (_this.props[handlerName]) { + var _this$props; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + _this._notifying = true; -function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2.default.findDOMNode(container) || defaultContainer; -} + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } -module.exports = exports['default']; + (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args)); -/***/ }), + _this._notifying = false; + } -/***/ 2948: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + _this._values[propName] = value; + if (!_this.unmounted) _this.forceUpdate(); + }; -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + _this.handlers[handlerName] = handleChange; + }); + if (isCompositeComponent) _this.attachRef = function (ref) { + _this.inner = ref; + }; + return _this; + } + var _proto = UncontrolledComponent.prototype; -var ReactPropTypesSecret = __webpack_require__(8643); + _proto.shouldComponentUpdate = function shouldComponentUpdate() { + //let the forceUpdate trigger the update + return !this._notifying; + }; -function emptyFunction() {} + _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { + var _this2 = this; -module.exports = function () { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } + var props = this.props; + this._values = Object.create(null); + controlledProps.forEach(function (key) { + _this2._values[key] = props[Utils.defaultKey(key)]; + }); + }; - 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'); - err.name = 'Invariant Violation'; - throw err; - } + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + var _this3 = this; - ; - shim.isRequired = shim; + var props = this.props; + controlledProps.forEach(function (key) { + /** + * If a prop switches from controlled to Uncontrolled + * reset its value to the defaultValue + */ + if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) { + _this3._values[key] = nextProps[Utils.defaultKey(key)]; + } + }); + }; - function getShim() { - return shim; - } + _proto.componentWillUnmount = function componentWillUnmount() { + this.unmounted = true; + }; - ; // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + _proto.getControlledInstance = function getControlledInstance() { + return this.inner; + }; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; -}; + _proto.render = function render() { + var _this4 = this; -/***/ }), + var props = _extends({}, this.props); -/***/ 3029: -/***/ ((module, exports, __webpack_require__) => { + PROPS_TO_OMIT.forEach(function (prop) { + delete props[prop]; + }); + var newProps = {}; + controlledProps.forEach(function (propName) { + var propValue = _this4.props[propName]; + newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName]; + }); + return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, { + ref: this.attachRef + })); + }; -"use strict"; + return UncontrolledComponent; + }(_react.default.Component); + UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")"; + UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName); + methods.forEach(function (method) { + UncontrolledComponent.prototype[method] = function $proxiedMethod() { + var _inner; -exports.__esModule = true; + return (_inner = this.inner)[method].apply(_inner, arguments); + }; + }); + UncontrolledComponent.ControlledComponent = Component; + /** + * useful when wrapping a Component and you want to control + * everything + */ -var _contains = __webpack_require__(6489); + UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) { + if (additions === void 0) { + additions = {}; + } -var _contains2 = _interopRequireDefault(_contains); + return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); + }; -var _propTypes = __webpack_require__(5762); + return UncontrolledComponent; +} -var _propTypes2 = _interopRequireDefault(_propTypes); +module.exports = exports["default"]; -var _react = __webpack_require__(5442); +/***/ }), -var _react2 = _interopRequireDefault(_react); +/***/ 3443: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _reactDom = __webpack_require__(6003); +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__(3543); // eslint-disable-next-line no-prototype-builtins -var _reactDom2 = _interopRequireDefault(_reactDom); -var _addEventListener = __webpack_require__(5865); +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; -var _addEventListener2 = _interopRequireDefault(_addEventListener); +/***/ }), -var _ownerDocument = __webpack_require__(3296); +/***/ 3445: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var global = __webpack_require__(8248); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var core = __webpack_require__(9520); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +var ctx = __webpack_require__(5154); -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +var hide = __webpack_require__(1795); - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} +var has = __webpack_require__(8283); -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +var PROTOTYPE = 'prototype'; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; -var escapeKeyCode = 27; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; // export native or passed -function isLeftClickEvent(event) { - return event.button === 0; -} + out = own ? target[key] : source[key]; // prevent global pollution for namespaces -function isModifiedEvent(event) { - return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); -} -/** - * The `` component registers your callback on the document - * when rendered. Powers the `` component. This is used achieve modal - * style behavior where your callback is triggered when the user tries to - * interact with the rest of the document or hits the `esc` key. - */ + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: + return new C(); + case 1: + return new C(a); -var RootCloseWrapper = function (_React$Component) { - _inherits(RootCloseWrapper, _React$Component); + case 2: + return new C(a, b); + } - function RootCloseWrapper(props, context) { - _classCallCheck(this, RootCloseWrapper); + return new C(a, b, c); + } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + return C.apply(this, arguments); + }; - _this.addEventListeners = function () { - // Store the current event to avoid triggering handlers immediately - // https://github.com/facebook/react/issues/20074 - _this.currentEvent = window.event; - var event = _this.props.event; - var doc = (0, _ownerDocument2.default)(_this); // Use capture for this listener so it fires before React's listener, to - // avoid false positives in the contains() check below if the target DOM - // element is removed in the React mouse callback. + F[PROTOTYPE] = C[PROTOTYPE]; + return F; // make static versions for prototype methods + }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true); - _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse); - _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp); - }; + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - _this.removeEventListeners = function () { - if (_this.documentMouseCaptureListener) { - _this.documentMouseCaptureListener.remove(); - } + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } +}; // type bitmap - if (_this.documentMouseListener) { - _this.documentMouseListener.remove(); - } - if (_this.documentKeyupListener) { - _this.documentKeyupListener.remove(); - } - }; +$export.F = 1; // forced - _this.handleMouseCapture = function (e) { - _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target); - }; +$export.G = 2; // global - _this.handleMouse = function (e) { - // skip if this event is the same as the one running when we added the handlers - if (e === _this.currentEvent) { - _this.currentEvent = undefined; - return; - } +$export.S = 4; // static - if (!_this.preventMouseRootClose && _this.props.onRootClose) { - _this.props.onRootClose(e); - } - }; +$export.P = 8; // proto - _this.handleKeyUp = function (e) { - // skip if this event is the same as the one running when we added the handlers - if (e === _this.currentEvent) { - _this.currentEvent = undefined; - return; - } +$export.B = 16; // bind - if (e.keyCode === escapeKeyCode && _this.props.onRootClose) { - _this.props.onRootClose(e); - } - }; +$export.W = 32; // wrap - _this.preventMouseRootClose = false; - return _this; - } +$export.U = 64; // safe - RootCloseWrapper.prototype.componentDidMount = function componentDidMount() { - if (!this.props.disabled) { - this.addEventListeners(); - } - }; +$export.R = 128; // real proto method for `library` - RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - if (!this.props.disabled && prevProps.disabled) { - this.addEventListeners(); - } else if (this.props.disabled && !prevProps.disabled) { - this.removeEventListeners(); - } - }; +module.exports = $export; - RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() { - if (!this.props.disabled) { - this.removeEventListeners(); - } - }; +/***/ }), - RootCloseWrapper.prototype.render = function render() { - return this.props.children; - }; +/***/ 3481: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - return RootCloseWrapper; -}(_react2.default.Component); +"use strict"; -RootCloseWrapper.displayName = 'RootCloseWrapper'; -RootCloseWrapper.propTypes = { - /** - * Callback fired after click or mousedown. Also triggers when user hits `esc`. - */ - onRootClose: _propTypes2.default.func, - /** - * Children to render. - */ - children: _propTypes2.default.element, +var $defineProperty = __webpack_require__(8449); - /** - * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`. - */ - disabled: _propTypes2.default.bool, +var createDesc = __webpack_require__(3650); - /** - * Choose which document mouse event to bind to. - */ - event: _propTypes2.default.oneOf(['click', 'mousedown']) -}; -RootCloseWrapper.defaultProps = { - event: 'click' +module.exports = function (object, index, value) { + if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; }; -exports["default"] = RootCloseWrapper; -module.exports = exports['default']; /***/ }), -/***/ 3044: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3537: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var $export = __webpack_require__(3445); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +$export($export.S, 'Object', { + create: __webpack_require__(9345) +}); -var _inDOM = __webpack_require__(8647); +/***/ }), -var _inDOM2 = _interopRequireDefault(_inDOM); +/***/ 3543: +/***/ ((module) => { -var _on = __webpack_require__(8774); +var toString = {}.toString; -var _on2 = _interopRequireDefault(_on); +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; -var _off = __webpack_require__(6170); +/***/ }), -var _off2 = _interopRequireDefault(_off); +/***/ 3650: +/***/ ((module) => { -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value }; -} +}; -var listen = function listen() {}; +/***/ }), -if (_inDOM2.default) { - listen = function listen(node, eventName, handler, capture) { - (0, _on2.default)(node, eventName, handler, capture); - return function () { - (0, _off2.default)(node, eventName, handler, capture); - }; - }; -} +/***/ 3655: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -exports["default"] = listen; -module.exports = exports['default']; +__webpack_require__(9532); + +module.exports = __webpack_require__(9520).Object.values; /***/ }), -/***/ 3105: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3737: +/***/ ((module) => { "use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +var invariant = function (condition, format, a, b, c, d, e, f) { + if (false) // removed by dead control flow +{} -var _react = __webpack_require__(5442); + if (!condition) { + var error; -var _react2 = _interopRequireDefault(_react); + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } -var _reactIs = __webpack_require__(9523); + error.framesToPop = 1; // we don't care about invariant's own frame -var _createChainableTypeChecker = __webpack_require__(8663); + throw error; + } +}; -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); +module.exports = invariant; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +/***/ }), -function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; +/***/ 3796: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).'); - } +var dP = __webpack_require__(8449); - if (!(0, _reactIs.isValidElementType)(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).'); - } +var anObject = __webpack_require__(4610); - return null; -} +var getKeys = __webpack_require__(5033); -exports["default"] = (0, _createChainableTypeChecker2.default)(elementType); -module.exports = exports['default']; +module.exports = __webpack_require__(4725) ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + + return O; +}; /***/ }), -/***/ 3152: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 3825: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +__webpack_require__(3993); + +module.exports = __webpack_require__(9520).Object.keys; + +/***/ }), + +/***/ 3837: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +/* unused reexport */ __webpack_require__(1897); + +/***/ }), + +/***/ 3841: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; +var ctx = __webpack_require__(5154); -var _inDOM = __webpack_require__(8647); +var $export = __webpack_require__(3445); -var _inDOM2 = _interopRequireDefault(_inDOM); +var toObject = __webpack_require__(5332); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var call = __webpack_require__(6562); -var transform = 'transform'; -var prefix = void 0, - transitionEnd = void 0, - animationEnd = void 0; -var transitionProperty = void 0, - transitionDuration = void 0, - transitionTiming = void 0, - transitionDelay = void 0; -var animationName = void 0, - animationDuration = void 0, - animationTiming = void 0, - animationDelay = void 0; +var isArrayIter = __webpack_require__(7350); -if (_inDOM2.default) { - var _getTransitionPropert = getTransitionProperties(); +var toLength = __webpack_require__(371); - prefix = _getTransitionPropert.prefix; - exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; - exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; - exports.transform = transform = prefix + '-' + transform; - exports.transitionProperty = transitionProperty = prefix + '-transition-property'; - exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; - exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; - exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; - exports.animationName = animationName = prefix + '-animation-name'; - exports.animationDuration = animationDuration = prefix + '-animation-duration'; - exports.animationTiming = animationTiming = prefix + '-animation-delay'; - exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; -} +var createProperty = __webpack_require__(3481); -exports.transform = transform; -exports.transitionProperty = transitionProperty; -exports.transitionTiming = transitionTiming; -exports.transitionDelay = transitionDelay; -exports.transitionDuration = transitionDuration; -exports.transitionEnd = transitionEnd; -exports.animationName = animationName; -exports.animationDuration = animationDuration; -exports.animationTiming = animationTiming; -exports.animationDelay = animationDelay; -exports.animationEnd = animationEnd; -exports["default"] = { - transform: transform, - end: transitionEnd, - property: transitionProperty, - timing: transitionTiming, - delay: transitionDelay, - duration: transitionDuration -}; +var getIterFn = __webpack_require__(6948); -function getTransitionProperties() { - var style = document.createElement('div').style; - var vendorMap = { - O: function O(e) { - return 'o' + e.toLowerCase(); - }, - Moz: function Moz(e) { - return e.toLowerCase(); - }, - Webkit: function Webkit(e) { - return 'webkit' + e; - }, - ms: function ms(e) { - return 'MS' + e; - } - }; - var vendors = Object.keys(vendorMap); - var transitionEnd = void 0, - animationEnd = void 0; - var prefix = ''; +$export($export.S + $export.F * !__webpack_require__(6509)(function (iter) { + Array.from(iter); +}), 'Array', { + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) + from: function from(arrayLike + /* , mapfn = undefined, thisArg = undefined */ + ) { + var O = toObject(arrayLike); + var C = typeof this == 'function' ? this : Array; + var aLen = arguments.length; + var mapfn = aLen > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + var index = 0; + var iterFn = getIterFn(O); + var length, result, step, iterator; + 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 - for (var i = 0; i < vendors.length; i++) { - var vendor = vendors[i]; + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); + } + } else { + length = toLength(O.length); - if (vendor + 'TransitionProperty' in style) { - prefix = '-' + vendor.toLowerCase(); - transitionEnd = vendorMap[vendor]('TransitionEnd'); - animationEnd = vendorMap[vendor]('AnimationEnd'); - break; + for (result = new C(length); length > index; index++) { + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); + } } - } - if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; - if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; - style = null; - return { - animationEnd: animationEnd, - transitionEnd: transitionEnd, - prefix: prefix - }; -} + result.length = index; + return result; + } +}); /***/ }), -/***/ 3215: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3993: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 19.1.2.14 Object.keys(O) +var toObject = __webpack_require__(5332); +var $keys = __webpack_require__(5033); -exports.__esModule = true; -exports["default"] = uncontrollable; +__webpack_require__(2069)('keys', function () { + return function keys(it) { + return $keys(toObject(it)); + }; +}); -var _react = _interopRequireDefault(__webpack_require__(5442)); +/***/ }), -var _invariant = _interopRequireDefault(__webpack_require__(3737)); +/***/ 4065: +/***/ ((module, exports, __webpack_require__) => { -var Utils = _interopRequireWildcard(__webpack_require__(7770)); +"use strict"; -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = hyphenateStyleName; - if (desc.get || desc.set) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - } +var _hyphenate = __webpack_require__(6534); - newObj.default = obj; - return newObj; - } -} +var _hyphenate2 = _interopRequireDefault(_hyphenate); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2145,220 +1750,236 @@ function _interopRequireDefault(obj) { }; } -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; +var msPattern = /^ms-/; +/** + * Copyright 2013-2014, Facebook, Inc. + * All rights reserved. + * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js + */ - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +function hyphenateStyleName(string) { + return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-'); +} - return target; - }; +module.exports = exports['default']; - return _extends.apply(this, arguments); -} +/***/ }), -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} +/***/ 4070: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -function uncontrollable(Component, controlledValues, methods) { - if (methods === void 0) { - methods = []; - } +var toInteger = __webpack_require__(6997); - var displayName = Component.displayName || Component.name || 'Component'; - var isCompositeComponent = Utils.isReactComponent(Component); - var controlledProps = Object.keys(controlledValues); - var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey); - !(isCompositeComponent || !methods.length) ? false ? 0 : invariant(false) : void 0; +var defined = __webpack_require__(9314); // true -> String#at +// false -> String#codePointAt - var UncontrolledComponent = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(UncontrolledComponent, _React$Component); - function UncontrolledComponent() { - var _this; +module.exports = function (TO_STRING) { + return function (that, pos) { + var s = String(defined(that)); + var i = toInteger(pos); + var l = s.length; + var a, b; + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; + a = s.charCodeAt(i); + 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; + }; +}; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +/***/ }), - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.handlers = Object.create(null); - controlledProps.forEach(function (propName) { - var handlerName = controlledValues[propName]; +/***/ 4112: +/***/ ((module, exports, __webpack_require__) => { - var handleChange = function handleChange(value) { - if (_this.props[handlerName]) { - var _this$props; +"use strict"; - _this._notifying = true; - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); - (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args)); +var _properties = __webpack_require__(3152); - _this._notifying = false; - } +var _properties2 = _interopRequireDefault(_properties); - _this._values[propName] = value; - if (!_this.unmounted) _this.forceUpdate(); - }; +var _style = __webpack_require__(7735); - _this.handlers[handlerName] = handleChange; - }); - if (isCompositeComponent) _this.attachRef = function (ref) { - _this.inner = ref; - }; - return _this; - } +var _style2 = _interopRequireDefault(_style); - var _proto = UncontrolledComponent.prototype; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - _proto.shouldComponentUpdate = function shouldComponentUpdate() { - //let the forceUpdate trigger the update - return !this._notifying; - }; +function onEnd(node, handler, duration) { + var fakeEvent = { + target: node, + currentTarget: node + }, + backup; + if (!_properties2.default.end) duration = 0;else if (duration == null) duration = parseDuration(node) || 0; - _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { - var _this2 = this; + if (_properties2.default.end) { + node.addEventListener(_properties2.default.end, done, false); + backup = setTimeout(function () { + return done(fakeEvent); + }, (duration || 100) * 1.5); + } else setTimeout(done.bind(null, fakeEvent), 0); - var props = this.props; - this._values = Object.create(null); - controlledProps.forEach(function (key) { - _this2._values[key] = props[Utils.defaultKey(key)]; - }); - }; + function done(event) { + if (event.target !== event.currentTarget) return; + clearTimeout(backup); + event.target.removeEventListener(_properties2.default.end, done); + handler.call(this); + } +} - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - var _this3 = this; +onEnd._parseDuration = parseDuration; +exports["default"] = onEnd; - var props = this.props; - controlledProps.forEach(function (key) { - /** - * If a prop switches from controlled to Uncontrolled - * reset its value to the defaultValue - */ - if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) { - _this3._values[key] = nextProps[Utils.defaultKey(key)]; - } - }); - }; +function parseDuration(node) { + var str = (0, _style2.default)(node, _properties2.default.duration), + mult = str.indexOf('ms') === -1 ? 1000 : 1; + return parseFloat(str) * mult; +} - _proto.componentWillUnmount = function componentWillUnmount() { - this.unmounted = true; - }; +module.exports = exports['default']; - _proto.getControlledInstance = function getControlledInstance() { - return this.inner; - }; +/***/ }), - _proto.render = function render() { - var _this4 = this; +/***/ 4152: +/***/ ((__unused_webpack_module, exports) => { - var props = _extends({}, this.props); +"use strict"; - PROPS_TO_OMIT.forEach(function (prop) { - delete props[prop]; - }); - var newProps = {}; - controlledProps.forEach(function (propName) { - var propValue = _this4.props[propName]; - newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName]; - }); - return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, { - ref: this.attachRef - })); - }; - return UncontrolledComponent; - }(_react.default.Component); +exports.__esModule = true; +exports["default"] = createChainableTypeChecker; +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ +// Mostly taken from ReactPropTypes. - UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")"; - UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName); - methods.forEach(function (method) { - UncontrolledComponent.prototype[method] = function $proxiedMethod() { - var _inner; +function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - return (_inner = this.inner)[method].apply(_inner, arguments); - }; - }); - UncontrolledComponent.ControlledComponent = Component; - /** - * useful when wrapping a Component and you want to control - * everything - */ + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) { - if (additions === void 0) { - additions = {}; + return null; } - return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); - }; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - return UncontrolledComponent; + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; } -module.exports = exports["default"]; +/***/ }), + +/***/ 4610: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isObject = __webpack_require__(2103); + +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; /***/ }), -/***/ 3296: -/***/ ((module, exports, __webpack_require__) => { +/***/ 4683: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +module.exports = __webpack_require__(687); +/***/ }), -exports.__esModule = true; +/***/ 4701: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement)); -}; +"use strict"; -var _reactDom = __webpack_require__(6003); -var _reactDom2 = _interopRequireDefault(_reactDom); +var $at = __webpack_require__(4070)(true); // 21.1.3.27 String.prototype[@@iterator]() -var _ownerDocument = __webpack_require__(1999); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +__webpack_require__(829)(String, 'String', function (iterated) { + this._t = String(iterated); // target -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + this._i = 0; // next index + // 21.1.5.2.1 %StringIteratorPrototype%.next() +}, function () { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { + value: undefined, + done: true }; -} + point = $at(O, index); + this._i += point.length; + return { + value: point, + done: false + }; +}); -module.exports = exports['default']; +/***/ }), + +/***/ 4725: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__(2250)(function () { + return Object.defineProperty({}, 'a', { + get: function () { + return 7; + } + }).a != 7; +}); /***/ }), -/***/ 3328: -/***/ ((module, exports, __webpack_require__) => { +/***/ 4976: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; +var __webpack_unused_export__; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = scrollTop; +__webpack_unused_export__ = true; -var _isWindow = __webpack_require__(4976); +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; +} : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; +}; + +var _react = __webpack_require__(5442); + +var _react2 = _interopRequireDefault(_react); + +var _createChainableTypeChecker = __webpack_require__(4152); -var _isWindow2 = _interopRequireDefault(_isWindow); +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2366,224 +1987,307 @@ function _interopRequireDefault(obj) { }; } -function scrollTop(node, val) { - var win = (0, _isWindow2.default)(node); - if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft; - if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val; +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + if (propType !== 'function' && propType !== 'string') { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + return null; } -module.exports = exports['default']; +exports.A = (0, _createChainableTypeChecker2.default)(elementType); /***/ }), -/***/ 3443: +/***/ 5012: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = __webpack_require__(3543); // eslint-disable-next-line no-prototype-builtins +var getKeys = __webpack_require__(5033); +var toIObject = __webpack_require__(8759); -module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return cof(it) == 'String' ? it.split('') : Object(it); +var isEnum = (__webpack_require__(9871).f); + +module.exports = function (isEntries) { + return function (it) { + var O = toIObject(it); + var keys = getKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + + while (length > i) if (isEnum.call(O, key = keys[i++])) { + result.push(isEntries ? [key, O[key]] : O[key]); + } + + return result; + }; }; /***/ }), -/***/ 3445: +/***/ 5033: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var global = __webpack_require__(8248); +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__(2235); -var core = __webpack_require__(9520); +var enumBugKeys = __webpack_require__(8338); -var ctx = __webpack_require__(5154); +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; -var hide = __webpack_require__(1795); +/***/ }), -var has = __webpack_require__(8283); +/***/ 5115: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var PROTOTYPE = 'prototype'; +module.exports = __webpack_require__(3655); -var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; +/***/ }), - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && has(exports, key)) continue; // export native or passed +/***/ 5154: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - out = own ? target[key] : source[key]; // prevent global pollution for namespaces +// optional / simple context binding +var aFunction = __webpack_require__(1149); - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: - return new C(); - - case 1: - return new C(a); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; - case 2: - return new C(a, b); - } + switch (length) { + case 1: + return function (a) { + return fn.call(that, a); + }; - return new C(a, b, c); - } + case 2: + return function (a, b) { + return fn.call(that, a, b); + }; - return C.apply(this, arguments); + case 3: + return function (a, b, c) { + return fn.call(that, a, b, c); }; + } - F[PROTOTYPE] = C[PROTOTYPE]; - return F; // make static versions for prototype methods - }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + return function () + /* ...args */ + { + return fn.apply(that, arguments); + }; +}; - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% +/***/ }), - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } -}; // type bitmap +/***/ 5229: +/***/ ((module, exports) => { +"use strict"; -$export.F = 1; // forced -$export.G = 2; // global +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = isTransform; +var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i; -$export.S = 4; // static +function isTransform(property) { + return !!(property && supportedTransforms.test(property)); +} -$export.P = 8; // proto +module.exports = exports["default"]; -$export.B = 16; // bind +/***/ }), -$export.W = 32; // wrap +/***/ 5307: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -$export.U = 64; // safe +var toInteger = __webpack_require__(6997); -$export.R = 128; // real proto method for `library` +var max = Math.max; +var min = Math.min; -module.exports = $export; +module.exports = function (index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); +}; /***/ }), -/***/ 3481: +/***/ 5332: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(9314); +module.exports = function (it) { + return Object(defined(it)); +}; -var $defineProperty = __webpack_require__(8449); +/***/ }), -var createDesc = __webpack_require__(3650); +/***/ 5402: +/***/ ((__unused_webpack_module, exports) => { -module.exports = function (object, index, value) { - if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; -}; +exports.f = Object.getOwnPropertySymbols; /***/ }), -/***/ 3521: -/***/ ((module, exports, __webpack_require__) => { +/***/ 5442: +/***/ ((module) => { "use strict"; +module.exports = __WEBPACK_EXTERNAL_MODULE__5442__; +/***/ }), -exports.__esModule = true; - -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +/***/ 5525: +/***/ ((module) => { - return target; -}; +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; -var _activeElement = __webpack_require__(6335); +/***/ }), -var _activeElement2 = _interopRequireDefault(_activeElement); +/***/ 5647: +/***/ ((module, exports, __webpack_require__) => { -var _contains = __webpack_require__(6489); +"use strict"; -var _contains2 = _interopRequireDefault(_contains); -var _inDOM = __webpack_require__(8647); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _getComputedStyle; -var _inDOM2 = _interopRequireDefault(_inDOM); +var _camelizeStyle = __webpack_require__(8039); -var _propTypes = __webpack_require__(5762); +var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); -var _propTypes2 = _interopRequireDefault(_propTypes); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var _componentOrElement = __webpack_require__(6387); +var rposition = /^(top|right|bottom|left)$/; +var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); +function _getComputedStyle(node) { + if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); + var doc = node.ownerDocument; + return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : { + //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72 + getPropertyValue: function getPropertyValue(prop) { + var style = node.style; + prop = (0, _camelizeStyle2.default)(prop); + if (prop == 'float') prop = 'styleFloat'; + var current = node.currentStyle[prop] || null; + if (current == null && style && style[prop]) current = style[prop]; -var _deprecated = __webpack_require__(7748); + if (rnumnonpx.test(current) && !rposition.test(prop)) { + // Remember the original values + var left = style.left; + var runStyle = node.runtimeStyle; + var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out -var _deprecated2 = _interopRequireDefault(_deprecated); + if (rsLeft) runStyle.left = node.currentStyle.left; + style.left = prop === 'fontSize' ? '1em' : current; + current = style.pixelLeft + 'px'; // Revert the changed values -var _elementType = __webpack_require__(3105); + style.left = left; + if (rsLeft) runStyle.left = rsLeft; + } -var _elementType2 = _interopRequireDefault(_elementType); + return current; + } + }; +} -var _react = __webpack_require__(5442); +module.exports = exports['default']; -var _react2 = _interopRequireDefault(_react); +/***/ }), -var _reactDom = __webpack_require__(6003); +/***/ 5762: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _reactDom2 = _interopRequireDefault(_reactDom); +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +if (false) // removed by dead control flow +{ var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(2948)(); +} -var _warning = __webpack_require__(7909); +/***/ }), -var _warning2 = _interopRequireDefault(_warning); +/***/ 5768: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -var _ModalManager = __webpack_require__(4542); +// 19.1.3.1 Object.assign(target, source) +var $export = __webpack_require__(3445); -var _ModalManager2 = _interopRequireDefault(_ModalManager); +$export($export.S + $export.F, 'Object', { + assign: __webpack_require__(344) +}); -var _Portal = __webpack_require__(904); +/***/ }), -var _Portal2 = _interopRequireDefault(_Portal); +/***/ 6003: +/***/ ((module) => { -var _RefHolder = __webpack_require__(8223); +"use strict"; +module.exports = __WEBPACK_EXTERNAL_MODULE__6003__; -var _RefHolder2 = _interopRequireDefault(_RefHolder); +/***/ }), -var _addEventListener = __webpack_require__(5865); +/***/ 6065: +/***/ ((module, exports, __webpack_require__) => { -var _addEventListener2 = _interopRequireDefault(_addEventListener); +"use strict"; -var _addFocusListener = __webpack_require__(9905); -var _addFocusListener2 = _interopRequireDefault(_addFocusListener); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var _getContainer = __webpack_require__(2799); +exports["default"] = function (recalc) { + if (!size && size !== 0 || recalc) { + if (_inDOM2.default) { + var scrollDiv = document.createElement('div'); + scrollDiv.style.position = 'absolute'; + scrollDiv.style.top = '-9999px'; + scrollDiv.style.width = '50px'; + scrollDiv.style.height = '50px'; + scrollDiv.style.overflow = 'scroll'; + document.body.appendChild(scrollDiv); + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + } + } -var _getContainer2 = _interopRequireDefault(_getContainer); + return size; +}; -var _ownerDocument = __webpack_require__(3296); +var _inDOM = __webpack_require__(8647); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var _inDOM2 = _interopRequireDefault(_inDOM); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2591,865 +2295,584 @@ function _interopRequireDefault(obj) { }; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +var size = void 0; +module.exports = exports['default']; -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +/***/ }), - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} +/***/ 6170: +/***/ ((module, exports, __webpack_require__) => { -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +"use strict"; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/* eslint-disable react/prop-types */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var modalManager = new _ModalManager2.default(); -/** - * Love them or hate them, `` provides a solid foundation for creating dialogs, lightboxes, or whatever else. - * The Modal component renders its `children` node in front of a backdrop component. - * - * The Modal offers a few helpful features over using just a `` component and some styles: - * - * - Manages dialog stacking when one-at-a-time just isn't enough. - * - Creates a backdrop, for disabling interaction below the modal. - * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed. - * - It disables scrolling of the page content while open. - * - Adds the appropriate ARIA roles are automatically. - * - Easily pluggable animations via a `` component. - * - * Note that, in the same way the backdrop element prevents users from clicking or interacting - * with the page content underneath the Modal, Screen readers also need to be signaled to not to - * interact with page content while the Modal is open. To do this, we use a common technique of applying - * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for - * a Modal to be truly modal, it should have a `container` that is _outside_ your app's - * React hierarchy (such as the default: document.body). - */ +var _inDOM = __webpack_require__(8647); -var Modal = function (_React$Component) { - _inherits(Modal, _React$Component); +var _inDOM2 = _interopRequireDefault(_inDOM); - function Modal() { - var _temp, _this, _ret; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - _classCallCheck(this, Modal); +var off = function off() {}; - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +if (_inDOM2.default) { + off = function () { + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.removeEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.detachEvent('on' + eventName, handler); + }; + }(); +} - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret); - } +exports["default"] = off; +module.exports = exports['default']; - Modal.prototype.omitProps = function omitProps(props, propTypes) { - var keys = Object.keys(props); - var newProps = {}; - keys.map(function (prop) { - if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) { - newProps[prop] = props[prop]; - } - }); - return newProps; - }; - - Modal.prototype.render = function render() { - var _props = this.props, - show = _props.show, - container = _props.container, - children = _props.children, - Transition = _props.transition, - backdrop = _props.backdrop, - className = _props.className, - style = _props.style, - onExit = _props.onExit, - onExiting = _props.onExiting, - onEnter = _props.onEnter, - onEntering = _props.onEntering, - onEntered = _props.onEntered; - - var dialog = _react2.default.Children.only(children); - - var filteredProps = this.omitProps(this.props, Modal.propTypes); - var mountModal = show || Transition && !this.state.exited; - - if (!mountModal) { - return null; - } +/***/ }), - var _dialog$props = dialog.props, - role = _dialog$props.role, - tabIndex = _dialog$props.tabIndex; +/***/ 6233: +/***/ ((module, exports, __webpack_require__) => { - if (role === undefined || tabIndex === undefined) { - dialog = (0, _react.cloneElement)(dialog, { - role: role === undefined ? 'document' : role, - tabIndex: tabIndex == null ? '-1' : tabIndex - }); - } +"use strict"; - if (Transition) { - dialog = _react2.default.createElement(Transition, { - appear: true, - unmountOnExit: true, - 'in': show, - onExit: onExit, - onExiting: onExiting, - onExited: this.handleHidden, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, dialog); - } - - return _react2.default.createElement(_Portal2.default, { - ref: this.setMountNode, - container: container, - onRendered: this.onPortalRendered - }, _react2.default.createElement('div', _extends({ - ref: this.setModalNodeRef, - role: role || 'dialog' - }, filteredProps, { - style: style, - className: className - }), backdrop && this.renderBackdrop(), _react2.default.createElement(_RefHolder2.default, { - ref: this.setDialogRef - }, dialog))); - }; - Modal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.show) { - this.setState({ - exited: false - }); - } else if (!nextProps.transition) { - // Otherwise let handleHidden take care of marking exited. - this.setState({ - exited: true - }); - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = filterEvents; - Modal.prototype.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { - if (!this.props.show && nextProps.show) { - this.checkForFocus(); - } - }; +var _contains = __webpack_require__(6489); - Modal.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; +var _contains2 = _interopRequireDefault(_contains); - if (this.props.show) { - this.onShow(); - } - }; +var _querySelectorAll = __webpack_require__(8404); - Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var transition = this.props.transition; +var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll); - if (prevProps.show && !this.props.show && !transition) { - // Otherwise handleHidden will call this. - this.onHide(); - } else if (!prevProps.show && this.props.show) { - this.onShow(); - } +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; +} - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - show = _props2.show, - transition = _props2.transition; - this._isMounted = false; - - if (show || transition && !this.state.exited) { - this.onHide(); - } +function filterEvents(selector, handler) { + return function filterHandler(e) { + var top = e.currentTarget, + target = e.target, + matches = (0, _querySelectorAll2.default)(top, selector); + if (matches.some(function (match) { + return (0, _contains2.default)(match, target); + })) handler.call(this, e); }; +} - Modal.prototype.autoFocus = function autoFocus() { - if (!this.props.autoFocus) { - return; - } +module.exports = exports['default']; - var dialogElement = this.getDialogElement(); - var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this)); +/***/ }), - if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { - this.lastFocus = currentActiveElement; +/***/ 6335: +/***/ ((module, exports, __webpack_require__) => { - if (!dialogElement.hasAttribute('tabIndex')) { - (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".'); - dialogElement.setAttribute('tabIndex', -1); - } +"use strict"; - dialogElement.focus(); - } - }; - Modal.prototype.restoreLastFocus = function restoreLastFocus() { - // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917) - if (this.lastFocus && this.lastFocus.focus) { - this.lastFocus.focus(); - this.lastFocus = null; - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = activeElement; - Modal.prototype.getDialogElement = function getDialogElement() { - return _reactDom2.default.findDOMNode(this.dialog); - }; +var _ownerDocument = __webpack_require__(1999); - Modal.prototype.isTopModal = function isTopModal() { - return this.props.manager.isTopModal(this); - }; +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - return Modal; -}(_react2.default.Component); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -Modal.propTypes = _extends({}, _Portal2.default.propTypes, { - /** - * Set the visibility of the Modal - */ - show: _propTypes2.default.bool, +function activeElement() { + var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); - /** - * A Node, Component instance, or function that returns either. The Modal is appended to it's container element. - * - * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the - * page content can be placed behind a virtual backdrop as well as a visual one. - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), + try { + return doc.activeElement; + } catch (e) { + /* ie throws if no active element */ + } +} - /** - * A callback fired when the Modal is opening. - */ - onShow: _propTypes2.default.func, +module.exports = exports['default']; - /** - * A callback fired when either the backdrop is clicked, or the escape key is pressed. - * - * The `onHide` callback only signals intent from the Modal, - * you must actually set the `show` prop to `false` for the Modal to close. - */ - onHide: _propTypes2.default.func, +/***/ }), - /** - * Include a backdrop component. - */ - backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]), +/***/ 6489: +/***/ ((module, exports, __webpack_require__) => { - /** - * A function that returns a backdrop component. Useful for custom - * backdrop rendering. - * - * ```js - * renderBackdrop={props => } - * ``` - */ - renderBackdrop: _propTypes2.default.func, +"use strict"; - /** - * A callback fired when the escape key, if specified in `keyboard`, is pressed. - */ - onEscapeKeyDown: _propTypes2.default.func, - /** - * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead - * A callback fired when the escape key, if specified in `keyboard`, is pressed. - * @deprecated - */ - onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); - /** - * A callback fired when the backdrop, if specified, is clicked. - */ - onBackdropClick: _propTypes2.default.func, +var _inDOM = __webpack_require__(8647); - /** - * A style object for the backdrop component. - */ - backdropStyle: _propTypes2.default.object, +var _inDOM2 = _interopRequireDefault(_inDOM); - /** - * A css class or classes for the backdrop component. - */ - backdropClassName: _propTypes2.default.string, +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - /** - * A css class or set of classes applied to the modal container when the modal is open, - * and removed when it is closed. - */ - containerClassName: _propTypes2.default.string, +exports["default"] = function () { + // HTML DOM and SVG DOM may have different support levels, + // so we need to check on context instead of a document root element. + return _inDOM2.default ? function (context, node) { + if (context.contains) { + return context.contains(node); + } else if (context.compareDocumentPosition) { + return context === node || !!(context.compareDocumentPosition(node) & 16); + } else { + return fallback(context, node); + } + } : fallback; +}(); - /** - * Close the modal when escape key is pressed - */ - keyboard: _propTypes2.default.bool, +function fallback(context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); + return false; +} - /** - * A `react-transition-group@2.0.0` `` component used - * to control animations for the dialog component. - */ - transition: _elementType2.default, +module.exports = exports['default']; - /** - * A `react-transition-group@2.0.0` `` component used - * to control animations for the backdrop components. - */ - backdropTransition: _elementType2.default, +/***/ }), - /** - * When `true` The modal will automatically shift focus to itself when it opens, and - * replace it to the last focused element when it closes. This also - * works correctly with any Modal children that have the `autoFocus` prop. - * - * Generally this should never be set to `false` as it makes the Modal less - * accessible to assistive technologies, like screen readers. - */ - autoFocus: _propTypes2.default.bool, +/***/ 6509: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - /** - * When `true` The modal will prevent focus from leaving the Modal while open. - * - * Generally this should never be set to `false` as it makes the Modal less - * accessible to assistive technologies, like screen readers. - */ - enforceFocus: _propTypes2.default.bool, +var ITERATOR = __webpack_require__(6932)('iterator'); - /** - * When `true` The modal will restore focus to previously focused element once - * modal is hidden - */ - restoreFocus: _propTypes2.default.bool, +var SAFE_CLOSING = false; - /** - * Callback fired before the Modal transitions in - */ - onEnter: _propTypes2.default.func, +try { + var riter = [7][ITERATOR](); - /** - * Callback fired as the Modal begins to transition in - */ - onEntering: _propTypes2.default.func, + riter['return'] = function () { + SAFE_CLOSING = true; + }; // eslint-disable-next-line no-throw-literal - /** - * Callback fired after the Modal finishes transitioning in - */ - onEntered: _propTypes2.default.func, - /** - * Callback fired right before the Modal transitions out - */ - onExit: _propTypes2.default.func, + Array.from(riter, function () { + throw 2; + }); +} catch (e) { + /* empty */ +} - /** - * Callback fired as the Modal begins to transition out - */ - onExiting: _propTypes2.default.func, +module.exports = function (exec, skipClosing) { + if (!skipClosing && !SAFE_CLOSING) return false; + var safe = false; - /** - * Callback fired after the Modal finishes transitioning out - */ - onExited: _propTypes2.default.func, + try { + var arr = [7]; + var iter = arr[ITERATOR](); - /** - * A ModalManager instance used to track and manage the state of open - * Modals. Useful when customizing how modals interact within a container - */ - manager: _propTypes2.default.object.isRequired -}); -Modal.defaultProps = { - show: false, - backdrop: true, - keyboard: true, - autoFocus: true, - enforceFocus: true, - restoreFocus: true, - onHide: function onHide() {}, - manager: modalManager, - renderBackdrop: function renderBackdrop(props) { - return _react2.default.createElement('div', props); - } -}; + iter.next = function () { + return { + done: safe = true + }; + }; -var _initialiseProps = function _initialiseProps() { - var _this2 = this; - - this.state = { - exited: !this.props.show - }; - - this.renderBackdrop = function () { - var _props3 = _this2.props, - backdropStyle = _props3.backdropStyle, - backdropClassName = _props3.backdropClassName, - renderBackdrop = _props3.renderBackdrop, - Transition = _props3.backdropTransition; - - var backdropRef = function backdropRef(ref) { - return _this2.backdrop = ref; + arr[ITERATOR] = function () { + return iter; }; - var backdrop = renderBackdrop({ - ref: backdropRef, - style: backdropStyle, - className: backdropClassName, - onClick: _this2.handleBackdropClick - }); - - if (Transition) { - backdrop = _react2.default.createElement(Transition, { - appear: true, - 'in': _this2.props.show - }, backdrop); - } - - return backdrop; - }; - - this.onPortalRendered = function () { - _this2.autoFocus(); - - if (_this2.props.onShow) { - _this2.props.onShow(); - } - }; - - this.onShow = function () { - var doc = (0, _ownerDocument2.default)(_this2); - var container = (0, _getContainer2.default)(_this2.props.container, doc.body); - - _this2.props.manager.add(_this2, container, _this2.props.containerClassName); + exec(arr); + } catch (e) { + /* empty */ + } - _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown); - _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp); - _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus); - }; + return safe; +}; - this.onHide = function () { - _this2.props.manager.remove(_this2); +/***/ }), - _this2._onDocumentKeydownListener.remove(); +/***/ 6534: +/***/ ((module, exports) => { - _this2._onDocumentKeyupListener.remove(); +"use strict"; - _this2._onFocusinListener.remove(); - if (_this2.props.restoreFocus) { - _this2.restoreLastFocus(); - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = hyphenate; +var rUpper = /([A-Z])/g; - this.setMountNode = function (ref) { - _this2.mountNode = ref ? ref.getMountNode() : ref; - }; +function hyphenate(string) { + return string.replace(rUpper, '-$1').toLowerCase(); +} - this.setModalNodeRef = function (ref) { - _this2.modalNode = ref; - }; +module.exports = exports['default']; - this.setDialogRef = function (ref) { - _this2.dialog = ref; - }; +/***/ }), - this.handleHidden = function () { - _this2.setState({ - exited: true - }); +/***/ 6546: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this2.onHide(); +__webpack_require__(6861); - if (_this2.props.onExited) { - var _props4; +module.exports = __webpack_require__(9520).parseInt; - (_props4 = _this2.props).onExited.apply(_props4, arguments); - } - }; +/***/ }), - this.handleBackdropClick = function (e) { - if (e.target !== e.currentTarget) { - return; - } +/***/ 6562: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (_this2.props.onBackdropClick) { - _this2.props.onBackdropClick(e); - } +// call something on iterator step with safe closing on error +var anObject = __webpack_require__(4610); - if (_this2.props.backdrop === true) { - _this2.props.onHide(); - } - }; +module.exports = function (iterator, fn, value, entries) { + try { + return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) + } catch (e) { + var ret = iterator['return']; + if (ret !== undefined) anObject(ret.call(iterator)); + throw e; + } +}; - this.handleDocumentKeyDown = function (e) { - if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { - if (_this2.props.onEscapeKeyDown) { - _this2.props.onEscapeKeyDown(e); - } +/***/ }), - _this2.props.onHide(); - } - }; +/***/ 6807: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - this.handleDocumentKeyUp = function (e) { - if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { - if (_this2.props.onEscapeKeyUp) { - _this2.props.onEscapeKeyUp(e); - } - } - }; +module.exports = __webpack_require__(8475); - this.checkForFocus = function () { - if (_inDOM2.default) { - _this2.lastFocus = (0, _activeElement2.default)(); - } - }; +/***/ }), - this.enforceFocus = function () { - if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) { - return; - } +/***/ 6832: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - var dialogElement = _this2.getDialogElement(); +var shared = __webpack_require__(114)('keys'); - var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2)); +var uid = __webpack_require__(7209); - if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { - dialogElement.focus(); - } - }; +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); }; -Modal.Manager = _ModalManager2.default; -exports["default"] = Modal; -module.exports = exports['default']; - /***/ }), -/***/ 3526: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; +/***/ 6861: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +var $export = __webpack_require__(3445); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = all; +var $parseInt = __webpack_require__(7416); // 18.2.5 parseInt(string, radix) -var _createChainableTypeChecker = __webpack_require__(8663); -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); +$export($export.G + $export.F * (parseInt != $parseInt), { + parseInt: $parseInt +}); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +/***/ }), -function all() { - for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { - validators[_key] = arguments[_key]; - } +/***/ 6932: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } +var store = __webpack_require__(114)('wks'); - var error = null; - validators.forEach(function (validator) { - if (error != null) { - return; - } +var uid = __webpack_require__(7209); - var result = validator.apply(undefined, args); +var Symbol = (__webpack_require__(8248).Symbol); - if (result != null) { - error = result; - } - }); - return error; - } +var USE_SYMBOL = typeof Symbol == 'function'; - return (0, _createChainableTypeChecker2.default)(allPropTypes); -} +var $exports = module.exports = function (name) { + return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; -module.exports = exports['default']; +$exports.store = store; /***/ }), -/***/ 3537: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +/***/ 6948: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var $export = __webpack_require__(3445); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var classof = __webpack_require__(1222); +var ITERATOR = __webpack_require__(6932)('iterator'); -$export($export.S, 'Object', { - create: __webpack_require__(9345) -}); +var Iterators = __webpack_require__(1428); + +module.exports = (__webpack_require__(9520).getIteratorMethod) = function (it) { + if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; +}; /***/ }), -/***/ 3543: +/***/ 6997: /***/ ((module) => { -var toString = {}.toString; +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; module.exports = function (it) { - return toString.call(it).slice(8, -1); + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }), -/***/ 3650: +/***/ 7209: /***/ ((module) => { -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; +var id = 0; +var px = Math.random(); + +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), -/***/ 3655: +/***/ 7222: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(9532); - -module.exports = __webpack_require__(9520).Object.values; +module.exports = __webpack_require__(6546); /***/ }), -/***/ 3737: -/***/ ((module) => { +/***/ 7350: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +// check on default Array iterator +var Iterators = __webpack_require__(1428); -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ +var ITERATOR = __webpack_require__(6932)('iterator'); -var invariant = function (condition, format, a, b, c, d, e, f) { - if (false) // removed by dead control flow -{} +var ArrayProto = Array.prototype; - if (!condition) { - var error; +module.exports = function (it) { + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); +}; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } +/***/ }), - error.framesToPop = 1; // we don't care about invariant's own frame +/***/ 7416: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - throw error; - } -}; +var $parseInt = (__webpack_require__(8248).parseInt); -module.exports = invariant; +var $trim = (__webpack_require__(7659).trim); + +var ws = __webpack_require__(5525); + +var hex = /^[-+]?0[xX]/; +module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { + var string = $trim(String(str), 3); + return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); +} : $parseInt; /***/ }), -/***/ 3796: +/***/ 7659: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var dP = __webpack_require__(8449); +var $export = __webpack_require__(3445); -var anObject = __webpack_require__(4610); +var defined = __webpack_require__(9314); -var getKeys = __webpack_require__(5033); +var fails = __webpack_require__(2250); -module.exports = __webpack_require__(4725) ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = getKeys(Properties); - var length = keys.length; - var i = 0; - var P; - - while (length > i) dP.f(O, P = keys[i++], Properties[P]); +var spaces = __webpack_require__(5525); - return O; -}; +var space = '[' + spaces + ']'; +var non = '\u200b\u0085'; +var ltrim = RegExp('^' + space + space + '*'); +var rtrim = RegExp(space + space + '*$'); -/***/ }), +var exporter = function (KEY, exec, ALIAS) { + var exp = {}; + var FORCE = fails(function () { + return !!spaces[KEY]() || non[KEY]() != non; + }); + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; + if (ALIAS) exp[ALIAS] = fn; + $export($export.P + $export.F * FORCE, 'String', exp); +}; // 1 -> String#trimLeft +// 2 -> String#trimRight +// 3 -> String#trim -/***/ 3825: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(3993); +var trim = exporter.trim = function (string, TYPE) { + string = String(defined(string)); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); + return string; +}; -module.exports = __webpack_require__(9520).Object.keys; +module.exports = exporter; /***/ }), -/***/ 3841: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +/***/ 7735: +/***/ ((module, exports, __webpack_require__) => { "use strict"; -var ctx = __webpack_require__(5154); - -var $export = __webpack_require__(3445); - -var toObject = __webpack_require__(5332); - -var call = __webpack_require__(6562); - -var isArrayIter = __webpack_require__(7350); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = style; -var toLength = __webpack_require__(371); +var _camelizeStyle = __webpack_require__(8039); -var createProperty = __webpack_require__(3481); +var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); -var getIterFn = __webpack_require__(6948); +var _hyphenateStyle = __webpack_require__(4065); -$export($export.S + $export.F * !__webpack_require__(6509)(function (iter) { - Array.from(iter); -}), 'Array', { - // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) - from: function from(arrayLike - /* , mapfn = undefined, thisArg = undefined */ - ) { - var O = toObject(arrayLike); - var C = typeof this == 'function' ? this : Array; - var aLen = arguments.length; - var mapfn = aLen > 1 ? arguments[1] : undefined; - var mapping = mapfn !== undefined; - var index = 0; - var iterFn = getIterFn(O); - var length, result, step, iterator; - 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 +var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); - if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { - for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { - createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); - } - } else { - length = toLength(O.length); +var _getComputedStyle2 = __webpack_require__(5647); - for (result = new C(length); length > index; index++) { - createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); - } - } +var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); - result.length = index; - return result; - } -}); +var _removeStyle = __webpack_require__(8290); -/***/ }), +var _removeStyle2 = _interopRequireDefault(_removeStyle); -/***/ 3993: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +var _properties = __webpack_require__(3152); -// 19.1.2.14 Object.keys(O) -var toObject = __webpack_require__(5332); +var _isTransform = __webpack_require__(5229); -var $keys = __webpack_require__(5033); +var _isTransform2 = _interopRequireDefault(_isTransform); -__webpack_require__(2069)('keys', function () { - return function keys(it) { - return $keys(toObject(it)); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; -}); +} -/***/ }), +function style(node, property, value) { + var css = ''; + var transforms = ''; + var props = property; -/***/ 4045: -/***/ ((module, exports, __webpack_require__) => { + if (typeof property === 'string') { + if (value === undefined) { + return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); + } else { + (props = {})[property] = value; + } + } -"use strict"; + Object.keys(props).forEach(function (key) { + var value = props[key]; + if (!value && value !== 0) { + (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); + } else if ((0, _isTransform2.default)(key)) { + transforms += key + '(' + value + ') '; + } else { + css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; + } + }); -exports.__esModule = true; + if (transforms) { + css += _properties.transform + ': ' + transforms + ';'; + } -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + node.style.cssText += ';' + css; +} - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +module.exports = exports['default']; - return target; -}; +/***/ }), -var _classnames = __webpack_require__(7755); +/***/ 7755: +/***/ ((module, exports) => { -var _classnames2 = _interopRequireDefault(_classnames); +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ -var _propTypes = __webpack_require__(5762); +/* global define */ +(function () { + 'use strict'; -var _propTypes2 = _interopRequireDefault(_propTypes); + var hasOwn = {}.hasOwnProperty; -var _componentOrElement = __webpack_require__(6387); + function classNames() { + var classes = []; -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + var argType = typeof arg; -var _react = __webpack_require__(5442); + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); -var _react2 = _interopRequireDefault(_react); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } -var _reactDom = __webpack_require__(6003); + return classes.join(' '); + } -var _reactDom2 = _interopRequireDefault(_reactDom); + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else // removed by dead control flow +{} +})(); -var _calculatePosition = __webpack_require__(5862); +/***/ }), -var _calculatePosition2 = _interopRequireDefault(_calculatePosition); +/***/ 7770: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -var _getContainer = __webpack_require__(2799); +"use strict"; -var _getContainer2 = _interopRequireDefault(_getContainer); -var _ownerDocument = __webpack_require__(3296); +exports.__esModule = true; +exports.uncontrolledPropTypes = uncontrolledPropTypes; +exports.isProp = isProp; +exports.defaultKey = defaultKey; +exports.isReactComponent = isReactComponent; -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var _invariant = _interopRequireDefault(__webpack_require__(3737)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -3457,201 +2880,99 @@ function _interopRequireDefault(obj) { }; } -function _objectWithoutProperties(obj, keys) { - var target = {}; - - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } - - return target; -} +var noop = function noop() {}; -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } +function readOnlyPropType(handler, name) { + return function (props, propName) { + if (props[propName] !== undefined) { + if (!props[handler]) { + 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 + "`.")); + } + } + }; } -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +function uncontrolledPropTypes(controlledValues, displayName) { + var propTypes = {}; + Object.keys(controlledValues).forEach(function (prop) { + // add default propTypes for folks that use runtime checks + propTypes[defaultKey(prop)] = noop; - return call && (typeof call === "object" || typeof call === "function") ? call : self; + if (false) // removed by dead control flow +{ var handler; } + }); + return propTypes; } -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +function isProp(props, prop) { + return props[prop] !== undefined; +} - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; +function defaultKey(key) { + return 'default' + key.charAt(0).toUpperCase() + key.substr(1); } /** - * The Position component calculates the coordinates for its child, to position - * it relative to a `target` component or node. Useful for creating callouts - * and tooltips, the Position component injects a `style` props with `left` and - * `top` values for positioning your component. + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. * - * It also injects "arrow" `left`, and `top` values for styling callout arrows - * for giving your components a sense of directionality. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. */ -var Position = function (_React$Component) { - _inherits(Position, _React$Component); +function isReactComponent(component) { + return !!(component && component.prototype && component.prototype.isReactComponent); +} - function Position(props, context) { - _classCallCheck(this, Position); +/***/ }), - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); +/***/ 7788: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this.getTarget = function () { - var target = _this.props.target; - var targetElement = typeof target === 'function' ? target() : target; - return targetElement && _reactDom2.default.findDOMNode(targetElement) || null; - }; +var isObject = __webpack_require__(2103); - _this.maybeUpdatePosition = function (placementChanged) { - var target = _this.getTarget(); +var document = (__webpack_require__(8248).document); // typeof document.createElement is 'object' in old IE - if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) { - return; - } - _this.updatePosition(target); - }; - - _this.state = { - positionLeft: 0, - positionTop: 0, - arrowOffsetLeft: null, - arrowOffsetTop: null - }; - _this._needsFlush = false; - _this._lastTarget = null; - return _this; - } - - Position.prototype.componentDidMount = function componentDidMount() { - this.updatePosition(this.getTarget()); - }; - - Position.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps() { - this._needsFlush = true; - }; - - Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this._needsFlush) { - this._needsFlush = false; - this.maybeUpdatePosition(this.props.placement !== prevProps.placement); - } - }; - - Position.prototype.render = function render() { - var _props = this.props, - children = _props.children, - className = _props.className, - props = _objectWithoutProperties(_props, ['children', 'className']); - - var _state = this.state, - positionLeft = _state.positionLeft, - positionTop = _state.positionTop, - arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']); // These should not be forwarded to the child. - - - delete props.target; - delete props.container; - delete props.containerPadding; - delete props.shouldUpdatePosition; - - var child = _react2.default.Children.only(children); - - return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, { - // FIXME: Don't forward `positionLeft` and `positionTop` via both props - // and `props.style`. - positionLeft: positionLeft, - positionTop: positionTop, - className: (0, _classnames2.default)(className, child.props.className), - style: _extends({}, child.props.style, { - left: positionLeft, - top: positionTop - }) - })); - }; - - Position.prototype.updatePosition = function updatePosition(target) { - this._lastTarget = target; - - if (!target) { - this.setState({ - positionLeft: 0, - positionTop: 0, - arrowOffsetLeft: null, - arrowOffsetTop: null - }); - return; - } +var is = isObject(document) && isObject(document.createElement); - var overlay = _reactDom2.default.findDOMNode(this); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; - var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body); - this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding)); - }; +/***/ }), - return Position; -}(_react2.default.Component); +/***/ 7909: +/***/ ((module) => { -Position.propTypes = { - /** - * A node, element, or function that returns either. The child will be - * be positioned next to the `target` specified. - */ - target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), +"use strict"; +/** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - /** - * "offsetParent" of the component - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - /** - * Minimum spacing in pixels between container border and component border - */ - containerPadding: _propTypes2.default.number, +var warning = function () {}; - /** - * How to position the component relative to the target - */ - placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']), +if (false) // removed by dead control flow +{} - /** - * Whether the position should be changed on each update - */ - shouldUpdatePosition: _propTypes2.default.bool -}; -Position.displayName = 'Position'; -Position.defaultProps = { - containerPadding: 0, - placement: 'right', - shouldUpdatePosition: false -}; -exports["default"] = Position; -module.exports = exports['default']; +module.exports = warning; /***/ }), -/***/ 4065: +/***/ 8039: /***/ ((module, exports, __webpack_require__) => { "use strict"; @@ -3660,11 +2981,11 @@ module.exports = exports['default']; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = hyphenateStyleName; +exports["default"] = camelizeStyleName; -var _hyphenate = __webpack_require__(6534); +var _camelize = __webpack_require__(1700); -var _hyphenate2 = _interopRequireDefault(_hyphenate); +var _camelize2 = _interopRequireDefault(_camelize); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -3672,46 +2993,44 @@ function _interopRequireDefault(obj) { }; } -var msPattern = /^ms-/; +var msPattern = /^-ms-/; /** - * Copyright 2013-2014, Facebook, Inc. + * Copyright 2014-2015, Facebook, Inc. * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js + * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js */ -function hyphenateStyleName(string) { - return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-'); +function camelizeStyleName(string) { + return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); } module.exports = exports['default']; /***/ }), -/***/ 4070: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 8248: +/***/ ((module) => { -var toInteger = __webpack_require__(6997); +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func +: Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef -var defined = __webpack_require__(9314); // true -> String#at -// false -> String#codePointAt +/***/ }), +/***/ 8283: +/***/ ((module) => { -module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - 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; - }; +var hasOwnProperty = {}.hasOwnProperty; + +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); }; /***/ }), -/***/ 4112: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8290: +/***/ ((module, exports) => { "use strict"; @@ -3719,241 +3038,150 @@ module.exports = function (TO_STRING) { Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = removeStyle; -var _properties = __webpack_require__(3152); +function removeStyle(node, key) { + return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); +} -var _properties2 = _interopRequireDefault(_properties); +module.exports = exports['default']; -var _style = __webpack_require__(7735); +/***/ }), -var _style2 = _interopRequireDefault(_style); +/***/ 8338: +/***/ ((module) => { -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +// IE 8- don't enum bug keys +module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); -function onEnd(node, handler, duration) { - var fakeEvent = { - target: node, - currentTarget: node - }, - backup; - if (!_properties2.default.end) duration = 0;else if (duration == null) duration = parseDuration(node) || 0; +/***/ }), - if (_properties2.default.end) { - node.addEventListener(_properties2.default.end, done, false); - backup = setTimeout(function () { - return done(fakeEvent); - }, (duration || 100) * 1.5); - } else setTimeout(done.bind(null, fakeEvent), 0); +/***/ 8404: +/***/ ((module, exports) => { - function done(event) { - if (event.target !== event.currentTarget) return; - clearTimeout(backup); - event.target.removeEventListener(_properties2.default.end, done); - handler.call(this); - } -} +"use strict"; -onEnd._parseDuration = parseDuration; -exports["default"] = onEnd; -function parseDuration(node) { - var str = (0, _style2.default)(node, _properties2.default.duration), - mult = str.indexOf('ms') === -1 ? 1000 : 1; - return parseFloat(str) * mult; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = qsa; // Zepto.js +// (c) 2010-2015 Thomas Fuchs +// Zepto.js may be freely distributed under the MIT license. + +var simpleSelectorRE = /^[\w-]*$/; +var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); + +function qsa(element, selector) { + var maybeID = selector[0] === '#', + maybeClass = selector[0] === '.', + nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, + isSimple = simpleSelectorRE.test(nameOnly), + found; + + if (isSimple) { + if (maybeID) { + element = element.getElementById ? element : document; + return (found = element.getElementById(nameOnly)) ? [found] : []; + } + + if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly)); + return toArray(element.getElementsByTagName(selector)); + } + + return toArray(element.querySelectorAll(selector)); } module.exports = exports['default']; /***/ }), -/***/ 4152: -/***/ ((__unused_webpack_module, exports) => { +/***/ 8449: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -"use strict"; +var anObject = __webpack_require__(4610); +var IE8_DOM_DEFINE = __webpack_require__(1614); -exports.__esModule = true; -exports["default"] = createChainableTypeChecker; -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -// Mostly taken from ReactPropTypes. +var toPrimitive = __webpack_require__(9194); -function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; +var dP = Object.defineProperty; +exports.f = __webpack_require__(4725) ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { + /* empty */ + } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } +/***/ }), - return null; - } +/***/ 8475: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } +__webpack_require__(4701); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } +__webpack_require__(3841); - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; -} +module.exports = __webpack_require__(9520).Array.from; /***/ }), -/***/ 4343: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +/***/ 8643: +/***/ ((module) => { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ polyfill: () => (/* binding */ polyfill) -/* harmony export */ }); /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -function componentWillMount() { - // Call this.constructor.gDSFP to support sub-classes. - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); - if (state !== null && state !== undefined) { - this.setState(state); - } -} - -function componentWillReceiveProps(nextProps) { - // Call this.constructor.gDSFP to support sub-classes. - // Use the setState() updater to ensure state isn't stale in certain edge cases. - function updater(prevState) { - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); - return state !== null && state !== undefined ? state : null; - } // Binding "this" is important for shallow renderer support. - - - this.setState(updater.bind(this)); -} - -function componentWillUpdate(nextProps, nextState) { - try { - var prevProps = this.props; - var prevState = this.state; - this.props = nextProps; - this.state = nextState; - this.__reactInternalSnapshotFlag = true; - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState); - } finally { - this.props = prevProps; - this.state = prevState; - } -} // React may warn about cWM/cWRP/cWU methods being deprecated. -// Add a flag to suppress these warnings for this special case. +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +module.exports = ReactPropTypesSecret; -componentWillMount.__suppressDeprecationWarning = true; -componentWillReceiveProps.__suppressDeprecationWarning = true; -componentWillUpdate.__suppressDeprecationWarning = true; - -function polyfill(Component) { - var prototype = Component.prototype; - - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } - - if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') { - return Component; - } // If new component APIs are defined, "unsafe" lifecycles won't be called. - // Error if any of these lifecycles are present, - // Because they would work differently between older and newer (16.3+) versions of React. +/***/ }), +/***/ 8644: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; +// https://github.com/tc39/proposal-object-values-entries +var $export = __webpack_require__(3445); - if (typeof prototype.componentWillMount === 'function') { - foundWillMountName = 'componentWillMount'; - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { - foundWillMountName = 'UNSAFE_componentWillMount'; - } +var $entries = __webpack_require__(5012)(true); - if (typeof prototype.componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'componentWillReceiveProps'; - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; +$export($export.S, 'Object', { + entries: function entries(it) { + return $entries(it); } +}); - if (typeof prototype.componentWillUpdate === 'function') { - foundWillUpdateName = 'componentWillUpdate'; - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; - } +/***/ }), - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var componentName = Component.displayName || Component.name; - var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()'; - 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'); - } // React <= 16.2 does not support static getDerivedStateFromProps. - // As a workaround, use cWM and cWRP to invoke the new static lifecycle. - // Newer versions of React will ignore these lifecycles if gDSFP exists. - - - if (typeof Component.getDerivedStateFromProps === 'function') { - prototype.componentWillMount = componentWillMount; - prototype.componentWillReceiveProps = componentWillReceiveProps; - } // React <= 16.2 does not support getSnapshotBeforeUpdate. - // As a workaround, use cWU to invoke the new lifecycle. - // Newer versions of React will ignore that lifecycle if gSBU exists. - - - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { - if (typeof prototype.componentDidUpdate !== 'function') { - throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'); - } - - prototype.componentWillUpdate = componentWillUpdate; - var componentDidUpdate = prototype.componentDidUpdate; - - prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) { - // 16.3+ will not execute our will-update method; - // It will pass a snapshot value to did-update though. - // Older versions will require our polyfilled will-update value. - // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", - // Because for <= 15.x versions this might be a "prevContext" object. - // We also can't just check "__reactInternalSnapshot", - // Because get-snapshot might return a falsy value. - // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. - var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot; - componentDidUpdate.call(this, prevProps, prevState, snapshot); - }; - } +/***/ 8647: +/***/ ((module, exports) => { - return Component; -} +"use strict"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = !!(typeof window !== 'undefined' && window.document && window.document.createElement); +module.exports = exports['default']; /***/ }), -/***/ 4506: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8663: +/***/ ((module, exports) => { "use strict"; @@ -3961,53 +3189,85 @@ function polyfill(Component) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = scrollTop; +exports["default"] = createChainableTypeChecker; +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ +// Mostly taken from ReactPropTypes. -var _isWindow = __webpack_require__(4976); +function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; -var _isWindow2 = _interopRequireDefault(_isWindow); + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + return null; + } + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } -function scrollTop(node, val) { - var win = (0, _isWindow2.default)(node); - if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; - if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; } module.exports = exports['default']; /***/ }), -/***/ 4542: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8727: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 7.2.2 IsArray(argument) +var cof = __webpack_require__(3543); +module.exports = Array.isArray || function isArray(arg) { + return cof(arg) == 'Array'; +}; -exports.__esModule = true; +/***/ }), -var _class = __webpack_require__(9578); +/***/ 8759: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _class2 = _interopRequireDefault(_class); +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(3443); -var _style = __webpack_require__(7735); +var defined = __webpack_require__(9314); -var _style2 = _interopRequireDefault(_style); +module.exports = function (it) { + return IObject(defined(it)); +}; + +/***/ }), -var _scrollbarSize = __webpack_require__(6065); +/***/ 8774: +/***/ ((module, exports, __webpack_require__) => { + +"use strict"; -var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); -var _isOverflowing = __webpack_require__(312); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var _isOverflowing2 = _interopRequireDefault(_isOverflowing); +var _inDOM = __webpack_require__(8647); -var _manageAriaHidden = __webpack_require__(1590); +var _inDOM2 = _interopRequireDefault(_inDOM); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -4015,5822 +3275,6106 @@ function _interopRequireDefault(obj) { }; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function findIndexOf(arr, cb) { - var idx = -1; - arr.some(function (d, i) { - if (cb(d, i)) { - idx = i; - return true; - } - }); - return idx; -} - -function findContainer(data, modal) { - return findIndexOf(data, function (d) { - return d.modals.indexOf(modal) !== -1; - }); -} - -function setContainerStyle(state, container) { - var style = { - overflow: 'hidden' - }; // we are only interested in the actual `style` here - // becasue we will override it - - state.style = { - overflow: container.style.overflow, - paddingRight: container.style.paddingRight - }; - - if (state.overflowing) { - // use computed style, here to get the real padding - // to add our scrollbar width - style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px'; - } - - (0, _style2.default)(container, style); -} +var on = function on() {}; -function removeContainerStyle(_ref, container) { - var style = _ref.style; - Object.keys(style).forEach(function (key) { - return container.style[key] = style[key]; - }); +if (_inDOM2.default) { + on = function () { + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.addEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.attachEvent('on' + eventName, function (e) { + e = e || window.event; + e.target = e.target || e.srcElement; + e.currentTarget = node; + handler.call(node, e); + }); + }; + }(); } -/** - * Proper state managment for containers and the modals in those containers. - * - * @internal Used by the Modal to ensure proper styling of containers. - */ - -var ModalManager = function ModalManager() { - var _this = this; - - var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref2$hideSiblingNode = _ref2.hideSiblingNodes, - hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode, - _ref2$handleContainer = _ref2.handleContainerOverflow, - handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer; - - _classCallCheck(this, ModalManager); - - this.add = function (modal, container, className) { - var modalIdx = _this.modals.indexOf(modal); +exports["default"] = on; +module.exports = exports['default']; - var containerIdx = _this.containers.indexOf(container); +/***/ }), - if (modalIdx !== -1) { - return modalIdx; - } +/***/ 8861: +/***/ ((module, exports) => { - modalIdx = _this.modals.length; +"use strict"; - _this.modals.push(modal); - if (_this.hideSiblingNodes) { - (0, _manageAriaHidden.hideSiblings)(container, modal.modalNode); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = isRequiredForA11y; - if (containerIdx !== -1) { - _this.data[containerIdx].modals.push(modal); +function isRequiredForA11y(validator) { + return function validate(props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - return modalIdx; + if (props[propName] == null) { + return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); } - var data = { - modals: [modal], - //right now only the first modal of a container will have its classes applied - classes: className ? className.split(/\s+/) : [], - overflowing: (0, _isOverflowing2.default)(container) - }; - - if (_this.handleContainerOverflow) { - setContainerStyle(data, container); + for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; } - data.classes.forEach(_class2.default.addClass.bind(null, container)); - - _this.containers.push(container); - - _this.data.push(data); - - return modalIdx; + return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); }; +} - this.remove = function (modal) { - var modalIdx = _this.modals.indexOf(modal); - - if (modalIdx === -1) { - return; - } +module.exports = exports['default']; - var containerIdx = findContainer(_this.data, modal); - var data = _this.data[containerIdx]; - var container = _this.containers[containerIdx]; - data.modals.splice(data.modals.indexOf(modal), 1); +/***/ }), - _this.modals.splice(modalIdx, 1); // if that was the last modal in a container, - // clean up the container +/***/ 9050: +/***/ ((module) => { +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - if (data.modals.length === 0) { - data.classes.forEach(_class2.default.removeClass.bind(null, container)); - if (_this.handleContainerOverflow) { - removeContainerStyle(data, container); - } +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +module.exports = ReactPropTypesSecret; - if (_this.hideSiblingNodes) { - (0, _manageAriaHidden.showSiblings)(container, modal.modalNode); - } +/***/ }), - _this.containers.splice(containerIdx, 1); +/***/ 9194: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this.data.splice(containerIdx, 1); - } else if (_this.hideSiblingNodes) { - //otherwise make sure the next top modal is visible to a SR - (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].modalNode); - } - }; +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__(2103); // instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string - this.isTopModal = function (modal) { - return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal; - }; - this.hideSiblingNodes = hideSiblingNodes; - this.handleContainerOverflow = handleContainerOverflow; - this.modals = []; - this.containers = []; - this.data = []; +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); }; -exports["default"] = ModalManager; -module.exports = exports['default']; - /***/ }), -/***/ 4610: +/***/ 9253: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var isObject = __webpack_require__(2103); +__webpack_require__(8644); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; +module.exports = __webpack_require__(9520).Object.entries; /***/ }), -/***/ 4683: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 9287: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -module.exports = __webpack_require__(687); +"use strict"; +var __webpack_unused_export__; -/***/ }), -/***/ 4701: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +__webpack_unused_export__ = ({ + value: true +}); +__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = undefined; -"use strict"; +var _on = __webpack_require__(8774); +var _on2 = _interopRequireDefault(_on); -var $at = __webpack_require__(4070)(true); // 21.1.3.27 String.prototype[@@iterator]() +var _off = __webpack_require__(6170); +var _off2 = _interopRequireDefault(_off); -__webpack_require__(829)(String, 'String', function (iterated) { - this._t = String(iterated); // target +var _filter = __webpack_require__(6233); - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() -}, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { - value: undefined, - done: true - }; - point = $at(O, index); - this._i += point.length; - return { - value: point, - done: false - }; -}); +var _filter2 = _interopRequireDefault(_filter); -/***/ }), +var _listen = __webpack_require__(3044); -/***/ 4725: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _listen2 = _interopRequireDefault(_listen); -// Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(2250)(function () { - return Object.defineProperty({}, 'a', { - get: function () { - return 7; - } - }).a != 7; -}); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} + +__webpack_unused_export__ = _on2.default; +__webpack_unused_export__ = _off2.default; +__webpack_unused_export__ = _filter2.default; +__webpack_unused_export__ = _listen2.default; +exports.Ay = { + on: _on2.default, + off: _off2.default, + filter: _filter2.default, + listen: _listen2.default +}; /***/ }), -/***/ 4976: -/***/ ((module, exports) => { +/***/ 9303: +/***/ ((__unused_webpack_module, exports) => { "use strict"; +/** @license React v16.4.2 + * react-is.production.min.js + * + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(exports, "__esModule", ({ - value: true + value: !0 })); -exports["default"] = getWindow; - -function getWindow(node) { - return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; -} - -module.exports = exports["default"]; - -/***/ }), +var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.forward_ref") : 60112, + n = b ? Symbol.for("react.timeout") : 60113; -/***/ 5012: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +function q(a) { + if ("object" === typeof a && null !== a) { + var p = a.$$typeof; -var getKeys = __webpack_require__(5033); + switch (p) { + case c: + switch (a = a.type, a) { + case l: + case e: + case g: + case f: + return a; -var toIObject = __webpack_require__(8759); + default: + switch (a = a && a.$$typeof, a) { + case k: + case m: + case h: + return a; -var isEnum = (__webpack_require__(9871).f); + default: + return p; + } -module.exports = function (isEntries) { - return function (it) { - var O = toIObject(it); - var keys = getKeys(O); - var length = keys.length; - var i = 0; - var result = []; - var key; + } - while (length > i) if (isEnum.call(O, key = keys[i++])) { - result.push(isEntries ? [key, O[key]] : O[key]); + case d: + return p; } + } +} - return result; - }; -}; +exports.typeOf = q; +exports.AsyncMode = l; +exports.ContextConsumer = k; +exports.ContextProvider = h; +exports.Element = c; +exports.ForwardRef = m; +exports.Fragment = e; +exports.Profiler = g; +exports.Portal = d; +exports.StrictMode = f; -/***/ }), +exports.isValidElementType = function (a) { + 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); +}; -/***/ 5033: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +exports.isAsyncMode = function (a) { + return q(a) === l; +}; -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(2235); +exports.isContextConsumer = function (a) { + return q(a) === k; +}; -var enumBugKeys = __webpack_require__(8338); +exports.isContextProvider = function (a) { + return q(a) === h; +}; -module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); +exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; }; -/***/ }), +exports.isForwardRef = function (a) { + return q(a) === m; +}; -/***/ 5083: -/***/ ((module, exports, __webpack_require__) => { +exports.isFragment = function (a) { + return q(a) === e; +}; -"use strict"; +exports.isProfiler = function (a) { + return q(a) === g; +}; +exports.isPortal = function (a) { + return q(a) === d; +}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +exports.isStrictMode = function (a) { + return q(a) === f; +}; -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; +/***/ }), - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +/***/ 9314: +/***/ ((module) => { - return target; +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; }; -exports["default"] = position; +/***/ }), -var _offset = __webpack_require__(5547); +/***/ 9345: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _offset2 = _interopRequireDefault(_offset); +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__(4610); -var _offsetParent = __webpack_require__(1547); +var dPs = __webpack_require__(3796); -var _offsetParent2 = _interopRequireDefault(_offsetParent); +var enumBugKeys = __webpack_require__(8338); -var _scrollTop = __webpack_require__(4506); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var _scrollTop2 = _interopRequireDefault(_scrollTop); +var Empty = function () { + /* empty */ +}; -var _scrollLeft = __webpack_require__(3328); +var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var _scrollLeft2 = _interopRequireDefault(_scrollLeft); +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(7788)('iframe'); -var _style = __webpack_require__(7735); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; -var _style2 = _interopRequireDefault(_style); + (__webpack_require__(2426).appendChild)(iframe); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); -function nodeName(node) { - return node.nodeName && node.nodeName.toLowerCase(); -} + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; -function position(node, offsetParent) { - var parentOffset = { - top: 0, - left: 0 - }, - offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, - // because it is its only offset parent + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - if ((0, _style2.default)(node, 'position') === 'fixed') { - offset = node.getBoundingClientRect(); - } else { - offsetParent = offsetParent || (0, _offsetParent2.default)(node); - offset = (0, _offset2.default)(node); - if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent); - parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0; - parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0; - } // Subtract parent offsets and node margins + return createDict(); +}; +module.exports = Object.create || function create(O, Properties) { + var result; - return _extends({}, offset, { - top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0), - left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0) - }); -} + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill -module.exports = exports['default']; + result[IE_PROTO] = O; + } else result = createDict(); + + return Properties === undefined ? result : dPs(result, Properties); +}; /***/ }), -/***/ 5115: +/***/ 9508: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = __webpack_require__(3655); +module.exports = __webpack_require__(64); /***/ }), -/***/ 5154: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// optional / simple context binding -var aFunction = __webpack_require__(1149); - -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - - switch (length) { - case 1: - return function (a) { - return fn.call(that, a); - }; - - case 2: - return function (a, b) { - return fn.call(that, a, b); - }; - - case 3: - return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } +/***/ 9520: +/***/ ((module) => { - return function () - /* ...args */ - { - return fn.apply(that, arguments); - }; +var core = module.exports = { + version: '2.5.7' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/***/ 5229: -/***/ ((module, exports) => { +/***/ 9523: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isTransform; -var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i; - -function isTransform(property) { - return !!(property && supportedTransforms.test(property)); -} - -module.exports = exports["default"]; +if (true) { + module.exports = __webpack_require__(9303); +} else // removed by dead control flow +{} /***/ }), -/***/ 5307: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toInteger = __webpack_require__(6997); - -var max = Math.max; -var min = Math.min; - -module.exports = function (index, length) { - index = toInteger(index); - return index < 0 ? max(index + length, 0) : min(index, length); -}; - -/***/ }), +/***/ 9532: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -/***/ 5332: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +// https://github.com/tc39/proposal-object-values-entries +var $export = __webpack_require__(3445); -// 7.1.13 ToObject(argument) -var defined = __webpack_require__(9314); +var $values = __webpack_require__(5012)(false); -module.exports = function (it) { - return Object(defined(it)); -}; +$export($export.S, 'Object', { + values: function values(it) { + return $values(it); + } +}); /***/ }), -/***/ 5402: +/***/ 9871: /***/ ((__unused_webpack_module, exports) => { -exports.f = Object.getOwnPropertySymbols; - -/***/ }), - -/***/ 5442: -/***/ ((module) => { - -"use strict"; -module.exports = __WEBPACK_EXTERNAL_MODULE__5442__; - -/***/ }), - -/***/ 5525: -/***/ ((module) => { - -module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; +exports.f = {}.propertyIsEnumerable; /***/ }), -/***/ 5547: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = offset; - -var _contains = __webpack_require__(6489); - -var _contains2 = _interopRequireDefault(_contains); - -var _isWindow = __webpack_require__(4976); - -var _isWindow2 = _interopRequireDefault(_isWindow); - -var _ownerDocument = __webpack_require__(1999); - -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function offset(node) { - var doc = (0, _ownerDocument2.default)(node), - win = (0, _isWindow2.default)(doc), - docElem = doc && doc.documentElement, - box = { - top: 0, - left: 0, - height: 0, - width: 0 - }; - if (!doc) return; // Make sure it's not a disconnected DOM node +/***/ 9874: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (!(0, _contains2.default)(docElem, node)) return box; - if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height +var def = (__webpack_require__(8449).f); - box = { - top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), - left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), - width: (box.width == null ? node.offsetWidth : box.width) || 0, - height: (box.height == null ? node.offsetHeight : box.height) || 0 - }; - return box; -} +var has = __webpack_require__(8283); -module.exports = exports['default']; +var TAG = __webpack_require__(6932)('toStringTag'); -/***/ }), +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { + configurable: true, + value: tag + }); +}; -/***/ 5647: -/***/ ((module, exports, __webpack_require__) => { +/***/ }) +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. +(() => { "use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Accordion: () => (/* reexport */ src_Accordion), + Alert: () => (/* reexport */ src_Alert), + Badge: () => (/* reexport */ src_Badge), + Breadcrumb: () => (/* reexport */ src_Breadcrumb), + BreadcrumbItem: () => (/* reexport */ src_BreadcrumbItem), + Button: () => (/* reexport */ src_Button), + ButtonGroup: () => (/* reexport */ src_ButtonGroup), + ButtonToolbar: () => (/* reexport */ src_ButtonToolbar), + Carousel: () => (/* reexport */ src_Carousel), + CarouselItem: () => (/* reexport */ src_CarouselItem), + Checkbox: () => (/* reexport */ src_Checkbox), + Clearfix: () => (/* reexport */ src_Clearfix), + CloseButton: () => (/* reexport */ src_CloseButton), + Col: () => (/* reexport */ src_Col), + Collapse: () => (/* reexport */ src_Collapse), + ControlLabel: () => (/* reexport */ src_ControlLabel), + Dropdown: () => (/* reexport */ src_Dropdown), + DropdownButton: () => (/* reexport */ src_DropdownButton), + Fade: () => (/* reexport */ src_Fade), + Form: () => (/* reexport */ src_Form), + FormControl: () => (/* reexport */ src_FormControl), + FormGroup: () => (/* reexport */ src_FormGroup), + Glyphicon: () => (/* reexport */ src_Glyphicon), + Grid: () => (/* reexport */ src_Grid), + HelpBlock: () => (/* reexport */ src_HelpBlock), + Image: () => (/* reexport */ src_Image), + InputGroup: () => (/* reexport */ src_InputGroup), + Jumbotron: () => (/* reexport */ src_Jumbotron), + Label: () => (/* reexport */ src_Label), + ListGroup: () => (/* reexport */ src_ListGroup), + ListGroupItem: () => (/* reexport */ src_ListGroupItem), + Media: () => (/* reexport */ src_Media), + MenuItem: () => (/* reexport */ src_MenuItem), + Modal: () => (/* reexport */ src_Modal), + ModalBody: () => (/* reexport */ src_ModalBody), + ModalDialog: () => (/* reexport */ src_ModalDialog), + ModalFooter: () => (/* reexport */ src_ModalFooter), + ModalHeader: () => (/* reexport */ src_ModalHeader), + ModalTitle: () => (/* reexport */ src_ModalTitle), + Nav: () => (/* reexport */ src_Nav), + NavDropdown: () => (/* reexport */ src_NavDropdown), + NavItem: () => (/* reexport */ src_NavItem), + Navbar: () => (/* reexport */ src_Navbar), + NavbarBrand: () => (/* reexport */ src_NavbarBrand), + Overlay: () => (/* reexport */ src_Overlay), + OverlayTrigger: () => (/* reexport */ src_OverlayTrigger), + PageHeader: () => (/* reexport */ src_PageHeader), + PageItem: () => (/* reexport */ PageItem), + Pager: () => (/* reexport */ src_Pager), + Pagination: () => (/* reexport */ src_Pagination), + Panel: () => (/* reexport */ src_Panel), + PanelGroup: () => (/* reexport */ src_PanelGroup), + Popover: () => (/* reexport */ src_Popover), + ProgressBar: () => (/* reexport */ src_ProgressBar), + Radio: () => (/* reexport */ src_Radio), + ResponsiveEmbed: () => (/* reexport */ src_ResponsiveEmbed), + Row: () => (/* reexport */ src_Row), + SafeAnchor: () => (/* reexport */ src_SafeAnchor), + SplitButton: () => (/* reexport */ src_SplitButton), + Tab: () => (/* reexport */ src_Tab), + TabContainer: () => (/* reexport */ src_TabContainer), + TabContent: () => (/* reexport */ src_TabContent), + TabPane: () => (/* reexport */ src_TabPane), + Table: () => (/* reexport */ src_Table), + Tabs: () => (/* reexport */ src_Tabs), + Thumbnail: () => (/* reexport */ src_Thumbnail), + ToggleButton: () => (/* reexport */ src_ToggleButton), + ToggleButtonGroup: () => (/* reexport */ src_ToggleButtonGroup), + Tooltip: () => (/* reexport */ src_Tooltip), + Well: () => (/* reexport */ src_Well), + utils: () => (/* reexport */ utils_namespaceObject) +}); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _getComputedStyle; - -var _camelizeStyle = __webpack_require__(8039); - -var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -var rposition = /^(top|right|bottom|left)$/; -var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; - -function _getComputedStyle(node) { - if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); - var doc = node.ownerDocument; - return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : { - //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72 - getPropertyValue: function getPropertyValue(prop) { - var style = node.style; - prop = (0, _camelizeStyle2.default)(prop); - if (prop == 'float') prop = 'styleFloat'; - var current = node.currentStyle[prop] || null; - if (current == null && style && style[prop]) current = style[prop]; - - if (rnumnonpx.test(current) && !rposition.test(prop)) { - // Remember the original values - var left = style.left; - var runStyle = node.runtimeStyle; - var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out - - if (rsLeft) runStyle.left = node.currentStyle.left; - style.left = prop === 'fontSize' ? '1em' : current; - current = style.pixelLeft + 'px'; // Revert the changed values +// NAMESPACE OBJECT: ./src/utils/bootstrapUtils.js +var bootstrapUtils_namespaceObject = {}; +__webpack_require__.r(bootstrapUtils_namespaceObject); +__webpack_require__.d(bootstrapUtils_namespaceObject, { + _curry: () => (_curry), + addStyle: () => (addStyle), + bsClass: () => (bsClass), + bsSizes: () => (bsSizes), + bsStyles: () => (bsStyles), + getClassSet: () => (getClassSet), + prefix: () => (prefix), + splitBsProps: () => (splitBsProps), + splitBsPropsAndOmit: () => (splitBsPropsAndOmit) +}); - style.left = left; - if (rsLeft) runStyle.left = rsLeft; - } +// NAMESPACE OBJECT: ./src/utils/index.js +var utils_namespaceObject = {}; +__webpack_require__.r(utils_namespaceObject); +__webpack_require__.d(utils_namespaceObject, { + ValidComponentChildren: () => (ValidComponentChildren), + bootstrapUtils: () => (bootstrapUtils_namespaceObject), + createChainedFunction: () => (utils_createChainedFunction) +}); - return current; - } - }; -} +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js +var object_assign = __webpack_require__(9508); +var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js -module.exports = exports['default']; +function _extends() { + _extends = (assign_default()) || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; -/***/ }), + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } -/***/ 5762: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return target; + }; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -if (false) // removed by dead control flow -{ var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(2948)(); + return _extends.apply(this, arguments); } +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/create.js +var create = __webpack_require__(2309); +var create_default = /*#__PURE__*/__webpack_require__.n(create); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js -/***/ }), - -/***/ 5768: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +function _inheritsLoose(subClass, superClass) { + subClass.prototype = create_default()(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} +// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} +var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(5442); +var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js +var keys = __webpack_require__(2573); +var keys_default = /*#__PURE__*/__webpack_require__.n(keys); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js -// 19.1.3.1 Object.assign(target, source) -var $export = __webpack_require__(3445); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; -$export($export.S + $export.F, 'Object', { - assign: __webpack_require__(344) -}); + var sourceKeys = keys_default()(source); -/***/ }), + var key, i; -/***/ 5862: -/***/ ((module, exports, __webpack_require__) => { + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } -"use strict"; + return target; +} +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(7755); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/prop-types/index.js +var prop_types = __webpack_require__(5762); +var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); +// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js +var uncontrollable = __webpack_require__(3215); +var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable); +;// ./src/PanelGroupContext.js +var PanelGroupContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(undefined); +PanelGroupContext.displayName = 'PanelGroupContext'; +/* harmony default export */ const src_PanelGroupContext = (PanelGroupContext); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js +var entries = __webpack_require__(1953); +var entries_default = /*#__PURE__*/__webpack_require__.n(entries); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/json/stringify.js +var stringify = __webpack_require__(3837); +// EXTERNAL MODULE: ./node_modules/invariant/browser.js +var browser = __webpack_require__(3737); +var browser_default = /*#__PURE__*/__webpack_require__.n(browser); +// EXTERNAL MODULE: ./node_modules/react-is/cjs/react-is.production.js +var react_is_production = __webpack_require__(2691); +// EXTERNAL MODULE: ./node_modules/warning/browser.js +var warning_browser = __webpack_require__(7909); +;// ./src/utils/StyleConfig.js +var Size = { + LARGE: 'large', + SMALL: 'small', + XSMALL: 'xsmall' +}; +var SIZE_MAP = { + large: 'lg', + medium: 'md', + small: 'sm', + xsmall: 'xs', + lg: 'lg', + md: 'md', + sm: 'sm', + xs: 'xs' +}; +var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; +var State = { + SUCCESS: 'success', + WARNING: 'warning', + DANGER: 'danger', + INFO: 'info' +}; +var Style = { + DEFAULT: 'default', + PRIMARY: 'primary', + LINK: 'link', + INVERSE: 'inverse' +}; +;// ./src/utils/bootstrapUtils.js -exports.__esModule = true; -exports["default"] = calculatePosition; -var _offset = __webpack_require__(5547); -var _offset2 = _interopRequireDefault(_offset); +// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. -var _position = __webpack_require__(5083); -var _position2 = _interopRequireDefault(_position); -var _scrollTop = __webpack_require__(4506); -var _scrollTop2 = _interopRequireDefault(_scrollTop); -var _ownerDocument = __webpack_require__(3296); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +function curry(fn) { + return function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -function getContainerDimensions(containerNode) { - var width = void 0, - height = void 0, - scroll = void 0; + var last = args[args.length - 1]; - if (containerNode.tagName === 'BODY') { - width = window.innerWidth; - height = window.innerHeight; - scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode); - } else { - var _getOffset = (0, _offset2.default)(containerNode); + if (typeof last !== 'string' && (0,react_is_production/* isValidElementType */.Hy)(last)) { + // Supports calling curry(...args, Component) + return fn.apply(void 0, args); + } // Supports calling curry(...args)(Component) - width = _getOffset.width; - height = _getOffset.height; - scroll = (0, _scrollTop2.default)(containerNode); - } - return { - width: width, - height: height, - scroll: scroll + return function (Component) { + return fn.apply(void 0, args.concat([Component])); + }; }; } -function getTopDelta(top, overlayHeight, container, padding) { - var containerDimensions = getContainerDimensions(container); - var containerScroll = containerDimensions.scroll; - var containerHeight = containerDimensions.height; - var topEdgeOffset = top - padding - containerScroll; - var bottomEdgeOffset = top + padding - containerScroll + overlayHeight; - - if (topEdgeOffset < 0) { - return -topEdgeOffset; - } else if (bottomEdgeOffset > containerHeight) { - return containerHeight - bottomEdgeOffset; - } else { - return 0; - } +function componentName(Component) { + return Component.displayName || Component.name || 'Component'; } -function getLeftDelta(left, overlayWidth, container, padding) { - var containerDimensions = getContainerDimensions(container); - var containerWidth = containerDimensions.width; - var leftEdgeOffset = left - padding; - var rightEdgeOffset = left + padding + overlayWidth; +function isReactClass(Component) { + return Boolean(Component && Component.prototype && typeof Component.prototype.render === 'function'); +} - if (leftEdgeOffset < 0) { - return -leftEdgeOffset; - } else if (rightEdgeOffset > containerWidth) { - return containerWidth - rightEdgeOffset; +function warnOutOfRange(name, propName, value, allowed) { + if (value != null && allowed.indexOf(value) === -1) { + false ? 0 : void 0; } +} // Patch a class component's `render` so `propName` is validated on every +// render, without wrapping the component (which would break ref forwarding, +// static reads, and — for e.g. `bsRole` — class `defaultProps` merging). - return 0; -} -function calculatePosition(placement, overlayNode, target, container, padding) { - var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container); +function patchRenderValidation(Component, propName, allowed) { + var flag = "__bsValidated_" + propName; + var proto = Component.prototype; - var _getOffset2 = (0, _offset2.default)(overlayNode), - overlayHeight = _getOffset2.height, - overlayWidth = _getOffset2.width; + if (Object.prototype.hasOwnProperty.call(proto, flag)) { + return; + } - var positionLeft = void 0, - positionTop = void 0, - arrowOffsetLeft = void 0, - arrowOffsetTop = void 0; + var name = componentName(Component); + var innerRender = proto.render; - if (placement === 'left' || placement === 'right') { - positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2; + proto.render = function validatedRender() { + warnOutOfRange(name, propName, this.props[propName], allowed); - if (placement === 'left') { - positionLeft = childOffset.left - overlayWidth; - } else { - positionLeft = childOffset.left + childOffset.width; - } - - var topDelta = getTopDelta(positionTop, overlayHeight, container, padding); - positionTop += topDelta; - arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%'; - arrowOffsetLeft = void 0; - } else if (placement === 'top' || placement === 'bottom') { - positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2; - - if (placement === 'top') { - positionTop = childOffset.top - overlayHeight; - } else { - positionTop = childOffset.top + childOffset.height; + for (var _len2 = arguments.length, renderArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + renderArgs[_key2] = arguments[_key2]; } - var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding); - positionLeft += leftDelta; - arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%'; - arrowOffsetTop = void 0; - } else { - throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.'); - } - - return { - positionLeft: positionLeft, - positionTop: positionTop, - arrowOffsetLeft: arrowOffsetLeft, - arrowOffsetTop: arrowOffsetTop + return innerRender.apply(this, renderArgs); }; -} - -module.exports = exports['default']; -/***/ }), + proto[flag] = true; +} // Wrap a function component so the default is applied and the value validated +// at render. -/***/ 5865: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; +function wrapFunctionComponent(Inner, _ref) { + var propName = _ref.propName, + defaultValue = _ref.defaultValue, + allowed = _ref.allowed; + var name = componentName(Inner); + function BootstrapComponent(props) { + var _extends2; -exports.__esModule = true; + var resolved = defaultValue !== undefined && props[propName] === undefined ? _extends({}, props, (_extends2 = {}, _extends2[propName] = defaultValue, _extends2)) : props; -exports["default"] = function (node, event, handler, capture) { - (0, _on2.default)(node, event, handler, capture); - return { - remove: function remove() { - (0, _off2.default)(node, event, handler, capture); + if (allowed) { + warnOutOfRange(name, propName, resolved[propName], allowed); } - }; -}; -var _on = __webpack_require__(8774); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Inner, resolved); + } -var _on2 = _interopRequireDefault(_on); + BootstrapComponent.displayName = name; // Carry over metadata read elsewhere: `propTypes`/`_values` for docs and + // `STYLES`/`SIZES` for decorator chaining. + + if (Inner.propTypes) BootstrapComponent.propTypes = Inner.propTypes; + if (Inner.STYLES) BootstrapComponent.STYLES = Inner.STYLES; + if (Inner.SIZES) BootstrapComponent.SIZES = Inner.SIZES; + return BootstrapComponent; +} // Apply a `bs*` default and (optionally) enum validation to a component, +// dispatching on what kind of thing it is. Class components keep working +// `defaultProps`; function components get a validating wrapper; anything else +// (e.g. a plain object in tests) just records the default. + + +function applyBsProp(Component, _ref2) { + var propName = _ref2.propName, + defaultValue = _ref2.defaultValue, + allowed = _ref2.allowed; + var isClassComponent = isReactClass(Component); + + if (typeof Component === 'function' && !isClassComponent) { + return wrapFunctionComponent(Component, { + propName: propName, + defaultValue: defaultValue, + allowed: allowed + }); + } -var _off = __webpack_require__(6170); + if (defaultValue !== undefined) { + var _extends3; -var _off2 = _interopRequireDefault(_off); + Component.defaultProps = _extends({}, Component.defaultProps, (_extends3 = {}, _extends3[propName] = defaultValue, _extends3)); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + if (allowed && isClassComponent) { + patchRenderValidation(Component, propName, allowed); + } -module.exports = exports['default']; + return Component; +} -/***/ }), +function prefix(props, variant) { + var bsClass = (props.bsClass || '').trim(); + !(bsClass != null) ? false ? 0 : browser_default()(false) : void 0; + return bsClass + (variant ? "-" + variant : ''); +} +var bsClass = curry(function (defaultClass, Component) { + var propTypes = Component.propTypes || (Component.propTypes = {}); + propTypes.bsClass = (prop_types_default()).string; + return applyBsProp(Component, { + propName: 'bsClass', + defaultValue: defaultClass + }); +}); +var bsStyles = curry(function (styles, defaultStyle, Component) { + if (typeof defaultStyle !== 'string') { + Component = defaultStyle; + defaultStyle = undefined; + } -/***/ 6003: -/***/ ((module) => { + var existing = Component.STYLES || []; + var propTypes = Component.propTypes || {}; + styles.forEach(function (style) { + if (existing.indexOf(style) === -1) { + existing.push(style); + } + }); + var propType = prop_types_default().oneOf(existing); // expose the values on the propType function for documentation -"use strict"; -module.exports = __WEBPACK_EXTERNAL_MODULE__6003__; + Component.STYLES = existing; + propType._values = existing; + Component.propTypes = _extends({}, propTypes, { + bsStyle: propType + }); + return applyBsProp(Component, { + propName: 'bsStyle', + defaultValue: defaultStyle, + allowed: existing + }); +}); +var bsSizes = curry(function (sizes, defaultSize, Component) { + if (typeof defaultSize !== 'string') { + Component = defaultSize; + defaultSize = undefined; + } -/***/ }), + var existing = Component.SIZES || []; + var propTypes = Component.propTypes || {}; + sizes.forEach(function (size) { + if (existing.indexOf(size) === -1) { + existing.push(size); + } + }); + var values = []; + existing.forEach(function (size) { + var mappedSize = SIZE_MAP[size]; -/***/ 6065: -/***/ ((module, exports, __webpack_require__) => { + if (mappedSize && mappedSize !== size) { + values.push(mappedSize); + } -"use strict"; + values.push(size); + }); + var propType = prop_types_default().oneOf(values); + propType._values = values; // expose the values on the propType function for documentation + Component.SIZES = existing; + Component.propTypes = _extends({}, propTypes, { + bsSize: propType + }); + return applyBsProp(Component, { + propName: 'bsSize', + defaultValue: defaultSize, + allowed: values + }); +}); +function getClassSet(props) { + var _classes; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); -exports["default"] = function (recalc) { - if (!size && size !== 0 || recalc) { - if (_inDOM2.default) { - var scrollDiv = document.createElement('div'); - scrollDiv.style.position = 'absolute'; - scrollDiv.style.top = '-9999px'; - scrollDiv.style.width = '50px'; - scrollDiv.style.height = '50px'; - scrollDiv.style.overflow = 'scroll'; - document.body.appendChild(scrollDiv); - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - document.body.removeChild(scrollDiv); - } + if (props.bsSize) { + var bsSize = SIZE_MAP[props.bsSize] || props.bsSize; + classes[prefix(props, bsSize)] = true; } - return size; -}; - -var _inDOM = __webpack_require__(8647); + if (props.bsStyle) { + classes[prefix(props, props.bsStyle)] = true; + } -var _inDOM2 = _interopRequireDefault(_inDOM); + return classes; +} -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +function getBsProps(props) { + return { + bsClass: props.bsClass, + bsSize: props.bsSize, + bsStyle: props.bsStyle, + bsRole: props.bsRole }; } -var size = void 0; -module.exports = exports['default']; - -/***/ }), +function isBsProp(propName) { + return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; +} -/***/ 6170: -/***/ ((module, exports, __webpack_require__) => { +function splitBsProps(props) { + var elementProps = {}; -"use strict"; + entries_default()(props).forEach(function (_ref3) { + var propName = _ref3[0], + propValue = _ref3[1]; + if (!isBsProp(propName)) { + elementProps[propName] = propValue; + } + }); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + return [getBsProps(props), elementProps]; +} +function splitBsPropsAndOmit(props, omittedPropNames) { + var isOmittedProp = {}; + omittedPropNames.forEach(function (propName) { + isOmittedProp[propName] = true; + }); + var elementProps = {}; -var _inDOM = __webpack_require__(8647); + entries_default()(props).forEach(function (_ref4) { + var propName = _ref4[0], + propValue = _ref4[1]; -var _inDOM2 = _interopRequireDefault(_inDOM); + if (!isBsProp(propName) && !isOmittedProp[propName]) { + elementProps[propName] = propValue; + } + }); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + return [getBsProps(props), elementProps]; } +/** + * Add a style variant to a Component. Mutates the propTypes of the component + * in order to validate the new variant. + */ -var off = function off() {}; +function addStyle(Component) { + for (var _len3 = arguments.length, styleVariant = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { + styleVariant[_key3 - 1] = arguments[_key3]; + } -if (_inDOM2.default) { - off = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.removeEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.detachEvent('on' + eventName, handler); - }; - }(); + bsStyles(styleVariant, Component); } +var _curry = curry; +;// ./src/utils/ValidComponentChildren.js +// TODO: This module should be ElementChildren, and should use named exports. -exports["default"] = off; -module.exports = exports['default']; - -/***/ }), - -/***/ 6233: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; +/** + * Iterates through children that are typically specified as `props.children`, + * but only maps over children that are "valid components". + * + * The mapFunction provided index will be normalised to the components mapped, + * so an invalid component would not increase the index. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for func. + * @return {object} Object containing the ordered map of results. + */ +function map(children, func, context) { + var index = 0; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return child; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = filterEvents; + return func.call(context, child, index++); + }); +} +/** + * Iterates through children that are "valid components". + * + * The provided forEachFunc(child, index) will be called for each + * leaf child with the index reflecting the position relative to "valid components". + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for context. + */ -var _contains = __webpack_require__(6489); -var _contains2 = _interopRequireDefault(_contains); +function forEach(children, func, context) { + var index = 0; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -var _querySelectorAll = __webpack_require__(8404); - -var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function filterEvents(selector, handler) { - return function filterHandler(e) { - var top = e.currentTarget, - target = e.target, - matches = (0, _querySelectorAll2.default)(top, selector); - if (matches.some(function (match) { - return (0, _contains2.default)(match, target); - })) handler.call(this, e); - }; + func.call(context, child, index++); + }); } +/** + * Count the number of "valid components" in the Children container. + * + * @param {?*} children Children tree container. + * @returns {number} + */ -module.exports = exports['default']; -/***/ }), +function count(children) { + var result = 0; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -/***/ 6335: -/***/ ((module, exports, __webpack_require__) => { + ++result; + }); + return result; +} +/** + * Finds children that are typically specified as `props.children`, + * but only iterates over children that are "valid components". + * + * The provided forEachFunc(child, index) will be called for each + * leaf child with the index reflecting the position relative to "valid components". + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for func. + * @returns {array} of children that meet the func return statement + */ -"use strict"; +function filter(children, func, context) { + var index = 0; + var result = []; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = activeElement; + if (func.call(context, child, index++)) { + result.push(child); + } + }); + return result; +} -var _ownerDocument = __webpack_require__(1999); +function find(children, func, context) { + var index = 0; + var result; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + if (func.call(context, child, index++)) { + result = child; + } + }); + return result; } -function activeElement() { - var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); +function every(children, func, context) { + var index = 0; + var result = true; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!result) { + return; + } - try { - return doc.activeElement; - } catch (e) { - /* ie throws if no active element */ - } + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } + + if (!func.call(context, child, index++)) { + result = false; + } + }); + return result; } -module.exports = exports['default']; +function some(children, func, context) { + var index = 0; + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -/***/ }), + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -/***/ 6387: -/***/ ((module, exports, __webpack_require__) => { + if (func.call(context, child, index++)) { + result = true; + } + }); + return result; +} -"use strict"; +function toArray(children) { + var result = []; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } + result.push(child); + }); + return result; +} -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +/* harmony default export */ const ValidComponentChildren = ({ + map: map, + forEach: forEach, + count: count, + find: find, + filter: filter, + every: every, + some: some, + toArray: toArray +}); +;// ./src/utils/PropTypes.js -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { - return typeof obj; -} : function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; -}; -var _react = __webpack_require__(5442); +var idPropType = prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]); +function generatedId(name) { + return function (props) { + var error = null; -var _react2 = _interopRequireDefault(_react); + if (!props.generateChildId) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } -var _createChainableTypeChecker = __webpack_require__(8663); + error = idPropType.apply(void 0, [props].concat(args)); -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + if (!error && !props.id) { + 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")); + } + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + return error; }; } +/** + * Return a warning message if `children` is missing a child for any of the + * required `roles`, otherwise `null`. `bsRole` is matched against each child's + * `bsRole` prop. + */ -function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); +function getMissingRoleError(component, children) { + var missing; - if (_react2.default.isValidElement(propValue)) { - 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.'); + for (var _len2 = arguments.length, roles = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + roles[_key2 - 2] = arguments[_key2]; } - if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); + roles.every(function (role) { + if (!ValidComponentChildren.some(children, function (child) { + return child.props.bsRole === role; + })) { + missing = role; + return false; + } + + return true; + }); + + if (missing) { + return "(children) " + component + " - Missing a required child with bsRole: " + (missing + ". " + component + " must have at least one child of each of ") + ("the following bsRoles: " + roles.join(', ')); } return null; } +/** + * Return a warning message if `children` contains more than one child for any + * of the exclusive `roles`, otherwise `null`. + */ -exports["default"] = (0, _createChainableTypeChecker2.default)(validate); -module.exports = exports['default']; - -/***/ }), - -/***/ 6489: -/***/ ((module, exports, __webpack_require__) => { +function getDuplicateRoleError(component, children) { + var duplicate; -"use strict"; + for (var _len3 = arguments.length, roles = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { + roles[_key3 - 2] = arguments[_key3]; + } + roles.every(function (role) { + var childrenWithRole = ValidComponentChildren.filter(children, function (child) { + return child.props.bsRole === role; + }); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + if (childrenWithRole.length > 1) { + duplicate = role; + return false; + } -var _inDOM = __webpack_require__(8647); + return true; + }); -var _inDOM2 = _interopRequireDefault(_inDOM); + if (duplicate) { + return "(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', ')); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + return null; } +;// ./src/PanelGroup.js -exports["default"] = function () { - // HTML DOM and SVG DOM may have different support levels, - // so we need to check on context instead of a document root element. - return _inDOM2.default ? function (context, node) { - if (context.contains) { - return context.contains(node); - } else if (context.compareDocumentPosition) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } else { - return fallback(context, node); - } - } : fallback; -}(); -function fallback(context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); - return false; -} -module.exports = exports['default']; +var _jsxFileName = "/Users/harrison/react-bootstrap/src/PanelGroup.js"; -/***/ }), -/***/ 6509: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var ITERATOR = __webpack_require__(6932)('iterator'); -var SAFE_CLOSING = false; -try { - var riter = [7][ITERATOR](); - riter['return'] = function () { - SAFE_CLOSING = true; - }; // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { - throw 2; - }); -} catch (e) { - /* empty */ -} +var propTypes = { + accordion: (prop_types_default()).bool, -module.exports = function (exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return false; - var safe = false; + /** + * When `accordion` is enabled, `activeKey` controls the which child `Panel` is expanded. `activeKey` should + * match a child Panel `eventKey` prop exactly. + * + * @controllable onSelect + */ + activeKey: (prop_types_default()).any, - try { - var arr = [7]; - var iter = arr[ITERATOR](); + /** + * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey` + * + * @controllable activeKey + */ + onSelect: (prop_types_default()).func, - iter.next = function () { - return { - done: safe = true - }; - }; + /** + * An HTML role attribute + */ + role: (prop_types_default()).string, - arr[ITERATOR] = function () { - return iter; + /** + * A function that takes an eventKey and type and returns a + * unique id for each Panel heading and Panel Collapse. The function _must_ be a pure function, + * meaning it should always return the _same_ id for the same set of inputs. The default + * value requires that an `id` to be set for the PanelGroup. + * + * The `type` argument will either be `"body"` or `"heading"`. + * + * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` + */ + generateChildId: (prop_types_default()).func, + + /** + * HTML id attribute, required if no `generateChildId` prop + * is specified. + */ + id: generatedId('PanelGroup') +}; +var defaultProps = { + accordion: false +}; + +var PanelGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(PanelGroup, _React$Component); + + function PanelGroup() { + var _this; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + + _this.handleSelect = function (key, expanded, e) { + if (expanded) { + _this.props.onSelect(key, e); + } else if (_this.props.activeKey === key) { + _this.props.onSelect(null, e); + } }; - exec(arr); - } catch (e) { - /* empty */ + return _this; } - return safe; -}; + var _proto = PanelGroup.prototype; -/***/ }), + _proto.render = function render() { + var _this$props = this.props, + accordion = _this$props.accordion, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["accordion", "className", "children"]); -/***/ 6534: -/***/ ((module, exports) => { + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; -"use strict"; + if (accordion) { + elementProps.role = elementProps.role || 'tablist'; + } + var classes = getClassSet(bsProps); + var _this$props2 = this.props, + activeKey = _this$props2.activeKey, + generateChildId = _this$props2.generateChildId, + id = _this$props2.id; + var getId = null; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = hyphenate; -var rUpper = /([A-Z])/g; + if (accordion) { + getId = generateChildId || function (key, type) { + return id ? id + "-" + type + "-" + key : null; + }; + } -function hyphenate(string) { - return string.replace(rUpper, '-$1').toLowerCase(); -} + var panelGroupContext = _extends({ + getId: getId, + headerRole: 'tab', + panelRole: 'tabpanel' + }, accordion && { + activeKey: activeKey, + onToggle: this.handleSelect + }); -module.exports = exports['default']; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroupContext.Provider, { + value: panelGroupContext, + __source: { + fileName: _jsxFileName, + lineNumber: 103 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: _jsxFileName, + lineNumber: 104 + }, + __self: this + }), ValidComponentChildren.map(children, function (child) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + bsStyle: child.props.bsStyle || bsProps.bsStyle + }); + }))); + }; -/***/ }), + return PanelGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 6546: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +PanelGroup.propTypes = propTypes; +PanelGroup.defaultProps = defaultProps; +/* harmony default export */ const src_PanelGroup = (uncontrollable_default()(bsClass('panel-group', PanelGroup), { + activeKey: 'onSelect' +})); +;// ./src/Accordion.js -__webpack_require__(6861); -module.exports = __webpack_require__(9520).parseInt; +var Accordion_jsxFileName = "/Users/harrison/react-bootstrap/src/Accordion.js"; -/***/ }), -/***/ 6562: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// call something on iterator step with safe closing on error -var anObject = __webpack_require__(4610); +var Accordion = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Accordion, _React$Component); -module.exports = function (iterator, fn, value, entries) { - try { - return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) - } catch (e) { - var ret = iterator['return']; - if (ret !== undefined) anObject(ret.call(iterator)); - throw e; + function Accordion() { + return _React$Component.apply(this, arguments) || this; } -}; -/***/ }), + var _proto = Accordion.prototype; -/***/ 6563: -/***/ ((module, exports, __webpack_require__) => { + _proto.render = function render() { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroup, _extends({}, this.props, { + accordion: true, + __source: { + fileName: Accordion_jsxFileName, + lineNumber: 8 + }, + __self: this + }), this.props.children); + }; -"use strict"; + return Accordion; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const src_Accordion = (Accordion); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/values.js +var values = __webpack_require__(5115); +var values_default = /*#__PURE__*/__webpack_require__.n(values); +;// ./src/CloseButton.js -exports.__esModule = true; +var CloseButton_jsxFileName = "/Users/harrison/react-bootstrap/src/CloseButton.js"; -var _propTypes = __webpack_require__(5762); -var _propTypes2 = _interopRequireDefault(_propTypes); +var CloseButton_propTypes = { + label: (prop_types_default()).string.isRequired, + onClick: (prop_types_default()).func +}; +var CloseButton_defaultProps = { + label: 'Close' +}; -var _componentOrElement = __webpack_require__(6387); +var CloseButton = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CloseButton, _React$Component); -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); + function CloseButton() { + return _React$Component.apply(this, arguments) || this; + } -var _react = __webpack_require__(5442); + var _proto = CloseButton.prototype; -var _react2 = _interopRequireDefault(_react); + _proto.render = function render() { + var _this$props = this.props, + label = _this$props.label, + onClick = _this$props.onClick; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", { + type: "button", + className: "close", + onClick: onClick, + "aria-label": label, + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 17 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + "aria-hidden": "true", + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 23 + }, + __self: this + }, "\xD7"), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 24 + }, + __self: this + }, label)); + }; -var _reactDom = __webpack_require__(6003); + return CloseButton; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _reactDom2 = _interopRequireDefault(_reactDom); +CloseButton.propTypes = CloseButton_propTypes; +CloseButton.defaultProps = CloseButton_defaultProps; +/* harmony default export */ const src_CloseButton = (CloseButton); +;// ./src/Alert.js -var _getContainer = __webpack_require__(2799); -var _getContainer2 = _interopRequireDefault(_getContainer); -var _ownerDocument = __webpack_require__(3296); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var Alert_jsxFileName = "/Users/harrison/react-bootstrap/src/Alert.js"; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/** - * The `` component renders its children into a new "subtree" outside of current component hierarchy. - * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`. - * The children of `` component will be appended to the `container` specified. - */ +var Alert_propTypes = { + onDismiss: (prop_types_default()).func, + closeLabel: (prop_types_default()).string +}; +var Alert_defaultProps = { + closeLabel: 'Close alert' +}; +var Alert = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Alert, _React$Component); -var Portal = function (_React$Component) { - _inherits(Portal, _React$Component); + function Alert() { + return _React$Component.apply(this, arguments) || this; + } - function Portal() { - var _temp, _this, _ret; + var _proto = Alert.prototype; - _classCallCheck(this, Portal); + _proto.render = function render() { + var _extends2; - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _this$props = this.props, + onDismiss = _this$props.onDismiss, + closeLabel = _this$props.closeLabel, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._mountOverlayTarget = function () { - if (!_this._overlayTarget) { - _this._overlayTarget = document.createElement('div'); - _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - _this._portalContainerNode.appendChild(_this._overlayTarget); - } - }, _this._unmountOverlayTarget = function () { - if (_this._overlayTarget) { - _this._portalContainerNode.removeChild(_this._overlayTarget); + var dismissable = !!onDismiss; - _this._overlayTarget = null; - } + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2)); - _this._portalContainerNode = null; - }, _this._renderOverlay = function () { - var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children); // Save reference for future access. + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + role: "alert", + className: classnames_default()(className, classes), + __source: { + fileName: Alert_jsxFileName, + lineNumber: 36 + }, + __self: this + }), dismissable && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_CloseButton, { + onClick: onDismiss, + label: closeLabel, + __source: { + fileName: Alert_jsxFileName, + lineNumber: 41 + }, + __self: this + }), children); + }; - if (overlay !== null) { - _this._mountOverlayTarget(); + return Alert; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var initialRender = !_this._overlayInstance; - _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () { - if (initialRender && _this.props.onRendered) { - _this.props.onRendered(); - } - }); - } else { - // Unrender if the component is null for transitions to null - _this._unrenderOverlay(); +Alert.propTypes = Alert_propTypes; +Alert.defaultProps = Alert_defaultProps; +/* harmony default export */ const src_Alert = (bsStyles(values_default()(State), State.INFO, bsClass('alert', Alert))); +;// ./src/Badge.js - _this._unmountOverlayTarget(); - } - }, _this._unrenderOverlay = function () { - if (_this._overlayTarget) { - _reactDom2.default.unmountComponentAtNode(_this._overlayTarget); - _this._overlayInstance = null; - } - }, _this.getMountNode = function () { - return _this._overlayTarget; - }, _temp), _possibleConstructorReturn(_this, _ret); - } - Portal.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; +var Badge_jsxFileName = "/Users/harrison/react-bootstrap/src/Badge.js"; - this._renderOverlay(); - }; - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - this._renderOverlay(); - }; - Portal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (this._overlayTarget && nextProps.container !== this.props.container) { - this._portalContainerNode.removeChild(this._overlayTarget); + // TODO: `pullRight` doesn't belong here. There's no special handling here. - this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body); +var Badge_propTypes = { + pullRight: (prop_types_default()).bool +}; +var Badge_defaultProps = { + pullRight: false +}; - this._portalContainerNode.appendChild(this._overlayTarget); - } - }; +var Badge = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Badge, _React$Component); - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this._isMounted = false; + function Badge() { + return _React$Component.apply(this, arguments) || this; + } - this._unrenderOverlay(); + var _proto = Badge.prototype; - this._unmountOverlayTarget(); - }; + _proto.hasContent = function hasContent(children) { + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } - Portal.prototype.render = function render() { - return null; + if (child || child === 0) { + result = true; + } + }); + return result; }; - return Portal; -}(_react2.default.Component); - -Portal.displayName = 'Portal'; -Portal.propTypes = { - /** - * A Node, Component instance, or function that returns either. The `container` will have the Portal children - * appended to it. - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), - onRendered: _propTypes2.default.func -}; -exports["default"] = Portal; -module.exports = exports['default']; - -/***/ }), + _proto.render = function render() { + var _this$props = this.props, + pullRight = _this$props.pullRight, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]); -/***/ 6807: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -module.exports = __webpack_require__(8475); + var classes = _extends({}, getClassSet(bsProps), { + 'pull-right': pullRight, + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); -/***/ }), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Badge_jsxFileName, + lineNumber: 47 + }, + __self: this + }), children); + }; -/***/ 6832: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return Badge; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var shared = __webpack_require__(114)('keys'); +Badge.propTypes = Badge_propTypes; +Badge.defaultProps = Badge_defaultProps; +/* harmony default export */ const src_Badge = (bsClass('badge', Badge)); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } -var uid = __webpack_require__(7209); + return self; +} +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js +var elementType = __webpack_require__(3105); +var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType); +;// ./src/utils/createChainedFunction.js +/** + * Safe chained function + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + * + * @param {function} functions to chain + * @returns {function|null} + */ +function createChainedFunction() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } -module.exports = function (key) { - return shared[key] || (shared[key] = uid(key)); -}; + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + } -/***/ }), + if (acc === null) { + return f; + } -/***/ 6861: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + return function chainedFunction() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } -var $export = __webpack_require__(3445); + acc.apply(this, args); + f.apply(this, args); + }; + }, null); +} -var $parseInt = __webpack_require__(7416); // 18.2.5 parseInt(string, radix) +/* harmony default export */ const utils_createChainedFunction = (createChainedFunction); +;// ./src/SafeAnchor.js -$export($export.G + $export.F * (parseInt != $parseInt), { - parseInt: $parseInt -}); -/***/ }), -/***/ 6932: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var SafeAnchor_jsxFileName = "/Users/harrison/react-bootstrap/src/SafeAnchor.js"; -var store = __webpack_require__(114)('wks'); -var uid = __webpack_require__(7209); -var Symbol = (__webpack_require__(8248).Symbol); -var USE_SYMBOL = typeof Symbol == 'function'; +var SafeAnchor_propTypes = { + href: (prop_types_default()).string, + onClick: (prop_types_default()).func, + onKeyDown: (prop_types_default()).func, + disabled: (prop_types_default()).bool, + role: (prop_types_default()).string, + tabIndex: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]), -var $exports = module.exports = function (name) { - return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); + /** + * this is sort of silly but needed for Button + */ + componentClass: (elementType_default()) +}; +var SafeAnchor_defaultProps = { + componentClass: 'a' }; -$exports.store = store; - -/***/ }), +function isTrivialHref(href) { + return !href || href.trim() === '#'; +} +/** + * There are situations due to browser quirks or Bootstrap CSS where + * an anchor tag is needed, when semantically a button tag is the + * better choice. SafeAnchor ensures that when an anchor is used like a + * button its accessible. It also emulates input `disabled` behavior for + * links, which is usually desirable for Buttons, NavItems, MenuItems, etc. + */ -/***/ 6948: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var classof = __webpack_require__(1222); +var SafeAnchor = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(SafeAnchor, _React$Component); -var ITERATOR = __webpack_require__(6932)('iterator'); + function SafeAnchor(props, context) { + var _this; -var Iterators = __webpack_require__(1428); + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; + } -module.exports = (__webpack_require__(9520).getIteratorMethod) = function (it) { - if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; -}; + var _proto = SafeAnchor.prototype; -/***/ }), + _proto.handleClick = function handleClick(event) { + var _this$props = this.props, + disabled = _this$props.disabled, + href = _this$props.href, + onClick = _this$props.onClick; -/***/ 6997: -/***/ ((module) => { + if (disabled || isTrivialHref(href)) { + event.preventDefault(); + } -// 7.1.4 ToInteger -var ceil = Math.ceil; -var floor = Math.floor; + if (disabled) { + event.stopPropagation(); + return; + } -module.exports = function (it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); -}; + if (onClick) { + onClick(event); + } + }; -/***/ }), + _proto.handleKeyDown = function handleKeyDown(event) { + if (event.key === ' ') { + event.preventDefault(); + this.handleClick(event); + } + }; -/***/ 7209: -/***/ ((module) => { + _proto.render = function render() { + var _this$props2 = this.props, + Component = _this$props2.componentClass, + disabled = _this$props2.disabled, + onKeyDown = _this$props2.onKeyDown, + props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]); -var id = 0; -var px = Math.random(); + if (isTrivialHref(props.href)) { + props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node + // otherwise, the cursor incorrectly styled (except with role='button') -module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); -}; + props.href = props.href || '#'; + } -/***/ }), + if (disabled) { + props.tabIndex = -1; + props.style = _extends({ + pointerEvents: 'none' + }, props.style); + } -/***/ 7222: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + onClick: this.handleClick, + onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown), + __source: { + fileName: SafeAnchor_jsxFileName, + lineNumber: 88 + }, + __self: this + })); + }; -module.exports = __webpack_require__(6546); + return SafeAnchor; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ }), +SafeAnchor.propTypes = SafeAnchor_propTypes; +SafeAnchor.defaultProps = SafeAnchor_defaultProps; +/* harmony default export */ const src_SafeAnchor = (SafeAnchor); +;// ./src/BreadcrumbItem.js -/***/ 7350: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// check on default Array iterator -var Iterators = __webpack_require__(1428); -var ITERATOR = __webpack_require__(6932)('iterator'); +var BreadcrumbItem_jsxFileName = "/Users/harrison/react-bootstrap/src/BreadcrumbItem.js"; -var ArrayProto = Array.prototype; -module.exports = function (it) { - return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); -}; -/***/ }), -/***/ 7416: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var BreadcrumbItem_propTypes = { + /** + * If set to true, renders `span` instead of `a` + */ + active: (prop_types_default()).bool, -var $parseInt = (__webpack_require__(8248).parseInt); + /** + * `href` attribute for the inner `a` element + */ + href: (prop_types_default()).string, -var $trim = (__webpack_require__(7659).trim); + /** + * `title` attribute for the inner `a` element + */ + title: (prop_types_default()).node, -var ws = __webpack_require__(5525); + /** + * `target` attribute for the inner `a` element + */ + target: (prop_types_default()).string +}; +var BreadcrumbItem_defaultProps = { + active: false +}; -var hex = /^[-+]?0[xX]/; -module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { - var string = $trim(String(str), 3); - return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); -} : $parseInt; +var BreadcrumbItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(BreadcrumbItem, _React$Component); -/***/ }), + function BreadcrumbItem() { + return _React$Component.apply(this, arguments) || this; + } -/***/ 7659: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _proto = BreadcrumbItem.prototype; -var $export = __webpack_require__(3445); + _proto.render = function render() { + var _this$props = this.props, + active = _this$props.active, + href = _this$props.href, + title = _this$props.title, + target = _this$props.target, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active . -var defined = __webpack_require__(9314); -var fails = __webpack_require__(2250); + var linkProps = { + href: href, + title: title, + target: target + }; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + className: classnames_default()(className, { + active: active + }), + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 38 + }, + __self: this + }, active ? external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, props, { + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 40 + }, + __self: this + })) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, props, linkProps, { + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 42 + }, + __self: this + }))); + }; -var spaces = __webpack_require__(5525); + return BreadcrumbItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var space = '[' + spaces + ']'; -var non = '\u200b\u0085'; -var ltrim = RegExp('^' + space + space + '*'); -var rtrim = RegExp(space + space + '*$'); +BreadcrumbItem.propTypes = BreadcrumbItem_propTypes; +BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps; +/* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem); +;// ./src/Breadcrumb.js -var exporter = function (KEY, exec, ALIAS) { - var exp = {}; - var FORCE = fails(function () { - return !!spaces[KEY]() || non[KEY]() != non; - }); - var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; - if (ALIAS) exp[ALIAS] = fn; - $export($export.P + $export.F * FORCE, 'String', exp); -}; // 1 -> String#trimLeft -// 2 -> String#trimRight -// 3 -> String#trim -var trim = exporter.trim = function (string, TYPE) { - string = String(defined(string)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; -}; +var Breadcrumb_jsxFileName = "/Users/harrison/react-bootstrap/src/Breadcrumb.js"; -module.exports = exporter; -/***/ }), -/***/ 7735: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; +var Breadcrumb = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Breadcrumb, _React$Component); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = style; + function Breadcrumb() { + return _React$Component.apply(this, arguments) || this; + } -var _camelizeStyle = __webpack_require__(8039); + var _proto = Breadcrumb.prototype; -var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); -var _hyphenateStyle = __webpack_require__(4065); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", _extends({}, elementProps, { + role: "navigation", + "aria-label": "breadcrumbs", + className: classnames_default()(className, classes), + __source: { + fileName: Breadcrumb_jsxFileName, + lineNumber: 15 + }, + __self: this + })); + }; -var _getComputedStyle2 = __webpack_require__(5647); + return Breadcrumb; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); +Breadcrumb.Item = src_BreadcrumbItem; +/* harmony default export */ const src_Breadcrumb = (bsClass('breadcrumb', Breadcrumb)); +;// ./src/Button.js -var _removeStyle = __webpack_require__(8290); -var _removeStyle2 = _interopRequireDefault(_removeStyle); -var _properties = __webpack_require__(3152); -var _isTransform = __webpack_require__(5229); +var Button_jsxFileName = "/Users/harrison/react-bootstrap/src/Button.js"; -var _isTransform2 = _interopRequireDefault(_isTransform); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function style(node, property, value) { - var css = ''; - var transforms = ''; - var props = property; - - if (typeof property === 'string') { - if (value === undefined) { - return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); - } else { - (props = {})[property] = value; - } - } - Object.keys(props).forEach(function (key) { - var value = props[key]; - if (!value && value !== 0) { - (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); - } else if ((0, _isTransform2.default)(key)) { - transforms += key + '(' + value + ') '; - } else { - css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; - } - }); - if (transforms) { - css += _properties.transform + ': ' + transforms + ';'; - } - node.style.cssText += ';' + css; -} +var Button_propTypes = { + active: (prop_types_default()).bool, + disabled: (prop_types_default()).bool, + block: (prop_types_default()).bool, + onClick: (prop_types_default()).func, + componentClass: (elementType_default()), + href: (prop_types_default()).string, -module.exports = exports['default']; + /** + * Defines HTML button type attribute + * @defaultValue 'button' + */ + type: prop_types_default().oneOf(['button', 'reset', 'submit']) +}; +var Button_defaultProps = { + active: false, + block: false, + disabled: false +}; -/***/ }), +var Button = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Button, _React$Component); -/***/ 7748: -/***/ ((module, exports, __webpack_require__) => { + function Button() { + return _React$Component.apply(this, arguments) || this; + } -"use strict"; + var _proto = Button.prototype; + _proto.renderAnchor = function renderAnchor(elementProps, className) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { + className: classnames_default()(className, elementProps.disabled && 'disabled'), + __source: { + fileName: Button_jsxFileName, + lineNumber: 41 + }, + __self: this + })); + }; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = deprecated; + _proto.renderButton = function renderButton(_ref, className) { + var componentClass = _ref.componentClass, + elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]); -var _warning = __webpack_require__(7909); + var Component = componentClass || 'button'; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + type: elementProps.type || 'button', + className: className, + __source: { + fileName: Button_jsxFileName, + lineNumber: 52 + }, + __self: this + })); + }; -var _warning2 = _interopRequireDefault(_warning); + _proto.render = function render() { + var _extends2; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + var _this$props = this.props, + active = _this$props.active, + block = _this$props.block, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]); -var warned = {}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -function deprecated(validator, reason) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var classes = _extends({}, getClassSet(bsProps), (_extends2 = { + active: active + }, _extends2[prefix(bsProps, 'block')] = block, _extends2)); - if (props[propName] != null) { - var messageKey = componentName + '.' + propName; - (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); - warned[messageKey] = true; - } + var fullClassName = classnames_default()(className, classes); - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; + if (elementProps.href) { + return this.renderAnchor(elementProps, fullClassName); } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); + return this.renderButton(elementProps, fullClassName); }; -} -/* eslint-disable no-underscore-dangle */ + return Button; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function _resetWarned() { - warned = {}; -} +Button.propTypes = Button_propTypes; +Button.defaultProps = Button_defaultProps; +/* harmony default export */ const src_Button = (bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button)))); +;// ./src/ButtonGroup.js -deprecated._resetWarned = _resetWarned; -/* eslint-enable no-underscore-dangle */ -module.exports = exports['default']; -/***/ }), +var ButtonGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonGroup.js"; -/***/ 7755: -/***/ ((module, exports) => { -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ -(function () { - 'use strict'; - var hasOwn = {}.hasOwnProperty; - function classNames() { - var classes = []; - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - var argType = typeof arg; +var ButtonGroup_propTypes = { + vertical: (prop_types_default()).bool, + justified: (prop_types_default()).bool, - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); + /** + * Display block buttons; only useful when used with the "vertical" prop. + * @type {bool} + */ + block: (prop_types_default()).bool +}; +var ButtonGroup_defaultProps = { + block: false, + justified: false, + vertical: false +}; - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } +var ButtonGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ButtonGroup, _React$Component); - return classes.join(' '); + function ButtonGroup() { + return _React$Component.apply(this, arguments) || this; } - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else // removed by dead control flow -{} -})(); - -/***/ }), + var _proto = ButtonGroup.prototype; -/***/ 7770: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + _proto.render = function render() { + var _extends2; -"use strict"; + var _this$props = this.props, + block = _this$props.block, + justified = _this$props.justified, + vertical = _this$props.vertical, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -exports.__esModule = true; -exports.uncontrolledPropTypes = uncontrolledPropTypes; -exports.isProp = isProp; -exports.defaultKey = defaultKey; -exports.isReactComponent = isReactComponent; + false ? 0 : void 0; -var _invariant = _interopRequireDefault(__webpack_require__(3737)); + 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)); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: ButtonGroup_jsxFileName, + lineNumber: 51 + }, + __self: this + })); }; -} -var noop = function noop() {}; + return ButtonGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function readOnlyPropType(handler, name) { - return function (props, propName) { - if (props[propName] !== undefined) { - if (!props[handler]) { - 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 + "`.")); - } - } - }; -} +ButtonGroup.propTypes = ButtonGroup_propTypes; +ButtonGroup.defaultProps = ButtonGroup_defaultProps; +/* harmony default export */ const src_ButtonGroup = (bsClass('btn-group', ButtonGroup)); +;// ./src/ButtonToolbar.js -function uncontrolledPropTypes(controlledValues, displayName) { - var propTypes = {}; - Object.keys(controlledValues).forEach(function (prop) { - // add default propTypes for folks that use runtime checks - propTypes[defaultKey(prop)] = noop; - if (false) // removed by dead control flow -{ var handler; } - }); - return propTypes; -} -function isProp(props, prop) { - return props[prop] !== undefined; -} - -function defaultKey(key) { - return 'default' + key.charAt(0).toUpperCase() + key.substr(1); -} -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ +var ButtonToolbar_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonToolbar.js"; -function isReactComponent(component) { - return !!(component && component.prototype && component.prototype.isReactComponent); -} -/***/ }), -/***/ 7788: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var ButtonToolbar = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ButtonToolbar, _React$Component); -var isObject = __webpack_require__(2103); + function ButtonToolbar() { + return _React$Component.apply(this, arguments) || this; + } -var document = (__webpack_require__(8248).document); // typeof document.createElement is 'object' in old IE + var _proto = ButtonToolbar.prototype; + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); -var is = isObject(document) && isObject(document.createElement); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -module.exports = function (it) { - return is ? document.createElement(it) : {}; -}; + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + role: "toolbar", + className: classnames_default()(className, classes), + __source: { + fileName: ButtonToolbar_jsxFileName, + lineNumber: 14 + }, + __self: this + })); + }; -/***/ }), + return ButtonToolbar; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 7909: -/***/ ((module) => { +/* harmony default export */ const src_ButtonToolbar = (bsClass('btn-toolbar', ButtonToolbar)); +;// ./src/CarouselCaption.js -"use strict"; -/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ -var warning = function () {}; +var CarouselCaption_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselCaption.js"; -if (false) // removed by dead control flow -{} -module.exports = warning; -/***/ }), -/***/ 8039: -/***/ ((module, exports, __webpack_require__) => { +var CarouselCaption_propTypes = { + componentClass: (elementType_default()) +}; +var CarouselCaption_defaultProps = { + componentClass: 'div' +}; -"use strict"; +var CarouselCaption = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CarouselCaption, _React$Component); + function CarouselCaption() { + return _React$Component.apply(this, arguments) || this; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = camelizeStyleName; + var _proto = CarouselCaption.prototype; -var _camelize = __webpack_require__(1700); + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); -var _camelize2 = _interopRequireDefault(_camelize); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: CarouselCaption_jsxFileName, + lineNumber: 23 + }, + __self: this + })); }; -} - -var msPattern = /^-ms-/; -/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js - */ - -function camelizeStyleName(string) { - return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); -} -module.exports = exports['default']; + return CarouselCaption; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ }), +CarouselCaption.propTypes = CarouselCaption_propTypes; +CarouselCaption.defaultProps = CarouselCaption_defaultProps; +/* harmony default export */ const src_CarouselCaption = (bsClass('carousel-caption', CarouselCaption)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js +var transition = __webpack_require__(1685); +;// ./src/CarouselItem.js -/***/ 8223: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; -exports.__esModule = true; +var CarouselItem_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselItem.js"; -var _propTypes = __webpack_require__(5762); -var _propTypes2 = _interopRequireDefault(_propTypes); -var _react = __webpack_require__(5442); -var _react2 = _interopRequireDefault(_react); +var CarouselItem_propTypes = { + direction: prop_types_default().oneOf(['prev', 'next']), + onAnimateOutEnd: (prop_types_default()).func, + active: (prop_types_default()).bool, + animateIn: (prop_types_default()).bool, + animateOut: (prop_types_default()).bool, + index: (prop_types_default()).number +}; +var CarouselItem_defaultProps = { + active: false, + animateIn: false, + animateOut: false +}; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var CarouselItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CarouselItem, _React$Component); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} + function CarouselItem(props, context) { + var _this; -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + _this = _React$Component.call(this, props, context) || this; + _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.state = { + direction: null + }; + _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + _this.isUnmounted = false; + return _this; } - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } + var _proto = CarouselItem.prototype; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + if (this.props.active !== nextProps.active) { + this.setState({ + direction: null + }); } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} + }; -var propTypes = { - children: _propTypes2.default.node -}; -/** - * Internal helper component to allow attaching a non-conflicting ref to a - * child element that may not accept refs. - */ + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var _this2 = this; -var RefHolder = function (_React$Component) { - _inherits(RefHolder, _React$Component); + var active = this.props.active; + var prevActive = prevProps.active; - function RefHolder() { - _classCallCheck(this, RefHolder); + if (!active && prevActive) { + transition/* default.end */.Ay.end(this.containerRef.current, this.handleAnimateOutEnd); + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + if (active !== prevActive) { + setTimeout(function () { + return _this2.startAnimation(); + }, 20); + } + }; - RefHolder.prototype.render = function render() { - return this.props.children; + _proto.componentWillUnmount = function componentWillUnmount() { + this.isUnmounted = true; }; - return RefHolder; -}(_react2.default.Component); + _proto.handleAnimateOutEnd = function handleAnimateOutEnd() { + if (this.isUnmounted) { + return; + } -RefHolder.propTypes = propTypes; -exports["default"] = RefHolder; -module.exports = exports['default']; + if (this.props.onAnimateOutEnd) { + this.props.onAnimateOutEnd(this.props.index); + } + }; -/***/ }), + _proto.startAnimation = function startAnimation() { + if (this.isUnmounted) { + return; + } -/***/ 8248: -/***/ ((module) => { + this.setState({ + direction: this.props.direction === 'prev' ? 'right' : 'left' + }); + }; -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func -: Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + _proto.render = function render() { + var _this$props = this.props, + direction = _this$props.direction, + active = _this$props.active, + animateIn = _this$props.animateIn, + animateOut = _this$props.animateOut, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]); -/***/ }), + delete props.onAnimateOutEnd; + delete props.index; + var classes = { + item: true, + active: active && !animateIn || animateOut + }; -/***/ 8283: -/***/ ((module) => { + if (direction && active && animateIn) { + classes[direction] = true; + } -var hasOwnProperty = {}.hasOwnProperty; + if (this.state.direction && (animateIn || animateOut)) { + classes[this.state.direction] = true; + } -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({ + ref: this.containerRef + }, props, { + className: classnames_default()(className, classes), + __source: { + fileName: CarouselItem_jsxFileName, + lineNumber: 103 + }, + __self: this + })); + }; -/***/ }), + return CarouselItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 8290: -/***/ ((module, exports) => { +CarouselItem.propTypes = CarouselItem_propTypes; +CarouselItem.defaultProps = CarouselItem_defaultProps; +/* harmony default export */ const src_CarouselItem = (CarouselItem); +;// ./src/Glyphicon.js -"use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = removeStyle; +var Glyphicon_jsxFileName = "/Users/harrison/react-bootstrap/src/Glyphicon.js"; -function removeStyle(node, key) { - return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); -} -module.exports = exports['default']; -/***/ }), -/***/ 8338: -/***/ ((module) => { +var Glyphicon_propTypes = { + /** + * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons + */ + glyph: (prop_types_default()).string.isRequired +}; -// IE 8- don't enum bug keys -module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); +var Glyphicon = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Glyphicon, _React$Component); -/***/ }), + function Glyphicon() { + return _React$Component.apply(this, arguments) || this; + } -/***/ 8404: -/***/ ((module, exports) => { + var _proto = Glyphicon.prototype; -"use strict"; + _proto.render = function render() { + var _extends2; + var _this$props = this.props, + glyph = _this$props.glyph, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = qsa; // Zepto.js -// (c) 2010-2015 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var simpleSelectorRE = /^[\w-]*$/; -var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2)); -function qsa(element, selector) { - var maybeID = selector[0] === '#', - maybeClass = selector[0] === '.', - nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, - isSimple = simpleSelectorRE.test(nameOnly), - found; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Glyphicon_jsxFileName, + lineNumber: 30 + }, + __self: this + })); + }; - if (isSimple) { - if (maybeID) { - element = element.getElementById ? element : document; - return (found = element.getElementById(nameOnly)) ? [found] : []; - } + return Glyphicon; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly)); - return toArray(element.getElementsByTagName(selector)); - } +Glyphicon.propTypes = Glyphicon_propTypes; +/* harmony default export */ const src_Glyphicon = (bsClass('glyphicon', Glyphicon)); +;// ./src/Carousel.js - return toArray(element.querySelectorAll(selector)); -} -module.exports = exports['default']; -/***/ }), -/***/ 8449: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var Carousel_jsxFileName = "/Users/harrison/react-bootstrap/src/Carousel.js"; -var anObject = __webpack_require__(4610); -var IE8_DOM_DEFINE = __webpack_require__(1614); -var toPrimitive = __webpack_require__(9194); -var dP = Object.defineProperty; -exports.f = __webpack_require__(4725) ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { - /* empty */ - } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; -/***/ }), -/***/ 8475: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(4701); -__webpack_require__(3841); + // TODO: `slide` should be `animate`. +// TODO: Use uncontrollable. -module.exports = __webpack_require__(9520).Array.from; +var Carousel_propTypes = { + slide: (prop_types_default()).bool, + indicators: (prop_types_default()).bool, -/***/ }), + /** + * The amount of time to delay between automatically cycling an item. + * If `null`, carousel will not automatically cycle. + */ + interval: (prop_types_default()).number, + controls: (prop_types_default()).bool, + pauseOnHover: (prop_types_default()).bool, + wrap: (prop_types_default()).bool, -/***/ 8643: -/***/ ((module) => { + /** + * Callback fired when the active item changes. + * + * ```js + * (eventKey: any, ?event: Object) => any + * ``` + * + * If this callback takes two or more arguments, the second argument will + * be a persisted event object with `direction` set to the direction of the + * transition. + */ + onSelect: (prop_types_default()).func, + onSlideEnd: (prop_types_default()).func, + activeIndex: (prop_types_default()).number, + defaultActiveIndex: (prop_types_default()).number, + direction: prop_types_default().oneOf(['prev', 'next']), + prevIcon: (prop_types_default()).node, -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + /** + * Label shown to screen readers only, can be used to show the previous element + * in the carousel. + * Set to null to deactivate. + */ + prevLabel: (prop_types_default()).string, + nextIcon: (prop_types_default()).node, + /** + * Label shown to screen readers only, can be used to show the next element + * in the carousel. + * Set to null to deactivate. + */ + nextLabel: (prop_types_default()).string +}; +var Carousel_defaultProps = { + slide: true, + interval: 5000, + pauseOnHover: true, + wrap: true, + indicators: true, + controls: true, + prevIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { + glyph: "chevron-left", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 71 + }, + __self: undefined + }), + prevLabel: 'Previous', + nextIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { + glyph: "chevron-right", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 73 + }, + __self: undefined + }), + nextLabel: 'Next' +}; -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; -module.exports = ReactPropTypesSecret; +var Carousel = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Carousel, _React$Component); -/***/ }), + function Carousel(props, context) { + var _this; -/***/ 8644: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + _this = _React$Component.call(this, props, context) || this; + _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); + var defaultActiveIndex = props.defaultActiveIndex; + _this.state = { + activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, + previousActiveIndex: null, + direction: null + }; + _this.isUnmounted = false; + return _this; + } -// https://github.com/tc39/proposal-object-values-entries -var $export = __webpack_require__(3445); + var _proto = Carousel.prototype; -var $entries = __webpack_require__(5012)(true); + _proto.componentDidMount = function componentDidMount() { + this.waitForNext(); + }; -$export($export.S, 'Object', { - entries: function entries(it) { - return $entries(it); - } -}); - -/***/ }), - -/***/ 8647: -/***/ ((module, exports) => { - -"use strict"; + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + var activeIndex = this.getActiveIndex(); + if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { + clearTimeout(this.timeout); + this.setState({ + previousActiveIndex: activeIndex, + direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) + }); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -module.exports = exports['default']; + if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) { + this.setState({ + activeIndex: 0, + previousActiveIndex: null, + direction: null + }); + } + }; -/***/ }), + _proto.UNSAFE_componentWillUnmount = function UNSAFE_componentWillUnmount() { + clearTimeout(this.timeout); + this.isUnmounted = true; + }; -/***/ 8663: -/***/ ((module, exports) => { + _proto.getActiveIndex = function getActiveIndex() { + var activeIndexProp = this.props.activeIndex; + return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; + }; -"use strict"; + _proto.getDirection = function getDirection(prevIndex, index) { + if (prevIndex === index) { + return null; + } + return prevIndex > index ? 'prev' : 'next'; + }; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createChainableTypeChecker; -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -// Mostly taken from ReactPropTypes. + _proto.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { + var _this2 = this; -function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + this.setState({ + previousActiveIndex: null, + direction: null + }, function () { + _this2.waitForNext(); - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + if (_this2.props.onSlideEnd) { + _this2.props.onSlideEnd(); } + }); + }; - return null; + _proto.handleMouseOut = function handleMouseOut() { + if (this.isPaused) { + this.play(); } + }; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + _proto.handleMouseOver = function handleMouseOver() { + if (this.props.pauseOnHover) { + this.pause(); } + }; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; -} - -module.exports = exports['default']; - -/***/ }), - -/***/ 8727: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// 7.2.2 IsArray(argument) -var cof = __webpack_require__(3543); - -module.exports = Array.isArray || function isArray(arg) { - return cof(arg) == 'Array'; -}; - -/***/ }), - -/***/ 8759: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + _proto.handleNext = function handleNext(e) { + var index = this.getActiveIndex() + 1; + var count = ValidComponentChildren.count(this.props.children); -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(3443); + if (index > count - 1) { + if (!this.props.wrap) { + return; + } -var defined = __webpack_require__(9314); + index = 0; + } -module.exports = function (it) { - return IObject(defined(it)); -}; + this.select(index, e, 'next'); + }; -/***/ }), + _proto.handlePrev = function handlePrev(e) { + var index = this.getActiveIndex() - 1; -/***/ 8774: -/***/ ((module, exports, __webpack_require__) => { + if (index < 0) { + if (!this.props.wrap) { + return; + } -"use strict"; + index = ValidComponentChildren.count(this.props.children) - 1; + } + this.select(index, e, 'prev'); + }; // This might be a public API. -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -var _inDOM = __webpack_require__(8647); + _proto.pause = function pause() { + this.isPaused = true; + clearTimeout(this.timeout); + }; // This might be a public API. -var _inDOM2 = _interopRequireDefault(_inDOM); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + _proto.play = function play() { + this.isPaused = false; + this.waitForNext(); }; -} -var on = function on() {}; - -if (_inDOM2.default) { - on = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.addEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.attachEvent('on' + eventName, function (e) { - e = e || window.event; - e.target = e.target || e.srcElement; - e.currentTarget = node; - handler.call(node, e); - }); - }; - }(); -} - -exports["default"] = on; -module.exports = exports['default']; - -/***/ }), - -/***/ 8861: -/***/ ((module, exports) => { - -"use strict"; + _proto.select = function select(index, e, direction) { + clearTimeout(this.timeout); // TODO: Is this necessary? Seems like the only risk is if the component + // unmounts while handleItemAnimateOutEnd fires. + if (this.isUnmounted) { + return; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isRequiredForA11y; + var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; + direction = direction || this.getDirection(previousActiveIndex, index); + var onSelect = this.props.onSelect; -function isRequiredForA11y(validator) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + if (onSelect) { + if (onSelect.length > 1) { + // React SyntheticEvents are pooled, so we need to remove this event + // from the pool to add a custom property. To avoid unnecessarily + // removing objects from the pool, only do this when the listener + // actually wants the event. + if (e) { + e.persist(); + e.direction = direction; + } else { + e = { + direction: direction + }; + } - if (props[propName] == null) { - return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); + onSelect(index, e); + } else { + onSelect(index); + } } - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; - } + if (this.props.activeIndex == null && index !== previousActiveIndex) { + if (this.state.previousActiveIndex != null) { + // If currently animating don't activate the new index. + // TODO: look into queueing this canceled call and + // animating after the current animation has ended. + return; + } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); + this.setState({ + activeIndex: index, + previousActiveIndex: previousActiveIndex, + direction: direction + }); + } }; -} - -module.exports = exports['default']; -/***/ }), + _proto.waitForNext = function waitForNext() { + var _this$props = this.props, + slide = _this$props.slide, + interval = _this$props.interval, + activeIndexProp = _this$props.activeIndex; -/***/ 9050: -/***/ ((module) => { + if (!this.isPaused && slide && interval && activeIndexProp == null) { + this.timeout = setTimeout(this.handleNext, interval); + } + }; -"use strict"; + _proto.renderControls = function renderControls(properties) { + var wrap = properties.wrap, + children = properties.children, + activeIndex = properties.activeIndex, + prevIcon = properties.prevIcon, + nextIcon = properties.nextIcon, + bsProps = properties.bsProps, + prevLabel = properties.prevLabel, + nextLabel = properties.nextLabel; + var controlClassName = prefix(bsProps, 'control'); + var count = ValidComponentChildren.count(children); + return [(wrap || activeIndex !== 0) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { + key: "prev", + className: classnames_default()(controlClassName, 'left'), + onClick: this.handlePrev, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 290 + }, + __self: this + }, prevIcon, prevLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 296 + }, + __self: this + }, prevLabel)), (wrap || activeIndex !== count - 1) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { + key: "next", + className: classnames_default()(controlClassName, 'right'), + onClick: this.handleNext, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 301 + }, + __self: this + }, nextIcon, nextLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 307 + }, + __self: this + }, nextLabel))]; + }; + _proto.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { + var _this3 = this; -function replaceClassName(origClass, classToRemove) { - return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); -} + var indicators = []; + ValidComponentChildren.forEach(children, function (child, index) { + indicators.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + key: index, + className: index === activeIndex ? 'active' : null, + onClick: function onClick(e) { + return _this3.select(index, e); + }, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 318 + }, + __self: this + }), // Force whitespace between indicator elements. Bootstrap requires + // this for correct spacing of elements. + ' '); + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", { + className: prefix(bsProps, 'indicators'), + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 330 + }, + __self: this + }, indicators); + }; -module.exports = function removeClass(element, className) { - 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)); -}; + _proto.render = function render() { + var _this4 = this; -/***/ }), + var _this$props2 = this.props, + slide = _this$props2.slide, + indicators = _this$props2.indicators, + controls = _this$props2.controls, + wrap = _this$props2.wrap, + prevIcon = _this$props2.prevIcon, + prevLabel = _this$props2.prevLabel, + nextIcon = _this$props2.nextIcon, + nextLabel = _this$props2.nextLabel, + className = _this$props2.className, + children = _this$props2.children, + props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]); -/***/ 9194: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _this$state = this.state, + previousActiveIndex = _this$state.previousActiveIndex, + direction = _this$state.direction; -// 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(2103); // instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). + 'defaultActiveIndex', 'direction']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + var activeIndex = this.getActiveIndex(); -module.exports = function (it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - throw TypeError("Can't convert object to primitive value"); -}; + var classes = _extends({}, getClassSet(bsProps), { + slide: slide + }); -/***/ }), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + onMouseOver: this.handleMouseOver, + onMouseOut: this.handleMouseOut, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 368 + }, + __self: this + }), indicators && this.renderIndicators(children, activeIndex, bsProps), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + className: prefix(bsProps, 'inner'), + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 376 + }, + __self: this + }, ValidComponentChildren.map(children, function (child, index) { + var active = index === activeIndex; + var previousActive = slide && index === previousActiveIndex; + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + active: active, + index: index, + animateOut: previousActive, + animateIn: active && previousActiveIndex != null && slide, + direction: direction, + onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null + }); + })), controls && this.renderControls({ + wrap: wrap, + children: children, + activeIndex: activeIndex, + prevIcon: prevIcon, + prevLabel: prevLabel, + nextIcon: nextIcon, + nextLabel: nextLabel, + bsProps: bsProps + })); + }; -/***/ 9253: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return Carousel; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -__webpack_require__(8644); +Carousel.propTypes = Carousel_propTypes; +Carousel.defaultProps = Carousel_defaultProps; +Carousel.Caption = src_CarouselCaption; +Carousel.Item = src_CarouselItem; +/* harmony default export */ const src_Carousel = (bsClass('carousel', Carousel)); +;// ./src/Checkbox.js -module.exports = __webpack_require__(9520).Object.entries; -/***/ }), -/***/ 9287: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var Checkbox_jsxFileName = "/Users/harrison/react-bootstrap/src/Checkbox.js"; -"use strict"; -var __webpack_unused_export__; +/* eslint-disable jsx-a11y/label-has-for */ -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = undefined; -var _on = __webpack_require__(8774); -var _on2 = _interopRequireDefault(_on); -var _off = __webpack_require__(6170); +var Checkbox_propTypes = { + inline: (prop_types_default()).bool, + disabled: (prop_types_default()).bool, + title: (prop_types_default()).string, -var _off2 = _interopRequireDefault(_off); + /** + * Only valid if `inline` is not set. + */ + validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]), -var _filter = __webpack_require__(6233); + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: (prop_types_default()).func +}; +var Checkbox_defaultProps = { + inline: false, + disabled: false, + title: '' +}; -var _filter2 = _interopRequireDefault(_filter); +var Checkbox = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Checkbox, _React$Component); -var _listen = __webpack_require__(3044); + function Checkbox() { + return _React$Component.apply(this, arguments) || this; + } -var _listen2 = _interopRequireDefault(_listen); + var _proto = Checkbox.prototype; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + _proto.render = function render() { + var _this$props = this.props, + inline = _this$props.inline, + disabled = _this$props.disabled, + validationState = _this$props.validationState, + inputRef = _this$props.inputRef, + className = _this$props.className, + style = _this$props.style, + title = _this$props.title, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]); -__webpack_unused_export__ = _on2.default; -__webpack_unused_export__ = _off2.default; -__webpack_unused_export__ = _filter2.default; -__webpack_unused_export__ = _listen2.default; -exports.Ay = { - on: _on2.default, - off: _off2.default, - filter: _filter2.default, - listen: _listen2.default -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -/***/ }), + var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", _extends({}, elementProps, { + ref: inputRef, + type: "checkbox", + disabled: disabled, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 56 + }, + __self: this + })); -/***/ 9303: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** @license React v16.4.2 - * react-is.production.min.js - * - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + if (inline) { + var _classes2; + var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking + // generated documentation. -Object.defineProperty(exports, "__esModule", ({ - value: !0 -})); -var b = "function" === typeof Symbol && Symbol.for, - c = b ? Symbol.for("react.element") : 60103, - d = b ? Symbol.for("react.portal") : 60106, - e = b ? Symbol.for("react.fragment") : 60107, - f = b ? Symbol.for("react.strict_mode") : 60108, - g = b ? Symbol.for("react.profiler") : 60114, - h = b ? Symbol.for("react.provider") : 60109, - k = b ? Symbol.for("react.context") : 60110, - l = b ? Symbol.for("react.async_mode") : 60111, - m = b ? Symbol.for("react.forward_ref") : 60112, - n = b ? Symbol.for("react.timeout") : 60113; -function q(a) { - if ("object" === typeof a && null !== a) { - var p = a.$$typeof; + false ? 0 : void 0; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { + className: classnames_default()(className, _classes), + style: style, + title: title, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 80 + }, + __self: this + }, input, children); + } - switch (p) { - case c: - switch (a = a.type, a) { - case l: - case e: - case g: - case f: - return a; + var classes = _extends({}, getClassSet(bsProps), { + disabled: disabled + }); - default: - switch (a = a && a.$$typeof, a) { - case k: - case m: - case h: - return a; + if (validationState) { + classes["has-" + validationState] = true; + } - default: - return p; - } + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + className: classnames_default()(className, classes), + style: style, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 100 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { + title: title, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 101 + }, + __self: this + }, input, children)); + }; - } + return Checkbox; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - case d: - return p; - } - } +Checkbox.propTypes = Checkbox_propTypes; +Checkbox.defaultProps = Checkbox_defaultProps; +/* harmony default export */ const src_Checkbox = (bsClass('checkbox', Checkbox)); +;// ./src/utils/capitalize.js +function capitalize(string) { + return "" + string.charAt(0).toUpperCase() + string.slice(1); } +;// ./src/Clearfix.js -exports.typeOf = q; -exports.AsyncMode = l; -exports.ContextConsumer = k; -exports.ContextProvider = h; -exports.Element = c; -exports.ForwardRef = m; -exports.Fragment = e; -exports.Profiler = g; -exports.Portal = d; -exports.StrictMode = f; -exports.isValidElementType = function (a) { - 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); -}; -exports.isAsyncMode = function (a) { - return q(a) === l; -}; +var Clearfix_jsxFileName = "/Users/harrison/react-bootstrap/src/Clearfix.js"; -exports.isContextConsumer = function (a) { - return q(a) === k; -}; -exports.isContextProvider = function (a) { - return q(a) === h; -}; -exports.isElement = function (a) { - return "object" === typeof a && null !== a && a.$$typeof === c; -}; -exports.isForwardRef = function (a) { - return q(a) === m; -}; -exports.isFragment = function (a) { - return q(a) === e; -}; -exports.isProfiler = function (a) { - return q(a) === g; -}; -exports.isPortal = function (a) { - return q(a) === d; -}; +var Clearfix_propTypes = { + componentClass: (elementType_default()), -exports.isStrictMode = function (a) { - return q(a) === f; -}; + /** + * Apply clearfix + * + * on Extra small devices Phones + * + * adds class `visible-xs-block` + */ + visibleXsBlock: (prop_types_default()).bool, -/***/ }), + /** + * Apply clearfix + * + * on Small devices Tablets + * + * adds class `visible-sm-block` + */ + visibleSmBlock: (prop_types_default()).bool, -/***/ 9312: -/***/ ((module, exports, __webpack_require__) => { + /** + * Apply clearfix + * + * on Medium devices Desktops + * + * adds class `visible-md-block` + */ + visibleMdBlock: (prop_types_default()).bool, -"use strict"; + /** + * Apply clearfix + * + * on Large devices Desktops + * + * adds class `visible-lg-block` + */ + visibleLgBlock: (prop_types_default()).bool +}; +var Clearfix_defaultProps = { + componentClass: 'div' +}; +var Clearfix = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Clearfix, _React$Component); -exports.__esModule = true; + function Clearfix() { + return _React$Component.apply(this, arguments) || this; + } -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var _proto = Clearfix.prototype; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - return target; -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var _propTypes = __webpack_require__(5762); + var classes = getClassSet(bsProps); + DEVICE_SIZES.forEach(function (size) { + var propName = "visible" + capitalize(size) + "Block"; -var _propTypes2 = _interopRequireDefault(_propTypes); + if (elementProps[propName]) { + classes["visible-" + size + "-block"] = true; + } -var _elementType = __webpack_require__(3105); + delete elementProps[propName]; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Clearfix_jsxFileName, + lineNumber: 68 + }, + __self: this + })); + }; -var _elementType2 = _interopRequireDefault(_elementType); + return Clearfix; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _react = __webpack_require__(5442); +Clearfix.propTypes = Clearfix_propTypes; +Clearfix.defaultProps = Clearfix_defaultProps; +/* harmony default export */ const src_Clearfix = (bsClass('clearfix', Clearfix)); +;// ./src/FormGroupContext.js -var _react2 = _interopRequireDefault(_react); +var FormGroupContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(undefined); +FormGroupContext.displayName = 'FormGroupContext'; +/* harmony default export */ const src_FormGroupContext = (FormGroupContext); +;// ./src/ControlLabel.js -var _Portal = __webpack_require__(904); -var _Portal2 = _interopRequireDefault(_Portal); -var _Position = __webpack_require__(4045); +var ControlLabel_jsxFileName = "/Users/harrison/react-bootstrap/src/ControlLabel.js"; -var _Position2 = _interopRequireDefault(_Position); -var _RootCloseWrapper = __webpack_require__(3029); -var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function _objectWithoutProperties(obj, keys) { - var target = {}; - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } +var ControlLabel_propTypes = { + /** + * Uses `controlId` from `` if not explicitly specified. + */ + htmlFor: (prop_types_default()).string, + srOnly: (prop_types_default()).bool +}; +var ControlLabel_defaultProps = { + srOnly: false +}; - return target; -} +var ControlLabel = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ControlLabel, _React$Component); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); + function ControlLabel() { + return _React$Component.apply(this, arguments) || this; } -} -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/** - * Built on top of `` and ``, the overlay component is great for custom tooltip overlays. - */ - - -var Overlay = function (_React$Component) { - _inherits(Overlay, _React$Component); - - function Overlay(props, context) { - _classCallCheck(this, Overlay); + var _proto = ControlLabel.prototype; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + _proto.render = function render() { + var formGroup = this.context; + var controlId = formGroup && formGroup.controlId; - _this.handleHidden = function () { - _this.setState({ - exited: true - }); + var _this$props = this.props, + _this$props$htmlFor = _this$props.htmlFor, + htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor, + srOnly = _this$props.srOnly, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]); - if (_this.props.onExited) { - var _this$props; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - (_this$props = _this.props).onExited.apply(_this$props, arguments); - } - }; + false ? 0 : void 0; - _this.state = { - exited: !props.show - }; - _this.onHiddenListener = _this.handleHidden.bind(_this); - return _this; - } + var classes = _extends({}, getClassSet(bsProps), { + 'sr-only': srOnly + }); - Overlay.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.show) { - this.setState({ - exited: false - }); - } else if (!nextProps.transition) { - // Otherwise let handleHidden take care of marking exited. - this.setState({ - exited: true - }); - } + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", _extends({}, elementProps, { + htmlFor: htmlFor, + className: classnames_default()(className, classes), + __source: { + fileName: ControlLabel_jsxFileName, + lineNumber: 40 + }, + __self: this + })); }; - Overlay.prototype.render = function render() { - var _props = this.props, - container = _props.container, - containerPadding = _props.containerPadding, - target = _props.target, - placement = _props.placement, - shouldUpdatePosition = _props.shouldUpdatePosition, - rootClose = _props.rootClose, - children = _props.children, - Transition = _props.transition, - props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']); // Don't un-render the overlay while it's transitioning out. + return ControlLabel; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +ControlLabel.propTypes = ControlLabel_propTypes; +ControlLabel.defaultProps = ControlLabel_defaultProps; +ControlLabel.contextType = src_FormGroupContext; +/* harmony default export */ const src_ControlLabel = (bsClass('control-label', ControlLabel)); +;// ./src/Col.js - var mountOverlay = props.show || Transition && !this.state.exited; - if (!mountOverlay) { - // Don't bother showing anything if we don't have to. - return null; - } - var child = children; // Position is be inner-most because it adds inline styles into the child, - // which the other wrappers don't forward correctly. +var Col_jsxFileName = "/Users/harrison/react-bootstrap/src/Col.js"; - child = _react2.default.createElement(_Position2.default, { - container: container, - containerPadding: containerPadding, - target: target, - placement: placement, - shouldUpdatePosition: shouldUpdatePosition - }, child); - if (Transition) { - var onExit = props.onExit, - onExiting = props.onExiting, - onEnter = props.onEnter, - onEntering = props.onEntering, - onEntered = props.onEntered; // This animates the child node by injecting props, so it must precede - // anything that adds a wrapping div. - - child = _react2.default.createElement(Transition, { - 'in': props.show, - appear: true, - onExit: onExit, - onExiting: onExiting, - onExited: this.onHiddenListener, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, child); - } // This goes after everything else because it adds a wrapping div. - if (rootClose) { - child = _react2.default.createElement(_RootCloseWrapper2.default, { - onRootClose: props.onHide, - event: props.rootCloseEvent - }, child); - } - return _react2.default.createElement(_Portal2.default, { - container: container - }, child); - }; - return Overlay; -}(_react2.default.Component); +var Col_propTypes = { + componentClass: (elementType_default()), -Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, { /** - * Set the visibility of the Overlay + * The number of columns you wish to span + * + * for Extra small devices Phones (<768px) + * + * class-prefix `col-xs-` */ - show: _propTypes2.default.bool, + xs: (prop_types_default()).number, /** - * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay + * The number of columns you wish to span + * + * for Small devices Tablets (≥768px) + * + * class-prefix `col-sm-` */ - rootClose: _propTypes2.default.bool, + sm: (prop_types_default()).number, /** - * Specify event for toggling overlay + * The number of columns you wish to span + * + * for Medium devices Desktops (≥992px) + * + * class-prefix `col-md-` */ - rootCloseEvent: _RootCloseWrapper2.default.propTypes.event, + md: (prop_types_default()).number, /** - * A Callback fired by the Overlay when it wishes to be hidden. + * The number of columns you wish to span * - * __required__ when `rootClose` is `true`. + * for Large devices Desktops (≥1200px) * - * @type func + * class-prefix `col-lg-` */ - onHide: function onHide(props) { - var propType = _propTypes2.default.func; - - if (props.rootClose) { - propType = propType.isRequired; - } - - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return propType.apply(undefined, [props].concat(args)); - }, + lg: (prop_types_default()).number, /** - * A `react-transition-group@2.0.0` `` component - * used to animate the overlay as it changes visibility. + * Hide column + * + * on Extra small devices Phones + * + * adds class `hidden-xs` */ - transition: _elementType2.default, + xsHidden: (prop_types_default()).bool, /** - * Callback fired before the Overlay transitions in + * Hide column + * + * on Small devices Tablets + * + * adds class `hidden-sm` */ - onEnter: _propTypes2.default.func, + smHidden: (prop_types_default()).bool, /** - * Callback fired as the Overlay begins to transition in + * Hide column + * + * on Medium devices Desktops + * + * adds class `hidden-md` */ - onEntering: _propTypes2.default.func, + mdHidden: (prop_types_default()).bool, /** - * Callback fired after the Overlay finishes transitioning in + * Hide column + * + * on Large devices Desktops + * + * adds class `hidden-lg` */ - onEntered: _propTypes2.default.func, + lgHidden: (prop_types_default()).bool, /** - * Callback fired right before the Overlay transitions out + * Move columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-offset-` */ - onExit: _propTypes2.default.func, + xsOffset: (prop_types_default()).number, /** - * Callback fired as the Overlay begins to transition out + * Move columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-offset-` */ - onExiting: _propTypes2.default.func, + smOffset: (prop_types_default()).number, /** - * Callback fired after the Overlay finishes transitioning out + * Move columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-offset-` */ - onExited: _propTypes2.default.func -}); -exports["default"] = Overlay; -module.exports = exports['default']; - -/***/ }), - -/***/ 9314: -/***/ ((module) => { - -// 7.2.1 RequireObjectCoercible(argument) -module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - -/***/ }), - -/***/ 9345: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(4610); - -var dPs = __webpack_require__(3796); + mdOffset: (prop_types_default()).number, -var enumBugKeys = __webpack_require__(8338); + /** + * Move columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-offset-` + */ + lgOffset: (prop_types_default()).number, -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); + /** + * Change the order of grid columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-push-` + */ + xsPush: (prop_types_default()).number, -var Empty = function () { - /* empty */ -}; + /** + * Change the order of grid columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-push-` + */ + smPush: (prop_types_default()).number, -var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype + /** + * Change the order of grid columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-push-` + */ + mdPush: (prop_types_default()).number, -var createDict = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(7788)('iframe'); + /** + * Change the order of grid columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-push-` + */ + lgPush: (prop_types_default()).number, - var i = enumBugKeys.length; - var lt = '<'; - var gt = '>'; - var iframeDocument; - iframe.style.display = 'none'; + /** + * Change the order of grid columns to the left + * + * for Extra small devices Phones + * + * class-prefix `col-xs-pull-` + */ + xsPull: (prop_types_default()).number, - (__webpack_require__(2426).appendChild)(iframe); + /** + * Change the order of grid columns to the left + * + * for Small devices Tablets + * + * class-prefix `col-sm-pull-` + */ + smPull: (prop_types_default()).number, - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - - while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - - return createDict(); -}; - -module.exports = Object.create || function create(O, Properties) { - var result; - - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill - - result[IE_PROTO] = O; - } else result = createDict(); - - return Properties === undefined ? result : dPs(result, Properties); -}; - -/***/ }), - -/***/ 9508: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(64); - -/***/ }), - -/***/ 9520: -/***/ ((module) => { - -var core = module.exports = { - version: '2.5.7' -}; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - -/***/ }), - -/***/ 9523: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__(9303); -} else // removed by dead control flow -{} - -/***/ }), - -/***/ 9532: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -// https://github.com/tc39/proposal-object-values-entries -var $export = __webpack_require__(3445); - -var $values = __webpack_require__(5012)(false); - -$export($export.S, 'Object', { - values: function values(it) { - return $values(it); - } -}); - -/***/ }), - -/***/ 9578: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.hasClass = exports.removeClass = exports.addClass = undefined; - -var _addClass = __webpack_require__(385); - -var _addClass2 = _interopRequireDefault(_addClass); - -var _removeClass = __webpack_require__(9050); - -var _removeClass2 = _interopRequireDefault(_removeClass); - -var _hasClass = __webpack_require__(2536); - -var _hasClass2 = _interopRequireDefault(_hasClass); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -exports.addClass = _addClass2.default; -exports.removeClass = _removeClass2.default; -exports.hasClass = _hasClass2.default; -exports["default"] = { - addClass: _addClass2.default, - removeClass: _removeClass2.default, - hasClass: _hasClass2.default -}; - -/***/ }), - -/***/ 9871: -/***/ ((__unused_webpack_module, exports) => { - -exports.f = {}.propertyIsEnumerable; - -/***/ }), - -/***/ 9874: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var def = (__webpack_require__(8449).f); - -var has = __webpack_require__(8283); - -var TAG = __webpack_require__(6932)('toStringTag'); - -module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { - configurable: true, - value: tag - }); -}; - -/***/ }), - -/***/ 9905: -/***/ ((module, exports) => { - -"use strict"; - - -exports.__esModule = true; -exports["default"] = addFocusListener; -/** - * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling - * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8 - * - * We only allow one Listener at a time to avoid stack overflows - */ - -function addFocusListener(handler) { - var useFocusin = !document.addEventListener; - var remove = void 0; - - if (useFocusin) { - document.attachEvent('onfocusin', handler); - - remove = function remove() { - return document.detachEvent('onfocusin', handler); - }; - } else { - document.addEventListener('focus', handler, true); - - remove = function remove() { - return document.removeEventListener('focus', handler, true); - }; - } - - return { - remove: remove - }; -} - -module.exports = exports['default']; - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. -(() => { -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Accordion: () => (/* reexport */ src_Accordion), - Alert: () => (/* reexport */ src_Alert), - Badge: () => (/* reexport */ src_Badge), - Breadcrumb: () => (/* reexport */ src_Breadcrumb), - BreadcrumbItem: () => (/* reexport */ src_BreadcrumbItem), - Button: () => (/* reexport */ src_Button), - ButtonGroup: () => (/* reexport */ src_ButtonGroup), - ButtonToolbar: () => (/* reexport */ src_ButtonToolbar), - Carousel: () => (/* reexport */ src_Carousel), - CarouselItem: () => (/* reexport */ src_CarouselItem), - Checkbox: () => (/* reexport */ src_Checkbox), - Clearfix: () => (/* reexport */ src_Clearfix), - CloseButton: () => (/* reexport */ src_CloseButton), - Col: () => (/* reexport */ src_Col), - Collapse: () => (/* reexport */ src_Collapse), - ControlLabel: () => (/* reexport */ src_ControlLabel), - Dropdown: () => (/* reexport */ src_Dropdown), - DropdownButton: () => (/* reexport */ src_DropdownButton), - Fade: () => (/* reexport */ src_Fade), - Form: () => (/* reexport */ src_Form), - FormControl: () => (/* reexport */ src_FormControl), - FormGroup: () => (/* reexport */ src_FormGroup), - Glyphicon: () => (/* reexport */ src_Glyphicon), - Grid: () => (/* reexport */ src_Grid), - HelpBlock: () => (/* reexport */ src_HelpBlock), - Image: () => (/* reexport */ src_Image), - InputGroup: () => (/* reexport */ src_InputGroup), - Jumbotron: () => (/* reexport */ src_Jumbotron), - Label: () => (/* reexport */ src_Label), - ListGroup: () => (/* reexport */ src_ListGroup), - ListGroupItem: () => (/* reexport */ src_ListGroupItem), - Media: () => (/* reexport */ src_Media), - MenuItem: () => (/* reexport */ src_MenuItem), - Modal: () => (/* reexport */ src_Modal), - ModalBody: () => (/* reexport */ src_ModalBody), - ModalDialog: () => (/* reexport */ src_ModalDialog), - ModalFooter: () => (/* reexport */ src_ModalFooter), - ModalHeader: () => (/* reexport */ src_ModalHeader), - ModalTitle: () => (/* reexport */ src_ModalTitle), - Nav: () => (/* reexport */ src_Nav), - NavDropdown: () => (/* reexport */ src_NavDropdown), - NavItem: () => (/* reexport */ src_NavItem), - Navbar: () => (/* reexport */ src_Navbar), - NavbarBrand: () => (/* reexport */ src_NavbarBrand), - Overlay: () => (/* reexport */ src_Overlay), - OverlayTrigger: () => (/* reexport */ src_OverlayTrigger), - PageHeader: () => (/* reexport */ src_PageHeader), - PageItem: () => (/* reexport */ PageItem), - Pager: () => (/* reexport */ src_Pager), - Pagination: () => (/* reexport */ src_Pagination), - Panel: () => (/* reexport */ src_Panel), - PanelGroup: () => (/* reexport */ src_PanelGroup), - Popover: () => (/* reexport */ src_Popover), - ProgressBar: () => (/* reexport */ src_ProgressBar), - Radio: () => (/* reexport */ src_Radio), - ResponsiveEmbed: () => (/* reexport */ src_ResponsiveEmbed), - Row: () => (/* reexport */ src_Row), - SafeAnchor: () => (/* reexport */ src_SafeAnchor), - SplitButton: () => (/* reexport */ src_SplitButton), - Tab: () => (/* reexport */ src_Tab), - TabContainer: () => (/* reexport */ src_TabContainer), - TabContent: () => (/* reexport */ src_TabContent), - TabPane: () => (/* reexport */ src_TabPane), - Table: () => (/* reexport */ src_Table), - Tabs: () => (/* reexport */ src_Tabs), - Thumbnail: () => (/* reexport */ src_Thumbnail), - ToggleButton: () => (/* reexport */ src_ToggleButton), - ToggleButtonGroup: () => (/* reexport */ src_ToggleButtonGroup), - Tooltip: () => (/* reexport */ src_Tooltip), - Well: () => (/* reexport */ src_Well), - utils: () => (/* reexport */ utils_namespaceObject) -}); + /** + * Change the order of grid columns to the left + * + * for Medium devices Desktops + * + * class-prefix `col-md-pull-` + */ + mdPull: (prop_types_default()).number, -// NAMESPACE OBJECT: ./src/utils/bootstrapUtils.js -var bootstrapUtils_namespaceObject = {}; -__webpack_require__.r(bootstrapUtils_namespaceObject); -__webpack_require__.d(bootstrapUtils_namespaceObject, { - _curry: () => (_curry), - addStyle: () => (addStyle), - bsClass: () => (bsClass), - bsSizes: () => (bsSizes), - bsStyles: () => (bsStyles), - getClassSet: () => (getClassSet), - prefix: () => (prefix), - splitBsProps: () => (splitBsProps), - splitBsPropsAndOmit: () => (splitBsPropsAndOmit) -}); + /** + * Change the order of grid columns to the left + * + * for Large devices Desktops + * + * class-prefix `col-lg-pull-` + */ + lgPull: (prop_types_default()).number +}; +var Col_defaultProps = { + componentClass: 'div' +}; -// NAMESPACE OBJECT: ./src/utils/index.js -var utils_namespaceObject = {}; -__webpack_require__.r(utils_namespaceObject); -__webpack_require__.d(utils_namespaceObject, { - ValidComponentChildren: () => (ValidComponentChildren), - bootstrapUtils: () => (bootstrapUtils_namespaceObject), - createChainedFunction: () => (utils_createChainedFunction) -}); +var Col = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Col, _React$Component); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js -var object_assign = __webpack_require__(9508); -var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js + function Col() { + return _React$Component.apply(this, arguments) || this; + } -function _extends() { - _extends = (assign_default()) || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var _proto = Col.prototype; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = []; + DEVICE_SIZES.forEach(function (size) { + function popProp(propSuffix, modifier) { + var propName = "" + size + propSuffix; + var propValue = elementProps[propName]; + + if (propValue != null) { + classes.push(prefix(bsProps, "" + size + modifier + "-" + propValue)); } + + delete elementProps[propName]; } - } - return target; + popProp('', ''); + popProp('Offset', '-offset'); + popProp('Push', '-push'); + popProp('Pull', '-pull'); + var hiddenPropName = size + "Hidden"; + + if (elementProps[hiddenPropName]) { + classes.push("hidden-" + size); + } + + delete elementProps[hiddenPropName]; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Col_jsxFileName, + lineNumber: 210 + }, + __self: this + })); }; - return _extends.apply(this, arguments); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/create.js -var create = __webpack_require__(2309); -var create_default = /*#__PURE__*/__webpack_require__.n(create); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js + return Col; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function _inheritsLoose(subClass, superClass) { - subClass.prototype = create_default()(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; +Col.propTypes = Col_propTypes; +Col.defaultProps = Col_defaultProps; +/* harmony default export */ const src_Col = (bsClass('col', Col)); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js +var parse_int = __webpack_require__(7222); +var parse_int_default = /*#__PURE__*/__webpack_require__.n(parse_int); +// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js +var style = __webpack_require__(7735); +var style_default = /*#__PURE__*/__webpack_require__.n(style); +;// ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + + for (var n in r) if ({}.hasOwnProperty.call(r, n)) { + if (-1 !== e.indexOf(n)) continue; + t[n] = r[n]; + } + + return t; } -// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} -var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(5442); -var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js -var keys = __webpack_require__(2573); -var keys_default = /*#__PURE__*/__webpack_require__.n(keys); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = keys_default()(source); +;// ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(t, e) { + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, _setPrototypeOf(t, e); +} - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } +;// ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js - return target; + +function inheritsLoose_inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); } -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(7755); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); -// EXTERNAL MODULE: ./node_modules/prop-types/index.js -var prop_types = __webpack_require__(5762); -var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); -// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js -var uncontrollable = __webpack_require__(3215); -var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js -var entries = __webpack_require__(1953); -var entries_default = /*#__PURE__*/__webpack_require__.n(entries); -// EXTERNAL MODULE: ./node_modules/invariant/browser.js -var browser = __webpack_require__(3737); -var browser_default = /*#__PURE__*/__webpack_require__.n(browser); -;// ./src/utils/StyleConfig.js -var Size = { - LARGE: 'large', - SMALL: 'small', - XSMALL: 'xsmall' -}; -var SIZE_MAP = { - large: 'lg', - medium: 'md', - small: 'sm', - xsmall: 'xs', - lg: 'lg', - md: 'md', - sm: 'sm', - xs: 'xs' -}; -var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; -var State = { - SUCCESS: 'success', - WARNING: 'warning', - DANGER: 'danger', - INFO: 'info' -}; -var Style = { - DEFAULT: 'default', - PRIMARY: 'primary', - LINK: 'link', - INVERSE: 'inverse' -}; -;// ./src/utils/bootstrapUtils.js -// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. +// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} +var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(6003); +var 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_); +;// ./node_modules/react-transition-group/esm/config.js +/* harmony default export */ const config = ({ + disabled: false +}); +;// ./node_modules/react-transition-group/esm/TransitionGroupContext.js +/* harmony default export */ const TransitionGroupContext = (external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null)); +;// ./node_modules/react-transition-group/esm/utils/reflow.js +var forceReflow = function forceReflow(node) { + return node.scrollTop; +}; +;// ./node_modules/react-transition-group/esm/Transition.js -function curry(fn) { - return function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - var last = args[args.length - 1]; - if (typeof last === 'function') { - return fn.apply(void 0, args); - } - return function (Component) { - return fn.apply(void 0, args.concat([Component])); - }; - }; -} -function prefix(props, variant) { - var bsClass = (props.bsClass || '').trim(); - !(bsClass != null) ? false ? 0 : browser_default()(false) : void 0; - return bsClass + (variant ? "-" + variant : ''); -} -var bsClass = curry(function (defaultClass, Component) { - var propTypes = Component.propTypes || (Component.propTypes = {}); - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - propTypes.bsClass = (prop_types_default()).string; - defaultProps.bsClass = defaultClass; - return Component; -}); -var bsStyles = curry(function (styles, defaultStyle, Component) { - if (typeof defaultStyle !== 'string') { - Component = defaultStyle; - defaultStyle = undefined; - } - var existing = Component.STYLES || []; - var propTypes = Component.propTypes || {}; - styles.forEach(function (style) { - if (existing.indexOf(style) === -1) { - existing.push(style); - } - }); - var propType = prop_types_default().oneOf(existing); // expose the values on the propType function for documentation - Component.STYLES = existing; - propType._values = existing; - Component.propTypes = _extends({}, propTypes, { - bsStyle: propType - }); +var UNMOUNTED = 'unmounted'; +var EXITED = 'exited'; +var ENTERING = 'entering'; +var ENTERED = 'entered'; +var EXITING = 'exiting'; +/** + * The Transition component lets you describe a transition from one component + * state to another _over time_ with a simple declarative API. Most commonly + * it's used to animate the mounting and unmounting of a component, but can also + * be used to describe in-place transition states as well. + * + * --- + * + * **Note**: `Transition` is a platform-agnostic base component. If you're using + * transitions in CSS, you'll probably want to use + * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) + * instead. It inherits all the features of `Transition`, but contains + * additional features necessary to play nice with CSS transitions (hence the + * name of the component). + * + * --- + * + * By default the `Transition` component does not alter the behavior of the + * component it renders, it only tracks "enter" and "exit" states for the + * components. It's up to you to give meaning and effect to those states. For + * example we can add styles to a component when it enters or exits: + * + * ```jsx + * import { Transition } from 'react-transition-group'; + * + * const duration = 300; + * + * const defaultStyle = { + * transition: `opacity ${duration}ms ease-in-out`, + * opacity: 0, + * } + * + * const transitionStyles = { + * entering: { opacity: 1 }, + * entered: { opacity: 1 }, + * exiting: { opacity: 0 }, + * exited: { opacity: 0 }, + * }; + * + * const Fade = ({ in: inProp }) => ( + * + * {state => ( + *
+ * I'm a fade Transition! + *
+ * )} + *
+ * ); + * ``` + * + * There are 4 main states a Transition can be in: + * - `'entering'` + * - `'entered'` + * - `'exiting'` + * - `'exited'` + * + * Transition state is toggled via the `in` prop. When `true` the component + * begins the "Enter" stage. During this stage, the component will shift from + * its current transition state, to `'entering'` for the duration of the + * transition and then to the `'entered'` stage once it's complete. Let's take + * the following example (we'll use the + * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
+ * + * {state => ( + * // ... + * )} + * + * + *
+ * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ + +var Transition = +/*#__PURE__*/ +function (_React$Component) { + inheritsLoose_inheritsLoose(Transition, _React$Component); - if (defaultStyle !== undefined) { - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - defaultProps.bsStyle = defaultStyle; - } + function Transition(props, context) { + var _this; - return Component; -}); -var bsSizes = curry(function (sizes, defaultSize, Component) { - if (typeof defaultSize !== 'string') { - Component = defaultSize; - defaultSize = undefined; - } + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context; // In the context of a TransitionGroup all enters are really appears - var existing = Component.SIZES || []; - var propTypes = Component.propTypes || {}; - sizes.forEach(function (size) { - if (existing.indexOf(size) === -1) { - existing.push(size); - } - }); - var values = []; - existing.forEach(function (size) { - var mappedSize = SIZE_MAP[size]; + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; - if (mappedSize && mappedSize !== size) { - values.push(mappedSize); + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } } - values.push(size); - }); - var propType = prop_types_default().oneOf(values); - propType._values = values; // expose the values on the propType function for documentation + _this.state = { + status: initialStatus + }; + _this.nextCallback = null; + return _this; + } - Component.SIZES = existing; - Component.propTypes = _extends({}, propTypes, { - bsSize: propType - }); + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; - if (defaultSize !== undefined) { - if (!Component.defaultProps) { - Component.defaultProps = {}; + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED + }; } - Component.defaultProps.bsSize = defaultSize; - } + return null; + } // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } + ; - return Component; -}); -function getClassSet(props) { - var _classes; + var _proto = Transition.prototype; - var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; - if (props.bsSize) { - var bsSize = SIZE_MAP[props.bsSize] || props.bsSize; - classes[prefix(props, bsSize)] = true; - } + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; - if (props.bsStyle) { - classes[prefix(props, props.bsStyle)] = true; - } + if (prevProps !== this.props) { + var status = this.state.status; - return classes; -} + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } -function getBsProps(props) { - return { - bsClass: props.bsClass, - bsSize: props.bsSize, - bsStyle: props.bsStyle, - bsRole: props.bsRole + this.updateStatus(false, nextStatus); }; -} -function isBsProp(propName) { - return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; -} + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; -function splitBsProps(props) { - var elementProps = {}; + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; - entries_default()(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major - if (!isBsProp(propName)) { - elementProps[propName] = propValue; + appear = timeout.appear !== undefined ? timeout.appear : enter; } - }); - - return [getBsProps(props), elementProps]; -} -function splitBsPropsAndOmit(props, omittedPropNames) { - var isOmittedProp = {}; - omittedPropNames.forEach(function (propName) { - isOmittedProp[propName] = true; - }); - var elementProps = {}; - entries_default()(props).forEach(function (_ref2) { - var propName = _ref2[0], - propValue = _ref2[1]; + return { + exit: exit, + enter: enter, + appear: appear + }; + }; - if (!isBsProp(propName) && !isOmittedProp[propName]) { - elementProps[propName] = propValue; + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; } - }); - - return [getBsProps(props), elementProps]; -} -/** - * Add a style variant to a Component. Mutates the propTypes of the component - * in order to validate the new variant. - */ -function addStyle(Component) { - for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - styleVariant[_key2 - 1] = arguments[_key2]; - } + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); - bsStyles(styleVariant, Component); -} -var _curry = curry; -;// ./src/utils/ValidComponentChildren.js -// TODO: This module should be ElementChildren, and should use named exports. + if (nextStatus === ENTERING) { + if (this.props.unmountOnExit || this.props.mountOnEnter) { + var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749 + // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`. + // To make the animation happen, we have to separate each rendering and avoid being processed as batched. -/** - * Iterates through children that are typically specified as `props.children`, - * but only maps over children that are "valid components". - * - * The mapFunction provided index will be normalised to the components mapped, - * so an invalid component would not increase the index. - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for func. - * @return {object} Object containing the ordered map of results. - */ + if (node) forceReflow(node); + } -function map(children, func, context) { - var index = 0; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return child; + this.performEnter(mounting); + } else { + this.performExit(); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED + }); } + }; - return func.call(context, child, index++); - }); -} -/** - * Iterates through children that are "valid components". - * - * The provided forEachFunc(child, index) will be called for each - * leaf child with the index reflecting the position relative to "valid components". - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for context. - */ + _proto.performEnter = function performEnter(mounting) { + var _this2 = this; + var enter = this.props.enter; + var appearing = this.context ? this.context.isMounting : mounting; -function forEach(children, func, context) { - var index = 0; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + var _ref2 = this.props.nodeRef ? [appearing] : [external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this), appearing], + maybeNode = _ref2[0], + maybeAppearing = _ref2[1]; + + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set + + if (!mounting && !enter || config.disabled) { + this.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode); + }); return; } - func.call(context, child, index++); - }); -} -/** - * Count the number of "valid components" in the Children container. - * - * @param {?*} children Children tree container. - * @returns {number} - */ + this.props.onEnter(maybeNode, maybeAppearing); + this.safeSetState({ + status: ENTERING + }, function () { + _this2.props.onEntering(maybeNode, maybeAppearing); + _this2.onTransitionEnd(enterTimeout, function () { + _this2.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode, maybeAppearing); + }); + }); + }); + }; -function count(children) { - var result = 0; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + _proto.performExit = function performExit() { + var _this3 = this; + + var exit = this.props.exit; + var timeouts = this.getTimeouts(); + var maybeNode = this.props.nodeRef ? undefined : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // no exit animation skip right to EXITED + + if (!exit || config.disabled) { + this.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); return; } - ++result; - }); - return result; -} -/** - * Finds children that are typically specified as `props.children`, - * but only iterates over children that are "valid components". - * - * The provided forEachFunc(child, index) will be called for each - * leaf child with the index reflecting the position relative to "valid components". - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for func. - * @returns {array} of children that meet the func return statement - */ + this.props.onExit(maybeNode); + this.safeSetState({ + status: EXITING + }, function () { + _this3.props.onExiting(maybeNode); + _this3.onTransitionEnd(timeouts.exit, function () { + _this3.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); + }); + }); + }; -function filter(children, func, context) { - var index = 0; - var result = []; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } + }; - if (func.call(context, child, index++)) { - result.push(child); - } - }); - return result; -} + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; -function find(children, func, context) { - var index = 0; - var result; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { - return; - } + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; - } + var active = true; - if (func.call(context, child, index++)) { - result = child; - } - }); - return result; -} + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; -function every(children, func, context) { - var index = 0; - var result = true; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!result) { - return; - } + this.nextCallback.cancel = function () { + active = false; + }; - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; - } + return this.nextCallback; + }; - if (!func.call(context, child, index++)) { - result = false; - } - }); - return result; -} + _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) { + this.setNextCallback(handler); + var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; -function some(children, func, context) { - var index = 0; - var result = false; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); return; } - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + if (this.props.addEndListener) { + var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], + maybeNode = _ref3[0], + maybeNextCallback = _ref3[1]; + + this.props.addEndListener(maybeNode, maybeNextCallback); } - if (func.call(context, child, index++)) { - result = true; + if (timeout != null) { + setTimeout(this.nextCallback, timeout); } - }); - return result; -} + }; -function toArray(children) { - var result = []; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + _proto.render = function render() { + var status = this.state.status; + + if (status === UNMOUNTED) { + return null; } - result.push(child); - }); - return result; -} + var _this$props = this.props, + children = _this$props.children, + _in = _this$props.in, + _mountOnEnter = _this$props.mountOnEnter, + _unmountOnExit = _this$props.unmountOnExit, + _appear = _this$props.appear, + _enter = _this$props.enter, + _exit = _this$props.exit, + _timeout = _this$props.timeout, + _addEndListener = _this$props.addEndListener, + _onEnter = _this$props.onEnter, + _onEntering = _this$props.onEntering, + _onEntered = _this$props.onEntered, + _onExit = _this$props.onExit, + _onExiting = _this$props.onExiting, + _onExited = _this$props.onExited, + _nodeRef = _this$props.nodeRef, + childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + + return ( + /*#__PURE__*/ + // allows for nested Transitions + external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, { + value: null + }, typeof children === 'function' ? children(status, childProps) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(children), childProps)) + ); + }; -/* harmony default export */ const ValidComponentChildren = ({ - map: map, - forEach: forEach, - count: count, - find: find, - filter: filter, - every: every, - some: some, - toArray: toArray -}); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js -var createChainableTypeChecker = __webpack_require__(8663); -var createChainableTypeChecker_default = /*#__PURE__*/__webpack_require__.n(createChainableTypeChecker); -;// ./src/utils/PropTypes.js + return Transition; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +Transition.contextType = TransitionGroupContext; +Transition.propTypes = false ? 0 : {}; // Name the function so it is clearer in the documentation +function noop() {} -var idPropType = prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]); -function generatedId(name) { - return function (props) { - var error = null; +Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop +}; +Transition.UNMOUNTED = UNMOUNTED; +Transition.EXITED = EXITED; +Transition.ENTERING = ENTERING; +Transition.ENTERED = ENTERED; +Transition.EXITING = EXITING; +/* harmony default export */ const esm_Transition = (Transition); +;// ./src/utils/mergeRefs.js - if (!props.generateChildId) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - error = idPropType.apply(void 0, [props].concat(args)); +var hasRefProp = parse_int_default()((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).version, 10) >= 19; +/** + * Given any number of React ref callbacks or ref objects, returns a new ref callback + * that sets all of the provided refs. This result isn't memoized, so useMergedRef + * should be preferred. + */ - if (!error && !props.id) { - 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")); +function makeMergedRef(refs) { + return function (el) { + refs.forEach(function (ref) { + if (typeof ref === 'function') { + ref(el); + } else if (ref != null) { + ref.current = el; } - } - - return error; + }); }; } -function requiredRoles() { - for (var _len2 = arguments.length, roles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - roles[_key2] = arguments[_key2]; - } +/** + * Given any number of React ref callbacks or ref objects, returns a new ref callback + * that sets all of the provided refs. + */ - return createChainableTypeChecker_default()(function (props, propName, component) { - var missing; - roles.every(function (role) { - if (!ValidComponentChildren.some(props.children, function (child) { - return child.props.bsRole === role; - })) { - missing = role; - return false; - } +function useMergedRef(refs) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(makeMergedRef(refs), refs); +} +/** + * Given a React element, returns the ref of that object in a way that's compatible + * with different React versions. + */ + +function getElementRef(reactElement) { + if (!reactElement) { + return null; + } // Accessing reactElement.ref prints a warning in React 19 and will likely be removed eventually - return true; - }); - if (missing) { - 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(', '))); + return hasRefProp ? reactElement.props.ref : reactElement.ref; +} +;// ./src/utils/withRef.js +/** + * Given a function, returns that function with the first parameter set to the referenced element. + */ +function withRef(callback, ref) { + return callback ? function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - return null; - }); + return callback.apply(void 0, [ref.current].concat(args)); + } : undefined; } -function exclusiveRoles() { - for (var _len3 = arguments.length, roles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - roles[_key3] = arguments[_key3]; - } +;// ./src/Collapse.js - return createChainableTypeChecker_default()(function (props, propName, component) { - var duplicate; - roles.every(function (role) { - var childrenWithRole = ValidComponentChildren.filter(props.children, function (child) { - return child.props.bsRole === role; - }); - if (childrenWithRole.length > 1) { - duplicate = role; - return false; - } - return true; - }); - if (duplicate) { - return new Error("(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', '))); - } - return null; - }); -} -;// ./src/PanelGroup.js +var _collapseStyles, + Collapse_jsxFileName = "/Users/harrison/react-bootstrap/src/Collapse.js"; + + -var _jsxFileName = "/Users/harrison/react-bootstrap/src/PanelGroup.js"; +var MARGINS = { + height: ['marginTop', 'marginBottom'], + width: ['marginLeft', 'marginRight'] +}; // reading a dimension prop will cause the browser to recalculate, +// which will let our animations work + +function triggerBrowserReflow(node) { + node.offsetHeight; // eslint-disable-line no-unused-expressions +} + +function getDimensionValue(dimension, elem) { + var value = elem["offset" + capitalize(dimension)]; + var margins = MARGINS[dimension]; + return value + parse_int_default()(style_default()(elem, margins[0]), 10) + parse_int_default()(style_default()(elem, margins[1]), 10); +} + +var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse in', _collapseStyles); +var Collapse_propTypes = { + /** + * Show the component; triggers the expand or collapse animation + */ + in: (prop_types_default()).bool, + + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: (prop_types_default()).bool, + + /** + * Unmount the component (remove it from the DOM) when it is collapsed + */ + unmountOnExit: (prop_types_default()).bool, + + /** + * Run the expand animation when the component mounts, if it is initially + * shown + */ + appear: (prop_types_default()).bool, + + /** + * Duration of the collapse animation in milliseconds, to ensure that + * finishing callbacks are fired even if the original browser transition end + * events are canceled + */ + timeout: (prop_types_default()).number, + + /** + * Callback fired before the component expands + */ + onEnter: (prop_types_default()).func, + /** + * Callback fired after the component starts to expand + */ + onEntering: (prop_types_default()).func, -var propTypes = { - accordion: (prop_types_default()).bool, + /** + * Callback fired after the component has expanded + */ + onEntered: (prop_types_default()).func, /** - * When `accordion` is enabled, `activeKey` controls the which child `Panel` is expanded. `activeKey` should - * match a child Panel `eventKey` prop exactly. - * - * @controllable onSelect + * Callback fired before the component collapses */ - activeKey: (prop_types_default()).any, + onExit: (prop_types_default()).func, /** - * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey` - * - * @controllable activeKey + * Callback fired after the component starts to collapse */ - onSelect: (prop_types_default()).func, + onExiting: (prop_types_default()).func, /** - * An HTML role attribute + * Callback fired after the component has collapsed */ - role: (prop_types_default()).string, + onExited: (prop_types_default()).func, /** - * A function that takes an eventKey and type and returns a - * unique id for each Panel heading and Panel Collapse. The function _must_ be a pure function, - * meaning it should always return the _same_ id for the same set of inputs. The default - * value requires that an `id` to be set for the PanelGroup. + * The dimension used when collapsing, or a function that returns the + * dimension * - * The `type` argument will either be `"body"` or `"heading"`. + * _Note: Bootstrap only partially supports 'width'! + * You will need to supply your own CSS animation for the `.width` CSS class._ + */ + dimension: prop_types_default().oneOfType([prop_types_default().oneOf(['height', 'width']), (prop_types_default()).func]), + + /** + * Function that returns the height or width of the animating DOM node * - * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` + * Allows for providing some custom logic for how much the Collapse component + * should animate in its specified dimension. Called with the current + * dimension prop value and the DOM node. */ - generateChildId: (prop_types_default()).func, + getDimensionValue: (prop_types_default()).func, /** - * HTML id attribute, required if no `generateChildId` prop - * is specified. + * ARIA role of collapsible element */ - id: generatedId('PanelGroup') -}; -var defaultProps = { - accordion: false + role: (prop_types_default()).string }; -var childContextTypes = { - $bs_panelGroup: prop_types_default().shape({ - getId: (prop_types_default()).func, - headerRole: (prop_types_default()).string, - panelRole: (prop_types_default()).string, - activeKey: (prop_types_default()).any, - onToggle: (prop_types_default()).func - }) +var Collapse_defaultProps = { + in: false, + timeout: 300, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + dimension: 'height', + getDimensionValue: getDimensionValue }; -var PanelGroup = +var Collapse = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(PanelGroup, _React$Component); + _inheritsLoose(Collapse, _React$Component); - function PanelGroup() { + function Collapse(props) { var _this; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + _this = _React$Component.call(this, props) || this; - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + _this.handleEnter = function () { + _this.childRef.current.style[_this.getDimension()] = '0'; + }; - _this.handleSelect = function (key, expanded, e) { - if (expanded) { - _this.props.onSelect(key, e); - } else if (_this.props.activeKey === key) { - _this.props.onSelect(null, e); - } + _this.handleEntering = function () { + var dimension = _this.getDimension(); + + _this.childRef.current.style[dimension] = _this._getScrollDimensionValue(_this.childRef.current, dimension); + }; + + _this.handleEntered = function () { + _this.childRef.current.style[_this.getDimension()] = null; + }; + + _this.handleExit = function () { + var dimension = _this.getDimension(); + + _this.childRef.current.style[dimension] = _this.props.getDimensionValue(dimension, _this.childRef.current) + "px"; + triggerBrowserReflow(_this.childRef.current); + }; + + _this.handleExiting = function () { + _this.childRef.current.style[_this.getDimension()] = '0'; }; + _this.childRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); return _this; } - var _proto = PanelGroup.prototype; + var _proto = Collapse.prototype; - _proto.getChildContext = function getChildContext() { - var _this$props = this.props, - activeKey = _this$props.activeKey, - accordion = _this$props.accordion, - generateChildId = _this$props.generateChildId, - id = _this$props.id; - var getId = null; + _proto.getDimension = function getDimension() { + return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; + }; // for testing - if (accordion) { - getId = generateChildId || function (key, type) { - return id ? id + "-" + type + "-" + key : null; - }; - } - return { - $bs_panelGroup: _extends({ - getId: getId, - headerRole: 'tab', - panelRole: 'tabpanel' - }, accordion && { - activeKey: activeKey, - onToggle: this.handleSelect - }) - }; + _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { + return elem["scroll" + capitalize(dimension)] + "px"; }; + /* -- Expanding -- */ - _proto.render = function render() { - var _this$props2 = this.props, - accordion = _this$props2.accordion, - className = _this$props2.className, - children = _this$props2.children, - props = _objectWithoutPropertiesLoose(_this$props2, ["accordion", "className", "children"]); - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; + _proto.render = function render() { + var _this2 = this; - if (accordion) { - elementProps.role = elementProps.role || 'tablist'; - } + var _this$props = this.props, + onEnter = _this$props.onEnter, + onEntering = _this$props.onEntering, + onEntered = _this$props.onEntered, + onExit = _this$props.onExit, + onExiting = _this$props.onExiting, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]); - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - className: classnames_default()(className, classes), + delete props.dimension; + delete props.getDimensionValue; + var handleEnter = utils_createChainedFunction(this.handleEnter, withRef(onEnter, this.childRef)); + var handleEntering = utils_createChainedFunction(this.handleEntering, withRef(onEntering, this.childRef)); + var handleEntered = utils_createChainedFunction(this.handleEntered, withRef(onEntered, this.childRef)); + var handleExit = utils_createChainedFunction(this.handleExit, withRef(onExit, this.childRef)); + var handleExiting = utils_createChainedFunction(this.handleExiting, withRef(onExiting, this.childRef)); + var ref = makeMergedRef([this.childRef, getElementRef(children)]); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(esm_Transition, _extends({}, props, { + "aria-expanded": props.role ? props.in : null, + nodeRef: this.childRef, + onEnter: handleEnter, + onEntering: handleEntering, + onEntered: handleEntered, + onExit: handleExit, + onExiting: handleExiting, __source: { - fileName: _jsxFileName, - lineNumber: 116 + fileName: Collapse_jsxFileName, + lineNumber: 226 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { - bsStyle: child.props.bsStyle || bsProps.bsStyle - }); - })); + }), function (state, innerProps) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { + ref: ref, + className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width') + })); + }); + }; + + return Collapse; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + +Collapse.propTypes = Collapse_propTypes; +Collapse.defaultProps = Collapse_defaultProps; +/* harmony default export */ const src_Collapse = (Collapse); +// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js +var activeElement = __webpack_require__(6335); +var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement); +// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js +var contains = __webpack_require__(6489); +var contains_default = /*#__PURE__*/__webpack_require__.n(contains); +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js +var isRequiredForA11y = __webpack_require__(8861); +var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js +var from = __webpack_require__(6807); +var from_default = /*#__PURE__*/__webpack_require__.n(from); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/contains.js +/* eslint-disable no-bitwise, no-cond-assign */ + +/** + * Checks if an element contains another given element. + * + * @param context the context element + * @param node the element to check + */ +function contains_contains(context, node) { + // HTML DOM and SVG DOM may have different support levels, + // so we need to check on context instead of a document root element. + if (context.contains) return context.contains(node); + if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16); +} +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/canUseDOM.js +/* harmony default export */ const canUseDOM = (!!(typeof window !== 'undefined' && window.document && window.document.createElement)); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/addEventListener.js +/* eslint-disable no-return-assign */ + +var optionsSupported = false; +var onceSupported = false; + +try { + var options = { + get passive() { + return optionsSupported = true; + }, + + get once() { + // eslint-disable-next-line no-multi-assign + return onceSupported = optionsSupported = true; + } + + }; + + if (canUseDOM) { + window.addEventListener('test', options, options); + window.removeEventListener('test', options, true); + } +} catch (e) {} +/* */ + +/** + * An `addEventListener` ponyfill, supports the `once` option + * + * @param node the element + * @param eventName the event name + * @param handle the handler + * @param options event options + */ + + +function addEventListener(node, eventName, handler, options) { + if (options && typeof options !== 'boolean' && !onceSupported) { + var once = options.once, + capture = options.capture; + var wrappedHandler = handler; + + if (!onceSupported && once) { + wrappedHandler = handler.__once || function onceHandler(event) { + this.removeEventListener(eventName, onceHandler, capture); + handler.call(this, event); + }; + + handler.__once = wrappedHandler; + } + + node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture); + } + + node.addEventListener(eventName, handler, options); +} + +/* harmony default export */ const esm_addEventListener = (addEventListener); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/removeEventListener.js +/** + * A `removeEventListener` ponyfill + * + * @param node the element + * @param eventName the event name + * @param handle the handler + * @param options event options + */ +function removeEventListener(node, eventName, handler, options) { + var capture = options && typeof options !== 'boolean' ? options.capture : options; + node.removeEventListener(eventName, handler, capture); + + if (handler.__once) { + node.removeEventListener(eventName, handler.__once, capture); + } +} + +/* harmony default export */ const esm_removeEventListener = (removeEventListener); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/listen.js + + + +function listen(node, eventName, handler, options) { + esm_addEventListener(node, eventName, handler, options); + return function () { + esm_removeEventListener(node, eventName, handler, options); }; +} + +/* harmony default export */ const esm_listen = (listen); +;// ./node_modules/@restart/hooks/esm/useCommittedRef.js + +/** + * Creates a `Ref` whose value is updated in an effect, ensuring the most recent + * value is the one rendered with. Generally only required for Concurrent mode usage + * where previous work in `render()` may be discarded before being used. + * + * This is safe to access in an event handler. + * + * @param value The `Ref` value + */ + +function useCommittedRef(value) { + const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value); + (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => { + ref.current = value; + }, [value]); + return ref; +} - return PanelGroup; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const esm_useCommittedRef = (useCommittedRef); +;// ./node_modules/@restart/hooks/esm/useEventCallback.js -PanelGroup.propTypes = propTypes; -PanelGroup.defaultProps = defaultProps; -PanelGroup.childContextTypes = childContextTypes; -/* harmony default export */ const src_PanelGroup = (uncontrollable_default()(bsClass('panel-group', PanelGroup), { - activeKey: 'onSelect' -})); -;// ./src/Accordion.js +function useEventCallback(fn) { + const ref = esm_useCommittedRef(fn); + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (...args) { + return ref.current && ref.current(...args); + }, [ref]); +} +// EXTERNAL MODULE: ./node_modules/react-overlays/node_modules/warning/warning.js +var warning = __webpack_require__(2384); +var warning_default = /*#__PURE__*/__webpack_require__.n(warning); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/ownerDocument.js +/** + * Returns the owner document of a given element. + * + * @param node the element + */ +function ownerDocument(node) { + return node && node.ownerDocument || document; +} +;// ./node_modules/react-overlays/esm/safeFindDOMNode.js -var Accordion_jsxFileName = "/Users/harrison/react-bootstrap/src/Accordion.js"; +function safeFindDOMNode(componentOrElement) { + if (componentOrElement && 'setState' in componentOrElement) { + return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(componentOrElement); + } + return componentOrElement != null ? componentOrElement : null; +} +;// ./node_modules/react-overlays/esm/ownerDocument.js -var Accordion = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Accordion, _React$Component); +/* harmony default export */ const esm_ownerDocument = (function (componentOrElement) { + return ownerDocument(safeFindDOMNode(componentOrElement)); +}); +;// ./node_modules/react-overlays/esm/useRootClose.js - function Accordion() { - return _React$Component.apply(this, arguments) || this; - } - var _proto = Accordion.prototype; - _proto.render = function render() { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroup, _extends({}, this.props, { - accordion: true, - __source: { - fileName: Accordion_jsxFileName, - lineNumber: 8 - }, - __self: this - }), this.props.children); - }; - return Accordion; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/* harmony default export */ const src_Accordion = (Accordion); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/values.js -var values = __webpack_require__(5115); -var values_default = /*#__PURE__*/__webpack_require__.n(values); -;// ./src/CloseButton.js -var CloseButton_jsxFileName = "/Users/harrison/react-bootstrap/src/CloseButton.js"; +var escapeKeyCode = 27; +var useRootClose_noop = function noop() {}; -var CloseButton_propTypes = { - label: (prop_types_default()).string.isRequired, - onClick: (prop_types_default()).func -}; -var CloseButton_defaultProps = { - label: 'Close' +function isLeftClickEvent(event) { + return event.button === 0; +} + +function isModifiedEvent(event) { + return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); +} + +var getRefTarget = function getRefTarget(ref) { + return ref && ('current' in ref ? ref.current : ref); }; +/** + * The `useRootClose` hook registers your callback on the document + * when rendered. Powers the `` component. This is used achieve modal + * style behavior where your callback is triggered when the user tries to + * interact with the rest of the document or hits the `esc` key. + * + * @param {Ref| HTMLElement} ref The element boundary + * @param {function} onRootClose + * @param {object=} options + * @param {boolean=} options.disabled + * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on + */ -var CloseButton = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CloseButton, _React$Component); - function CloseButton() { - return _React$Component.apply(this, arguments) || this; - } +function useRootClose(ref, onRootClose, _temp) { + var _ref = _temp === void 0 ? {} : _temp, + disabled = _ref.disabled, + _ref$clickTrigger = _ref.clickTrigger, + clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger; + + var preventMouseRootCloseRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false); + var onClose = onRootClose || useRootClose_noop; + var handleMouseCapture = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (e) { + var _e$composedPath$; + + var currentTarget = getRefTarget(ref); + warning_default()(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node'); + preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, (_e$composedPath$ = e.composedPath == null ? void 0 : e.composedPath()[0]) != null ? _e$composedPath$ : e.target); + }, [ref]); + var handleMouse = useEventCallback(function (e) { + if (!preventMouseRootCloseRef.current) { + onClose(e); + } + }); + var handleKeyUp = useEventCallback(function (e) { + if (e.keyCode === escapeKeyCode || e.key === 'Escape') { + onClose(e); + } + }); + (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () { + if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately + // https://github.com/facebook/react/issues/20074 - var _proto = CloseButton.prototype; + var currentEvent = window.event; + var doc = esm_ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to + // avoid false positives in the contains() check below if the target DOM + // element is removed in the React mouse callback. - _proto.render = function render() { - var _this$props = this.props, - label = _this$props.label, - onClick = _this$props.onClick; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", { - type: "button", - className: "close", - onClick: onClick, - "aria-label": label, - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 17 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - "aria-hidden": "true", - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 23 - }, - __self: this - }, "\xD7"), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 24 - }, - __self: this - }, label)); - }; + var removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true); + var removeMouseListener = esm_listen(doc, clickTrigger, function (e) { + // skip if this event is the same as the one running when we added the handlers + if (e === currentEvent) { + currentEvent = undefined; + return; + } - return CloseButton; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + handleMouse(e); + }); + var removeKeyupListener = esm_listen(doc, 'keyup', function (e) { + // skip if this event is the same as the one running when we added the handlers + if (e === currentEvent) { + currentEvent = undefined; + return; + } -CloseButton.propTypes = CloseButton_propTypes; -CloseButton.defaultProps = CloseButton_defaultProps; -/* harmony default export */ const src_CloseButton = (CloseButton); -;// ./src/Alert.js + handleKeyUp(e); + }); + var mobileSafariHackListeners = []; + + if ('ontouchstart' in doc.documentElement) { + mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) { + return esm_listen(el, 'mousemove', useRootClose_noop); + }); + } + + return function () { + removeMouseCaptureListener(); + removeMouseListener(); + removeKeyupListener(); + mobileSafariHackListeners.forEach(function (remove) { + return remove(); + }); + }; + }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse, handleKeyUp]); +} +/* harmony default export */ const esm_useRootClose = (useRootClose); +;// ./src/DropdownMenu.js -var Alert_jsxFileName = "/Users/harrison/react-bootstrap/src/Alert.js"; +var DropdownMenu_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownMenu.js"; -var Alert_propTypes = { - onDismiss: (prop_types_default()).func, - closeLabel: (prop_types_default()).string + + + +var DropdownMenu_propTypes = { + open: (prop_types_default()).bool, + pullRight: (prop_types_default()).bool, + onClose: (prop_types_default()).func, + labelledBy: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]), + onSelect: (prop_types_default()).func, + rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']) }; -var Alert_defaultProps = { - closeLabel: 'Close alert' +var DropdownMenu_defaultProps = { + bsRole: 'menu', + pullRight: false }; -var Alert = +var DropdownMenu = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Alert, _React$Component); - - function Alert() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = Alert.prototype; + _inheritsLoose(DropdownMenu, _React$Component); - _proto.render = function render() { - var _extends2; + function DropdownMenu(props) { + var _this; - var _this$props = this.props, - onDismiss = _this$props.onDismiss, - closeLabel = _this$props.closeLabel, - className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]); + _this = _React$Component.call(this, props) || this; + _this.handleRootClose = _this.handleRootClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.menuRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + return _this; + } - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _proto = DropdownMenu.prototype; - var dismissable = !!onDismiss; + _proto.getFocusableMenuItems = function getFocusableMenuItems() { + var node = this.menuRef.current; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2)); + if (!node) { + return []; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - role: "alert", - className: classnames_default()(className, classes), - __source: { - fileName: Alert_jsxFileName, - lineNumber: 36 - }, - __self: this - }), dismissable && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_CloseButton, { - onClick: onDismiss, - label: closeLabel, - __source: { - fileName: Alert_jsxFileName, - lineNumber: 41 - }, - __self: this - }), children); + return from_default()(node.querySelectorAll('[tabIndex="-1"]')); }; - return Alert; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Alert.propTypes = Alert_propTypes; -Alert.defaultProps = Alert_defaultProps; -/* harmony default export */ const src_Alert = (bsStyles(values_default()(State), State.INFO, bsClass('alert', Alert))); -;// ./src/Badge.js - + _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() { + var items = this.getFocusableMenuItems(); + var activeIndex = items.indexOf(document.activeElement); + return { + items: items, + activeIndex: activeIndex + }; + }; + _proto.focusNext = function focusNext() { + var _this$getItemsAndActi = this.getItemsAndActiveIndex(), + items = _this$getItemsAndActi.items, + activeIndex = _this$getItemsAndActi.activeIndex; -var Badge_jsxFileName = "/Users/harrison/react-bootstrap/src/Badge.js"; + if (items.length === 0) { + return; + } + var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; + items[nextIndex].focus(); + }; + _proto.focusPrevious = function focusPrevious() { + var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(), + items = _this$getItemsAndActi2.items, + activeIndex = _this$getItemsAndActi2.activeIndex; - // TODO: `pullRight` doesn't belong here. There's no special handling here. + if (items.length === 0) { + return; + } -var Badge_propTypes = { - pullRight: (prop_types_default()).bool -}; -var Badge_defaultProps = { - pullRight: false -}; + var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; + items[prevIndex].focus(); + }; -var Badge = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Badge, _React$Component); + _proto.handleKeyDown = function handleKeyDown(event) { + switch (event.key) { + case 'ArrowDown': + this.focusNext(); + event.preventDefault(); + break; - function Badge() { - return _React$Component.apply(this, arguments) || this; - } + case 'ArrowUp': + this.focusPrevious(); + event.preventDefault(); + break; - var _proto = Badge.prototype; + case 'Escape': + case 'Tab': + this.props.onClose(event, { + source: 'keydown' + }); + break; - _proto.hasContent = function hasContent(children) { - var result = false; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { - return; - } + default: + } + }; - if (child || child === 0) { - result = true; - } + _proto.handleRootClose = function handleRootClose(event) { + this.props.onClose(event, { + source: 'rootClose' }); - return result; }; _proto.render = function render() { + var _extends2, + _this2 = this; + var _this$props = this.props, + open = _this$props.open, pullRight = _this$props.pullRight, + labelledBy = _this$props.labelledBy, + onSelect = _this$props.onSelect, className = _this$props.className, + rootCloseEvent = _this$props.rootCloseEvent, children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; - var classes = _extends({}, getClassSet(bsProps), { - 'pull-right': pullRight, - // Hack for collapsing on IE8. - hidden: !this.hasContent(children) - }); + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2)); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(RootCloseWrapper, { + disabled: !open, + onRootClose: this.handleRootClose, + event: rootCloseEvent, + menuRef: this.menuRef, + __source: { + fileName: DropdownMenu_jsxFileName, + lineNumber: 117 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({ + ref: this.menuRef + }, elementProps, { + role: "menu", className: classnames_default()(className, classes), + "aria-labelledby": labelledBy, __source: { - fileName: Badge_jsxFileName, - lineNumber: 47 + fileName: DropdownMenu_jsxFileName, + lineNumber: 123 }, __self: this - }), children); + }), ValidComponentChildren.map(children, function (child) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, { + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown), + onSelect: utils_createChainedFunction(child.props.onSelect, onSelect) + }); + }))); }; - return Badge; + return DropdownMenu; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Badge.propTypes = Badge_propTypes; -Badge.defaultProps = Badge_defaultProps; -/* harmony default export */ const src_Badge = (bsClass('badge', Badge)); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js -var elementType = __webpack_require__(3105); -var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType); -;// ./src/utils/createChainedFunction.js -/** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @param {function} functions to chain - * @returns {function|null} - */ -function createChainedFunction() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); - } - - if (acc === null) { - return f; - } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - f.apply(this, args); - }; - }, null); +function RootCloseWrapper(_ref) { + var disabled = _ref.disabled, + onRootClose = _ref.onRootClose, + event = _ref.event, + children = _ref.children, + menuRef = _ref.menuRef; + esm_useRootClose(menuRef, onRootClose, { + disabled: disabled, + clickTrigger: event + }); + return children; } -/* harmony default export */ const utils_createChainedFunction = (createChainedFunction); -;// ./src/SafeAnchor.js +DropdownMenu.propTypes = DropdownMenu_propTypes; +DropdownMenu.defaultProps = DropdownMenu_defaultProps; +/* harmony default export */ const src_DropdownMenu = (bsClass('dropdown-menu', DropdownMenu)); +;// ./src/DropdownToggle.js +var DropdownToggle_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownToggle.js"; -var SafeAnchor_jsxFileName = "/Users/harrison/react-bootstrap/src/SafeAnchor.js"; -var SafeAnchor_propTypes = { - href: (prop_types_default()).string, - onClick: (prop_types_default()).func, - onKeyDown: (prop_types_default()).func, - disabled: (prop_types_default()).bool, - role: (prop_types_default()).string, - tabIndex: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]), - /** - * this is sort of silly but needed for Button - */ - componentClass: (elementType_default()) +var DropdownToggle_propTypes = { + noCaret: (prop_types_default()).bool, + open: (prop_types_default()).bool, + title: (prop_types_default()).string, + useAnchor: (prop_types_default()).bool }; -var SafeAnchor_defaultProps = { - componentClass: 'a' +var DropdownToggle_defaultProps = { + open: false, + useAnchor: false, + bsRole: 'toggle' }; -function isTrivialHref(href) { - return !href || href.trim() === '#'; -} -/** - * There are situations due to browser quirks or Bootstrap CSS where - * an anchor tag is needed, when semantically a button tag is the - * better choice. SafeAnchor ensures that when an anchor is used like a - * button its accessible. It also emulates input `disabled` behavior for - * links, which is usually desirable for Buttons, NavItems, MenuItems, etc. - */ - - -var SafeAnchor = +var DropdownToggle = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(SafeAnchor, _React$Component); - - function SafeAnchor(props, context) { - var _this; + _inheritsLoose(DropdownToggle, _React$Component); - _this = _React$Component.call(this, props, context) || this; - _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; + function DropdownToggle() { + return _React$Component.apply(this, arguments) || this; } - var _proto = SafeAnchor.prototype; - - _proto.handleClick = function handleClick(event) { - var _this$props = this.props, - disabled = _this$props.disabled, - href = _this$props.href, - onClick = _this$props.onClick; - - if (disabled || isTrivialHref(href)) { - event.preventDefault(); - } - - if (disabled) { - event.stopPropagation(); - return; - } - - if (onClick) { - onClick(event); - } - }; - - _proto.handleKeyDown = function handleKeyDown(event) { - if (event.key === ' ') { - event.preventDefault(); - this.handleClick(event); - } - }; + var _proto = DropdownToggle.prototype; _proto.render = function render() { - var _this$props2 = this.props, - Component = _this$props2.componentClass, - disabled = _this$props2.disabled, - onKeyDown = _this$props2.onKeyDown, - props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]); - - if (isTrivialHref(props.href)) { - props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node - // otherwise, the cursor incorrectly styled (except with role='button') - - props.href = props.href || '#'; - } + var _this$props = this.props, + noCaret = _this$props.noCaret, + open = _this$props.open, + useAnchor = _this$props.useAnchor, + bsClass = _this$props.bsClass, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]); - if (disabled) { - props.tabIndex = -1; - props.style = _extends({ - pointerEvents: 'none' - }, props.style); - } + delete props.bsRole; + var Component = useAnchor ? src_SafeAnchor : src_Button; + var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the + // underlying component, to allow it to render size and style variants. + // FIXME: Should this really fall back to `title` as children? return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { - onClick: this.handleClick, - onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown), + role: "button", + className: classnames_default()(className, bsClass), + "aria-haspopup": true, + "aria-expanded": open, __source: { - fileName: SafeAnchor_jsxFileName, - lineNumber: 88 + fileName: DropdownToggle_jsxFileName, + lineNumber: 45 + }, + __self: this + }), children || props.title, useCaret && ' ', useCaret && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "caret", + __source: { + fileName: DropdownToggle_jsxFileName, + lineNumber: 54 }, __self: this })); }; - return SafeAnchor; + return DropdownToggle; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -SafeAnchor.propTypes = SafeAnchor_propTypes; -SafeAnchor.defaultProps = SafeAnchor_defaultProps; -/* harmony default export */ const src_SafeAnchor = (SafeAnchor); -;// ./src/BreadcrumbItem.js +DropdownToggle.propTypes = DropdownToggle_propTypes; +DropdownToggle.defaultProps = DropdownToggle_defaultProps; +/* harmony default export */ const src_DropdownToggle = (bsClass('dropdown-toggle', DropdownToggle)); +;// ./src/Dropdown.js -var BreadcrumbItem_jsxFileName = "/Users/harrison/react-bootstrap/src/BreadcrumbItem.js"; +var Dropdown_jsxFileName = "/Users/harrison/react-bootstrap/src/Dropdown.js"; -var BreadcrumbItem_propTypes = { + + + + + + + + + + + + + + +var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole; +var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole; +var Dropdown_propTypes = { /** - * If set to true, renders `span` instead of `a` + * The menu will open above the dropdown button, instead of below it. */ - active: (prop_types_default()).bool, + dropup: (prop_types_default()).bool, /** - * `href` attribute for the inner `a` element + * An html id attribute, necessary for assistive technologies, such as screen readers. + * @type {string|number} + * @required */ - href: (prop_types_default()).string, + id: isRequiredForA11y_default()(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])), + componentClass: (elementType_default()), /** - * `title` attribute for the inner `a` element + * The children of a Dropdown may be a `` or a ``. + * @type {node} */ - title: (prop_types_default()).node, + children: (prop_types_default()).node, /** - * `target` attribute for the inner `a` element + * Whether or not component is disabled. */ - target: (prop_types_default()).string -}; -var BreadcrumbItem_defaultProps = { - active: false -}; - -var BreadcrumbItem = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(BreadcrumbItem, _React$Component); - - function BreadcrumbItem() { - return _React$Component.apply(this, arguments) || this; - } + disabled: (prop_types_default()).bool, - var _proto = BreadcrumbItem.prototype; + /** + * Align the menu to the right side of the Dropdown toggle + */ + pullRight: (prop_types_default()).bool, - _proto.render = function render() { - var _this$props = this.props, - active = _this$props.active, - href = _this$props.href, - title = _this$props.title, - target = _this$props.target, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active . + /** + * Whether or not the Dropdown is visible. + * + * @controllable onToggle + */ + open: (prop_types_default()).bool, + defaultOpen: (prop_types_default()).bool, + /** + * A callback fired when the Dropdown wishes to change visibility. Called with the requested + * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. + * + * ```js + * function(Boolean isOpen, Object event, { String source }) {} + * ``` + * @controllable open + */ + onToggle: (prop_types_default()).func, - var linkProps = { - href: href, - title: title, - target: target - }; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { - className: classnames_default()(className, { - active: active - }), - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 38 - }, - __self: this - }, active ? external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, props, { - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 40 - }, - __self: this - })) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, props, linkProps, { - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 42 - }, - __self: this - }))); - }; + /** + * A callback fired when a menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` + */ + onSelect: (prop_types_default()).func, - return BreadcrumbItem; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + /** + * If `'menuitem'`, causes the dropdown to behave like a menu item rather than + * a menu button. + */ + role: (prop_types_default()).string, -BreadcrumbItem.propTypes = BreadcrumbItem_propTypes; -BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps; -/* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem); -;// ./src/Breadcrumb.js + /** + * Which event when fired outside the component will cause it to be closed + * + * *Note: For custom dropdown components, you will have to pass the + * `rootCloseEvent` to `` in your custom dropdown menu + * component ([similarly to how it is implemented in ``](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).* + */ + rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']), + /** + * @private + */ + onMouseEnter: (prop_types_default()).func, + /** + * @private + */ + onMouseLeave: (prop_types_default()).func +}; +var Dropdown_defaultProps = { + componentClass: src_ButtonGroup +}; -var Breadcrumb_jsxFileName = "/Users/harrison/react-bootstrap/src/Breadcrumb.js"; +var Dropdown = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Dropdown, _React$Component); + function Dropdown(props, context) { + var _this; + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._focusInDropdown = false; + _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + _this.lastOpenEventType = null; + return _this; + } + var _proto = Dropdown.prototype; + _proto.componentDidMount = function componentDidMount() { + this.focusNextOnOpen(); + }; -var Breadcrumb = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Breadcrumb, _React$Component); + _proto.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { + if (!nextProps.open && this.props.open) { + this._focusInDropdown = contains_default()(this.containerRef.current.querySelector('[role=menu]'), activeElement_default()(document)); + } + }; - function Breadcrumb() { - return _React$Component.apply(this, arguments) || this; - } + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var open = this.props.open; + var prevOpen = prevProps.open; - var _proto = Breadcrumb.prototype; + if (open && !prevOpen) { + this.focusNextOnOpen(); + } - _proto.render = function render() { - var _this$props = this.props, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + if (!open && prevOpen) { + // if focus hasn't already moved from the menu let's return it + // to the toggle + if (this._focusInDropdown) { + this._focusInDropdown = false; + this.focus(); + } + } + }; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + _proto.focus = function focus() { + var toggle = this.containerRef.current.querySelector('[role=button][aria-haspopup]'); - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", _extends({}, elementProps, { - role: "navigation", - "aria-label": "breadcrumbs", - className: classnames_default()(className, classes), - __source: { - fileName: Breadcrumb_jsxFileName, - lineNumber: 15 - }, - __self: this - })); + if (toggle && toggle.focus) { + toggle.focus(); + } }; - return Breadcrumb; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + _proto.focusNextOnOpen = function focusNextOnOpen() { + var menu = this.menu; -Breadcrumb.Item = src_BreadcrumbItem; -/* harmony default export */ const src_Breadcrumb = (bsClass('breadcrumb', Breadcrumb)); -;// ./src/Button.js + if (!menu || !menu.focusNext) { + return; + } + if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { + menu.focusNext(); + } + }; + + _proto.handleClick = function handleClick(event) { + // @hmhealey I added this because, when migrating the "passes open, event, and source correctly when closed with click" + // test to use RTL, the root close handler started triggering when clicking on the menu button toggle which seems + // like it shouldn't happen. We had similar issues with React 17 where overlays would open and immediately close, so + // while that didn't happen in the tests using React 17, I'd be willing to guess that ReactTestUtils hid that from us. + event.stopPropagation(); + if (this.props.disabled) { + return; + } + this.toggleOpen(event, { + source: 'click' + }); + }; -var Button_jsxFileName = "/Users/harrison/react-bootstrap/src/Button.js"; + _proto.handleClose = function handleClose(event, eventDetails) { + if (!this.props.open) { + return; + } + this.toggleOpen(event, eventDetails); + }; + _proto.handleKeyDown = function handleKeyDown(event) { + if (this.props.disabled) { + return; + } + switch (event.key) { + case 'ArrowDown': + if (!this.props.open) { + this.toggleOpen(event, { + source: 'keydown' + }); + } else if (this.menu.focusNext) { + this.menu.focusNext(); + } + event.preventDefault(); + break; + case 'Escape': + case 'Tab': + this.handleClose(event, { + source: 'keydown' + }); + break; + default: + } + }; -var Button_propTypes = { - active: (prop_types_default()).bool, - disabled: (prop_types_default()).bool, - block: (prop_types_default()).bool, - onClick: (prop_types_default()).func, - componentClass: (elementType_default()), - href: (prop_types_default()).string, + _proto.toggleOpen = function toggleOpen(event, eventDetails) { + var open = !this.props.open; - /** - * Defines HTML button type attribute - * @defaultValue 'button' - */ - type: prop_types_default().oneOf(['button', 'reset', 'submit']) -}; -var Button_defaultProps = { - active: false, - block: false, - disabled: false -}; + if (open) { + this.lastOpenEventType = eventDetails.source; + } -var Button = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Button, _React$Component); + if (this.props.onToggle) { + this.props.onToggle(open, event, eventDetails); + } + }; - function Button() { - return _React$Component.apply(this, arguments) || this; - } + _proto.renderMenu = function renderMenu(child, _ref) { + var _this2 = this; - var _proto = Button.prototype; + var id = _ref.id, + onSelect = _ref.onSelect, + rootCloseEvent = _ref.rootCloseEvent, + props = _objectWithoutPropertiesLoose(_ref, ["id", "onSelect", "rootCloseEvent"]); - _proto.renderAnchor = function renderAnchor(elementProps, className) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { - className: classnames_default()(className, elementProps.disabled && 'disabled'), - __source: { - fileName: Button_jsxFileName, - lineNumber: 41 - }, - __self: this + var ref = makeMergedRef([function (el) { + _this2.menu = el; + }, getElementRef(child)]); + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { + ref: ref, + labelledBy: id, + bsClass: prefix(props, 'menu'), + onClose: utils_createChainedFunction(child.props.onClose, this.handleClose), + onSelect: utils_createChainedFunction(child.props.onSelect, onSelect, function (key, event) { + return _this2.handleClose(event, { + source: 'select' + }); + }), + rootCloseEvent: rootCloseEvent })); }; - _proto.renderButton = function renderButton(_ref, className) { - var componentClass = _ref.componentClass, - elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]); - - var Component = componentClass || 'button'; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - type: elementProps.type || 'button', - className: className, - __source: { - fileName: Button_jsxFileName, - lineNumber: 52 - }, - __self: this + _proto.renderToggle = function renderToggle(child, props) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { + bsClass: prefix(props, 'toggle'), + onClick: utils_createChainedFunction(child.props.onClick, this.handleClick), + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown) })); }; _proto.render = function render() { - var _extends2; + var _classes, + _this3 = this; var _this$props = this.props, - active = _this$props.active, - block = _this$props.block, + Component = _this$props.componentClass, + id = _this$props.id, + dropup = _this$props.dropup, + disabled = _this$props.disabled, + pullRight = _this$props.pullRight, + open = _this$props.open, + onSelect = _this$props.onSelect, + role = _this$props.role, + bsClass = _this$props.bsClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]); - - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - - var classes = _extends({}, getClassSet(bsProps), (_extends2 = { - active: active - }, _extends2[prefix(bsProps, 'block')] = block, _extends2)); + rootCloseEvent = _this$props.rootCloseEvent, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]); - var fullClassName = classnames_default()(className, classes); + delete props.onToggle; + var missingRoleError = getMissingRoleError('Dropdown', children, TOGGLE_ROLE, MENU_ROLE); - if (elementProps.href) { - return this.renderAnchor(elementProps, fullClassName); + if (missingRoleError) { + false ? 0 : void 0; } - return this.renderButton(elementProps, fullClassName); - }; - - return Button; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Button.propTypes = Button_propTypes; -Button.defaultProps = Button_defaultProps; -/* harmony default export */ const src_Button = (bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button)))); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js -var lib_all = __webpack_require__(3526); -var all_default = /*#__PURE__*/__webpack_require__.n(lib_all); -;// ./src/ButtonGroup.js - - - -var ButtonGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonGroup.js"; - + var duplicateRoleError = getDuplicateRoleError('Dropdown', children, MENU_ROLE); + if (duplicateRoleError) { + false ? 0 : void 0; + } + var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); + if (dropup) { + classes[bsClass] = false; + classes.dropup = true; + } // This intentionally forwards bsSize and bsStyle (if set) to the + // underlying component, to allow it to render size and style variants. -var ButtonGroup_propTypes = { - vertical: (prop_types_default()).bool, - justified: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + ref: this.containerRef, + style: { + display: 'contents' + }, + __source: { + fileName: Dropdown_jsxFileName, + lineNumber: 327 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + className: classnames_default()(className, classes), + __source: { + fileName: Dropdown_jsxFileName, + lineNumber: 328 + }, + __self: this + }), ValidComponentChildren.map(children, function (child) { + switch (child.props.bsRole) { + case TOGGLE_ROLE: + return _this3.renderToggle(child, { + id: id, + disabled: disabled, + open: open, + role: role, + bsClass: bsClass + }); - /** - * Display block buttons; only useful when used with the "vertical" prop. - * @type {bool} - */ - block: all_default()((prop_types_default()).bool, function (_ref) { - var block = _ref.block, - vertical = _ref.vertical; - return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null; - }) -}; -var ButtonGroup_defaultProps = { - block: false, - justified: false, - vertical: false -}; + case MENU_ROLE: + return _this3.renderMenu(child, { + id: id, + open: open, + pullRight: pullRight, + bsClass: bsClass, + onSelect: onSelect, + rootCloseEvent: rootCloseEvent + }); -var ButtonGroup = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(ButtonGroup, _React$Component); + default: + return child; + } + }))); + }; - function ButtonGroup() { - return _React$Component.apply(this, arguments) || this; - } + return Dropdown; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var _proto = ButtonGroup.prototype; +Dropdown.propTypes = Dropdown_propTypes; +Dropdown.defaultProps = Dropdown_defaultProps; +bsClass('dropdown', Dropdown); +var UncontrolledDropdown = uncontrollable_default()(Dropdown, { + open: 'onToggle' +}); +UncontrolledDropdown.Toggle = src_DropdownToggle; +UncontrolledDropdown.Menu = src_DropdownMenu; +/* harmony default export */ const src_Dropdown = (UncontrolledDropdown); +;// ./src/utils/splitComponentProps.js - _proto.render = function render() { - var _extends2; +function splitComponentProps(props, Component) { + var componentPropTypes = Component.propTypes; + var parentProps = {}; + var childProps = {}; - var _this$props = this.props, - block = _this$props.block, - justified = _this$props.justified, - vertical = _this$props.vertical, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]); + entries_default()(props).forEach(function (_ref) { + var propName = _ref[0], + propValue = _ref[1]; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + if (componentPropTypes[propName]) { + parentProps[propName] = propValue; + } else { + childProps[propName] = propValue; + } + }); - 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)); + return [parentProps, childProps]; +} +;// ./src/DropdownButton.js - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - className: classnames_default()(className, classes), - __source: { - fileName: ButtonGroup_jsxFileName, - lineNumber: 52 - }, - __self: this - })); - }; - return ButtonGroup; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -ButtonGroup.propTypes = ButtonGroup_propTypes; -ButtonGroup.defaultProps = ButtonGroup_defaultProps; -/* harmony default export */ const src_ButtonGroup = (bsClass('btn-group', ButtonGroup)); -;// ./src/ButtonToolbar.js +var DropdownButton_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownButton.js"; -var ButtonToolbar_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonToolbar.js"; +var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, { + // Toggle props. + bsStyle: (prop_types_default()).string, + bsSize: (prop_types_default()).string, + title: (prop_types_default()).node.isRequired, + noCaret: (prop_types_default()).bool, + // Override generated docs from . + /** + * @private + */ + children: (prop_types_default()).node +}); -var ButtonToolbar = +var DropdownButton = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(ButtonToolbar, _React$Component); + _inheritsLoose(DropdownButton, _React$Component); - function ButtonToolbar() { + function DropdownButton() { return _React$Component.apply(this, arguments) || this; } - var _proto = ButtonToolbar.prototype; + var _proto = DropdownButton.prototype; _proto.render = function render() { var _this$props = this.props, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + bsSize = _this$props.bsSize, + bsStyle = _this$props.bsStyle, + title = _this$props.title, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "children"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent), + dropdownProps = _splitComponentProps[0], + toggleProps = _splitComponentProps[1]; - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - role: "toolbar", - className: classnames_default()(className, classes), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown, _extends({}, dropdownProps, { + bsSize: bsSize, + bsStyle: bsStyle, __source: { - fileName: ButtonToolbar_jsxFileName, - lineNumber: 14 + fileName: DropdownButton_jsxFileName, + lineNumber: 33 }, __self: this - })); + }), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Toggle, _extends({}, toggleProps, { + bsSize: bsSize, + bsStyle: bsStyle, + __source: { + fileName: DropdownButton_jsxFileName, + lineNumber: 34 + }, + __self: this + }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Menu, { + __source: { + fileName: DropdownButton_jsxFileName, + lineNumber: 38 + }, + __self: this + }, children)); }; - return ButtonToolbar; + return DropdownButton; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/* harmony default export */ const src_ButtonToolbar = (bsClass('btn-toolbar', ButtonToolbar)); -;// ./src/CarouselCaption.js - - - -var CarouselCaption_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselCaption.js"; - +DropdownButton.propTypes = DropdownButton_propTypes; +/* harmony default export */ const src_DropdownButton = (DropdownButton); +;// ./src/Fade.js -var CarouselCaption_propTypes = { - componentClass: (elementType_default()) -}; -var CarouselCaption_defaultProps = { - componentClass: 'div' -}; +var _fadeStyles, + Fade_jsxFileName = "/Users/harrison/react-bootstrap/src/Fade.js"; -var CarouselCaption = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CarouselCaption, _React$Component); - function CarouselCaption() { - return _React$Component.apply(this, arguments) || this; - } - var _proto = CarouselCaption.prototype; - _proto.render = function render() { - var _this$props = this.props, - Component = _this$props.componentClass, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - className: classnames_default()(className, classes), - __source: { - fileName: CarouselCaption_jsxFileName, - lineNumber: 23 - }, - __self: this - })); - }; - return CarouselCaption; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +var Fade_propTypes = { + /** + * Show the component; triggers the fade in or fade out animation + */ + in: (prop_types_default()).bool, -CarouselCaption.propTypes = CarouselCaption_propTypes; -CarouselCaption.defaultProps = CarouselCaption_defaultProps; -/* harmony default export */ const src_CarouselCaption = (bsClass('carousel-caption', CarouselCaption)); -// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} -var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(6003); -var 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_); -// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js -var transition = __webpack_require__(1685); -;// ./src/CarouselItem.js + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: (prop_types_default()).bool, + /** + * Unmount the component (remove it from the DOM) when it is faded out + */ + unmountOnExit: (prop_types_default()).bool, + /** + * Run the fade in animation when the component mounts, if it is initially + * shown + */ + appear: (prop_types_default()).bool, + /** + * Duration of the fade animation in milliseconds, to ensure that finishing + * callbacks are fired even if the original browser transition end events are + * canceled + */ + timeout: (prop_types_default()).number, -var CarouselItem_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselItem.js"; + /** + * Callback fired before the component fades in + */ + onEnter: (prop_types_default()).func, + /** + * Callback fired after the component starts to fade in + */ + onEntering: (prop_types_default()).func, + /** + * Callback fired after the has component faded in + */ + onEntered: (prop_types_default()).func, + /** + * Callback fired before the component fades out + */ + onExit: (prop_types_default()).func, + /** + * Callback fired after the component starts to fade out + */ + onExiting: (prop_types_default()).func, -var CarouselItem_propTypes = { - direction: prop_types_default().oneOf(['prev', 'next']), - onAnimateOutEnd: (prop_types_default()).func, - active: (prop_types_default()).bool, - animateIn: (prop_types_default()).bool, - animateOut: (prop_types_default()).bool, - index: (prop_types_default()).number -}; -var CarouselItem_defaultProps = { - active: false, - animateIn: false, - animateOut: false + /** + * Callback fired after the component has faded out + */ + onExited: (prop_types_default()).func }; +var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'in', _fadeStyles[ENTERED] = 'in', _fadeStyles); +var Fade = external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (_ref, ref) { + var className = _ref.className, + children = _ref.children, + _ref$in = _ref.in, + inProp = _ref$in === void 0 ? false : _ref$in, + _ref$timeout = _ref.timeout, + timeout = _ref$timeout === void 0 ? 300 : _ref$timeout, + _ref$mountOnEnter = _ref.mountOnEnter, + mountOnEnter = _ref$mountOnEnter === void 0 ? false : _ref$mountOnEnter, + _ref$unmountOnExit = _ref.unmountOnExit, + unmountOnExit = _ref$unmountOnExit === void 0 ? false : _ref$unmountOnExit, + _ref$appear = _ref.appear, + appear = _ref$appear === void 0 ? false : _ref$appear, + onEnter = _ref.onEnter, + onEntering = _ref.onEntering, + onEntered = _ref.onEntered, + onExit = _ref.onExit, + onExiting = _ref.onExiting, + onExited = _ref.onExited, + props = _objectWithoutPropertiesLoose(_ref, ["className", "children", "in", "timeout", "mountOnEnter", "unmountOnExit", "appear", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"]); + + var childRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null); + var setChildRef = useMergedRef([childRef, getElementRef(children), ref]); // Transition doesn't pass the node as the first parameter of these callbacks when nodeRef is used, + // so we add that ourselves to keep the API for Fade consistent + + var callbacks = { + onEnter: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEnter, childRef); + }, [onEnter]), + onEntering: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEntering, childRef); + }, [onEntering]), + onEntered: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEntered, childRef); + }, [onEntered]), + onExit: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExit, childRef); + }, [onExit]), + onExiting: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExiting, childRef); + }, [onExiting]), + onExited: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExited, childRef); + }, [onExited]) + }; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(esm_Transition, _extends({}, props, callbacks, { + in: inProp, + timeout: timeout, + mountOnEnter: mountOnEnter, + unmountOnExit: unmountOnExit, + appear: appear, + nodeRef: childRef, + __source: { + fileName: Fade_jsxFileName, + lineNumber: 107 + }, + __self: this + }), function (status, innerProps) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { + ref: setChildRef, + className: classnames_default()('fade', className, children.props.className, fadeStyles[status]) + })); + }); +}); +Fade.displayName = 'Fade'; +Fade.propTypes = Fade_propTypes; +/* harmony default export */ const src_Fade = (Fade); +;// ./src/Form.js -var CarouselItem = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CarouselItem, _React$Component); - - function CarouselItem(props, context) { - var _this; - - _this = _React$Component.call(this, props, context) || this; - _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.state = { - direction: null - }; - _this.isUnmounted = false; - return _this; - } - - var _proto = CarouselItem.prototype; - - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (this.props.active !== nextProps.active) { - this.setState({ - direction: null - }); - } - }; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var _this2 = this; - - var active = this.props.active; - var prevActive = prevProps.active; - if (!active && prevActive) { - transition/* default.end */.Ay.end(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this), this.handleAnimateOutEnd); - } - if (active !== prevActive) { - setTimeout(function () { - return _this2.startAnimation(); - }, 20); - } - }; +var Form_jsxFileName = "/Users/harrison/react-bootstrap/src/Form.js"; - _proto.componentWillUnmount = function componentWillUnmount() { - this.isUnmounted = true; - }; - _proto.handleAnimateOutEnd = function handleAnimateOutEnd() { - if (this.isUnmounted) { - return; - } - if (this.props.onAnimateOutEnd) { - this.props.onAnimateOutEnd(this.props.index); - } - }; - _proto.startAnimation = function startAnimation() { - if (this.isUnmounted) { - return; - } - this.setState({ - direction: this.props.direction === 'prev' ? 'right' : 'left' - }); - }; +var Form_propTypes = { + horizontal: (prop_types_default()).bool, + inline: (prop_types_default()).bool, + componentClass: (elementType_default()) +}; +var Form_defaultProps = { + horizontal: false, + inline: false, + componentClass: 'form' +}; + +var Form = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Form, _React$Component); + + function Form() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = Form.prototype; _proto.render = function render() { var _this$props = this.props, - direction = _this$props.direction, - active = _this$props.active, - animateIn = _this$props.animateIn, - animateOut = _this$props.animateOut, + horizontal = _this$props.horizontal, + inline = _this$props.inline, + Component = _this$props.componentClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["horizontal", "inline", "componentClass", "className"]); - delete props.onAnimateOutEnd; - delete props.index; - var classes = { - item: true, - active: active && !animateIn || animateOut - }; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - if (direction && active && animateIn) { - classes[direction] = true; + var classes = []; + + if (horizontal) { + classes.push(prefix(bsProps, 'horizontal')); } - if (this.state.direction && (animateIn || animateOut)) { - classes[this.state.direction] = true; + if (inline) { + classes.push(prefix(bsProps, 'inline')); } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, props, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: CarouselItem_jsxFileName, - lineNumber: 102 + fileName: Form_jsxFileName, + lineNumber: 41 }, __self: this })); }; - return CarouselItem; + return Form; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -CarouselItem.propTypes = CarouselItem_propTypes; -CarouselItem.defaultProps = CarouselItem_defaultProps; -/* harmony default export */ const src_CarouselItem = (CarouselItem); -;// ./src/Glyphicon.js +Form.propTypes = Form_propTypes; +Form.defaultProps = Form_defaultProps; +/* harmony default export */ const src_Form = (bsClass('form', Form)); +;// ./src/FormControlFeedback.js -var Glyphicon_jsxFileName = "/Users/harrison/react-bootstrap/src/Glyphicon.js"; +var FormControlFeedback_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlFeedback.js"; -var Glyphicon_propTypes = { - /** - * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons - */ - glyph: (prop_types_default()).string.isRequired + +var FormControlFeedback_defaultProps = { + bsRole: 'feedback' }; -var Glyphicon = +var FormControlFeedback = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Glyphicon, _React$Component); + _inheritsLoose(FormControlFeedback, _React$Component); - function Glyphicon() { + function FormControlFeedback() { return _React$Component.apply(this, arguments) || this; } - var _proto = Glyphicon.prototype; + var _proto = FormControlFeedback.prototype; - _proto.render = function render() { - var _extends2; + _proto.getGlyph = function getGlyph(validationState) { + switch (validationState) { + case 'success': + return 'ok'; - var _this$props = this.props, - glyph = _this$props.glyph, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]); + case 'warning': + return 'warning-sign'; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + case 'error': + return 'remove'; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2)); + default: + return null; + } + }; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + _proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) { + var glyph = this.getGlyph(formGroup && formGroup.validationState); + + if (!glyph) { + return null; + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, _extends({}, elementProps, { + glyph: glyph, className: classnames_default()(className, classes), __source: { - fileName: Glyphicon_jsxFileName, - lineNumber: 30 + fileName: FormControlFeedback_jsxFileName, + lineNumber: 33 }, __self: this })); }; - return Glyphicon; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); -Glyphicon.propTypes = Glyphicon_propTypes; -/* harmony default export */ const src_Glyphicon = (bsClass('glyphicon', Glyphicon)); -;// ./src/Carousel.js + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + var classes = getClassSet(bsProps); + if (!children) { + return this.renderDefaultFeedback(this.context, className, classes, elementProps); + } + var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(children); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, _extends({}, elementProps, { + className: classnames_default()(child.props.className, className, classes) + })); + }; -var Carousel_jsxFileName = "/Users/harrison/react-bootstrap/src/Carousel.js"; + return FormControlFeedback; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +FormControlFeedback.defaultProps = FormControlFeedback_defaultProps; +FormControlFeedback.contextType = src_FormGroupContext; +/* harmony default export */ const src_FormControlFeedback = (bsClass('form-control-feedback', FormControlFeedback)); +;// ./src/FormControlStatic.js +var FormControlStatic_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlStatic.js"; - // TODO: `slide` should be `animate`. -// TODO: Use uncontrollable. +var FormControlStatic_propTypes = { + componentClass: (elementType_default()) +}; +var FormControlStatic_defaultProps = { + componentClass: 'p' +}; -var Carousel_propTypes = { - slide: (prop_types_default()).bool, - indicators: (prop_types_default()).bool, +var FormControlStatic = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormControlStatic, _React$Component); - /** - * The amount of time to delay between automatically cycling an item. - * If `null`, carousel will not automatically cycle. - */ - interval: (prop_types_default()).number, - controls: (prop_types_default()).bool, - pauseOnHover: (prop_types_default()).bool, - wrap: (prop_types_default()).bool, + function FormControlStatic() { + return _React$Component.apply(this, arguments) || this; + } - /** - * Callback fired when the active item changes. - * - * ```js - * (eventKey: any, ?event: Object) => any - * ``` - * - * If this callback takes two or more arguments, the second argument will - * be a persisted event object with `direction` set to the direction of the - * transition. - */ - onSelect: (prop_types_default()).func, - onSlideEnd: (prop_types_default()).func, - activeIndex: (prop_types_default()).number, - defaultActiveIndex: (prop_types_default()).number, - direction: prop_types_default().oneOf(['prev', 'next']), - prevIcon: (prop_types_default()).node, + var _proto = FormControlStatic.prototype; - /** - * Label shown to screen readers only, can be used to show the previous element - * in the carousel. - * Set to null to deactivate. - */ - prevLabel: (prop_types_default()).string, - nextIcon: (prop_types_default()).node, + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - /** - * Label shown to screen readers only, can be used to show the next element - * in the carousel. - * Set to null to deactivate. - */ - nextLabel: (prop_types_default()).string -}; -var Carousel_defaultProps = { - slide: true, - interval: 5000, - pauseOnHover: true, - wrap: true, - indicators: true, - controls: true, - prevIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { - glyph: "chevron-left", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 71 - }, - __self: undefined - }), - prevLabel: 'Previous', - nextIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { - glyph: "chevron-right", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 73 - }, - __self: undefined - }), - nextLabel: 'Next' -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: FormControlStatic_jsxFileName, + lineNumber: 23 + }, + __self: this + })); + }; -var Carousel = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Carousel, _React$Component); + return FormControlStatic; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - function Carousel(props, context) { - var _this; +FormControlStatic.propTypes = FormControlStatic_propTypes; +FormControlStatic.defaultProps = FormControlStatic_defaultProps; +/* harmony default export */ const src_FormControlStatic = (bsClass('form-control-static', FormControlStatic)); +;// ./src/FormControl.js - _this = _React$Component.call(this, props, context) || this; - _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); - var defaultActiveIndex = props.defaultActiveIndex; - _this.state = { - activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, - previousActiveIndex: null, - direction: null - }; - _this.isUnmounted = false; - return _this; - } - var _proto = Carousel.prototype; - _proto.componentDidMount = function componentDidMount() { - this.waitForNext(); - }; +var FormControl_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControl.js"; - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - var activeIndex = this.getActiveIndex(); - if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { - clearTimeout(this.timeout); - this.setState({ - previousActiveIndex: activeIndex, - direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) - }); - } - if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) { - this.setState({ - activeIndex: 0, - previousActiveIndex: null, - direction: null - }); - } - }; - _proto.UNSAFE_componentWillUnmount = function UNSAFE_componentWillUnmount() { - clearTimeout(this.timeout); - this.isUnmounted = true; - }; - _proto.getActiveIndex = function getActiveIndex() { - var activeIndexProp = this.props.activeIndex; - return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; - }; - _proto.getDirection = function getDirection(prevIndex, index) { - if (prevIndex === index) { - return null; - } - return prevIndex > index ? 'prev' : 'next'; - }; - _proto.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { - var _this2 = this; - this.setState({ - previousActiveIndex: null, - direction: null - }, function () { - _this2.waitForNext(); - if (_this2.props.onSlideEnd) { - _this2.props.onSlideEnd(); - } - }); - }; +var FormControl_propTypes = { + componentClass: (elementType_default()), - _proto.handleMouseOut = function handleMouseOut() { - if (this.isPaused) { - this.play(); - } - }; + /** + * Only relevant if `componentClass` is `'input'`. + */ + type: (prop_types_default()).string, - _proto.handleMouseOver = function handleMouseOver() { - if (this.props.pauseOnHover) { - this.pause(); - } - }; + /** + * Uses `controlId` from `` if not explicitly specified. + */ + id: (prop_types_default()).string, - _proto.handleNext = function handleNext(e) { - var index = this.getActiveIndex() + 1; - var count = ValidComponentChildren.count(this.props.children); + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: (prop_types_default()).func +}; +var FormControl_defaultProps = { + componentClass: 'input' +}; - if (index > count - 1) { - if (!this.props.wrap) { - return; - } +var FormControl = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormControl, _React$Component); - index = 0; + function FormControl() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = FormControl.prototype; + + _proto.render = function render() { + var formGroup = this.context; + var controlId = formGroup && formGroup.controlId; + + var _this$props = this.props, + Component = _this$props.componentClass, + type = _this$props.type, + _this$props$id = _this$props.id, + id = _this$props$id === void 0 ? controlId : _this$props$id, + inputRef = _this$props.inputRef, + className = _this$props.className, + bsSize = _this$props.bsSize, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "type", "id", "inputRef", "className", "bsSize"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + false ? 0 : void 0; // input[type="file"] should not have .form-control. + + var classes; + + if (type !== 'file') { + classes = getClassSet(bsProps); + } // If user provides a size, make sure to append it to classes as input- + // e.g. if bsSize is small, it will append input-sm + + + if (bsSize) { + var size = SIZE_MAP[bsSize] || bsSize; + classes[prefix({ + bsClass: 'input' + }, size)] = true; } - this.select(index, e, 'next'); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + type: type, + id: id, + ref: inputRef, + className: classnames_default()(className, classes), + __source: { + fileName: FormControl_jsxFileName, + lineNumber: 79 + }, + __self: this + })); }; - _proto.handlePrev = function handlePrev(e) { - var index = this.getActiveIndex() - 1; + return FormControl; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - if (index < 0) { - if (!this.props.wrap) { - return; - } +FormControl.propTypes = FormControl_propTypes; +FormControl.defaultProps = FormControl_defaultProps; +FormControl.contextType = src_FormGroupContext; +FormControl.Feedback = src_FormControlFeedback; +FormControl.Static = src_FormControlStatic; +/* harmony default export */ const src_FormControl = (bsClass('form-control', bsSizes([Size.SMALL, Size.LARGE], FormControl))); +;// ./src/FormGroup.js - index = ValidComponentChildren.count(this.props.children) - 1; - } - this.select(index, e, 'prev'); - }; // This might be a public API. +var FormGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/FormGroup.js"; - _proto.pause = function pause() { - this.isPaused = true; - clearTimeout(this.timeout); - }; // This might be a public API. - _proto.play = function play() { - this.isPaused = false; - this.waitForNext(); - }; - _proto.select = function select(index, e, direction) { - clearTimeout(this.timeout); // TODO: Is this necessary? Seems like the only risk is if the component - // unmounts while handleItemAnimateOutEnd fires. - if (this.isUnmounted) { - return; - } - var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; - direction = direction || this.getDirection(previousActiveIndex, index); - var onSelect = this.props.onSelect; - if (onSelect) { - if (onSelect.length > 1) { - // React SyntheticEvents are pooled, so we need to remove this event - // from the pool to add a custom property. To avoid unnecessarily - // removing objects from the pool, only do this when the listener - // actually wants the event. - if (e) { - e.persist(); - e.direction = direction; - } else { - e = { - direction: direction - }; - } +var FormGroup_propTypes = { + /** + * Sets `id` on `` and `htmlFor` on ``. + */ + controlId: (prop_types_default()).string, + validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]) +}; - onSelect(index, e); - } else { - onSelect(index); - } - } +var FormGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormGroup, _React$Component); - if (this.props.activeIndex == null && index !== previousActiveIndex) { - if (this.state.previousActiveIndex != null) { - // If currently animating don't activate the new index. - // TODO: look into queueing this canceled call and - // animating after the current animation has ended. - return; - } + function FormGroup() { + return _React$Component.apply(this, arguments) || this; + } - this.setState({ - activeIndex: index, - previousActiveIndex: previousActiveIndex, - direction: direction - }); - } + var _proto = FormGroup.prototype; + + _proto.hasFeedback = function hasFeedback(children) { + var _this = this; + + return ValidComponentChildren.some(children, function (child) { + return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children); + }); }; - _proto.waitForNext = function waitForNext() { + _proto.render = function render() { var _this$props = this.props, - slide = _this$props.slide, - interval = _this$props.interval, - activeIndexProp = _this$props.activeIndex; + validationState = _this$props.validationState, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["validationState", "className", "children"]); - if (!this.isPaused && slide && interval && activeIndexProp == null) { - this.timeout = setTimeout(this.handleNext, interval); + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['controlId']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + + var classes = _extends({}, getClassSet(bsProps), { + 'has-feedback': this.hasFeedback(children) + }); + + if (validationState) { + classes["has-" + validationState] = true; } - }; - _proto.renderControls = function renderControls(properties) { - var wrap = properties.wrap, - children = properties.children, - activeIndex = properties.activeIndex, - prevIcon = properties.prevIcon, - nextIcon = properties.nextIcon, - bsProps = properties.bsProps, - prevLabel = properties.prevLabel, - nextLabel = properties.nextLabel; - var controlClassName = prefix(bsProps, 'control'); - var count = ValidComponentChildren.count(children); - return [(wrap || activeIndex !== 0) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { - key: "prev", - className: classnames_default()(controlClassName, 'left'), - onClick: this.handlePrev, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 290 - }, - __self: this - }, prevIcon, prevLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 296 + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_FormGroupContext.Provider, { + value: { + controlId: this.props.controlId, + validationState: validationState }, - __self: this - }, prevLabel)), (wrap || activeIndex !== count - 1) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { - key: "next", - className: classnames_default()(controlClassName, 'right'), - onClick: this.handleNext, __source: { - fileName: Carousel_jsxFileName, - lineNumber: 301 + fileName: FormGroup_jsxFileName, + lineNumber: 46 }, __self: this - }, nextIcon, nextLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Carousel_jsxFileName, - lineNumber: 307 + fileName: FormGroup_jsxFileName, + lineNumber: 49 }, __self: this - }, nextLabel))]; + }), children)); }; - _proto.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { - var _this3 = this; + return FormGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var indicators = []; - ValidComponentChildren.forEach(children, function (child, index) { - indicators.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { - key: index, - className: index === activeIndex ? 'active' : null, - onClick: function onClick(e) { - return _this3.select(index, e); - }, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 318 - }, - __self: this - }), // Force whitespace between indicator elements. Bootstrap requires - // this for correct spacing of elements. - ' '); - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", { - className: prefix(bsProps, 'indicators'), - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 330 - }, - __self: this - }, indicators); - }; +FormGroup.propTypes = FormGroup_propTypes; +/* harmony default export */ const src_FormGroup = (bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup))); +;// ./src/Grid.js - _proto.render = function render() { - var _this4 = this; - var _this$props2 = this.props, - slide = _this$props2.slide, - indicators = _this$props2.indicators, - controls = _this$props2.controls, - wrap = _this$props2.wrap, - prevIcon = _this$props2.prevIcon, - prevLabel = _this$props2.prevLabel, - nextIcon = _this$props2.nextIcon, - nextLabel = _this$props2.nextLabel, - className = _this$props2.className, - children = _this$props2.children, - props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]); - var _this$state = this.state, - previousActiveIndex = _this$state.previousActiveIndex, - direction = _this$state.direction; +var Grid_jsxFileName = "/Users/harrison/react-bootstrap/src/Grid.js"; - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). - 'defaultActiveIndex', 'direction']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; - var activeIndex = this.getActiveIndex(); - var classes = _extends({}, getClassSet(bsProps), { - slide: slide - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + +var Grid_propTypes = { + /** + * Turn any fixed-width grid layout into a full-width layout by this property. + * + * Adds `container-fluid` class. + */ + fluid: (prop_types_default()).bool, + + /** + * You can use a custom element for this component + */ + componentClass: (elementType_default()) +}; +var Grid_defaultProps = { + componentClass: 'div', + fluid: false +}; + +var Grid = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Grid, _React$Component); + + function Grid() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = Grid.prototype; + + _proto.render = function render() { + var _this$props = this.props, + fluid = _this$props.fluid, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["fluid", "componentClass", "className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = prefix(bsProps, fluid && 'fluid'); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), - onMouseOver: this.handleMouseOver, - onMouseOut: this.handleMouseOut, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 368 - }, - __self: this - }), indicators && this.renderIndicators(children, activeIndex, bsProps), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { - className: prefix(bsProps, 'inner'), __source: { - fileName: Carousel_jsxFileName, - lineNumber: 376 + fileName: Grid_jsxFileName, + lineNumber: 39 }, __self: this - }, ValidComponentChildren.map(children, function (child, index) { - var active = index === activeIndex; - var previousActive = slide && index === previousActiveIndex; - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { - active: active, - index: index, - animateOut: previousActive, - animateIn: active && previousActiveIndex != null && slide, - direction: direction, - onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null - }); - })), controls && this.renderControls({ - wrap: wrap, - children: children, - activeIndex: activeIndex, - prevIcon: prevIcon, - prevLabel: prevLabel, - nextIcon: nextIcon, - nextLabel: nextLabel, - bsProps: bsProps })); }; - return Carousel; + return Grid; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Carousel.propTypes = Carousel_propTypes; -Carousel.defaultProps = Carousel_defaultProps; -Carousel.Caption = src_CarouselCaption; -Carousel.Item = src_CarouselItem; -/* harmony default export */ const src_Carousel = (bsClass('carousel', Carousel)); -// EXTERNAL MODULE: ./node_modules/warning/browser.js -var warning_browser = __webpack_require__(7909); -;// ./src/Checkbox.js +Grid.propTypes = Grid_propTypes; +Grid.defaultProps = Grid_defaultProps; +/* harmony default export */ const src_Grid = (bsClass('container', Grid)); +;// ./src/HelpBlock.js + + + +var HelpBlock_jsxFileName = "/Users/harrison/react-bootstrap/src/HelpBlock.js"; + + + + +var HelpBlock = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(HelpBlock, _React$Component); + + function HelpBlock() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = HelpBlock.prototype; + + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: HelpBlock_jsxFileName, + lineNumber: 14 + }, + __self: this + })); + }; + return HelpBlock; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const src_HelpBlock = (bsClass('help-block', HelpBlock)); +;// ./src/Image.js -var Checkbox_jsxFileName = "/Users/harrison/react-bootstrap/src/Checkbox.js"; -/* eslint-disable jsx-a11y/label-has-for */ +var Image_jsxFileName = "/Users/harrison/react-bootstrap/src/Image.js"; -var Checkbox_propTypes = { - inline: (prop_types_default()).bool, - disabled: (prop_types_default()).bool, - title: (prop_types_default()).string, +var Image_propTypes = { + /** + * Sets image as responsive image + */ + responsive: (prop_types_default()).bool, /** - * Only valid if `inline` is not set. + * Sets image shape as rounded */ - validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]), + rounded: (prop_types_default()).bool, /** - * Attaches a ref to the `` element. Only functions can be used here. - * - * ```js - * { this.input = ref; }} /> - * ``` + * Sets image shape as circle */ - inputRef: (prop_types_default()).func + circle: (prop_types_default()).bool, + + /** + * Sets image shape as thumbnail + */ + thumbnail: (prop_types_default()).bool }; -var Checkbox_defaultProps = { - inline: false, - disabled: false, - title: '' +var Image_defaultProps = { + responsive: false, + rounded: false, + circle: false, + thumbnail: false }; -var Checkbox = +var Image = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Checkbox, _React$Component); + _inheritsLoose(Image, _React$Component); - function Checkbox() { + function Image() { return _React$Component.apply(this, arguments) || this; } - var _proto = Checkbox.prototype; + var _proto = Image.prototype; _proto.render = function render() { + var _classes; + var _this$props = this.props, - inline = _this$props.inline, - disabled = _this$props.disabled, - validationState = _this$props.validationState, - inputRef = _this$props.inputRef, + responsive = _this$props.responsive, + rounded = _this$props.rounded, + circle = _this$props.circle, + thumbnail = _this$props.thumbnail, className = _this$props.className, - style = _this$props.style, - title = _this$props.title, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["responsive", "rounded", "circle", "thumbnail", "className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; - var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", _extends({}, elementProps, { - ref: inputRef, - type: "checkbox", - disabled: disabled, + var classes = (_classes = {}, _classes[prefix(bsProps, 'responsive')] = responsive, _classes[prefix(bsProps, 'rounded')] = rounded, _classes[prefix(bsProps, 'circle')] = circle, _classes[prefix(bsProps, 'thumbnail')] = thumbnail, _classes); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Checkbox_jsxFileName, + fileName: Image_jsxFileName, lineNumber: 56 }, __self: this })); - - if (inline) { - var _classes2; - - var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking - // generated documentation. - - - false ? 0 : void 0; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { - className: classnames_default()(className, _classes), - style: style, - title: title, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 80 - }, - __self: this - }, input, children); - } - - var classes = _extends({}, getClassSet(bsProps), { - disabled: disabled - }); - - if (validationState) { - classes["has-" + validationState] = true; - } - - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { - className: classnames_default()(className, classes), - style: style, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 100 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { - title: title, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 101 - }, - __self: this - }, input, children)); }; - return Checkbox; + return Image; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Checkbox.propTypes = Checkbox_propTypes; -Checkbox.defaultProps = Checkbox_defaultProps; -/* harmony default export */ const src_Checkbox = (bsClass('checkbox', Checkbox)); -;// ./src/utils/capitalize.js -function capitalize(string) { - return "" + string.charAt(0).toUpperCase() + string.slice(1); -} -;// ./src/Clearfix.js - - - -var Clearfix_jsxFileName = "/Users/harrison/react-bootstrap/src/Clearfix.js"; - - - - - +Image.propTypes = Image_propTypes; +Image.defaultProps = Image_defaultProps; +/* harmony default export */ const src_Image = (bsClass('img', Image)); +;// ./src/InputGroupAddon.js -var Clearfix_propTypes = { - componentClass: (elementType_default()), - /** - * Apply clearfix - * - * on Extra small devices Phones - * - * adds class `visible-xs-block` - */ - visibleXsBlock: (prop_types_default()).bool, +var InputGroupAddon_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroupAddon.js"; - /** - * Apply clearfix - * - * on Small devices Tablets - * - * adds class `visible-sm-block` - */ - visibleSmBlock: (prop_types_default()).bool, - /** - * Apply clearfix - * - * on Medium devices Desktops - * - * adds class `visible-md-block` - */ - visibleMdBlock: (prop_types_default()).bool, - /** - * Apply clearfix - * - * on Large devices Desktops - * - * adds class `visible-lg-block` - */ - visibleLgBlock: (prop_types_default()).bool -}; -var Clearfix_defaultProps = { - componentClass: 'div' -}; -var Clearfix = +var InputGroupAddon = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Clearfix, _React$Component); + _inheritsLoose(InputGroupAddon, _React$Component); - function Clearfix() { + function InputGroupAddon() { return _React$Component.apply(this, arguments) || this; } - var _proto = Clearfix.prototype; + var _proto = InputGroupAddon.prototype; _proto.render = function render() { var _this$props = this.props, - Component = _this$props.componentClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = getClassSet(bsProps); - DEVICE_SIZES.forEach(function (size) { - var propName = "visible" + capitalize(size) + "Block"; - - if (elementProps[propName]) { - classes["visible-" + size + "-block"] = true; - } - - delete elementProps[propName]; - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Clearfix_jsxFileName, - lineNumber: 68 + fileName: InputGroupAddon_jsxFileName, + lineNumber: 14 }, __self: this })); }; - return Clearfix; + return InputGroupAddon; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Clearfix.propTypes = Clearfix_propTypes; -Clearfix.defaultProps = Clearfix_defaultProps; -/* harmony default export */ const src_Clearfix = (bsClass('clearfix', Clearfix)); -;// ./src/ControlLabel.js - - +/* harmony default export */ const src_InputGroupAddon = (bsClass('input-group-addon', InputGroupAddon)); +;// ./src/InputGroupButton.js -var ControlLabel_jsxFileName = "/Users/harrison/react-bootstrap/src/ControlLabel.js"; +var InputGroupButton_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroupButton.js"; -var ControlLabel_propTypes = { - /** - * Uses `controlId` from `` if not explicitly specified. - */ - htmlFor: (prop_types_default()).string, - srOnly: (prop_types_default()).bool -}; -var ControlLabel_defaultProps = { - srOnly: false -}; -var contextTypes = { - $bs_formGroup: (prop_types_default()).object -}; -var ControlLabel = +var InputGroupButton = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(ControlLabel, _React$Component); + _inheritsLoose(InputGroupButton, _React$Component); - function ControlLabel() { + function InputGroupButton() { return _React$Component.apply(this, arguments) || this; } - var _proto = ControlLabel.prototype; + var _proto = InputGroupButton.prototype; _proto.render = function render() { - var formGroup = this.context.$bs_formGroup; - var controlId = formGroup && formGroup.controlId; - var _this$props = this.props, - _this$props$htmlFor = _this$props.htmlFor, - htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor, - srOnly = _this$props.srOnly, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - - false ? 0 : void 0; - - var classes = _extends({}, getClassSet(bsProps), { - 'sr-only': srOnly - }); + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", _extends({}, elementProps, { - htmlFor: htmlFor, + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: ControlLabel_jsxFileName, - lineNumber: 43 + fileName: InputGroupButton_jsxFileName, + lineNumber: 14 }, __self: this })); }; - return ControlLabel; + return InputGroupButton; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -ControlLabel.propTypes = ControlLabel_propTypes; -ControlLabel.defaultProps = ControlLabel_defaultProps; -ControlLabel.contextTypes = contextTypes; -/* harmony default export */ const src_ControlLabel = (bsClass('control-label', ControlLabel)); -;// ./src/Col.js - - - -var Col_jsxFileName = "/Users/harrison/react-bootstrap/src/Col.js"; - - +/* harmony default export */ const src_InputGroupButton = (bsClass('input-group-btn', InputGroupButton)); +;// ./src/InputGroup.js +var InputGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroup.js"; -var Col_propTypes = { - componentClass: (elementType_default()), - /** - * The number of columns you wish to span - * - * for Extra small devices Phones (<768px) - * - * class-prefix `col-xs-` - */ - xs: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Small devices Tablets (≥768px) - * - * class-prefix `col-sm-` - */ - sm: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Medium devices Desktops (≥992px) - * - * class-prefix `col-md-` - */ - md: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Large devices Desktops (≥1200px) - * - * class-prefix `col-lg-` - */ - lg: (prop_types_default()).number, - /** - * Hide column - * - * on Extra small devices Phones - * - * adds class `hidden-xs` - */ - xsHidden: (prop_types_default()).bool, - /** - * Hide column - * - * on Small devices Tablets - * - * adds class `hidden-sm` - */ - smHidden: (prop_types_default()).bool, +var InputGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(InputGroup, _React$Component); - /** - * Hide column - * - * on Medium devices Desktops - * - * adds class `hidden-md` - */ - mdHidden: (prop_types_default()).bool, + function InputGroup() { + return _React$Component.apply(this, arguments) || this; + } - /** - * Hide column - * - * on Large devices Desktops - * - * adds class `hidden-lg` - */ - lgHidden: (prop_types_default()).bool, + var _proto = InputGroup.prototype; - /** - * Move columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-offset-` - */ - xsOffset: (prop_types_default()).number, + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); - /** - * Move columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-offset-` - */ - smOffset: (prop_types_default()).number, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * Move columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-offset-` - */ - mdOffset: (prop_types_default()).number, + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: InputGroup_jsxFileName, + lineNumber: 22 + }, + __self: this + })); + }; - /** - * Move columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-offset-` - */ - lgOffset: (prop_types_default()).number, + return InputGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Change the order of grid columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-push-` - */ - xsPush: (prop_types_default()).number, +InputGroup.Addon = src_InputGroupAddon; +InputGroup.Button = src_InputGroupButton; +/* harmony default export */ const src_InputGroup = (bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup))); +;// ./src/Jumbotron.js - /** - * Change the order of grid columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-push-` - */ - smPush: (prop_types_default()).number, - /** - * Change the order of grid columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-push-` - */ - mdPush: (prop_types_default()).number, - /** - * Change the order of grid columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-push-` - */ - lgPush: (prop_types_default()).number, +var Jumbotron_jsxFileName = "/Users/harrison/react-bootstrap/src/Jumbotron.js"; - /** - * Change the order of grid columns to the left - * - * for Extra small devices Phones - * - * class-prefix `col-xs-pull-` - */ - xsPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Small devices Tablets - * - * class-prefix `col-sm-pull-` - */ - smPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Medium devices Desktops - * - * class-prefix `col-md-pull-` - */ - mdPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Large devices Desktops - * - * class-prefix `col-lg-pull-` - */ - lgPull: (prop_types_default()).number +var Jumbotron_propTypes = { + componentClass: (elementType_default()) }; -var Col_defaultProps = { +var Jumbotron_defaultProps = { componentClass: 'div' }; -var Col = +var Jumbotron = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Col, _React$Component); + _inheritsLoose(Jumbotron, _React$Component); - function Col() { + function Jumbotron() { return _React$Component.apply(this, arguments) || this; } - var _proto = Col.prototype; + var _proto = Jumbotron.prototype; _proto.render = function render() { var _this$props = this.props, @@ -9842,1883 +9386,2187 @@ function (_React$Component) { bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; - var classes = []; - DEVICE_SIZES.forEach(function (size) { - function popProp(propSuffix, modifier) { - var propName = "" + size + propSuffix; - var propValue = elementProps[propName]; - - if (propValue != null) { - classes.push(prefix(bsProps, "" + size + modifier + "-" + propValue)); - } - - delete elementProps[propName]; - } - - popProp('', ''); - popProp('Offset', '-offset'); - popProp('Push', '-push'); - popProp('Pull', '-pull'); - var hiddenPropName = size + "Hidden"; - - if (elementProps[hiddenPropName]) { - classes.push("hidden-" + size); - } - - delete elementProps[hiddenPropName]; - }); + var classes = getClassSet(bsProps); return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Col_jsxFileName, - lineNumber: 210 + fileName: Jumbotron_jsxFileName, + lineNumber: 23 }, __self: this })); }; - return Col; + return Jumbotron; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Col.propTypes = Col_propTypes; -Col.defaultProps = Col_defaultProps; -/* harmony default export */ const src_Col = (bsClass('col', Col)); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js -var parse_int = __webpack_require__(7222); -var parse_int_default = /*#__PURE__*/__webpack_require__.n(parse_int); -// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js -var style = __webpack_require__(7735); -var style_default = /*#__PURE__*/__webpack_require__.n(style); -// EXTERNAL MODULE: ./node_modules/react-transition-group/Transition.js -var Transition = __webpack_require__(1485); -;// ./src/Collapse.js - +Jumbotron.propTypes = Jumbotron_propTypes; +Jumbotron.defaultProps = Jumbotron_defaultProps; +/* harmony default export */ const src_Jumbotron = (bsClass('jumbotron', Jumbotron)); +;// ./src/Label.js -var _collapseStyles, - Collapse_jsxFileName = "/Users/harrison/react-bootstrap/src/Collapse.js"; +var Label_jsxFileName = "/Users/harrison/react-bootstrap/src/Label.js"; +var Label = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Label, _React$Component); + function Label() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = Label.prototype; -var MARGINS = { - height: ['marginTop', 'marginBottom'], - width: ['marginLeft', 'marginRight'] -}; // reading a dimension prop will cause the browser to recalculate, -// which will let our animations work + _proto.hasContent = function hasContent(children) { + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -function triggerBrowserReflow(node) { - node.offsetHeight; // eslint-disable-line no-unused-expressions -} + if (child || child === 0) { + result = true; + } + }); + return result; + }; -function getDimensionValue(dimension, elem) { - var value = elem["offset" + capitalize(dimension)]; - var margins = MARGINS[dimension]; - return value + parse_int_default()(style_default()(elem, margins[0]), 10) + parse_int_default()(style_default()(elem, margins[1]), 10); -} + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); -var collapseStyles = (_collapseStyles = {}, _collapseStyles[Transition/* EXITED */.kp] = 'collapse', _collapseStyles[Transition/* EXITING */.ze] = 'collapsing', _collapseStyles[Transition/* ENTERING */.ns] = 'collapsing', _collapseStyles[Transition/* ENTERED */._K] = 'collapse in', _collapseStyles); -var Collapse_propTypes = { - /** - * Show the component; triggers the expand or collapse animation - */ - in: (prop_types_default()).bool, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * Wait until the first "enter" transition to mount the component (add it to the DOM) - */ - mountOnEnter: (prop_types_default()).bool, + var classes = _extends({}, getClassSet(bsProps), { + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); - /** - * Unmount the component (remove it from the DOM) when it is collapsed - */ - unmountOnExit: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Label_jsxFileName, + lineNumber: 41 + }, + __self: this + }), children); + }; - /** - * Run the expand animation when the component mounts, if it is initially - * shown - */ - appear: (prop_types_default()).bool, + return Label; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Duration of the collapse animation in milliseconds, to ensure that - * finishing callbacks are fired even if the original browser transition end - * events are canceled - */ - timeout: (prop_types_default()).number, +/* harmony default export */ const src_Label = (bsClass('label', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Label))); +;// ./src/ListGroupItem.js - /** - * Callback fired before the component expands - */ - onEnter: (prop_types_default()).func, - /** - * Callback fired after the component starts to expand - */ - onEntering: (prop_types_default()).func, - /** - * Callback fired after the component has expanded - */ - onEntered: (prop_types_default()).func, - /** - * Callback fired before the component collapses - */ - onExit: (prop_types_default()).func, +var ListGroupItem_jsxFileName = "/Users/harrison/react-bootstrap/src/ListGroupItem.js"; - /** - * Callback fired after the component starts to collapse - */ - onExiting: (prop_types_default()).func, - /** - * Callback fired after the component has collapsed - */ - onExited: (prop_types_default()).func, - /** - * The dimension used when collapsing, or a function that returns the - * dimension - * - * _Note: Bootstrap only partially supports 'width'! - * You will need to supply your own CSS animation for the `.width` CSS class._ - */ - dimension: prop_types_default().oneOfType([prop_types_default().oneOf(['height', 'width']), (prop_types_default()).func]), - /** - * Function that returns the height or width of the animating DOM node - * - * Allows for providing some custom logic for how much the Collapse component - * should animate in its specified dimension. Called with the current - * dimension prop value and the DOM node. - */ - getDimensionValue: (prop_types_default()).func, - /** - * ARIA role of collapsible element - */ - role: (prop_types_default()).string +var ListGroupItem_propTypes = { + active: (prop_types_default()).any, + disabled: (prop_types_default()).any, + header: (prop_types_default()).node, + listItem: (prop_types_default()).bool, + onClick: (prop_types_default()).func, + href: (prop_types_default()).string, + type: (prop_types_default()).string }; -var Collapse_defaultProps = { - in: false, - timeout: 300, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - dimension: 'height', - getDimensionValue: getDimensionValue +var ListGroupItem_defaultProps = { + listItem: false }; -var Collapse = +var ListGroupItem = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Collapse, _React$Component); + _inheritsLoose(ListGroupItem, _React$Component); + + function ListGroupItem() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = ListGroupItem.prototype; + + _proto.renderHeader = function renderHeader(header, headingClassName) { + if (external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(header)) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(header, { + className: classnames_default()(header.props.className, headingClassName) + }); + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("h4", { + className: headingClassName, + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 36 + }, + __self: this + }, header); + }; + + _proto.render = function render() { + var _this$props = this.props, + active = _this$props.active, + disabled = _this$props.disabled, + className = _this$props.className, + header = _this$props.header, + listItem = _this$props.listItem, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "disabled", "className", "header", "listItem", "children"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = _extends({}, getClassSet(bsProps), { + active: active, + disabled: disabled + }); + + var Component; + + if (elementProps.href) { + Component = 'a'; + } else if (elementProps.onClick) { + Component = 'button'; + elementProps.type = elementProps.type || 'button'; + } else if (listItem) { + Component = 'li'; + } else { + Component = 'span'; + } + + elementProps.className = classnames_default()(className, classes); // TODO: Deprecate `header` prop. + + if (header) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 76 + }, + __self: this + }), this.renderHeader(header, prefix(bsProps, 'heading')), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("p", { + className: prefix(bsProps, 'text'), + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 79 + }, + __self: this + }, children)); + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 84 + }, + __self: this + }), children); + }; - function Collapse() { - var _this; + return ListGroupItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +ListGroupItem.propTypes = ListGroupItem_propTypes; +ListGroupItem.defaultProps = ListGroupItem_defaultProps; +/* harmony default export */ const src_ListGroupItem = (bsClass('list-group-item', bsStyles(values_default()(State), ListGroupItem))); +;// ./src/ListGroup.js - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.handleEnter = function (elem) { - elem.style[_this.getDimension()] = '0'; - }; - _this.handleEntering = function (elem) { - var dimension = _this.getDimension(); +var ListGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ListGroup.js"; - elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension); - }; - _this.handleEntered = function (elem) { - elem.style[_this.getDimension()] = null; - }; - _this.handleExit = function (elem) { - var dimension = _this.getDimension(); - elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px"; - triggerBrowserReflow(elem); - }; - _this.handleExiting = function (elem) { - elem.style[_this.getDimension()] = '0'; - }; - return _this; +var ListGroup_propTypes = { + /** + * You can use a custom element type for this component. + * + * If not specified, it will be treated as `'li'` if every child is a + * non-actionable ``, and `'div'` otherwise. + */ + componentClass: (elementType_default()) +}; + +function getDefaultComponent(children) { + if (!children) { + // FIXME: This is the old behavior. Is this right? + return 'div'; } - var _proto = Collapse.prototype; + if (ValidComponentChildren.some(children, function (child) { + return child.type !== src_ListGroupItem || child.props.href || child.props.onClick; + })) { + return 'div'; + } - _proto.getDimension = function getDimension() { - return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; - }; // for testing + return 'ul'; +} +var ListGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ListGroup, _React$Component); - _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { - return elem["scroll" + capitalize(dimension)] + "px"; - }; - /* -- Expanding -- */ + function ListGroup() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = ListGroup.prototype; _proto.render = function render() { - var _this2 = this; - var _this$props = this.props, - onEnter = _this$props.onEnter, - onEntering = _this$props.onEntering, - onEntered = _this$props.onEntered, - onExit = _this$props.onExit, - onExiting = _this$props.onExiting, - className = _this$props.className, children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]); + _this$props$component = _this$props.componentClass, + Component = _this$props$component === void 0 ? getDefaultComponent(children) : _this$props$component, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["children", "componentClass", "className"]); - delete props.dimension; - delete props.getDimensionValue; - var handleEnter = utils_createChainedFunction(this.handleEnter, onEnter); - var handleEntering = utils_createChainedFunction(this.handleEntering, onEntering); - var handleEntered = utils_createChainedFunction(this.handleEntered, onEntered); - var handleExit = utils_createChainedFunction(this.handleExit, onExit); - var handleExiting = utils_createChainedFunction(this.handleExiting, onExiting); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Transition/* default */.Ay, _extends({}, props, { - "aria-expanded": props.role ? props.in : null, - onEnter: handleEnter, - onEntering: handleEntering, - onEntered: handleEntered, - onExit: handleExit, - onExiting: handleExiting, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + var useListItem = Component === 'ul' && ValidComponentChildren.every(children, function (child) { + return child.type === src_ListGroupItem; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Collapse_jsxFileName, - lineNumber: 201 + fileName: ListGroup_jsxFileName, + lineNumber: 59 }, __self: this - }), function (state, innerProps) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { - className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width') - })); - }); + }), useListItem ? ValidComponentChildren.map(children, function (child) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + listItem: true + }); + }) : children); }; - return Collapse; + return ListGroup; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Collapse.propTypes = Collapse_propTypes; -Collapse.defaultProps = Collapse_defaultProps; -/* harmony default export */ const src_Collapse = (Collapse); -// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js -var activeElement = __webpack_require__(6335); -var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement); -// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js -var contains = __webpack_require__(6489); -var contains_default = /*#__PURE__*/__webpack_require__.n(contains); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js -var isRequiredForA11y = __webpack_require__(8861); -var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js -var from = __webpack_require__(6807); -var from_default = /*#__PURE__*/__webpack_require__.n(from); -// EXTERNAL MODULE: ./node_modules/react-overlays/lib/RootCloseWrapper.js -var RootCloseWrapper = __webpack_require__(3029); -var RootCloseWrapper_default = /*#__PURE__*/__webpack_require__.n(RootCloseWrapper); -;// ./src/DropdownMenu.js - - - - +ListGroup.propTypes = ListGroup_propTypes; +/* harmony default export */ const src_ListGroup = (bsClass('list-group', ListGroup)); +;// ./src/MediaBody.js -var DropdownMenu_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownMenu.js"; +var MediaBody_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaBody.js"; -var DropdownMenu_propTypes = { - open: (prop_types_default()).bool, - pullRight: (prop_types_default()).bool, - onClose: (prop_types_default()).func, - labelledBy: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]), - onSelect: (prop_types_default()).func, - rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']) +var MediaBody_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']), + componentClass: (elementType_default()) }; -var DropdownMenu_defaultProps = { - bsRole: 'menu', - pullRight: false +var MediaBody_defaultProps = { + componentClass: 'div' }; -var DropdownMenu = +var MediaBody = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownMenu, _React$Component); - - function DropdownMenu(props) { - var _this; + _inheritsLoose(MediaBody, _React$Component); - _this = _React$Component.call(this, props) || this; - _this.handleRootClose = _this.handleRootClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; + function MediaBody() { + return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownMenu.prototype; - - _proto.getFocusableMenuItems = function getFocusableMenuItems() { - var node = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); - - if (!node) { - return []; - } - - return from_default()(node.querySelectorAll('[tabIndex="-1"]')); - }; - - _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() { - var items = this.getFocusableMenuItems(); - var activeIndex = items.indexOf(document.activeElement); - return { - items: items, - activeIndex: activeIndex - }; - }; - - _proto.focusNext = function focusNext() { - var _this$getItemsAndActi = this.getItemsAndActiveIndex(), - items = _this$getItemsAndActi.items, - activeIndex = _this$getItemsAndActi.activeIndex; - - if (items.length === 0) { - return; - } - - var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; - items[nextIndex].focus(); - }; - - _proto.focusPrevious = function focusPrevious() { - var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(), - items = _this$getItemsAndActi2.items, - activeIndex = _this$getItemsAndActi2.activeIndex; - - if (items.length === 0) { - return; - } - - var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; - items[prevIndex].focus(); - }; - - _proto.handleKeyDown = function handleKeyDown(event) { - switch (event.key) { - case 'ArrowDown': - this.focusNext(); - event.preventDefault(); - break; - - case 'ArrowUp': - this.focusPrevious(); - event.preventDefault(); - break; - - case 'Escape': - case 'Tab': - this.props.onClose(event, { - source: 'keydown' - }); - break; - - default: - } - }; - - _proto.handleRootClose = function handleRootClose(event) { - this.props.onClose(event, { - source: 'rootClose' - }); - }; + var _proto = MediaBody.prototype; _proto.render = function render() { - var _extends2, - _this2 = this; - var _this$props = this.props, - open = _this$props.open, - pullRight = _this$props.pullRight, - labelledBy = _this$props.labelledBy, - onSelect = _this$props.onSelect, + Component = _this$props.componentClass, + align = _this$props.align, className = _this$props.className, - rootCloseEvent = _this$props.rootCloseEvent, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "align", "className"]); - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2)); + var classes = getClassSet(bsProps); + + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((RootCloseWrapper_default()), { - disabled: !open, - onRootClose: this.handleRootClose, - event: rootCloseEvent, - __source: { - fileName: DropdownMenu_jsxFileName, - lineNumber: 116 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({}, elementProps, { - role: "menu", + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), - "aria-labelledby": labelledBy, __source: { - fileName: DropdownMenu_jsxFileName, - lineNumber: 121 + fileName: MediaBody_jsxFileName, + lineNumber: 45 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, { - onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown), - onSelect: utils_createChainedFunction(child.props.onSelect, onSelect) - }); - }))); + })); }; - return DropdownMenu; + return MediaBody; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownMenu.propTypes = DropdownMenu_propTypes; -DropdownMenu.defaultProps = DropdownMenu_defaultProps; -/* harmony default export */ const src_DropdownMenu = (bsClass('dropdown-menu', DropdownMenu)); -;// ./src/DropdownToggle.js - - +MediaBody.propTypes = MediaBody_propTypes; +MediaBody.defaultProps = MediaBody_defaultProps; +/* harmony default export */ const src_MediaBody = (bsClass('media-body', MediaBody)); +;// ./src/MediaHeading.js -var DropdownToggle_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownToggle.js"; +var MediaHeading_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaHeading.js"; -var DropdownToggle_propTypes = { - noCaret: (prop_types_default()).bool, - open: (prop_types_default()).bool, - title: (prop_types_default()).string, - useAnchor: (prop_types_default()).bool +var MediaHeading_propTypes = { + componentClass: (elementType_default()) }; -var DropdownToggle_defaultProps = { - open: false, - useAnchor: false, - bsRole: 'toggle' +var MediaHeading_defaultProps = { + componentClass: 'h4' }; -var DropdownToggle = +var MediaHeading = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownToggle, _React$Component); + _inheritsLoose(MediaHeading, _React$Component); - function DropdownToggle() { + function MediaHeading() { return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownToggle.prototype; + var _proto = MediaHeading.prototype; _proto.render = function render() { var _this$props = this.props, - noCaret = _this$props.noCaret, - open = _this$props.open, - useAnchor = _this$props.useAnchor, - bsClass = _this$props.bsClass, + Component = _this$props.componentClass, className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - delete props.bsRole; - var Component = useAnchor ? src_SafeAnchor : src_Button; - var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the - // underlying component, to allow it to render size and style variants. - // FIXME: Should this really fall back to `title` as children? + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { - role: "button", - className: classnames_default()(className, bsClass), - "aria-haspopup": true, - "aria-expanded": open, - __source: { - fileName: DropdownToggle_jsxFileName, - lineNumber: 45 - }, - __self: this - }), children || props.title, useCaret && ' ', useCaret && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "caret", + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: DropdownToggle_jsxFileName, - lineNumber: 54 + fileName: MediaHeading_jsxFileName, + lineNumber: 23 }, __self: this })); }; - return DropdownToggle; + return MediaHeading; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownToggle.propTypes = DropdownToggle_propTypes; -DropdownToggle.defaultProps = DropdownToggle_defaultProps; -/* harmony default export */ const src_DropdownToggle = (bsClass('dropdown-toggle', DropdownToggle)); -;// ./src/Dropdown.js - - - - -var Dropdown_jsxFileName = "/Users/harrison/react-bootstrap/src/Dropdown.js"; - - - - +MediaHeading.propTypes = MediaHeading_propTypes; +MediaHeading.defaultProps = MediaHeading_defaultProps; +/* harmony default export */ const src_MediaHeading = (bsClass('media-heading', MediaHeading)); +;// ./src/MediaLeft.js +var MediaLeft_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaLeft.js"; +var MediaLeft_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']) +}; +var MediaLeft = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaLeft, _React$Component); + function MediaLeft() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = MediaLeft.prototype; + _proto.render = function render() { + var _this$props = this.props, + align = _this$props.align, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]); -var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole; -var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole; -var Dropdown_propTypes = { - /** - * The menu will open above the dropdown button, instead of below it. - */ - dropup: (prop_types_default()).bool, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * An html id attribute, necessary for assistive technologies, such as screen readers. - * @type {string|number} - * @required - */ - id: isRequiredForA11y_default()(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])), - componentClass: (elementType_default()), + var classes = getClassSet(bsProps); - /** - * The children of a Dropdown may be a `` or a ``. - * @type {node} - */ - children: all_default()(requiredRoles(TOGGLE_ROLE, MENU_ROLE), exclusiveRoles(MENU_ROLE)), + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - /** - * Whether or not component is disabled. - */ - disabled: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaLeft_jsxFileName, + lineNumber: 32 + }, + __self: this + })); + }; - /** - * Align the menu to the right side of the Dropdown toggle - */ - pullRight: (prop_types_default()).bool, + return MediaLeft; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Whether or not the Dropdown is visible. - * - * @controllable onToggle - */ - open: (prop_types_default()).bool, - defaultOpen: (prop_types_default()).bool, +MediaLeft.propTypes = MediaLeft_propTypes; +/* harmony default export */ const src_MediaLeft = (bsClass('media-left', MediaLeft)); +;// ./src/MediaList.js - /** - * A callback fired when the Dropdown wishes to change visibility. Called with the requested - * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. - * - * ```js - * function(Boolean isOpen, Object event, { String source }) {} - * ``` - * @controllable open - */ - onToggle: (prop_types_default()).func, - /** - * A callback fired when a menu item is selected. - * - * ```js - * (eventKey: any, event: Object) => any - * ``` - */ - onSelect: (prop_types_default()).func, - /** - * If `'menuitem'`, causes the dropdown to behave like a menu item rather than - * a menu button. - */ - role: (prop_types_default()).string, +var MediaList_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaList.js"; - /** - * Which event when fired outside the component will cause it to be closed - * - * *Note: For custom dropdown components, you will have to pass the - * `rootCloseEvent` to `` in your custom dropdown menu - * component ([similarly to how it is implemented in ``](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).* - */ - rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']), - /** - * @private - */ - onMouseEnter: (prop_types_default()).func, - /** - * @private - */ - onMouseLeave: (prop_types_default()).func -}; -var Dropdown_defaultProps = { - componentClass: src_ButtonGroup -}; -var Dropdown = +var MediaList = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Dropdown, _React$Component); - - function Dropdown(props, context) { - var _this; + _inheritsLoose(MediaList, _React$Component); - _this = _React$Component.call(this, props, context) || this; - _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._focusInDropdown = false; - _this.lastOpenEventType = null; - return _this; + function MediaList() { + return _React$Component.apply(this, arguments) || this; } - var _proto = Dropdown.prototype; + var _proto = MediaList.prototype; + + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - _proto.componentDidMount = function componentDidMount() { - this.focusNextOnOpen(); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaList_jsxFileName, + lineNumber: 13 + }, + __self: this + })); }; - _proto.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { - if (!nextProps.open && this.props.open) { - this._focusInDropdown = contains_default()(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this.menu), activeElement_default()(document)); - } - }; + return MediaList; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var open = this.props.open; - var prevOpen = prevProps.open; +/* harmony default export */ const src_MediaList = (bsClass('media-list', MediaList)); +;// ./src/MediaListItem.js - if (open && !prevOpen) { - this.focusNextOnOpen(); - } - if (!open && prevOpen) { - // if focus hasn't already moved from the menu let's return it - // to the toggle - if (this._focusInDropdown) { - this._focusInDropdown = false; - this.focus(); - } - } - }; - _proto.focus = function focus() { - var toggle = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this.toggle); +var MediaListItem_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaListItem.js"; - if (toggle && toggle.focus) { - toggle.focus(); - } - }; - _proto.focusNextOnOpen = function focusNextOnOpen() { - var menu = this.menu; - if (!menu || !menu.focusNext) { - return; - } - if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { - menu.focusNext(); - } - }; +var MediaListItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaListItem, _React$Component); - _proto.handleClick = function handleClick(event) { - // @hmhealey I added this because, when migrating the "passes open, event, and source correctly when closed with click" - // test to use RTL, the root close handler started triggering when clicking on the menu button toggle which seems - // like it shouldn't happen. We had similar issues with React 17 where overlays would open and immediately close, so - // while that didn't happen in the tests using React 17, I'd be willing to guess that ReactTestUtils hid that from us. - event.stopPropagation(); + function MediaListItem() { + return _React$Component.apply(this, arguments) || this; + } - if (this.props.disabled) { - return; - } + var _proto = MediaListItem.prototype; - this.toggleOpen(event, { - source: 'click' - }); - }; + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); - _proto.handleClose = function handleClose(event, eventDetails) { - if (!this.props.open) { - return; - } + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - this.toggleOpen(event, eventDetails); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaListItem_jsxFileName, + lineNumber: 13 + }, + __self: this + })); }; - _proto.handleKeyDown = function handleKeyDown(event) { - if (this.props.disabled) { - return; - } - - switch (event.key) { - case 'ArrowDown': - if (!this.props.open) { - this.toggleOpen(event, { - source: 'keydown' - }); - } else if (this.menu.focusNext) { - this.menu.focusNext(); - } - - event.preventDefault(); - break; + return MediaListItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - case 'Escape': - case 'Tab': - this.handleClose(event, { - source: 'keydown' - }); - break; +/* harmony default export */ const src_MediaListItem = (bsClass('media', MediaListItem)); +;// ./src/MediaRight.js - default: - } - }; - _proto.toggleOpen = function toggleOpen(event, eventDetails) { - var open = !this.props.open; - if (open) { - this.lastOpenEventType = eventDetails.source; - } +var MediaRight_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaRight.js"; - if (this.props.onToggle) { - this.props.onToggle(open, event, eventDetails); - } - }; - _proto.renderMenu = function renderMenu(child, _ref) { - var _this2 = this; - var id = _ref.id, - onSelect = _ref.onSelect, - rootCloseEvent = _ref.rootCloseEvent, - props = _objectWithoutPropertiesLoose(_ref, ["id", "onSelect", "rootCloseEvent"]); - var ref = function ref(c) { - _this2.menu = c; - }; - ref = utils_createChainedFunction(child.ref, ref); - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { - ref: ref, - labelledBy: id, - bsClass: prefix(props, 'menu'), - onClose: utils_createChainedFunction(child.props.onClose, this.handleClose), - onSelect: utils_createChainedFunction(child.props.onSelect, onSelect, function (key, event) { - return _this2.handleClose(event, { - source: 'select' - }); - }), - rootCloseEvent: rootCloseEvent - })); - }; +var MediaRight_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']) +}; - _proto.renderToggle = function renderToggle(child, props) { - var _this3 = this; +var MediaRight = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaRight, _React$Component); - var ref = function ref(c) { - _this3.toggle = c; - }; + function MediaRight() { + return _React$Component.apply(this, arguments) || this; + } - ref = utils_createChainedFunction(child.ref, ref); - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { - ref: ref, - bsClass: prefix(props, 'toggle'), - onClick: utils_createChainedFunction(child.props.onClick, this.handleClick), - onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown) - })); - }; + var _proto = MediaRight.prototype; _proto.render = function render() { - var _classes, - _this4 = this; - var _this$props = this.props, - Component = _this$props.componentClass, - id = _this$props.id, - dropup = _this$props.dropup, - disabled = _this$props.disabled, - pullRight = _this$props.pullRight, - open = _this$props.open, - onSelect = _this$props.onSelect, - role = _this$props.role, - bsClass = _this$props.bsClass, + align = _this$props.align, className = _this$props.className, - rootCloseEvent = _this$props.rootCloseEvent, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]); - delete props.onToggle; - var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - if (dropup) { - classes[bsClass] = false; - classes.dropup = true; - } // This intentionally forwards bsSize and bsStyle (if set) to the - // underlying component, to allow it to render size and style variants. + var classes = getClassSet(bsProps); + if (align) { + // The class is e.g. `media-top`, not `media-right-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Dropdown_jsxFileName, - lineNumber: 314 + fileName: MediaRight_jsxFileName, + lineNumber: 32 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - switch (child.props.bsRole) { - case TOGGLE_ROLE: - return _this4.renderToggle(child, { - id: id, - disabled: disabled, - open: open, - role: role, - bsClass: bsClass - }); - - case MENU_ROLE: - return _this4.renderMenu(child, { - id: id, - open: open, - pullRight: pullRight, - bsClass: bsClass, - onSelect: onSelect, - rootCloseEvent: rootCloseEvent - }); - - default: - return child; - } })); }; - return Dropdown; + return MediaRight; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Dropdown.propTypes = Dropdown_propTypes; -Dropdown.defaultProps = Dropdown_defaultProps; -bsClass('dropdown', Dropdown); -var UncontrolledDropdown = uncontrollable_default()(Dropdown, { - open: 'onToggle' -}); -UncontrolledDropdown.Toggle = src_DropdownToggle; -UncontrolledDropdown.Menu = src_DropdownMenu; -/* harmony default export */ const src_Dropdown = (UncontrolledDropdown); -;// ./src/utils/splitComponentProps.js - -function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; - var parentProps = {}; - var childProps = {}; +MediaRight.propTypes = MediaRight_propTypes; +/* harmony default export */ const src_MediaRight = (bsClass('media-right', MediaRight)); +;// ./src/Media.js - entries_default()(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); - return [parentProps, childProps]; -} -;// ./src/DropdownButton.js +var Media_jsxFileName = "/Users/harrison/react-bootstrap/src/Media.js"; -var DropdownButton_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownButton.js"; -var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, { - // Toggle props. - bsStyle: (prop_types_default()).string, - bsSize: (prop_types_default()).string, - title: (prop_types_default()).node.isRequired, - noCaret: (prop_types_default()).bool, - // Override generated docs from . - /** - * @private - */ - children: (prop_types_default()).node -}); -var DropdownButton = +var Media_propTypes = { + componentClass: (elementType_default()) +}; +var Media_defaultProps = { + componentClass: 'div' +}; + +var Media = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownButton, _React$Component); + _inheritsLoose(Media, _React$Component); - function DropdownButton() { + function Media() { return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownButton.prototype; + var _proto = Media.prototype; _proto.render = function render() { var _this$props = this.props, - bsSize = _this$props.bsSize, - bsStyle = _this$props.bsStyle, - title = _this$props.title, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "children"]); + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent), - dropdownProps = _splitComponentProps[0], - toggleProps = _splitComponentProps[1]; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown, _extends({}, dropdownProps, { - bsSize: bsSize, - bsStyle: bsStyle, - __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 33 - }, - __self: this - }), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Toggle, _extends({}, toggleProps, { - bsSize: bsSize, - bsStyle: bsStyle, - __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 34 - }, - __self: this - }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Menu, { + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 38 + fileName: Media_jsxFileName, + lineNumber: 29 }, __self: this - }, children)); + })); }; - return DropdownButton; + return Media; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownButton.propTypes = DropdownButton_propTypes; -/* harmony default export */ const src_DropdownButton = (DropdownButton); -;// ./src/Fade.js - +Media.propTypes = Media_propTypes; +Media.defaultProps = Media_defaultProps; +Media.Heading = src_MediaHeading; +Media.Body = src_MediaBody; +Media.Left = src_MediaLeft; +Media.Right = src_MediaRight; +Media.List = src_MediaList; +Media.ListItem = src_MediaListItem; +/* harmony default export */ const src_Media = (bsClass('media', Media)); +;// ./src/MenuItem.js -var _fadeStyles, - Fade_jsxFileName = "/Users/harrison/react-bootstrap/src/Fade.js"; +var MenuItem_jsxFileName = "/Users/harrison/react-bootstrap/src/MenuItem.js"; -var Fade_propTypes = { - /** - * Show the component; triggers the fade in or fade out animation - */ - in: (prop_types_default()).bool, - /** - * Wait until the first "enter" transition to mount the component (add it to the DOM) - */ - mountOnEnter: (prop_types_default()).bool, - /** - * Unmount the component (remove it from the DOM) when it is faded out - */ - unmountOnExit: (prop_types_default()).bool, +var MenuItem_propTypes = { /** - * Run the fade in animation when the component mounts, if it is initially - * shown + * Highlight the menu item as active. */ - appear: (prop_types_default()).bool, + active: (prop_types_default()).bool, /** - * Duration of the fade animation in milliseconds, to ensure that finishing - * callbacks are fired even if the original browser transition end events are - * canceled + * Disable the menu item, making it unselectable. */ - timeout: (prop_types_default()).number, + disabled: (prop_types_default()).bool, /** - * Callback fired before the component fades in + * Styles the menu item as a horizontal rule, providing visual separation between + * groups of menu items. */ - onEnter: (prop_types_default()).func, + divider: (prop_types_default()).bool, /** - * Callback fired after the component starts to fade in + * Value passed to the `onSelect` handler, useful for identifying the selected menu item. */ - onEntering: (prop_types_default()).func, + eventKey: (prop_types_default()).any, /** - * Callback fired after the has component faded in + * Styles the menu item as a header label, useful for describing a group of menu items. */ - onEntered: (prop_types_default()).func, + header: (prop_types_default()).bool, /** - * Callback fired before the component fades out + * HTML `href` attribute corresponding to `a.href`. */ - onExit: (prop_types_default()).func, + href: (prop_types_default()).string, /** - * Callback fired after the component starts to fade out + * Callback fired when the menu item is clicked. */ - onExiting: (prop_types_default()).func, + onClick: (prop_types_default()).func, /** - * Callback fired after the component has faded out + * Callback fired when the menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` */ - onExited: (prop_types_default()).func + onSelect: (prop_types_default()).func }; -var Fade_defaultProps = { - in: false, - timeout: 300, - mountOnEnter: false, - unmountOnExit: false, - appear: false +var MenuItem_defaultProps = { + divider: false, + disabled: false, + header: false }; -var fadeStyles = (_fadeStyles = {}, _fadeStyles[Transition/* ENTERING */.ns] = 'in', _fadeStyles[Transition/* ENTERED */._K] = 'in', _fadeStyles); -var Fade = +var MenuItem = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Fade, _React$Component); + _inheritsLoose(MenuItem, _React$Component); - function Fade() { - return _React$Component.apply(this, arguments) || this; + function MenuItem(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; } - var _proto = Fade.prototype; + var _proto = MenuItem.prototype; - _proto.render = function render() { + _proto.handleClick = function handleClick(event) { var _this$props = this.props, - className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); - - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Transition/* default */.Ay, _extends({}, props, { - __source: { - fileName: Fade_jsxFileName, - lineNumber: 82 - }, - __self: this - }), function (status, innerProps) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { - className: classnames_default()('fade', className, children.props.className, fadeStyles[status]) - })); - }); - }; - - return Fade; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Fade.propTypes = Fade_propTypes; -Fade.defaultProps = Fade_defaultProps; -/* harmony default export */ const src_Fade = (Fade); -;// ./src/Form.js - - - -var Form_jsxFileName = "/Users/harrison/react-bootstrap/src/Form.js"; - - - - - -var Form_propTypes = { - horizontal: (prop_types_default()).bool, - inline: (prop_types_default()).bool, - componentClass: (elementType_default()) -}; -var Form_defaultProps = { - horizontal: false, - inline: false, - componentClass: 'form' -}; + href = _this$props.href, + disabled = _this$props.disabled, + onSelect = _this$props.onSelect, + eventKey = _this$props.eventKey; -var Form = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Form, _React$Component); + if (!href || disabled) { + event.preventDefault(); + } - function Form() { - return _React$Component.apply(this, arguments) || this; - } + if (disabled) { + return; + } - var _proto = Form.prototype; + if (onSelect) { + onSelect(eventKey, event); + } + }; _proto.render = function render() { - var _this$props = this.props, - horizontal = _this$props.horizontal, - inline = _this$props.inline, - Component = _this$props.componentClass, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["horizontal", "inline", "componentClass", "className"]); + var _this$props2 = this.props, + active = _this$props2.active, + disabled = _this$props2.disabled, + divider = _this$props2.divider, + header = _this$props2.header, + onClick = _this$props2.onClick, + className = _this$props2.className, + style = _this$props2.style, + props = _objectWithoutPropertiesLoose(_this$props2, ["active", "disabled", "divider", "header", "onClick", "className", "style"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + false ? 0 : void 0; - var classes = []; + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['eventKey', 'onSelect']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; - if (horizontal) { - classes.push(prefix(bsProps, 'horizontal')); + if (divider) { + // Forcibly blank out the children; separators shouldn't render any. + elementProps.children = undefined; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + role: "separator", + className: classnames_default()(className, 'divider'), + style: style, + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 113 + }, + __self: this + })); } - if (inline) { - classes.push(prefix(bsProps, 'inline')); + if (header) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + role: "heading", + className: classnames_default()(className, prefix(bsProps, 'header')), + style: style, + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 124 + }, + __self: this + })); } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - className: classnames_default()(className, classes), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + role: "presentation", + className: classnames_default()(className, { + active: active, + disabled: disabled + }), + style: style, __source: { - fileName: Form_jsxFileName, - lineNumber: 41 + fileName: MenuItem_jsxFileName, + lineNumber: 134 }, __self: this - })); + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { + role: "menuitem", + tabIndex: "-1", + onClick: utils_createChainedFunction(onClick, this.handleClick), + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 139 + }, + __self: this + }))); }; - return Form; + return MenuItem; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Form.propTypes = Form_propTypes; -Form.defaultProps = Form_defaultProps; -/* harmony default export */ const src_Form = (bsClass('form', Form)); -;// ./src/FormControlFeedback.js +MenuItem.propTypes = MenuItem_propTypes; +MenuItem.defaultProps = MenuItem_defaultProps; +/* harmony default export */ const src_MenuItem = (bsClass('dropdown', MenuItem)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/events/index.js +var events = __webpack_require__(9287); +// EXTERNAL MODULE: ./node_modules/dom-helpers/ownerDocument.js +var dom_helpers_ownerDocument = __webpack_require__(1999); +var ownerDocument_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_ownerDocument); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/inDOM.js +var inDOM = __webpack_require__(8647); +var inDOM_default = /*#__PURE__*/__webpack_require__.n(inDOM); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/scrollbarSize.js +var scrollbarSize = __webpack_require__(6065); +var scrollbarSize_default = /*#__PURE__*/__webpack_require__.n(scrollbarSize); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/isDocument.js +function isDocument(element) { + return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE; +} +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/isWindow.js +function isWindow(node) { + if ('window' in node && node.window === node) return node; + if (isDocument(node)) return node.defaultView || false; + return false; +} +;// ./node_modules/react-overlays/esm/isOverflowing.js -var FormControlFeedback_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlFeedback.js"; +function isBody(node) { + return node && node.tagName.toLowerCase() === 'body'; +} +function bodyIsOverflowing(node) { + var doc = isWindow(node) ? ownerDocument() : ownerDocument(node); + var win = isWindow(node) || doc.defaultView; + return doc.body.clientWidth < win.innerWidth; +} +function isOverflowing(container) { + var win = isWindow(container); + return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight; +} +;// ./node_modules/@babel/runtime/helpers/esm/extends.js +function extends_extends() { + return extends_extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } -var FormControlFeedback_defaultProps = { - bsRole: 'feedback' -}; -var FormControlFeedback_contextTypes = { - $bs_formGroup: (prop_types_default()).object -}; + return n; + }, extends_extends.apply(null, arguments); +} -var FormControlFeedback = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(FormControlFeedback, _React$Component); - function FormControlFeedback() { - return _React$Component.apply(this, arguments) || this; +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/activeElement.js + +/** + * Returns the actively focused element safely. + * + * @param doc the document to check + */ + +function activeElement_activeElement(doc) { + if (doc === void 0) { + doc = ownerDocument(); + } // Support: IE 9 only + // IE9 throws an "Unspecified error" accessing document.activeElement from an - * - */ + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; +}; + +/***/ }), -var Transition = function (_React$Component) { - _inherits(Transition, _React$Component); +/***/ 1685: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - function Transition(props, context) { - _classCallCheck(this, Transition); +"use strict"; +var __webpack_unused_export__; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears +__webpack_unused_export__ = ({ + value: true +}); +__webpack_unused_export__ = __webpack_unused_export__ = undefined; - var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; - var initialStatus = void 0; - _this.appearStatus = null; +var _end = __webpack_require__(4112); - if (props.in) { - if (appear) { - initialStatus = EXITED; - _this.appearStatus = ENTERING; - } else { - initialStatus = ENTERED; - } - } else { - if (props.unmountOnExit || props.mountOnEnter) { - initialStatus = UNMOUNTED; - } else { - initialStatus = EXITED; - } - } +var _end2 = _interopRequireDefault(_end); - _this.state = { - status: initialStatus - }; - _this.nextCallback = null; - return _this; - } +var _properties = __webpack_require__(3152); - Transition.prototype.getChildContext = function getChildContext() { - return { - transitionGroup: null // allows for nested Transitions +var _properties2 = _interopRequireDefault(_properties); - }; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; +} - Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var nextIn = _ref.in; +__webpack_unused_export__ = _end2.default; +__webpack_unused_export__ = _properties2.default; +exports.Ay = { + end: _end2.default, + properties: _properties2.default +}; - if (nextIn && prevState.status === UNMOUNTED) { - return { - status: EXITED - }; - } +/***/ }), - return null; - }; // getSnapshotBeforeUpdate(prevProps) { - // let nextStatus = null - // if (prevProps !== this.props) { - // const { status } = this.state - // if (this.props.in) { - // if (status !== ENTERING && status !== ENTERED) { - // nextStatus = ENTERING - // } - // } else { - // if (status === ENTERING || status === ENTERED) { - // nextStatus = EXITING - // } - // } - // } - // return { nextStatus } - // } +/***/ 1700: +/***/ ((module, exports) => { +"use strict"; - Transition.prototype.componentDidMount = function componentDidMount() { - this.updateStatus(true, this.appearStatus); - }; - Transition.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var nextStatus = null; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = camelize; +var rHyphen = /-(.)/g; - if (prevProps !== this.props) { - var status = this.state.status; +function camelize(string) { + return string.replace(rHyphen, function (_, chr) { + return chr.toUpperCase(); + }); +} - if (this.props.in) { - if (status !== ENTERING && status !== ENTERED) { - nextStatus = ENTERING; - } - } else { - if (status === ENTERING || status === ENTERED) { - nextStatus = EXITING; - } - } - } +module.exports = exports["default"]; - this.updateStatus(false, nextStatus); - }; +/***/ }), - Transition.prototype.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; +/***/ 1795: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - Transition.prototype.getTimeouts = function getTimeouts() { - var timeout = this.props.timeout; - var exit = void 0, - enter = void 0, - appear = void 0; - exit = enter = appear = timeout; +var dP = __webpack_require__(8449); - if (timeout != null && typeof timeout !== 'number') { - exit = timeout.exit; - enter = timeout.enter; - appear = timeout.appear; - } +var createDesc = __webpack_require__(3650); - return { - exit: exit, - enter: enter, - appear: appear - }; - }; +module.exports = __webpack_require__(4725) ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; - Transition.prototype.updateStatus = function updateStatus() { - var mounting = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var nextStatus = arguments[1]; +/***/ }), - if (nextStatus !== null) { - // nextStatus will always be ENTERING or EXITING. - this.cancelNextCallback(); +/***/ 1897: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - var node = _reactDom2.default.findDOMNode(this); +var core = __webpack_require__(9520); - if (nextStatus === ENTERING) { - this.performEnter(node, mounting); - } else { - this.performExit(node); - } - } else if (this.props.unmountOnExit && this.state.status === EXITED) { - this.setState({ - status: UNMOUNTED - }); - } - }; +var $JSON = core.JSON || (core.JSON = { + stringify: JSON.stringify +}); - Transition.prototype.performEnter = function performEnter(node, mounting) { - var _this2 = this; +module.exports = function stringify(it) { + // eslint-disable-line no-unused-vars + return $JSON.stringify.apply($JSON, arguments); +}; - var enter = this.props.enter; - var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; - var timeouts = this.getTimeouts(); // no enter animation skip right to ENTERED - // if we are mounting and running this it means appear _must_ be set +/***/ }), - if (!mounting && !enter) { - this.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node); - }); - return; - } +/***/ 1933: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - this.props.onEnter(node, appearing); - this.safeSetState({ - status: ENTERING - }, function () { - _this2.props.onEntering(node, appearing); // FIXME: appear timeout? +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +if (false) // removed by dead control flow +{ var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(1649)(); +} +/***/ }), - _this2.onTransitionEnd(node, timeouts.enter, function () { - _this2.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node, appearing); - }); - }); - }); - }; +/***/ 1953: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - Transition.prototype.performExit = function performExit(node) { - var _this3 = this; +module.exports = __webpack_require__(9253); - var exit = this.props.exit; - var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED +/***/ }), - if (!exit) { - this.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - return; - } +/***/ 1999: +/***/ ((module, exports) => { - this.props.onExit(node); - this.safeSetState({ - status: EXITING - }, function () { - _this3.props.onExiting(node); - - _this3.onTransitionEnd(node, timeouts.exit, function () { - _this3.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); - }); - }); - }; - - Transition.prototype.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - }; - - Transition.prototype.safeSetState = function safeSetState(nextState, callback) { - // This shouldn't be necessary, but there are weird race conditions with - // setState callbacks and unmounting in testing, so always make sure that - // we can cancel any pending setState callbacks after we unmount. - callback = this.setNextCallback(callback); - this.setState(nextState, callback); - }; - - Transition.prototype.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; - - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - callback(event); - } - }; +"use strict"; - this.nextCallback.cancel = function () { - active = false; - }; - return this.nextCallback; - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = ownerDocument; - Transition.prototype.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { - this.setNextCallback(handler); +function ownerDocument(node) { + return node && node.ownerDocument || document; +} - if (node) { - if (this.props.addEndListener) { - this.props.addEndListener(node, this.nextCallback); - } +module.exports = exports["default"]; - if (timeout != null) { - setTimeout(this.nextCallback, timeout); - } - } else { - setTimeout(this.nextCallback, 0); - } - }; +/***/ }), - Transition.prototype.render = function render() { - var status = this.state.status; +/***/ 2069: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (status === UNMOUNTED) { - return null; - } +// most Object methods by ES6 should accept primitives +var $export = __webpack_require__(3445); - var _props = this.props, - children = _props.children, - childProps = _objectWithoutProperties(_props, ['children']); // filter props for Transtition +var core = __webpack_require__(9520); +var fails = __webpack_require__(2250); - delete childProps.in; - delete childProps.mountOnEnter; - delete childProps.unmountOnExit; - delete childProps.appear; - delete childProps.enter; - delete childProps.exit; - delete childProps.timeout; - delete childProps.addEndListener; - delete childProps.onEnter; - delete childProps.onEntering; - delete childProps.onEntered; - delete childProps.onExit; - delete childProps.onExiting; - delete childProps.onExited; +module.exports = function (KEY, exec) { + var fn = (core.Object || {})[KEY] || Object[KEY]; + var exp = {}; + exp[KEY] = exec(fn); + $export($export.S + $export.F * fails(function () { + fn(1); + }), 'Object', exp); +}; - if (typeof children === 'function') { - return children(status, childProps); - } +/***/ }), - var child = _react2.default.Children.only(children); +/***/ 2103: +/***/ ((module) => { - return _react2.default.cloneElement(child, childProps); - }; +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; - return Transition; -}(_react2.default.Component); +/***/ }), -Transition.contextTypes = { - transitionGroup: PropTypes.object -}; -Transition.childContextTypes = { - transitionGroup: function transitionGroup() {} -}; -Transition.propTypes = false ? 0 : {}; +/***/ 2125: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -function noop() {} +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) +var $export = __webpack_require__(3445); -Transition.defaultProps = { - in: false, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - enter: true, - exit: true, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop -}; -Transition.UNMOUNTED = 0; -Transition.EXITED = 1; -Transition.ENTERING = 2; -Transition.ENTERED = 3; -Transition.EXITING = 4; -exports.Ay = (0, _reactLifecyclesCompat.polyfill)(Transition); +$export($export.S, 'Array', { + isArray: __webpack_require__(8727) +}); /***/ }), -/***/ 1510: +/***/ 2235: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var has = __webpack_require__(8283); +var toIObject = __webpack_require__(8759); -var create = __webpack_require__(9345); +var arrayIndexOf = __webpack_require__(1354)(false); -var descriptor = __webpack_require__(3650); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var setToStringTag = __webpack_require__(9874); +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; -var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys -__webpack_require__(1795)(IteratorPrototype, __webpack_require__(6932)('iterator'), function () { - return this; -}); -module.exports = function (Constructor, NAME, next) { - Constructor.prototype = create(IteratorPrototype, { - next: descriptor(1, next) - }); - setToStringTag(Constructor, NAME + ' Iterator'); + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + + return result; }; /***/ }), -/***/ 1547: -/***/ ((module, exports, __webpack_require__) => { +/***/ 2250: +/***/ ((module) => { -"use strict"; +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = offsetParent; +/***/ 2289: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _ownerDocument = __webpack_require__(1999); +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) +var has = __webpack_require__(8283); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var toObject = __webpack_require__(5332); -var _style = __webpack_require__(7735); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var _style2 = _interopRequireDefault(_style); +var ObjectProto = Object.prototype; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +module.exports = Object.getPrototypeOf || function (O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; -function nodeName(node) { - return node.nodeName && node.nodeName.toLowerCase(); -} + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } -function offsetParent(node) { - var doc = (0, _ownerDocument2.default)(node), - offsetParent = node && node.offsetParent; + return O instanceof Object ? ObjectProto : null; +}; - while (offsetParent && nodeName(node) !== 'html' && (0, _style2.default)(offsetParent, 'position') === 'static') { - offsetParent = offsetParent.offsetParent; - } +/***/ }), - return offsetParent || doc.documentElement; -} +/***/ 2309: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = exports['default']; +module.exports = __webpack_require__(2713); /***/ }), -/***/ 1590: -/***/ ((__unused_webpack_module, exports) => { +/***/ 2384: +/***/ ((module) => { "use strict"; +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ -exports.__esModule = true; -exports.ariaHidden = ariaHidden; -exports.hideSiblings = hideSiblings; -exports.showSiblings = showSiblings; -var BLACKLIST = ['template', 'script', 'style']; +var __DEV__ = "production" !== 'production'; -var isHidable = function isHidable(_ref) { - var nodeType = _ref.nodeType, - tagName = _ref.tagName; - return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1; -}; +var warning = function () {}; -var siblings = function siblings(container, mount, cb) { - mount = [].concat(mount); - [].forEach.call(container.children, function (node) { - if (mount.indexOf(node) === -1 && isHidable(node)) { - cb(node); +if (__DEV__) { + var printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + + for (var key = 1; key < len; key++) { + args[key - 1] = arguments[key]; } - }); -}; -function ariaHidden(show, node) { - if (!node) { - return; - } + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); - if (show) { - node.setAttribute('aria-hidden', 'true'); - } else { - node.removeAttribute('aria-hidden'); - } -} + if (typeof console !== 'undefined') { + console.error(message); + } -function hideSiblings(container, mountNode) { - siblings(container, mountNode, function (node) { - return ariaHidden(true, node); - }); -} + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; -function showSiblings(container, mountNode) { - siblings(container, mountNode, function (node) { - return ariaHidden(false, node); - }); + warning = function (condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; + } + + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (!condition) { + printWarning.apply(null, [format].concat(args)); + } + }; } +module.exports = warning; + /***/ }), -/***/ 1614: +/***/ 2426: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = !__webpack_require__(4725) && !__webpack_require__(2250)(function () { - return Object.defineProperty(__webpack_require__(7788)('div'), 'a', { - get: function () { - return 7; - } - }).a != 7; -}); +var document = (__webpack_require__(8248).document); + +module.exports = document && document.documentElement; /***/ }), -/***/ 1685: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 2573: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; -var __webpack_unused_export__; +module.exports = __webpack_require__(3825); +/***/ }), -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = __webpack_unused_export__ = undefined; +/***/ 2691: +/***/ ((__unused_webpack_module, exports) => { -var _end = __webpack_require__(4112); +"use strict"; +var __webpack_unused_export__; +/** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ -var _end2 = _interopRequireDefault(_end); -var _properties = __webpack_require__(3152); +var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); + +function typeOf(object) { + if ("object" === typeof object && null !== object) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + switch (object = object.type, object) { + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: + return object; -var _properties2 = _interopRequireDefault(_properties); + default: + switch (object = object && object.$$typeof, object) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + return object; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + case REACT_CONSUMER_TYPE: + return object; + + default: + return $$typeof; + } + + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } } -__webpack_unused_export__ = _end2.default; -__webpack_unused_export__ = _properties2.default; -exports.Ay = { - end: _end2.default, - properties: _properties2.default +__webpack_unused_export__ = REACT_CONSUMER_TYPE; +__webpack_unused_export__ = REACT_CONTEXT_TYPE; +__webpack_unused_export__ = REACT_ELEMENT_TYPE; +__webpack_unused_export__ = REACT_FORWARD_REF_TYPE; +__webpack_unused_export__ = REACT_FRAGMENT_TYPE; +__webpack_unused_export__ = REACT_LAZY_TYPE; +__webpack_unused_export__ = REACT_MEMO_TYPE; +__webpack_unused_export__ = REACT_PORTAL_TYPE; +__webpack_unused_export__ = REACT_PROFILER_TYPE; +__webpack_unused_export__ = REACT_STRICT_MODE_TYPE; +__webpack_unused_export__ = REACT_SUSPENSE_TYPE; +__webpack_unused_export__ = REACT_SUSPENSE_LIST_TYPE; + +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_CONSUMER_TYPE; }; -/***/ }), +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_CONTEXT_TYPE; +}; -/***/ 1700: -/***/ ((module, exports) => { +__webpack_unused_export__ = function (object) { + return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; +}; -"use strict"; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; +}; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; +}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = camelize; -var rHyphen = /-(.)/g; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_LAZY_TYPE; +}; -function camelize(string) { - return string.replace(rHyphen, function (_, chr) { - return chr.toUpperCase(); - }); -} +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_MEMO_TYPE; +}; -module.exports = exports["default"]; +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_PORTAL_TYPE; +}; -/***/ }), +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_PROFILER_TYPE; +}; -/***/ 1795: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; +}; -var dP = __webpack_require__(8449); +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; +}; -var createDesc = __webpack_require__(3650); +__webpack_unused_export__ = function (object) { + return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; +}; -module.exports = __webpack_require__(4725) ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; +exports.Hy = function (type) { + return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? !0 : !1; }; +__webpack_unused_export__ = typeOf; + /***/ }), -/***/ 1953: +/***/ 2713: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = __webpack_require__(9253); +__webpack_require__(3537); + +var $Object = (__webpack_require__(9520).Object); + +module.exports = function create(P, D) { + return $Object.create(P, D); +}; /***/ }), -/***/ 1999: -/***/ ((module, exports) => { +/***/ 2948: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = ownerDocument; - -function ownerDocument(node) { - return node && node.ownerDocument || document; -} +var ReactPropTypesSecret = __webpack_require__(8643); -module.exports = exports["default"]; +function emptyFunction() {} -/***/ }), +module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } -/***/ 2069: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + 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'); + err.name = 'Invariant Violation'; + throw err; + } -// most Object methods by ES6 should accept primitives -var $export = __webpack_require__(3445); + ; + shim.isRequired = shim; -var core = __webpack_require__(9520); + function getShim() { + return shim; + } -var fails = __webpack_require__(2250); + ; // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. -module.exports = function (KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY]; - var exp = {}; - exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function () { - fn(1); - }), 'Object', exp); + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; }; /***/ }), -/***/ 2103: -/***/ ((module) => { +/***/ 3044: +/***/ ((module, exports, __webpack_require__) => { -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; +"use strict"; -/***/ }), -/***/ 2125: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) -var $export = __webpack_require__(3445); +var _inDOM = __webpack_require__(8647); -$export($export.S, 'Array', { - isArray: __webpack_require__(8727) -}); +var _inDOM2 = _interopRequireDefault(_inDOM); -/***/ }), +var _on = __webpack_require__(8774); -/***/ 2235: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _on2 = _interopRequireDefault(_on); -var has = __webpack_require__(8283); +var _off = __webpack_require__(6170); -var toIObject = __webpack_require__(8759); +var _off2 = _interopRequireDefault(_off); -var arrayIndexOf = __webpack_require__(1354)(false); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); +var listen = function listen() {}; -module.exports = function (object, names) { - var O = toIObject(object); - var i = 0; - var result = []; - var key; +if (_inDOM2.default) { + listen = function listen(node, eventName, handler, capture) { + (0, _on2.default)(node, eventName, handler, capture); + return function () { + (0, _off2.default)(node, eventName, handler, capture); + }; + }; +} - for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys +exports["default"] = listen; +module.exports = exports['default']; +/***/ }), - while (names.length > i) if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } +/***/ 3105: +/***/ ((module, exports, __webpack_require__) => { - return result; -}; +"use strict"; -/***/ }), -/***/ 2250: -/***/ ((module) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } -}; +var _react = __webpack_require__(5442); -/***/ }), +var _react2 = _interopRequireDefault(_react); -/***/ 2289: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _reactIs = __webpack_require__(9523); -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = __webpack_require__(8283); +var _createChainableTypeChecker = __webpack_require__(8663); -var toObject = __webpack_require__(5332); +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var ObjectProto = Object.prototype; +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; -module.exports = Object.getPrototypeOf || function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).'); } - return O instanceof Object ? ObjectProto : null; -}; - -/***/ }), - -/***/ 2309: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(2713); - -/***/ }), - -/***/ 2426: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + if (!(0, _reactIs.isValidElementType)(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).'); + } -var document = (__webpack_require__(8248).document); + return null; +} -module.exports = document && document.documentElement; +exports["default"] = (0, _createChainableTypeChecker2.default)(elementType); +module.exports = exports['default']; /***/ }), -/***/ 2536: -/***/ ((module, exports) => { +/***/ 3152: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; @@ -1457,97 +1079,151 @@ module.exports = document && document.documentElement; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = hasClass; - -function hasClass(element, className) { - if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1; -} - -module.exports = exports["default"]; - -/***/ }), - -/***/ 2573: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; -module.exports = __webpack_require__(3825); +var _inDOM = __webpack_require__(8647); -/***/ }), +var _inDOM2 = _interopRequireDefault(_inDOM); -/***/ 2595: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -"use strict"; -var __webpack_unused_export__; +var transform = 'transform'; +var prefix = void 0, + transitionEnd = void 0, + animationEnd = void 0; +var transitionProperty = void 0, + transitionDuration = void 0, + transitionTiming = void 0, + transitionDelay = void 0; +var animationName = void 0, + animationDuration = void 0, + animationTiming = void 0, + animationDelay = void 0; +if (_inDOM2.default) { + var _getTransitionPropert = getTransitionProperties(); -__webpack_unused_export__ = true; + prefix = _getTransitionPropert.prefix; + exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; + exports.transform = transform = prefix + '-' + transform; + exports.transitionProperty = transitionProperty = prefix + '-transition-property'; + exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; + exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; + exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; + exports.animationName = animationName = prefix + '-animation-name'; + exports.animationDuration = animationDuration = prefix + '-animation-duration'; + exports.animationTiming = animationTiming = prefix + '-animation-delay'; + exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; +} -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { - return typeof obj; -} : function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; +exports.transform = transform; +exports.transitionProperty = transitionProperty; +exports.transitionTiming = transitionTiming; +exports.transitionDelay = transitionDelay; +exports.transitionDuration = transitionDuration; +exports.transitionEnd = transitionEnd; +exports.animationName = animationName; +exports.animationDuration = animationDuration; +exports.animationTiming = animationTiming; +exports.animationDelay = animationDelay; +exports.animationEnd = animationEnd; +exports["default"] = { + transform: transform, + end: transitionEnd, + property: transitionProperty, + timing: transitionTiming, + delay: transitionDelay, + duration: transitionDuration }; -var _react = __webpack_require__(5442); - -var _react2 = _interopRequireDefault(_react); - -var _createChainableTypeChecker = __webpack_require__(4152); - -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +function getTransitionProperties() { + var style = document.createElement('div').style; + var vendorMap = { + O: function O(e) { + return 'o' + e.toLowerCase(); + }, + Moz: function Moz(e) { + return e.toLowerCase(); + }, + Webkit: function Webkit(e) { + return 'webkit' + e; + }, + ms: function ms(e) { + return 'MS' + e; + } }; -} - -function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + var vendors = Object.keys(vendorMap); + var transitionEnd = void 0, + animationEnd = void 0; + var prefix = ''; - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } + for (var i = 0; i < vendors.length; i++) { + var vendor = vendors[i]; - if (propType !== 'function' && propType !== 'string') { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + if (vendor + 'TransitionProperty' in style) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = vendorMap[vendor]('TransitionEnd'); + animationEnd = vendorMap[vendor]('AnimationEnd'); + break; + } } - return null; + if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; + if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; + style = null; + return { + animationEnd: animationEnd, + transitionEnd: transitionEnd, + prefix: prefix + }; } -exports.A = (0, _createChainableTypeChecker2.default)(elementType); - /***/ }), -/***/ 2713: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 3215: +/***/ ((module, exports, __webpack_require__) => { -__webpack_require__(3537); +"use strict"; -var $Object = (__webpack_require__(9520).Object); -module.exports = function create(P, D) { - return $Object.create(P, D); -}; +exports.__esModule = true; +exports["default"] = uncontrollable; -/***/ }), +var _react = _interopRequireDefault(__webpack_require__(5442)); -/***/ 2740: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var _invariant = _interopRequireDefault(__webpack_require__(3737)); -"use strict"; +var Utils = _interopRequireWildcard(__webpack_require__(7770)); +function _interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } else { + var newObj = {}; -exports.__esModule = true; -exports.classNamesShape = exports.timeoutsShape = undefined; -exports.transitionTimeout = transitionTimeout; + if (obj != null) { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; -var _propTypes = __webpack_require__(5762); + if (desc.get || desc.set) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + } -var _propTypes2 = _interopRequireDefault(_propTypes); + newObj.default = obj; + return newObj; + } +} function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -1555,589 +1231,518 @@ function _interopRequireDefault(obj) { }; } -function transitionTimeout(transitionType) { - var timeoutPropName = 'transition' + transitionType + 'Timeout'; - var enabledPropName = 'transition' + transitionType; - return function (props) { - // If the transition is enabled - if (props[enabledPropName]) { - // If no timeout duration is provided - if (props[timeoutPropName] == null) { - 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 - } else if (typeof props[timeoutPropName] !== 'number') { - return new Error(timeoutPropName + ' must be a number (in milliseconds)'); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } } } - return null; + return target; }; + + return _extends.apply(this, arguments); } -var timeoutsShape = exports.timeoutsShape = _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.shape({ - enter: _propTypes2.default.number, - exit: _propTypes2.default.number -}).isRequired]); - -var classNamesShape = exports.classNamesShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({ - enter: _propTypes2.default.string, - exit: _propTypes2.default.string, - active: _propTypes2.default.string -}), _propTypes2.default.shape({ - enter: _propTypes2.default.string, - enterDone: _propTypes2.default.string, - enterActive: _propTypes2.default.string, - exit: _propTypes2.default.string, - exitDone: _propTypes2.default.string, - exitActive: _propTypes2.default.string -})]); +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} -/***/ }), +function uncontrollable(Component, controlledValues, methods) { + if (methods === void 0) { + methods = []; + } -/***/ 2799: -/***/ ((module, exports, __webpack_require__) => { + var displayName = Component.displayName || Component.name || 'Component'; + var isCompositeComponent = Utils.isReactComponent(Component); + var controlledProps = Object.keys(controlledValues); + var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey); + !(isCompositeComponent || !methods.length) ? false ? 0 : invariant(false) : void 0; -"use strict"; + var UncontrolledComponent = + /*#__PURE__*/ + function (_React$Component) { + _inheritsLoose(UncontrolledComponent, _React$Component); + function UncontrolledComponent() { + var _this; -exports.__esModule = true; -exports["default"] = getContainer; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -var _reactDom = __webpack_require__(6003); + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + _this.handlers = Object.create(null); + controlledProps.forEach(function (propName) { + var handlerName = controlledValues[propName]; -var _reactDom2 = _interopRequireDefault(_reactDom); + var handleChange = function handleChange(value) { + if (_this.props[handlerName]) { + var _this$props; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + _this._notifying = true; -function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2.default.findDOMNode(container) || defaultContainer; -} + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } -module.exports = exports['default']; + (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args)); -/***/ }), + _this._notifying = false; + } -/***/ 2948: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + _this._values[propName] = value; + if (!_this.unmounted) _this.forceUpdate(); + }; -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + _this.handlers[handlerName] = handleChange; + }); + if (isCompositeComponent) _this.attachRef = function (ref) { + _this.inner = ref; + }; + return _this; + } + var _proto = UncontrolledComponent.prototype; -var ReactPropTypesSecret = __webpack_require__(8643); + _proto.shouldComponentUpdate = function shouldComponentUpdate() { + //let the forceUpdate trigger the update + return !this._notifying; + }; -function emptyFunction() {} + _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { + var _this2 = this; -module.exports = function () { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } + var props = this.props; + this._values = Object.create(null); + controlledProps.forEach(function (key) { + _this2._values[key] = props[Utils.defaultKey(key)]; + }); + }; - 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'); - err.name = 'Invariant Violation'; - throw err; - } + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + var _this3 = this; - ; - shim.isRequired = shim; + var props = this.props; + controlledProps.forEach(function (key) { + /** + * If a prop switches from controlled to Uncontrolled + * reset its value to the defaultValue + */ + if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) { + _this3._values[key] = nextProps[Utils.defaultKey(key)]; + } + }); + }; - function getShim() { - return shim; - } + _proto.componentWillUnmount = function componentWillUnmount() { + this.unmounted = true; + }; - ; // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + _proto.getControlledInstance = function getControlledInstance() { + return this.inner; + }; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; -}; + _proto.render = function render() { + var _this4 = this; -/***/ }), + var props = _extends({}, this.props); -/***/ 3029: -/***/ ((module, exports, __webpack_require__) => { + PROPS_TO_OMIT.forEach(function (prop) { + delete props[prop]; + }); + var newProps = {}; + controlledProps.forEach(function (propName) { + var propValue = _this4.props[propName]; + newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName]; + }); + return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, { + ref: this.attachRef + })); + }; -"use strict"; + return UncontrolledComponent; + }(_react.default.Component); + UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")"; + UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName); + methods.forEach(function (method) { + UncontrolledComponent.prototype[method] = function $proxiedMethod() { + var _inner; -exports.__esModule = true; + return (_inner = this.inner)[method].apply(_inner, arguments); + }; + }); + UncontrolledComponent.ControlledComponent = Component; + /** + * useful when wrapping a Component and you want to control + * everything + */ -var _contains = __webpack_require__(6489); + UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) { + if (additions === void 0) { + additions = {}; + } -var _contains2 = _interopRequireDefault(_contains); + return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); + }; -var _propTypes = __webpack_require__(5762); + return UncontrolledComponent; +} -var _propTypes2 = _interopRequireDefault(_propTypes); +module.exports = exports["default"]; -var _react = __webpack_require__(5442); +/***/ }), -var _react2 = _interopRequireDefault(_react); +/***/ 3443: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _reactDom = __webpack_require__(6003); +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__(3543); // eslint-disable-next-line no-prototype-builtins -var _reactDom2 = _interopRequireDefault(_reactDom); -var _addEventListener = __webpack_require__(5865); +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; -var _addEventListener2 = _interopRequireDefault(_addEventListener); +/***/ }), -var _ownerDocument = __webpack_require__(3296); +/***/ 3445: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var global = __webpack_require__(8248); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var core = __webpack_require__(9520); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +var ctx = __webpack_require__(5154); -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +var hide = __webpack_require__(1795); - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} +var has = __webpack_require__(8283); -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +var PROTOTYPE = 'prototype'; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; -var escapeKeyCode = 27; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; // export native or passed -function isLeftClickEvent(event) { - return event.button === 0; -} + out = own ? target[key] : source[key]; // prevent global pollution for namespaces -function isModifiedEvent(event) { - return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); -} -/** - * The `` component registers your callback on the document - * when rendered. Powers the `` component. This is used achieve modal - * style behavior where your callback is triggered when the user tries to - * interact with the rest of the document or hits the `esc` key. - */ + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: + return new C(); + case 1: + return new C(a); -var RootCloseWrapper = function (_React$Component) { - _inherits(RootCloseWrapper, _React$Component); + case 2: + return new C(a, b); + } - function RootCloseWrapper(props, context) { - _classCallCheck(this, RootCloseWrapper); + return new C(a, b, c); + } - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + return C.apply(this, arguments); + }; - _this.addEventListeners = function () { - // Store the current event to avoid triggering handlers immediately - // https://github.com/facebook/react/issues/20074 - _this.currentEvent = window.event; - var event = _this.props.event; - var doc = (0, _ownerDocument2.default)(_this); // Use capture for this listener so it fires before React's listener, to - // avoid false positives in the contains() check below if the target DOM - // element is removed in the React mouse callback. + F[PROTOTYPE] = C[PROTOTYPE]; + return F; // make static versions for prototype methods + }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true); - _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse); - _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp); - }; + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - _this.removeEventListeners = function () { - if (_this.documentMouseCaptureListener) { - _this.documentMouseCaptureListener.remove(); - } + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } +}; // type bitmap - if (_this.documentMouseListener) { - _this.documentMouseListener.remove(); - } - if (_this.documentKeyupListener) { - _this.documentKeyupListener.remove(); - } - }; +$export.F = 1; // forced - _this.handleMouseCapture = function (e) { - _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target); - }; +$export.G = 2; // global - _this.handleMouse = function (e) { - // skip if this event is the same as the one running when we added the handlers - if (e === _this.currentEvent) { - _this.currentEvent = undefined; - return; - } +$export.S = 4; // static - if (!_this.preventMouseRootClose && _this.props.onRootClose) { - _this.props.onRootClose(e); - } - }; +$export.P = 8; // proto - _this.handleKeyUp = function (e) { - // skip if this event is the same as the one running when we added the handlers - if (e === _this.currentEvent) { - _this.currentEvent = undefined; - return; - } +$export.B = 16; // bind - if (e.keyCode === escapeKeyCode && _this.props.onRootClose) { - _this.props.onRootClose(e); - } - }; +$export.W = 32; // wrap - _this.preventMouseRootClose = false; - return _this; - } +$export.U = 64; // safe - RootCloseWrapper.prototype.componentDidMount = function componentDidMount() { - if (!this.props.disabled) { - this.addEventListeners(); - } - }; +$export.R = 128; // real proto method for `library` - RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - if (!this.props.disabled && prevProps.disabled) { - this.addEventListeners(); - } else if (this.props.disabled && !prevProps.disabled) { - this.removeEventListeners(); - } - }; +module.exports = $export; - RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() { - if (!this.props.disabled) { - this.removeEventListeners(); - } - }; +/***/ }), - RootCloseWrapper.prototype.render = function render() { - return this.props.children; - }; +/***/ 3481: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - return RootCloseWrapper; -}(_react2.default.Component); +"use strict"; -RootCloseWrapper.displayName = 'RootCloseWrapper'; -RootCloseWrapper.propTypes = { - /** - * Callback fired after click or mousedown. Also triggers when user hits `esc`. - */ - onRootClose: _propTypes2.default.func, - /** - * Children to render. - */ - children: _propTypes2.default.element, +var $defineProperty = __webpack_require__(8449); - /** - * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`. - */ - disabled: _propTypes2.default.bool, +var createDesc = __webpack_require__(3650); - /** - * Choose which document mouse event to bind to. - */ - event: _propTypes2.default.oneOf(['click', 'mousedown']) -}; -RootCloseWrapper.defaultProps = { - event: 'click' +module.exports = function (object, index, value) { + if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; }; -exports["default"] = RootCloseWrapper; -module.exports = exports['default']; /***/ }), -/***/ 3044: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3537: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var $export = __webpack_require__(3445); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +$export($export.S, 'Object', { + create: __webpack_require__(9345) +}); -var _inDOM = __webpack_require__(8647); +/***/ }), -var _inDOM2 = _interopRequireDefault(_inDOM); +/***/ 3543: +/***/ ((module) => { -var _on = __webpack_require__(8774); +var toString = {}.toString; -var _on2 = _interopRequireDefault(_on); +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; -var _off = __webpack_require__(6170); +/***/ }), -var _off2 = _interopRequireDefault(_off); +/***/ 3650: +/***/ ((module) => { -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value }; -} +}; -var listen = function listen() {}; +/***/ }), -if (_inDOM2.default) { - listen = function listen(node, eventName, handler, capture) { - (0, _on2.default)(node, eventName, handler, capture); - return function () { - (0, _off2.default)(node, eventName, handler, capture); - }; - }; -} +/***/ 3655: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -exports["default"] = listen; -module.exports = exports['default']; +__webpack_require__(9532); + +module.exports = __webpack_require__(9520).Object.values; /***/ }), -/***/ 3105: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3737: +/***/ ((module) => { "use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +var invariant = function (condition, format, a, b, c, d, e, f) { + if (false) // removed by dead control flow +{} -var _react = __webpack_require__(5442); + if (!condition) { + var error; -var _react2 = _interopRequireDefault(_react); + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } -var _reactIs = __webpack_require__(9523); + error.framesToPop = 1; // we don't care about invariant's own frame -var _createChainableTypeChecker = __webpack_require__(8663); + throw error; + } +}; -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); +module.exports = invariant; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +/***/ }), -function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; +/***/ 3796: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).'); - } +var dP = __webpack_require__(8449); - if (!(0, _reactIs.isValidElementType)(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).'); - } +var anObject = __webpack_require__(4610); - return null; -} +var getKeys = __webpack_require__(5033); -exports["default"] = (0, _createChainableTypeChecker2.default)(elementType); -module.exports = exports['default']; +module.exports = __webpack_require__(4725) ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + + return O; +}; /***/ }), -/***/ 3152: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 3825: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +__webpack_require__(3993); + +module.exports = __webpack_require__(9520).Object.keys; + +/***/ }), + +/***/ 3837: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +/* unused reexport */ __webpack_require__(1897); + +/***/ }), + +/***/ 3841: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; +var ctx = __webpack_require__(5154); -var _inDOM = __webpack_require__(8647); +var $export = __webpack_require__(3445); -var _inDOM2 = _interopRequireDefault(_inDOM); +var toObject = __webpack_require__(5332); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var call = __webpack_require__(6562); -var transform = 'transform'; -var prefix = void 0, - transitionEnd = void 0, - animationEnd = void 0; -var transitionProperty = void 0, - transitionDuration = void 0, - transitionTiming = void 0, - transitionDelay = void 0; -var animationName = void 0, - animationDuration = void 0, - animationTiming = void 0, - animationDelay = void 0; +var isArrayIter = __webpack_require__(7350); -if (_inDOM2.default) { - var _getTransitionPropert = getTransitionProperties(); +var toLength = __webpack_require__(371); - prefix = _getTransitionPropert.prefix; - exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; - exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; - exports.transform = transform = prefix + '-' + transform; - exports.transitionProperty = transitionProperty = prefix + '-transition-property'; - exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; - exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; - exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; - exports.animationName = animationName = prefix + '-animation-name'; - exports.animationDuration = animationDuration = prefix + '-animation-duration'; - exports.animationTiming = animationTiming = prefix + '-animation-delay'; - exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; -} +var createProperty = __webpack_require__(3481); -exports.transform = transform; -exports.transitionProperty = transitionProperty; -exports.transitionTiming = transitionTiming; -exports.transitionDelay = transitionDelay; -exports.transitionDuration = transitionDuration; -exports.transitionEnd = transitionEnd; -exports.animationName = animationName; -exports.animationDuration = animationDuration; -exports.animationTiming = animationTiming; -exports.animationDelay = animationDelay; -exports.animationEnd = animationEnd; -exports["default"] = { - transform: transform, - end: transitionEnd, - property: transitionProperty, - timing: transitionTiming, - delay: transitionDelay, - duration: transitionDuration -}; +var getIterFn = __webpack_require__(6948); -function getTransitionProperties() { - var style = document.createElement('div').style; - var vendorMap = { - O: function O(e) { - return 'o' + e.toLowerCase(); - }, - Moz: function Moz(e) { - return e.toLowerCase(); - }, - Webkit: function Webkit(e) { - return 'webkit' + e; - }, - ms: function ms(e) { - return 'MS' + e; - } - }; - var vendors = Object.keys(vendorMap); - var transitionEnd = void 0, - animationEnd = void 0; - var prefix = ''; +$export($export.S + $export.F * !__webpack_require__(6509)(function (iter) { + Array.from(iter); +}), 'Array', { + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) + from: function from(arrayLike + /* , mapfn = undefined, thisArg = undefined */ + ) { + var O = toObject(arrayLike); + var C = typeof this == 'function' ? this : Array; + var aLen = arguments.length; + var mapfn = aLen > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + var index = 0; + var iterFn = getIterFn(O); + var length, result, step, iterator; + 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 - for (var i = 0; i < vendors.length; i++) { - var vendor = vendors[i]; + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); + } + } else { + length = toLength(O.length); - if (vendor + 'TransitionProperty' in style) { - prefix = '-' + vendor.toLowerCase(); - transitionEnd = vendorMap[vendor]('TransitionEnd'); - animationEnd = vendorMap[vendor]('AnimationEnd'); - break; + for (result = new C(length); length > index; index++) { + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); + } } - } - if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; - if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; - style = null; - return { - animationEnd: animationEnd, - transitionEnd: transitionEnd, - prefix: prefix - }; -} + result.length = index; + return result; + } +}); /***/ }), -/***/ 3215: -/***/ ((module, exports, __webpack_require__) => { +/***/ 3993: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 19.1.2.14 Object.keys(O) +var toObject = __webpack_require__(5332); +var $keys = __webpack_require__(5033); -exports.__esModule = true; -exports["default"] = uncontrollable; +__webpack_require__(2069)('keys', function () { + return function keys(it) { + return $keys(toObject(it)); + }; +}); -var _react = _interopRequireDefault(__webpack_require__(5442)); +/***/ }), -var _invariant = _interopRequireDefault(__webpack_require__(3737)); +/***/ 4065: +/***/ ((module, exports, __webpack_require__) => { -var Utils = _interopRequireWildcard(__webpack_require__(7770)); +"use strict"; -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = hyphenateStyleName; - if (desc.get || desc.set) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - } +var _hyphenate = __webpack_require__(6534); - newObj.default = obj; - return newObj; - } -} +var _hyphenate2 = _interopRequireDefault(_hyphenate); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2145,220 +1750,236 @@ function _interopRequireDefault(obj) { }; } -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; +var msPattern = /^ms-/; +/** + * Copyright 2013-2014, Facebook, Inc. + * All rights reserved. + * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js + */ - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +function hyphenateStyleName(string) { + return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-'); +} - return target; - }; +module.exports = exports['default']; - return _extends.apply(this, arguments); -} +/***/ }), -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; -} +/***/ 4070: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -function uncontrollable(Component, controlledValues, methods) { - if (methods === void 0) { - methods = []; - } +var toInteger = __webpack_require__(6997); - var displayName = Component.displayName || Component.name || 'Component'; - var isCompositeComponent = Utils.isReactComponent(Component); - var controlledProps = Object.keys(controlledValues); - var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey); - !(isCompositeComponent || !methods.length) ? false ? 0 : invariant(false) : void 0; +var defined = __webpack_require__(9314); // true -> String#at +// false -> String#codePointAt - var UncontrolledComponent = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(UncontrolledComponent, _React$Component); - function UncontrolledComponent() { - var _this; +module.exports = function (TO_STRING) { + return function (that, pos) { + var s = String(defined(that)); + var i = toInteger(pos); + var l = s.length; + var a, b; + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; + a = s.charCodeAt(i); + 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; + }; +}; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +/***/ }), - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.handlers = Object.create(null); - controlledProps.forEach(function (propName) { - var handlerName = controlledValues[propName]; +/***/ 4112: +/***/ ((module, exports, __webpack_require__) => { - var handleChange = function handleChange(value) { - if (_this.props[handlerName]) { - var _this$props; +"use strict"; - _this._notifying = true; - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); - (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args)); +var _properties = __webpack_require__(3152); - _this._notifying = false; - } +var _properties2 = _interopRequireDefault(_properties); - _this._values[propName] = value; - if (!_this.unmounted) _this.forceUpdate(); - }; +var _style = __webpack_require__(7735); - _this.handlers[handlerName] = handleChange; - }); - if (isCompositeComponent) _this.attachRef = function (ref) { - _this.inner = ref; - }; - return _this; - } +var _style2 = _interopRequireDefault(_style); - var _proto = UncontrolledComponent.prototype; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - _proto.shouldComponentUpdate = function shouldComponentUpdate() { - //let the forceUpdate trigger the update - return !this._notifying; - }; +function onEnd(node, handler, duration) { + var fakeEvent = { + target: node, + currentTarget: node + }, + backup; + if (!_properties2.default.end) duration = 0;else if (duration == null) duration = parseDuration(node) || 0; - _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { - var _this2 = this; + if (_properties2.default.end) { + node.addEventListener(_properties2.default.end, done, false); + backup = setTimeout(function () { + return done(fakeEvent); + }, (duration || 100) * 1.5); + } else setTimeout(done.bind(null, fakeEvent), 0); - var props = this.props; - this._values = Object.create(null); - controlledProps.forEach(function (key) { - _this2._values[key] = props[Utils.defaultKey(key)]; - }); - }; + function done(event) { + if (event.target !== event.currentTarget) return; + clearTimeout(backup); + event.target.removeEventListener(_properties2.default.end, done); + handler.call(this); + } +} - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - var _this3 = this; +onEnd._parseDuration = parseDuration; +exports["default"] = onEnd; - var props = this.props; - controlledProps.forEach(function (key) { - /** - * If a prop switches from controlled to Uncontrolled - * reset its value to the defaultValue - */ - if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) { - _this3._values[key] = nextProps[Utils.defaultKey(key)]; - } - }); - }; +function parseDuration(node) { + var str = (0, _style2.default)(node, _properties2.default.duration), + mult = str.indexOf('ms') === -1 ? 1000 : 1; + return parseFloat(str) * mult; +} - _proto.componentWillUnmount = function componentWillUnmount() { - this.unmounted = true; - }; +module.exports = exports['default']; - _proto.getControlledInstance = function getControlledInstance() { - return this.inner; - }; +/***/ }), - _proto.render = function render() { - var _this4 = this; +/***/ 4152: +/***/ ((__unused_webpack_module, exports) => { - var props = _extends({}, this.props); +"use strict"; - PROPS_TO_OMIT.forEach(function (prop) { - delete props[prop]; - }); - var newProps = {}; - controlledProps.forEach(function (propName) { - var propValue = _this4.props[propName]; - newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName]; - }); - return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, { - ref: this.attachRef - })); - }; - return UncontrolledComponent; - }(_react.default.Component); +exports.__esModule = true; +exports["default"] = createChainableTypeChecker; +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ +// Mostly taken from ReactPropTypes. - UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")"; - UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName); - methods.forEach(function (method) { - UncontrolledComponent.prototype[method] = function $proxiedMethod() { - var _inner; +function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - return (_inner = this.inner)[method].apply(_inner, arguments); - }; - }); - UncontrolledComponent.ControlledComponent = Component; - /** - * useful when wrapping a Component and you want to control - * everything - */ + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) { - if (additions === void 0) { - additions = {}; + return null; } - return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); - }; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - return UncontrolledComponent; + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; } -module.exports = exports["default"]; +/***/ }), + +/***/ 4610: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isObject = __webpack_require__(2103); + +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; /***/ }), -/***/ 3296: -/***/ ((module, exports, __webpack_require__) => { +/***/ 4683: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +module.exports = __webpack_require__(687); +/***/ }), -exports.__esModule = true; +/***/ 4701: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -exports["default"] = function (componentOrElement) { - return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement)); -}; +"use strict"; -var _reactDom = __webpack_require__(6003); -var _reactDom2 = _interopRequireDefault(_reactDom); +var $at = __webpack_require__(4070)(true); // 21.1.3.27 String.prototype[@@iterator]() -var _ownerDocument = __webpack_require__(1999); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +__webpack_require__(829)(String, 'String', function (iterated) { + this._t = String(iterated); // target -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + this._i = 0; // next index + // 21.1.5.2.1 %StringIteratorPrototype%.next() +}, function () { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { + value: undefined, + done: true }; -} + point = $at(O, index); + this._i += point.length; + return { + value: point, + done: false + }; +}); -module.exports = exports['default']; +/***/ }), + +/***/ 4725: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__(2250)(function () { + return Object.defineProperty({}, 'a', { + get: function () { + return 7; + } + }).a != 7; +}); /***/ }), -/***/ 3328: -/***/ ((module, exports, __webpack_require__) => { +/***/ 4976: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; +var __webpack_unused_export__; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = scrollTop; +__webpack_unused_export__ = true; -var _isWindow = __webpack_require__(4976); +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; +} : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; +}; + +var _react = __webpack_require__(5442); + +var _react2 = _interopRequireDefault(_react); + +var _createChainableTypeChecker = __webpack_require__(4152); -var _isWindow2 = _interopRequireDefault(_isWindow); +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2366,224 +1987,307 @@ function _interopRequireDefault(obj) { }; } -function scrollTop(node, val) { - var win = (0, _isWindow2.default)(node); - if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft; - if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val; +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + if (propType !== 'function' && propType !== 'string') { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + return null; } -module.exports = exports['default']; +exports.A = (0, _createChainableTypeChecker2.default)(elementType); /***/ }), -/***/ 3443: +/***/ 5012: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = __webpack_require__(3543); // eslint-disable-next-line no-prototype-builtins +var getKeys = __webpack_require__(5033); +var toIObject = __webpack_require__(8759); -module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return cof(it) == 'String' ? it.split('') : Object(it); +var isEnum = (__webpack_require__(9871).f); + +module.exports = function (isEntries) { + return function (it) { + var O = toIObject(it); + var keys = getKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + + while (length > i) if (isEnum.call(O, key = keys[i++])) { + result.push(isEntries ? [key, O[key]] : O[key]); + } + + return result; + }; }; /***/ }), -/***/ 3445: +/***/ 5033: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var global = __webpack_require__(8248); +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__(2235); -var core = __webpack_require__(9520); +var enumBugKeys = __webpack_require__(8338); -var ctx = __webpack_require__(5154); +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; -var hide = __webpack_require__(1795); +/***/ }), -var has = __webpack_require__(8283); +/***/ 5115: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var PROTOTYPE = 'prototype'; +module.exports = __webpack_require__(3655); -var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; +/***/ }), - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && has(exports, key)) continue; // export native or passed +/***/ 5154: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - out = own ? target[key] : source[key]; // prevent global pollution for namespaces +// optional / simple context binding +var aFunction = __webpack_require__(1149); - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: - return new C(); - - case 1: - return new C(a); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; - case 2: - return new C(a, b); - } + switch (length) { + case 1: + return function (a) { + return fn.call(that, a); + }; - return new C(a, b, c); - } + case 2: + return function (a, b) { + return fn.call(that, a, b); + }; - return C.apply(this, arguments); + case 3: + return function (a, b, c) { + return fn.call(that, a, b, c); }; + } - F[PROTOTYPE] = C[PROTOTYPE]; - return F; // make static versions for prototype methods - }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + return function () + /* ...args */ + { + return fn.apply(that, arguments); + }; +}; - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% +/***/ }), - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } -}; // type bitmap +/***/ 5229: +/***/ ((module, exports) => { +"use strict"; -$export.F = 1; // forced -$export.G = 2; // global +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = isTransform; +var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i; -$export.S = 4; // static +function isTransform(property) { + return !!(property && supportedTransforms.test(property)); +} -$export.P = 8; // proto +module.exports = exports["default"]; -$export.B = 16; // bind +/***/ }), -$export.W = 32; // wrap +/***/ 5307: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -$export.U = 64; // safe +var toInteger = __webpack_require__(6997); -$export.R = 128; // real proto method for `library` +var max = Math.max; +var min = Math.min; -module.exports = $export; +module.exports = function (index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); +}; /***/ }), -/***/ 3481: +/***/ 5332: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(9314); +module.exports = function (it) { + return Object(defined(it)); +}; -var $defineProperty = __webpack_require__(8449); +/***/ }), -var createDesc = __webpack_require__(3650); +/***/ 5402: +/***/ ((__unused_webpack_module, exports) => { -module.exports = function (object, index, value) { - if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value; -}; +exports.f = Object.getOwnPropertySymbols; /***/ }), -/***/ 3521: -/***/ ((module, exports, __webpack_require__) => { +/***/ 5442: +/***/ ((module) => { "use strict"; +module.exports = __WEBPACK_EXTERNAL_MODULE__5442__; +/***/ }), -exports.__esModule = true; - -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +/***/ 5525: +/***/ ((module) => { - return target; -}; +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; -var _activeElement = __webpack_require__(6335); +/***/ }), -var _activeElement2 = _interopRequireDefault(_activeElement); +/***/ 5647: +/***/ ((module, exports, __webpack_require__) => { -var _contains = __webpack_require__(6489); +"use strict"; -var _contains2 = _interopRequireDefault(_contains); -var _inDOM = __webpack_require__(8647); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _getComputedStyle; -var _inDOM2 = _interopRequireDefault(_inDOM); +var _camelizeStyle = __webpack_require__(8039); -var _propTypes = __webpack_require__(5762); +var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); -var _propTypes2 = _interopRequireDefault(_propTypes); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -var _componentOrElement = __webpack_require__(6387); +var rposition = /^(top|right|bottom|left)$/; +var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); +function _getComputedStyle(node) { + if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); + var doc = node.ownerDocument; + return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : { + //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72 + getPropertyValue: function getPropertyValue(prop) { + var style = node.style; + prop = (0, _camelizeStyle2.default)(prop); + if (prop == 'float') prop = 'styleFloat'; + var current = node.currentStyle[prop] || null; + if (current == null && style && style[prop]) current = style[prop]; -var _deprecated = __webpack_require__(7748); + if (rnumnonpx.test(current) && !rposition.test(prop)) { + // Remember the original values + var left = style.left; + var runStyle = node.runtimeStyle; + var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out -var _deprecated2 = _interopRequireDefault(_deprecated); + if (rsLeft) runStyle.left = node.currentStyle.left; + style.left = prop === 'fontSize' ? '1em' : current; + current = style.pixelLeft + 'px'; // Revert the changed values -var _elementType = __webpack_require__(3105); + style.left = left; + if (rsLeft) runStyle.left = rsLeft; + } -var _elementType2 = _interopRequireDefault(_elementType); + return current; + } + }; +} -var _react = __webpack_require__(5442); +module.exports = exports['default']; -var _react2 = _interopRequireDefault(_react); +/***/ }), -var _reactDom = __webpack_require__(6003); +/***/ 5762: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _reactDom2 = _interopRequireDefault(_reactDom); +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +if (false) // removed by dead control flow +{ var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(2948)(); +} -var _warning = __webpack_require__(7909); +/***/ }), -var _warning2 = _interopRequireDefault(_warning); +/***/ 5768: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -var _ModalManager = __webpack_require__(4542); +// 19.1.3.1 Object.assign(target, source) +var $export = __webpack_require__(3445); -var _ModalManager2 = _interopRequireDefault(_ModalManager); +$export($export.S + $export.F, 'Object', { + assign: __webpack_require__(344) +}); -var _Portal = __webpack_require__(904); +/***/ }), -var _Portal2 = _interopRequireDefault(_Portal); +/***/ 6003: +/***/ ((module) => { -var _RefHolder = __webpack_require__(8223); +"use strict"; +module.exports = __WEBPACK_EXTERNAL_MODULE__6003__; -var _RefHolder2 = _interopRequireDefault(_RefHolder); +/***/ }), -var _addEventListener = __webpack_require__(5865); +/***/ 6065: +/***/ ((module, exports, __webpack_require__) => { -var _addEventListener2 = _interopRequireDefault(_addEventListener); +"use strict"; -var _addFocusListener = __webpack_require__(9905); -var _addFocusListener2 = _interopRequireDefault(_addFocusListener); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var _getContainer = __webpack_require__(2799); +exports["default"] = function (recalc) { + if (!size && size !== 0 || recalc) { + if (_inDOM2.default) { + var scrollDiv = document.createElement('div'); + scrollDiv.style.position = 'absolute'; + scrollDiv.style.top = '-9999px'; + scrollDiv.style.width = '50px'; + scrollDiv.style.height = '50px'; + scrollDiv.style.overflow = 'scroll'; + document.body.appendChild(scrollDiv); + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + } + } -var _getContainer2 = _interopRequireDefault(_getContainer); + return size; +}; -var _ownerDocument = __webpack_require__(3296); +var _inDOM = __webpack_require__(8647); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var _inDOM2 = _interopRequireDefault(_inDOM); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -2591,865 +2295,584 @@ function _interopRequireDefault(obj) { }; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} +var size = void 0; +module.exports = exports['default']; -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +/***/ }), - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} +/***/ 6170: +/***/ ((module, exports, __webpack_require__) => { -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +"use strict"; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/* eslint-disable react/prop-types */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var modalManager = new _ModalManager2.default(); -/** - * Love them or hate them, `` provides a solid foundation for creating dialogs, lightboxes, or whatever else. - * The Modal component renders its `children` node in front of a backdrop component. - * - * The Modal offers a few helpful features over using just a `` component and some styles: - * - * - Manages dialog stacking when one-at-a-time just isn't enough. - * - Creates a backdrop, for disabling interaction below the modal. - * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed. - * - It disables scrolling of the page content while open. - * - Adds the appropriate ARIA roles are automatically. - * - Easily pluggable animations via a `` component. - * - * Note that, in the same way the backdrop element prevents users from clicking or interacting - * with the page content underneath the Modal, Screen readers also need to be signaled to not to - * interact with page content while the Modal is open. To do this, we use a common technique of applying - * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for - * a Modal to be truly modal, it should have a `container` that is _outside_ your app's - * React hierarchy (such as the default: document.body). - */ +var _inDOM = __webpack_require__(8647); -var Modal = function (_React$Component) { - _inherits(Modal, _React$Component); +var _inDOM2 = _interopRequireDefault(_inDOM); - function Modal() { - var _temp, _this, _ret; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - _classCallCheck(this, Modal); +var off = function off() {}; - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +if (_inDOM2.default) { + off = function () { + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.removeEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.detachEvent('on' + eventName, handler); + }; + }(); +} - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret); - } +exports["default"] = off; +module.exports = exports['default']; - Modal.prototype.omitProps = function omitProps(props, propTypes) { - var keys = Object.keys(props); - var newProps = {}; - keys.map(function (prop) { - if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) { - newProps[prop] = props[prop]; - } - }); - return newProps; - }; - - Modal.prototype.render = function render() { - var _props = this.props, - show = _props.show, - container = _props.container, - children = _props.children, - Transition = _props.transition, - backdrop = _props.backdrop, - className = _props.className, - style = _props.style, - onExit = _props.onExit, - onExiting = _props.onExiting, - onEnter = _props.onEnter, - onEntering = _props.onEntering, - onEntered = _props.onEntered; - - var dialog = _react2.default.Children.only(children); - - var filteredProps = this.omitProps(this.props, Modal.propTypes); - var mountModal = show || Transition && !this.state.exited; - - if (!mountModal) { - return null; - } +/***/ }), - var _dialog$props = dialog.props, - role = _dialog$props.role, - tabIndex = _dialog$props.tabIndex; +/***/ 6233: +/***/ ((module, exports, __webpack_require__) => { - if (role === undefined || tabIndex === undefined) { - dialog = (0, _react.cloneElement)(dialog, { - role: role === undefined ? 'document' : role, - tabIndex: tabIndex == null ? '-1' : tabIndex - }); - } +"use strict"; - if (Transition) { - dialog = _react2.default.createElement(Transition, { - appear: true, - unmountOnExit: true, - 'in': show, - onExit: onExit, - onExiting: onExiting, - onExited: this.handleHidden, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, dialog); - } - - return _react2.default.createElement(_Portal2.default, { - ref: this.setMountNode, - container: container, - onRendered: this.onPortalRendered - }, _react2.default.createElement('div', _extends({ - ref: this.setModalNodeRef, - role: role || 'dialog' - }, filteredProps, { - style: style, - className: className - }), backdrop && this.renderBackdrop(), _react2.default.createElement(_RefHolder2.default, { - ref: this.setDialogRef - }, dialog))); - }; - Modal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.show) { - this.setState({ - exited: false - }); - } else if (!nextProps.transition) { - // Otherwise let handleHidden take care of marking exited. - this.setState({ - exited: true - }); - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = filterEvents; - Modal.prototype.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { - if (!this.props.show && nextProps.show) { - this.checkForFocus(); - } - }; +var _contains = __webpack_require__(6489); - Modal.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; +var _contains2 = _interopRequireDefault(_contains); - if (this.props.show) { - this.onShow(); - } - }; +var _querySelectorAll = __webpack_require__(8404); - Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var transition = this.props.transition; +var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll); - if (prevProps.show && !this.props.show && !transition) { - // Otherwise handleHidden will call this. - this.onHide(); - } else if (!prevProps.show && this.props.show) { - this.onShow(); - } +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; +} - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - var _props2 = this.props, - show = _props2.show, - transition = _props2.transition; - this._isMounted = false; - - if (show || transition && !this.state.exited) { - this.onHide(); - } +function filterEvents(selector, handler) { + return function filterHandler(e) { + var top = e.currentTarget, + target = e.target, + matches = (0, _querySelectorAll2.default)(top, selector); + if (matches.some(function (match) { + return (0, _contains2.default)(match, target); + })) handler.call(this, e); }; +} - Modal.prototype.autoFocus = function autoFocus() { - if (!this.props.autoFocus) { - return; - } +module.exports = exports['default']; - var dialogElement = this.getDialogElement(); - var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this)); +/***/ }), - if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { - this.lastFocus = currentActiveElement; +/***/ 6335: +/***/ ((module, exports, __webpack_require__) => { - if (!dialogElement.hasAttribute('tabIndex')) { - (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".'); - dialogElement.setAttribute('tabIndex', -1); - } +"use strict"; - dialogElement.focus(); - } - }; - Modal.prototype.restoreLastFocus = function restoreLastFocus() { - // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917) - if (this.lastFocus && this.lastFocus.focus) { - this.lastFocus.focus(); - this.lastFocus = null; - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = activeElement; - Modal.prototype.getDialogElement = function getDialogElement() { - return _reactDom2.default.findDOMNode(this.dialog); - }; +var _ownerDocument = __webpack_require__(1999); - Modal.prototype.isTopModal = function isTopModal() { - return this.props.manager.isTopModal(this); - }; +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - return Modal; -}(_react2.default.Component); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} -Modal.propTypes = _extends({}, _Portal2.default.propTypes, { - /** - * Set the visibility of the Modal - */ - show: _propTypes2.default.bool, +function activeElement() { + var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); - /** - * A Node, Component instance, or function that returns either. The Modal is appended to it's container element. - * - * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the - * page content can be placed behind a virtual backdrop as well as a visual one. - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), + try { + return doc.activeElement; + } catch (e) { + /* ie throws if no active element */ + } +} - /** - * A callback fired when the Modal is opening. - */ - onShow: _propTypes2.default.func, +module.exports = exports['default']; - /** - * A callback fired when either the backdrop is clicked, or the escape key is pressed. - * - * The `onHide` callback only signals intent from the Modal, - * you must actually set the `show` prop to `false` for the Modal to close. - */ - onHide: _propTypes2.default.func, +/***/ }), - /** - * Include a backdrop component. - */ - backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]), +/***/ 6489: +/***/ ((module, exports, __webpack_require__) => { - /** - * A function that returns a backdrop component. Useful for custom - * backdrop rendering. - * - * ```js - * renderBackdrop={props => } - * ``` - */ - renderBackdrop: _propTypes2.default.func, +"use strict"; - /** - * A callback fired when the escape key, if specified in `keyboard`, is pressed. - */ - onEscapeKeyDown: _propTypes2.default.func, - /** - * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead - * A callback fired when the escape key, if specified in `keyboard`, is pressed. - * @deprecated - */ - onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); - /** - * A callback fired when the backdrop, if specified, is clicked. - */ - onBackdropClick: _propTypes2.default.func, +var _inDOM = __webpack_require__(8647); - /** - * A style object for the backdrop component. - */ - backdropStyle: _propTypes2.default.object, +var _inDOM2 = _interopRequireDefault(_inDOM); - /** - * A css class or classes for the backdrop component. - */ - backdropClassName: _propTypes2.default.string, +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} - /** - * A css class or set of classes applied to the modal container when the modal is open, - * and removed when it is closed. - */ - containerClassName: _propTypes2.default.string, +exports["default"] = function () { + // HTML DOM and SVG DOM may have different support levels, + // so we need to check on context instead of a document root element. + return _inDOM2.default ? function (context, node) { + if (context.contains) { + return context.contains(node); + } else if (context.compareDocumentPosition) { + return context === node || !!(context.compareDocumentPosition(node) & 16); + } else { + return fallback(context, node); + } + } : fallback; +}(); - /** - * Close the modal when escape key is pressed - */ - keyboard: _propTypes2.default.bool, +function fallback(context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); + return false; +} - /** - * A `react-transition-group@2.0.0` `` component used - * to control animations for the dialog component. - */ - transition: _elementType2.default, +module.exports = exports['default']; - /** - * A `react-transition-group@2.0.0` `` component used - * to control animations for the backdrop components. - */ - backdropTransition: _elementType2.default, +/***/ }), - /** - * When `true` The modal will automatically shift focus to itself when it opens, and - * replace it to the last focused element when it closes. This also - * works correctly with any Modal children that have the `autoFocus` prop. - * - * Generally this should never be set to `false` as it makes the Modal less - * accessible to assistive technologies, like screen readers. - */ - autoFocus: _propTypes2.default.bool, +/***/ 6509: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - /** - * When `true` The modal will prevent focus from leaving the Modal while open. - * - * Generally this should never be set to `false` as it makes the Modal less - * accessible to assistive technologies, like screen readers. - */ - enforceFocus: _propTypes2.default.bool, +var ITERATOR = __webpack_require__(6932)('iterator'); - /** - * When `true` The modal will restore focus to previously focused element once - * modal is hidden - */ - restoreFocus: _propTypes2.default.bool, +var SAFE_CLOSING = false; - /** - * Callback fired before the Modal transitions in - */ - onEnter: _propTypes2.default.func, +try { + var riter = [7][ITERATOR](); - /** - * Callback fired as the Modal begins to transition in - */ - onEntering: _propTypes2.default.func, + riter['return'] = function () { + SAFE_CLOSING = true; + }; // eslint-disable-next-line no-throw-literal - /** - * Callback fired after the Modal finishes transitioning in - */ - onEntered: _propTypes2.default.func, - /** - * Callback fired right before the Modal transitions out - */ - onExit: _propTypes2.default.func, + Array.from(riter, function () { + throw 2; + }); +} catch (e) { + /* empty */ +} - /** - * Callback fired as the Modal begins to transition out - */ - onExiting: _propTypes2.default.func, +module.exports = function (exec, skipClosing) { + if (!skipClosing && !SAFE_CLOSING) return false; + var safe = false; - /** - * Callback fired after the Modal finishes transitioning out - */ - onExited: _propTypes2.default.func, + try { + var arr = [7]; + var iter = arr[ITERATOR](); - /** - * A ModalManager instance used to track and manage the state of open - * Modals. Useful when customizing how modals interact within a container - */ - manager: _propTypes2.default.object.isRequired -}); -Modal.defaultProps = { - show: false, - backdrop: true, - keyboard: true, - autoFocus: true, - enforceFocus: true, - restoreFocus: true, - onHide: function onHide() {}, - manager: modalManager, - renderBackdrop: function renderBackdrop(props) { - return _react2.default.createElement('div', props); - } -}; + iter.next = function () { + return { + done: safe = true + }; + }; -var _initialiseProps = function _initialiseProps() { - var _this2 = this; - - this.state = { - exited: !this.props.show - }; - - this.renderBackdrop = function () { - var _props3 = _this2.props, - backdropStyle = _props3.backdropStyle, - backdropClassName = _props3.backdropClassName, - renderBackdrop = _props3.renderBackdrop, - Transition = _props3.backdropTransition; - - var backdropRef = function backdropRef(ref) { - return _this2.backdrop = ref; + arr[ITERATOR] = function () { + return iter; }; - var backdrop = renderBackdrop({ - ref: backdropRef, - style: backdropStyle, - className: backdropClassName, - onClick: _this2.handleBackdropClick - }); - - if (Transition) { - backdrop = _react2.default.createElement(Transition, { - appear: true, - 'in': _this2.props.show - }, backdrop); - } - - return backdrop; - }; - - this.onPortalRendered = function () { - _this2.autoFocus(); - - if (_this2.props.onShow) { - _this2.props.onShow(); - } - }; - - this.onShow = function () { - var doc = (0, _ownerDocument2.default)(_this2); - var container = (0, _getContainer2.default)(_this2.props.container, doc.body); - - _this2.props.manager.add(_this2, container, _this2.props.containerClassName); + exec(arr); + } catch (e) { + /* empty */ + } - _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown); - _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp); - _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus); - }; + return safe; +}; - this.onHide = function () { - _this2.props.manager.remove(_this2); +/***/ }), - _this2._onDocumentKeydownListener.remove(); +/***/ 6534: +/***/ ((module, exports) => { - _this2._onDocumentKeyupListener.remove(); +"use strict"; - _this2._onFocusinListener.remove(); - if (_this2.props.restoreFocus) { - _this2.restoreLastFocus(); - } - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = hyphenate; +var rUpper = /([A-Z])/g; - this.setMountNode = function (ref) { - _this2.mountNode = ref ? ref.getMountNode() : ref; - }; +function hyphenate(string) { + return string.replace(rUpper, '-$1').toLowerCase(); +} - this.setModalNodeRef = function (ref) { - _this2.modalNode = ref; - }; +module.exports = exports['default']; - this.setDialogRef = function (ref) { - _this2.dialog = ref; - }; +/***/ }), - this.handleHidden = function () { - _this2.setState({ - exited: true - }); +/***/ 6546: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this2.onHide(); +__webpack_require__(6861); - if (_this2.props.onExited) { - var _props4; +module.exports = __webpack_require__(9520).parseInt; - (_props4 = _this2.props).onExited.apply(_props4, arguments); - } - }; +/***/ }), - this.handleBackdropClick = function (e) { - if (e.target !== e.currentTarget) { - return; - } +/***/ 6562: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (_this2.props.onBackdropClick) { - _this2.props.onBackdropClick(e); - } +// call something on iterator step with safe closing on error +var anObject = __webpack_require__(4610); - if (_this2.props.backdrop === true) { - _this2.props.onHide(); - } - }; +module.exports = function (iterator, fn, value, entries) { + try { + return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) + } catch (e) { + var ret = iterator['return']; + if (ret !== undefined) anObject(ret.call(iterator)); + throw e; + } +}; - this.handleDocumentKeyDown = function (e) { - if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { - if (_this2.props.onEscapeKeyDown) { - _this2.props.onEscapeKeyDown(e); - } +/***/ }), - _this2.props.onHide(); - } - }; +/***/ 6807: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - this.handleDocumentKeyUp = function (e) { - if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { - if (_this2.props.onEscapeKeyUp) { - _this2.props.onEscapeKeyUp(e); - } - } - }; +module.exports = __webpack_require__(8475); - this.checkForFocus = function () { - if (_inDOM2.default) { - _this2.lastFocus = (0, _activeElement2.default)(); - } - }; +/***/ }), - this.enforceFocus = function () { - if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) { - return; - } +/***/ 6832: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - var dialogElement = _this2.getDialogElement(); +var shared = __webpack_require__(114)('keys'); - var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2)); +var uid = __webpack_require__(7209); - if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { - dialogElement.focus(); - } - }; +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); }; -Modal.Manager = _ModalManager2.default; -exports["default"] = Modal; -module.exports = exports['default']; - /***/ }), -/***/ 3526: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; +/***/ 6861: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +var $export = __webpack_require__(3445); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = all; +var $parseInt = __webpack_require__(7416); // 18.2.5 parseInt(string, radix) -var _createChainableTypeChecker = __webpack_require__(8663); -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); +$export($export.G + $export.F * (parseInt != $parseInt), { + parseInt: $parseInt +}); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +/***/ }), -function all() { - for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { - validators[_key] = arguments[_key]; - } +/***/ 6932: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } +var store = __webpack_require__(114)('wks'); - var error = null; - validators.forEach(function (validator) { - if (error != null) { - return; - } +var uid = __webpack_require__(7209); - var result = validator.apply(undefined, args); +var Symbol = (__webpack_require__(8248).Symbol); - if (result != null) { - error = result; - } - }); - return error; - } +var USE_SYMBOL = typeof Symbol == 'function'; - return (0, _createChainableTypeChecker2.default)(allPropTypes); -} +var $exports = module.exports = function (name) { + return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; -module.exports = exports['default']; +$exports.store = store; /***/ }), -/***/ 3537: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +/***/ 6948: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var $export = __webpack_require__(3445); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var classof = __webpack_require__(1222); +var ITERATOR = __webpack_require__(6932)('iterator'); -$export($export.S, 'Object', { - create: __webpack_require__(9345) -}); +var Iterators = __webpack_require__(1428); + +module.exports = (__webpack_require__(9520).getIteratorMethod) = function (it) { + if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; +}; /***/ }), -/***/ 3543: +/***/ 6997: /***/ ((module) => { -var toString = {}.toString; +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; module.exports = function (it) { - return toString.call(it).slice(8, -1); + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }), -/***/ 3650: +/***/ 7209: /***/ ((module) => { -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; +var id = 0; +var px = Math.random(); + +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), -/***/ 3655: +/***/ 7222: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(9532); - -module.exports = __webpack_require__(9520).Object.values; +module.exports = __webpack_require__(6546); /***/ }), -/***/ 3737: -/***/ ((module) => { +/***/ 7350: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +// check on default Array iterator +var Iterators = __webpack_require__(1428); -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ +var ITERATOR = __webpack_require__(6932)('iterator'); -var invariant = function (condition, format, a, b, c, d, e, f) { - if (false) // removed by dead control flow -{} +var ArrayProto = Array.prototype; - if (!condition) { - var error; +module.exports = function (it) { + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); +}; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } +/***/ }), - error.framesToPop = 1; // we don't care about invariant's own frame +/***/ 7416: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - throw error; - } -}; +var $parseInt = (__webpack_require__(8248).parseInt); -module.exports = invariant; +var $trim = (__webpack_require__(7659).trim); + +var ws = __webpack_require__(5525); + +var hex = /^[-+]?0[xX]/; +module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { + var string = $trim(String(str), 3); + return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); +} : $parseInt; /***/ }), -/***/ 3796: +/***/ 7659: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var dP = __webpack_require__(8449); +var $export = __webpack_require__(3445); -var anObject = __webpack_require__(4610); +var defined = __webpack_require__(9314); -var getKeys = __webpack_require__(5033); +var fails = __webpack_require__(2250); -module.exports = __webpack_require__(4725) ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = getKeys(Properties); - var length = keys.length; - var i = 0; - var P; - - while (length > i) dP.f(O, P = keys[i++], Properties[P]); +var spaces = __webpack_require__(5525); - return O; -}; +var space = '[' + spaces + ']'; +var non = '\u200b\u0085'; +var ltrim = RegExp('^' + space + space + '*'); +var rtrim = RegExp(space + space + '*$'); -/***/ }), +var exporter = function (KEY, exec, ALIAS) { + var exp = {}; + var FORCE = fails(function () { + return !!spaces[KEY]() || non[KEY]() != non; + }); + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; + if (ALIAS) exp[ALIAS] = fn; + $export($export.P + $export.F * FORCE, 'String', exp); +}; // 1 -> String#trimLeft +// 2 -> String#trimRight +// 3 -> String#trim -/***/ 3825: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(3993); +var trim = exporter.trim = function (string, TYPE) { + string = String(defined(string)); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); + return string; +}; -module.exports = __webpack_require__(9520).Object.keys; +module.exports = exporter; /***/ }), -/***/ 3841: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +/***/ 7735: +/***/ ((module, exports, __webpack_require__) => { "use strict"; -var ctx = __webpack_require__(5154); - -var $export = __webpack_require__(3445); - -var toObject = __webpack_require__(5332); - -var call = __webpack_require__(6562); - -var isArrayIter = __webpack_require__(7350); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = style; -var toLength = __webpack_require__(371); +var _camelizeStyle = __webpack_require__(8039); -var createProperty = __webpack_require__(3481); +var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); -var getIterFn = __webpack_require__(6948); +var _hyphenateStyle = __webpack_require__(4065); -$export($export.S + $export.F * !__webpack_require__(6509)(function (iter) { - Array.from(iter); -}), 'Array', { - // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) - from: function from(arrayLike - /* , mapfn = undefined, thisArg = undefined */ - ) { - var O = toObject(arrayLike); - var C = typeof this == 'function' ? this : Array; - var aLen = arguments.length; - var mapfn = aLen > 1 ? arguments[1] : undefined; - var mapping = mapfn !== undefined; - var index = 0; - var iterFn = getIterFn(O); - var length, result, step, iterator; - 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 +var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); - if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { - for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { - createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); - } - } else { - length = toLength(O.length); +var _getComputedStyle2 = __webpack_require__(5647); - for (result = new C(length); length > index; index++) { - createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); - } - } +var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); - result.length = index; - return result; - } -}); +var _removeStyle = __webpack_require__(8290); -/***/ }), +var _removeStyle2 = _interopRequireDefault(_removeStyle); -/***/ 3993: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +var _properties = __webpack_require__(3152); -// 19.1.2.14 Object.keys(O) -var toObject = __webpack_require__(5332); +var _isTransform = __webpack_require__(5229); -var $keys = __webpack_require__(5033); +var _isTransform2 = _interopRequireDefault(_isTransform); -__webpack_require__(2069)('keys', function () { - return function keys(it) { - return $keys(toObject(it)); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj }; -}); +} -/***/ }), +function style(node, property, value) { + var css = ''; + var transforms = ''; + var props = property; -/***/ 4045: -/***/ ((module, exports, __webpack_require__) => { + if (typeof property === 'string') { + if (value === undefined) { + return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); + } else { + (props = {})[property] = value; + } + } -"use strict"; + Object.keys(props).forEach(function (key) { + var value = props[key]; + if (!value && value !== 0) { + (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); + } else if ((0, _isTransform2.default)(key)) { + transforms += key + '(' + value + ') '; + } else { + css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; + } + }); -exports.__esModule = true; + if (transforms) { + css += _properties.transform + ': ' + transforms + ';'; + } -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + node.style.cssText += ';' + css; +} - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +module.exports = exports['default']; - return target; -}; +/***/ }), -var _classnames = __webpack_require__(7755); +/***/ 7755: +/***/ ((module, exports) => { -var _classnames2 = _interopRequireDefault(_classnames); +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ -var _propTypes = __webpack_require__(5762); +/* global define */ +(function () { + 'use strict'; -var _propTypes2 = _interopRequireDefault(_propTypes); + var hasOwn = {}.hasOwnProperty; -var _componentOrElement = __webpack_require__(6387); + function classNames() { + var classes = []; -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + var argType = typeof arg; -var _react = __webpack_require__(5442); + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); -var _react2 = _interopRequireDefault(_react); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } -var _reactDom = __webpack_require__(6003); + return classes.join(' '); + } -var _reactDom2 = _interopRequireDefault(_reactDom); + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else // removed by dead control flow +{} +})(); -var _calculatePosition = __webpack_require__(5862); +/***/ }), -var _calculatePosition2 = _interopRequireDefault(_calculatePosition); +/***/ 7770: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -var _getContainer = __webpack_require__(2799); +"use strict"; -var _getContainer2 = _interopRequireDefault(_getContainer); -var _ownerDocument = __webpack_require__(3296); +exports.__esModule = true; +exports.uncontrolledPropTypes = uncontrolledPropTypes; +exports.isProp = isProp; +exports.defaultKey = defaultKey; +exports.isReactComponent = isReactComponent; -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var _invariant = _interopRequireDefault(__webpack_require__(3737)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -3457,201 +2880,99 @@ function _interopRequireDefault(obj) { }; } -function _objectWithoutProperties(obj, keys) { - var target = {}; - - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } - - return target; -} +var noop = function noop() {}; -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } +function readOnlyPropType(handler, name) { + return function (props, propName) { + if (props[propName] !== undefined) { + if (!props[handler]) { + 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 + "`.")); + } + } + }; } -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } +function uncontrolledPropTypes(controlledValues, displayName) { + var propTypes = {}; + Object.keys(controlledValues).forEach(function (prop) { + // add default propTypes for folks that use runtime checks + propTypes[defaultKey(prop)] = noop; - return call && (typeof call === "object" || typeof call === "function") ? call : self; + if (false) // removed by dead control flow +{ var handler; } + }); + return propTypes; } -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } +function isProp(props, prop) { + return props[prop] !== undefined; +} - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; +function defaultKey(key) { + return 'default' + key.charAt(0).toUpperCase() + key.substr(1); } /** - * The Position component calculates the coordinates for its child, to position - * it relative to a `target` component or node. Useful for creating callouts - * and tooltips, the Position component injects a `style` props with `left` and - * `top` values for positioning your component. + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. * - * It also injects "arrow" `left`, and `top` values for styling callout arrows - * for giving your components a sense of directionality. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. */ -var Position = function (_React$Component) { - _inherits(Position, _React$Component); +function isReactComponent(component) { + return !!(component && component.prototype && component.prototype.isReactComponent); +} - function Position(props, context) { - _classCallCheck(this, Position); +/***/ }), - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); +/***/ 7788: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this.getTarget = function () { - var target = _this.props.target; - var targetElement = typeof target === 'function' ? target() : target; - return targetElement && _reactDom2.default.findDOMNode(targetElement) || null; - }; +var isObject = __webpack_require__(2103); - _this.maybeUpdatePosition = function (placementChanged) { - var target = _this.getTarget(); +var document = (__webpack_require__(8248).document); // typeof document.createElement is 'object' in old IE - if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) { - return; - } - _this.updatePosition(target); - }; - - _this.state = { - positionLeft: 0, - positionTop: 0, - arrowOffsetLeft: null, - arrowOffsetTop: null - }; - _this._needsFlush = false; - _this._lastTarget = null; - return _this; - } - - Position.prototype.componentDidMount = function componentDidMount() { - this.updatePosition(this.getTarget()); - }; - - Position.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps() { - this._needsFlush = true; - }; - - Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this._needsFlush) { - this._needsFlush = false; - this.maybeUpdatePosition(this.props.placement !== prevProps.placement); - } - }; - - Position.prototype.render = function render() { - var _props = this.props, - children = _props.children, - className = _props.className, - props = _objectWithoutProperties(_props, ['children', 'className']); - - var _state = this.state, - positionLeft = _state.positionLeft, - positionTop = _state.positionTop, - arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']); // These should not be forwarded to the child. - - - delete props.target; - delete props.container; - delete props.containerPadding; - delete props.shouldUpdatePosition; - - var child = _react2.default.Children.only(children); - - return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, { - // FIXME: Don't forward `positionLeft` and `positionTop` via both props - // and `props.style`. - positionLeft: positionLeft, - positionTop: positionTop, - className: (0, _classnames2.default)(className, child.props.className), - style: _extends({}, child.props.style, { - left: positionLeft, - top: positionTop - }) - })); - }; - - Position.prototype.updatePosition = function updatePosition(target) { - this._lastTarget = target; - - if (!target) { - this.setState({ - positionLeft: 0, - positionTop: 0, - arrowOffsetLeft: null, - arrowOffsetTop: null - }); - return; - } +var is = isObject(document) && isObject(document.createElement); - var overlay = _reactDom2.default.findDOMNode(this); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; - var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body); - this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding)); - }; +/***/ }), - return Position; -}(_react2.default.Component); +/***/ 7909: +/***/ ((module) => { -Position.propTypes = { - /** - * A node, element, or function that returns either. The child will be - * be positioned next to the `target` specified. - */ - target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), +"use strict"; +/** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - /** - * "offsetParent" of the component - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - /** - * Minimum spacing in pixels between container border and component border - */ - containerPadding: _propTypes2.default.number, +var warning = function () {}; - /** - * How to position the component relative to the target - */ - placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']), +if (false) // removed by dead control flow +{} - /** - * Whether the position should be changed on each update - */ - shouldUpdatePosition: _propTypes2.default.bool -}; -Position.displayName = 'Position'; -Position.defaultProps = { - containerPadding: 0, - placement: 'right', - shouldUpdatePosition: false -}; -exports["default"] = Position; -module.exports = exports['default']; +module.exports = warning; /***/ }), -/***/ 4065: +/***/ 8039: /***/ ((module, exports, __webpack_require__) => { "use strict"; @@ -3660,11 +2981,11 @@ module.exports = exports['default']; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = hyphenateStyleName; +exports["default"] = camelizeStyleName; -var _hyphenate = __webpack_require__(6534); +var _camelize = __webpack_require__(1700); -var _hyphenate2 = _interopRequireDefault(_hyphenate); +var _camelize2 = _interopRequireDefault(_camelize); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -3672,46 +2993,44 @@ function _interopRequireDefault(obj) { }; } -var msPattern = /^ms-/; +var msPattern = /^-ms-/; /** - * Copyright 2013-2014, Facebook, Inc. + * Copyright 2014-2015, Facebook, Inc. * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js + * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js */ -function hyphenateStyleName(string) { - return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-'); +function camelizeStyleName(string) { + return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); } module.exports = exports['default']; /***/ }), -/***/ 4070: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 8248: +/***/ ((module) => { -var toInteger = __webpack_require__(6997); +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func +: Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef -var defined = __webpack_require__(9314); // true -> String#at -// false -> String#codePointAt +/***/ }), +/***/ 8283: +/***/ ((module) => { -module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - 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; - }; +var hasOwnProperty = {}.hasOwnProperty; + +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); }; /***/ }), -/***/ 4112: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8290: +/***/ ((module, exports) => { "use strict"; @@ -3719,241 +3038,150 @@ module.exports = function (TO_STRING) { Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = removeStyle; -var _properties = __webpack_require__(3152); +function removeStyle(node, key) { + return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); +} -var _properties2 = _interopRequireDefault(_properties); +module.exports = exports['default']; -var _style = __webpack_require__(7735); +/***/ }), -var _style2 = _interopRequireDefault(_style); +/***/ 8338: +/***/ ((module) => { -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +// IE 8- don't enum bug keys +module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); -function onEnd(node, handler, duration) { - var fakeEvent = { - target: node, - currentTarget: node - }, - backup; - if (!_properties2.default.end) duration = 0;else if (duration == null) duration = parseDuration(node) || 0; +/***/ }), - if (_properties2.default.end) { - node.addEventListener(_properties2.default.end, done, false); - backup = setTimeout(function () { - return done(fakeEvent); - }, (duration || 100) * 1.5); - } else setTimeout(done.bind(null, fakeEvent), 0); +/***/ 8404: +/***/ ((module, exports) => { - function done(event) { - if (event.target !== event.currentTarget) return; - clearTimeout(backup); - event.target.removeEventListener(_properties2.default.end, done); - handler.call(this); - } -} +"use strict"; -onEnd._parseDuration = parseDuration; -exports["default"] = onEnd; -function parseDuration(node) { - var str = (0, _style2.default)(node, _properties2.default.duration), - mult = str.indexOf('ms') === -1 ? 1000 : 1; - return parseFloat(str) * mult; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = qsa; // Zepto.js +// (c) 2010-2015 Thomas Fuchs +// Zepto.js may be freely distributed under the MIT license. + +var simpleSelectorRE = /^[\w-]*$/; +var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); + +function qsa(element, selector) { + var maybeID = selector[0] === '#', + maybeClass = selector[0] === '.', + nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, + isSimple = simpleSelectorRE.test(nameOnly), + found; + + if (isSimple) { + if (maybeID) { + element = element.getElementById ? element : document; + return (found = element.getElementById(nameOnly)) ? [found] : []; + } + + if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly)); + return toArray(element.getElementsByTagName(selector)); + } + + return toArray(element.querySelectorAll(selector)); } module.exports = exports['default']; /***/ }), -/***/ 4152: -/***/ ((__unused_webpack_module, exports) => { +/***/ 8449: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -"use strict"; +var anObject = __webpack_require__(4610); +var IE8_DOM_DEFINE = __webpack_require__(1614); -exports.__esModule = true; -exports["default"] = createChainableTypeChecker; -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -// Mostly taken from ReactPropTypes. +var toPrimitive = __webpack_require__(9194); -function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; +var dP = Object.defineProperty; +exports.f = __webpack_require__(4725) ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { + /* empty */ + } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } +/***/ }), - return null; - } +/***/ 8475: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; - } +__webpack_require__(4701); - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } +__webpack_require__(3841); - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; -} +module.exports = __webpack_require__(9520).Array.from; /***/ }), -/***/ 4343: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +/***/ 8643: +/***/ ((module) => { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ polyfill: () => (/* binding */ polyfill) -/* harmony export */ }); /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -function componentWillMount() { - // Call this.constructor.gDSFP to support sub-classes. - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); - if (state !== null && state !== undefined) { - this.setState(state); - } -} - -function componentWillReceiveProps(nextProps) { - // Call this.constructor.gDSFP to support sub-classes. - // Use the setState() updater to ensure state isn't stale in certain edge cases. - function updater(prevState) { - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); - return state !== null && state !== undefined ? state : null; - } // Binding "this" is important for shallow renderer support. - - - this.setState(updater.bind(this)); -} - -function componentWillUpdate(nextProps, nextState) { - try { - var prevProps = this.props; - var prevState = this.state; - this.props = nextProps; - this.state = nextState; - this.__reactInternalSnapshotFlag = true; - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState); - } finally { - this.props = prevProps; - this.state = prevState; - } -} // React may warn about cWM/cWRP/cWU methods being deprecated. -// Add a flag to suppress these warnings for this special case. +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +module.exports = ReactPropTypesSecret; -componentWillMount.__suppressDeprecationWarning = true; -componentWillReceiveProps.__suppressDeprecationWarning = true; -componentWillUpdate.__suppressDeprecationWarning = true; - -function polyfill(Component) { - var prototype = Component.prototype; - - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } - - if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') { - return Component; - } // If new component APIs are defined, "unsafe" lifecycles won't be called. - // Error if any of these lifecycles are present, - // Because they would work differently between older and newer (16.3+) versions of React. +/***/ }), +/***/ 8644: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; +// https://github.com/tc39/proposal-object-values-entries +var $export = __webpack_require__(3445); - if (typeof prototype.componentWillMount === 'function') { - foundWillMountName = 'componentWillMount'; - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { - foundWillMountName = 'UNSAFE_componentWillMount'; - } +var $entries = __webpack_require__(5012)(true); - if (typeof prototype.componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'componentWillReceiveProps'; - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; +$export($export.S, 'Object', { + entries: function entries(it) { + return $entries(it); } +}); - if (typeof prototype.componentWillUpdate === 'function') { - foundWillUpdateName = 'componentWillUpdate'; - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; - } +/***/ }), - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var componentName = Component.displayName || Component.name; - var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()'; - 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'); - } // React <= 16.2 does not support static getDerivedStateFromProps. - // As a workaround, use cWM and cWRP to invoke the new static lifecycle. - // Newer versions of React will ignore these lifecycles if gDSFP exists. - - - if (typeof Component.getDerivedStateFromProps === 'function') { - prototype.componentWillMount = componentWillMount; - prototype.componentWillReceiveProps = componentWillReceiveProps; - } // React <= 16.2 does not support getSnapshotBeforeUpdate. - // As a workaround, use cWU to invoke the new lifecycle. - // Newer versions of React will ignore that lifecycle if gSBU exists. - - - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { - if (typeof prototype.componentDidUpdate !== 'function') { - throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'); - } - - prototype.componentWillUpdate = componentWillUpdate; - var componentDidUpdate = prototype.componentDidUpdate; - - prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) { - // 16.3+ will not execute our will-update method; - // It will pass a snapshot value to did-update though. - // Older versions will require our polyfilled will-update value. - // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", - // Because for <= 15.x versions this might be a "prevContext" object. - // We also can't just check "__reactInternalSnapshot", - // Because get-snapshot might return a falsy value. - // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. - var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot; - componentDidUpdate.call(this, prevProps, prevState, snapshot); - }; - } +/***/ 8647: +/***/ ((module, exports) => { - return Component; -} +"use strict"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = !!(typeof window !== 'undefined' && window.document && window.document.createElement); +module.exports = exports['default']; /***/ }), -/***/ 4506: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8663: +/***/ ((module, exports) => { "use strict"; @@ -3961,53 +3189,85 @@ function polyfill(Component) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = scrollTop; +exports["default"] = createChainableTypeChecker; +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ +// Mostly taken from ReactPropTypes. -var _isWindow = __webpack_require__(4976); +function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; -var _isWindow2 = _interopRequireDefault(_isWindow); + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + return null; + } + + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } + + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } -function scrollTop(node, val) { - var win = (0, _isWindow2.default)(node); - if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; - if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + return chainedCheckType; } module.exports = exports['default']; /***/ }), -/***/ 4542: -/***/ ((module, exports, __webpack_require__) => { +/***/ 8727: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +// 7.2.2 IsArray(argument) +var cof = __webpack_require__(3543); +module.exports = Array.isArray || function isArray(arg) { + return cof(arg) == 'Array'; +}; -exports.__esModule = true; +/***/ }), -var _class = __webpack_require__(9578); +/***/ 8759: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _class2 = _interopRequireDefault(_class); +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(3443); -var _style = __webpack_require__(7735); +var defined = __webpack_require__(9314); -var _style2 = _interopRequireDefault(_style); +module.exports = function (it) { + return IObject(defined(it)); +}; + +/***/ }), -var _scrollbarSize = __webpack_require__(6065); +/***/ 8774: +/***/ ((module, exports, __webpack_require__) => { + +"use strict"; -var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); -var _isOverflowing = __webpack_require__(312); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); -var _isOverflowing2 = _interopRequireDefault(_isOverflowing); +var _inDOM = __webpack_require__(8647); -var _manageAriaHidden = __webpack_require__(1590); +var _inDOM2 = _interopRequireDefault(_inDOM); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { @@ -4015,5822 +3275,6106 @@ function _interopRequireDefault(obj) { }; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function findIndexOf(arr, cb) { - var idx = -1; - arr.some(function (d, i) { - if (cb(d, i)) { - idx = i; - return true; - } - }); - return idx; -} - -function findContainer(data, modal) { - return findIndexOf(data, function (d) { - return d.modals.indexOf(modal) !== -1; - }); -} - -function setContainerStyle(state, container) { - var style = { - overflow: 'hidden' - }; // we are only interested in the actual `style` here - // becasue we will override it - - state.style = { - overflow: container.style.overflow, - paddingRight: container.style.paddingRight - }; - - if (state.overflowing) { - // use computed style, here to get the real padding - // to add our scrollbar width - style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px'; - } - - (0, _style2.default)(container, style); -} +var on = function on() {}; -function removeContainerStyle(_ref, container) { - var style = _ref.style; - Object.keys(style).forEach(function (key) { - return container.style[key] = style[key]; - }); +if (_inDOM2.default) { + on = function () { + if (document.addEventListener) return function (node, eventName, handler, capture) { + return node.addEventListener(eventName, handler, capture || false); + };else if (document.attachEvent) return function (node, eventName, handler) { + return node.attachEvent('on' + eventName, function (e) { + e = e || window.event; + e.target = e.target || e.srcElement; + e.currentTarget = node; + handler.call(node, e); + }); + }; + }(); } -/** - * Proper state managment for containers and the modals in those containers. - * - * @internal Used by the Modal to ensure proper styling of containers. - */ - -var ModalManager = function ModalManager() { - var _this = this; - - var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref2$hideSiblingNode = _ref2.hideSiblingNodes, - hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode, - _ref2$handleContainer = _ref2.handleContainerOverflow, - handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer; - - _classCallCheck(this, ModalManager); - - this.add = function (modal, container, className) { - var modalIdx = _this.modals.indexOf(modal); +exports["default"] = on; +module.exports = exports['default']; - var containerIdx = _this.containers.indexOf(container); +/***/ }), - if (modalIdx !== -1) { - return modalIdx; - } +/***/ 8861: +/***/ ((module, exports) => { - modalIdx = _this.modals.length; +"use strict"; - _this.modals.push(modal); - if (_this.hideSiblingNodes) { - (0, _manageAriaHidden.hideSiblings)(container, modal.modalNode); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = isRequiredForA11y; - if (containerIdx !== -1) { - _this.data[containerIdx].modals.push(modal); +function isRequiredForA11y(validator) { + return function validate(props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - return modalIdx; + if (props[propName] == null) { + return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); } - var data = { - modals: [modal], - //right now only the first modal of a container will have its classes applied - classes: className ? className.split(/\s+/) : [], - overflowing: (0, _isOverflowing2.default)(container) - }; - - if (_this.handleContainerOverflow) { - setContainerStyle(data, container); + for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; } - data.classes.forEach(_class2.default.addClass.bind(null, container)); - - _this.containers.push(container); - - _this.data.push(data); - - return modalIdx; + return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); }; +} - this.remove = function (modal) { - var modalIdx = _this.modals.indexOf(modal); - - if (modalIdx === -1) { - return; - } +module.exports = exports['default']; - var containerIdx = findContainer(_this.data, modal); - var data = _this.data[containerIdx]; - var container = _this.containers[containerIdx]; - data.modals.splice(data.modals.indexOf(modal), 1); +/***/ }), - _this.modals.splice(modalIdx, 1); // if that was the last modal in a container, - // clean up the container +/***/ 9050: +/***/ ((module) => { +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - if (data.modals.length === 0) { - data.classes.forEach(_class2.default.removeClass.bind(null, container)); - if (_this.handleContainerOverflow) { - removeContainerStyle(data, container); - } +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +module.exports = ReactPropTypesSecret; - if (_this.hideSiblingNodes) { - (0, _manageAriaHidden.showSiblings)(container, modal.modalNode); - } +/***/ }), - _this.containers.splice(containerIdx, 1); +/***/ 9194: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - _this.data.splice(containerIdx, 1); - } else if (_this.hideSiblingNodes) { - //otherwise make sure the next top modal is visible to a SR - (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].modalNode); - } - }; +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__(2103); // instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string - this.isTopModal = function (modal) { - return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal; - }; - this.hideSiblingNodes = hideSiblingNodes; - this.handleContainerOverflow = handleContainerOverflow; - this.modals = []; - this.containers = []; - this.data = []; +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); }; -exports["default"] = ModalManager; -module.exports = exports['default']; - /***/ }), -/***/ 4610: +/***/ 9253: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var isObject = __webpack_require__(2103); +__webpack_require__(8644); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; +module.exports = __webpack_require__(9520).Object.entries; /***/ }), -/***/ 4683: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +/***/ 9287: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { -module.exports = __webpack_require__(687); +"use strict"; +var __webpack_unused_export__; -/***/ }), -/***/ 4701: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +__webpack_unused_export__ = ({ + value: true +}); +__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = undefined; -"use strict"; +var _on = __webpack_require__(8774); +var _on2 = _interopRequireDefault(_on); -var $at = __webpack_require__(4070)(true); // 21.1.3.27 String.prototype[@@iterator]() +var _off = __webpack_require__(6170); +var _off2 = _interopRequireDefault(_off); -__webpack_require__(829)(String, 'String', function (iterated) { - this._t = String(iterated); // target +var _filter = __webpack_require__(6233); - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() -}, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { - value: undefined, - done: true - }; - point = $at(O, index); - this._i += point.length; - return { - value: point, - done: false - }; -}); +var _filter2 = _interopRequireDefault(_filter); -/***/ }), +var _listen = __webpack_require__(3044); -/***/ 4725: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var _listen2 = _interopRequireDefault(_listen); -// Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(2250)(function () { - return Object.defineProperty({}, 'a', { - get: function () { - return 7; - } - }).a != 7; -}); +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; +} + +__webpack_unused_export__ = _on2.default; +__webpack_unused_export__ = _off2.default; +__webpack_unused_export__ = _filter2.default; +__webpack_unused_export__ = _listen2.default; +exports.Ay = { + on: _on2.default, + off: _off2.default, + filter: _filter2.default, + listen: _listen2.default +}; /***/ }), -/***/ 4976: -/***/ ((module, exports) => { +/***/ 9303: +/***/ ((__unused_webpack_module, exports) => { "use strict"; +/** @license React v16.4.2 + * react-is.production.min.js + * + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(exports, "__esModule", ({ - value: true + value: !0 })); -exports["default"] = getWindow; - -function getWindow(node) { - return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; -} - -module.exports = exports["default"]; - -/***/ }), +var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.forward_ref") : 60112, + n = b ? Symbol.for("react.timeout") : 60113; -/***/ 5012: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +function q(a) { + if ("object" === typeof a && null !== a) { + var p = a.$$typeof; -var getKeys = __webpack_require__(5033); + switch (p) { + case c: + switch (a = a.type, a) { + case l: + case e: + case g: + case f: + return a; -var toIObject = __webpack_require__(8759); + default: + switch (a = a && a.$$typeof, a) { + case k: + case m: + case h: + return a; -var isEnum = (__webpack_require__(9871).f); + default: + return p; + } -module.exports = function (isEntries) { - return function (it) { - var O = toIObject(it); - var keys = getKeys(O); - var length = keys.length; - var i = 0; - var result = []; - var key; + } - while (length > i) if (isEnum.call(O, key = keys[i++])) { - result.push(isEntries ? [key, O[key]] : O[key]); + case d: + return p; } + } +} - return result; - }; -}; +exports.typeOf = q; +exports.AsyncMode = l; +exports.ContextConsumer = k; +exports.ContextProvider = h; +exports.Element = c; +exports.ForwardRef = m; +exports.Fragment = e; +exports.Profiler = g; +exports.Portal = d; +exports.StrictMode = f; -/***/ }), +exports.isValidElementType = function (a) { + 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); +}; -/***/ 5033: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +exports.isAsyncMode = function (a) { + return q(a) === l; +}; -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(2235); +exports.isContextConsumer = function (a) { + return q(a) === k; +}; -var enumBugKeys = __webpack_require__(8338); +exports.isContextProvider = function (a) { + return q(a) === h; +}; -module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); +exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; }; -/***/ }), +exports.isForwardRef = function (a) { + return q(a) === m; +}; -/***/ 5083: -/***/ ((module, exports, __webpack_require__) => { +exports.isFragment = function (a) { + return q(a) === e; +}; -"use strict"; +exports.isProfiler = function (a) { + return q(a) === g; +}; +exports.isPortal = function (a) { + return q(a) === d; +}; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +exports.isStrictMode = function (a) { + return q(a) === f; +}; -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; +/***/ }), - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } +/***/ 9314: +/***/ ((module) => { - return target; +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; }; -exports["default"] = position; +/***/ }), -var _offset = __webpack_require__(5547); +/***/ 9345: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var _offset2 = _interopRequireDefault(_offset); +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__(4610); -var _offsetParent = __webpack_require__(1547); +var dPs = __webpack_require__(3796); -var _offsetParent2 = _interopRequireDefault(_offsetParent); +var enumBugKeys = __webpack_require__(8338); -var _scrollTop = __webpack_require__(4506); +var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); -var _scrollTop2 = _interopRequireDefault(_scrollTop); +var Empty = function () { + /* empty */ +}; -var _scrollLeft = __webpack_require__(3328); +var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var _scrollLeft2 = _interopRequireDefault(_scrollLeft); +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(7788)('iframe'); -var _style = __webpack_require__(7735); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; -var _style2 = _interopRequireDefault(_style); + (__webpack_require__(2426).appendChild)(iframe); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); -function nodeName(node) { - return node.nodeName && node.nodeName.toLowerCase(); -} + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; -function position(node, offsetParent) { - var parentOffset = { - top: 0, - left: 0 - }, - offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, - // because it is its only offset parent + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - if ((0, _style2.default)(node, 'position') === 'fixed') { - offset = node.getBoundingClientRect(); - } else { - offsetParent = offsetParent || (0, _offsetParent2.default)(node); - offset = (0, _offset2.default)(node); - if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent); - parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0; - parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0; - } // Subtract parent offsets and node margins + return createDict(); +}; +module.exports = Object.create || function create(O, Properties) { + var result; - return _extends({}, offset, { - top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0), - left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0) - }); -} + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill -module.exports = exports['default']; + result[IE_PROTO] = O; + } else result = createDict(); + + return Properties === undefined ? result : dPs(result, Properties); +}; /***/ }), -/***/ 5115: +/***/ 9508: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = __webpack_require__(3655); +module.exports = __webpack_require__(64); /***/ }), -/***/ 5154: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// optional / simple context binding -var aFunction = __webpack_require__(1149); - -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - - switch (length) { - case 1: - return function (a) { - return fn.call(that, a); - }; - - case 2: - return function (a, b) { - return fn.call(that, a, b); - }; - - case 3: - return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } +/***/ 9520: +/***/ ((module) => { - return function () - /* ...args */ - { - return fn.apply(that, arguments); - }; +var core = module.exports = { + version: '2.5.7' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/***/ 5229: -/***/ ((module, exports) => { +/***/ 9523: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isTransform; -var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i; - -function isTransform(property) { - return !!(property && supportedTransforms.test(property)); -} - -module.exports = exports["default"]; +if (true) { + module.exports = __webpack_require__(9303); +} else // removed by dead control flow +{} /***/ }), -/***/ 5307: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toInteger = __webpack_require__(6997); - -var max = Math.max; -var min = Math.min; - -module.exports = function (index, length) { - index = toInteger(index); - return index < 0 ? max(index + length, 0) : min(index, length); -}; - -/***/ }), +/***/ 9532: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { -/***/ 5332: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +// https://github.com/tc39/proposal-object-values-entries +var $export = __webpack_require__(3445); -// 7.1.13 ToObject(argument) -var defined = __webpack_require__(9314); +var $values = __webpack_require__(5012)(false); -module.exports = function (it) { - return Object(defined(it)); -}; +$export($export.S, 'Object', { + values: function values(it) { + return $values(it); + } +}); /***/ }), -/***/ 5402: +/***/ 9871: /***/ ((__unused_webpack_module, exports) => { -exports.f = Object.getOwnPropertySymbols; - -/***/ }), - -/***/ 5442: -/***/ ((module) => { - -"use strict"; -module.exports = __WEBPACK_EXTERNAL_MODULE__5442__; - -/***/ }), - -/***/ 5525: -/***/ ((module) => { - -module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; +exports.f = {}.propertyIsEnumerable; /***/ }), -/***/ 5547: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = offset; - -var _contains = __webpack_require__(6489); - -var _contains2 = _interopRequireDefault(_contains); - -var _isWindow = __webpack_require__(4976); - -var _isWindow2 = _interopRequireDefault(_isWindow); - -var _ownerDocument = __webpack_require__(1999); - -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function offset(node) { - var doc = (0, _ownerDocument2.default)(node), - win = (0, _isWindow2.default)(doc), - docElem = doc && doc.documentElement, - box = { - top: 0, - left: 0, - height: 0, - width: 0 - }; - if (!doc) return; // Make sure it's not a disconnected DOM node +/***/ 9874: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - if (!(0, _contains2.default)(docElem, node)) return box; - if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height +var def = (__webpack_require__(8449).f); - box = { - top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), - left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), - width: (box.width == null ? node.offsetWidth : box.width) || 0, - height: (box.height == null ? node.offsetHeight : box.height) || 0 - }; - return box; -} +var has = __webpack_require__(8283); -module.exports = exports['default']; +var TAG = __webpack_require__(6932)('toStringTag'); -/***/ }), +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { + configurable: true, + value: tag + }); +}; -/***/ 5647: -/***/ ((module, exports, __webpack_require__) => { +/***/ }) +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. +(() => { "use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Accordion: () => (/* reexport */ src_Accordion), + Alert: () => (/* reexport */ src_Alert), + Badge: () => (/* reexport */ src_Badge), + Breadcrumb: () => (/* reexport */ src_Breadcrumb), + BreadcrumbItem: () => (/* reexport */ src_BreadcrumbItem), + Button: () => (/* reexport */ src_Button), + ButtonGroup: () => (/* reexport */ src_ButtonGroup), + ButtonToolbar: () => (/* reexport */ src_ButtonToolbar), + Carousel: () => (/* reexport */ src_Carousel), + CarouselItem: () => (/* reexport */ src_CarouselItem), + Checkbox: () => (/* reexport */ src_Checkbox), + Clearfix: () => (/* reexport */ src_Clearfix), + CloseButton: () => (/* reexport */ src_CloseButton), + Col: () => (/* reexport */ src_Col), + Collapse: () => (/* reexport */ src_Collapse), + ControlLabel: () => (/* reexport */ src_ControlLabel), + Dropdown: () => (/* reexport */ src_Dropdown), + DropdownButton: () => (/* reexport */ src_DropdownButton), + Fade: () => (/* reexport */ src_Fade), + Form: () => (/* reexport */ src_Form), + FormControl: () => (/* reexport */ src_FormControl), + FormGroup: () => (/* reexport */ src_FormGroup), + Glyphicon: () => (/* reexport */ src_Glyphicon), + Grid: () => (/* reexport */ src_Grid), + HelpBlock: () => (/* reexport */ src_HelpBlock), + Image: () => (/* reexport */ src_Image), + InputGroup: () => (/* reexport */ src_InputGroup), + Jumbotron: () => (/* reexport */ src_Jumbotron), + Label: () => (/* reexport */ src_Label), + ListGroup: () => (/* reexport */ src_ListGroup), + ListGroupItem: () => (/* reexport */ src_ListGroupItem), + Media: () => (/* reexport */ src_Media), + MenuItem: () => (/* reexport */ src_MenuItem), + Modal: () => (/* reexport */ src_Modal), + ModalBody: () => (/* reexport */ src_ModalBody), + ModalDialog: () => (/* reexport */ src_ModalDialog), + ModalFooter: () => (/* reexport */ src_ModalFooter), + ModalHeader: () => (/* reexport */ src_ModalHeader), + ModalTitle: () => (/* reexport */ src_ModalTitle), + Nav: () => (/* reexport */ src_Nav), + NavDropdown: () => (/* reexport */ src_NavDropdown), + NavItem: () => (/* reexport */ src_NavItem), + Navbar: () => (/* reexport */ src_Navbar), + NavbarBrand: () => (/* reexport */ src_NavbarBrand), + Overlay: () => (/* reexport */ src_Overlay), + OverlayTrigger: () => (/* reexport */ src_OverlayTrigger), + PageHeader: () => (/* reexport */ src_PageHeader), + PageItem: () => (/* reexport */ PageItem), + Pager: () => (/* reexport */ src_Pager), + Pagination: () => (/* reexport */ src_Pagination), + Panel: () => (/* reexport */ src_Panel), + PanelGroup: () => (/* reexport */ src_PanelGroup), + Popover: () => (/* reexport */ src_Popover), + ProgressBar: () => (/* reexport */ src_ProgressBar), + Radio: () => (/* reexport */ src_Radio), + ResponsiveEmbed: () => (/* reexport */ src_ResponsiveEmbed), + Row: () => (/* reexport */ src_Row), + SafeAnchor: () => (/* reexport */ src_SafeAnchor), + SplitButton: () => (/* reexport */ src_SplitButton), + Tab: () => (/* reexport */ src_Tab), + TabContainer: () => (/* reexport */ src_TabContainer), + TabContent: () => (/* reexport */ src_TabContent), + TabPane: () => (/* reexport */ src_TabPane), + Table: () => (/* reexport */ src_Table), + Tabs: () => (/* reexport */ src_Tabs), + Thumbnail: () => (/* reexport */ src_Thumbnail), + ToggleButton: () => (/* reexport */ src_ToggleButton), + ToggleButtonGroup: () => (/* reexport */ src_ToggleButtonGroup), + Tooltip: () => (/* reexport */ src_Tooltip), + Well: () => (/* reexport */ src_Well), + utils: () => (/* reexport */ utils_namespaceObject) +}); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _getComputedStyle; - -var _camelizeStyle = __webpack_require__(8039); - -var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -var rposition = /^(top|right|bottom|left)$/; -var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; - -function _getComputedStyle(node) { - if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); - var doc = node.ownerDocument; - return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : { - //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72 - getPropertyValue: function getPropertyValue(prop) { - var style = node.style; - prop = (0, _camelizeStyle2.default)(prop); - if (prop == 'float') prop = 'styleFloat'; - var current = node.currentStyle[prop] || null; - if (current == null && style && style[prop]) current = style[prop]; - - if (rnumnonpx.test(current) && !rposition.test(prop)) { - // Remember the original values - var left = style.left; - var runStyle = node.runtimeStyle; - var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out - - if (rsLeft) runStyle.left = node.currentStyle.left; - style.left = prop === 'fontSize' ? '1em' : current; - current = style.pixelLeft + 'px'; // Revert the changed values +// NAMESPACE OBJECT: ./src/utils/bootstrapUtils.js +var bootstrapUtils_namespaceObject = {}; +__webpack_require__.r(bootstrapUtils_namespaceObject); +__webpack_require__.d(bootstrapUtils_namespaceObject, { + _curry: () => (_curry), + addStyle: () => (addStyle), + bsClass: () => (bsClass), + bsSizes: () => (bsSizes), + bsStyles: () => (bsStyles), + getClassSet: () => (getClassSet), + prefix: () => (prefix), + splitBsProps: () => (splitBsProps), + splitBsPropsAndOmit: () => (splitBsPropsAndOmit) +}); - style.left = left; - if (rsLeft) runStyle.left = rsLeft; - } +// NAMESPACE OBJECT: ./src/utils/index.js +var utils_namespaceObject = {}; +__webpack_require__.r(utils_namespaceObject); +__webpack_require__.d(utils_namespaceObject, { + ValidComponentChildren: () => (ValidComponentChildren), + bootstrapUtils: () => (bootstrapUtils_namespaceObject), + createChainedFunction: () => (utils_createChainedFunction) +}); - return current; - } - }; -} +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js +var object_assign = __webpack_require__(9508); +var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js -module.exports = exports['default']; +function _extends() { + _extends = (assign_default()) || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; -/***/ }), + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } -/***/ 5762: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return target; + }; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -if (false) // removed by dead control flow -{ var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(2948)(); + return _extends.apply(this, arguments); } +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/create.js +var create = __webpack_require__(2309); +var create_default = /*#__PURE__*/__webpack_require__.n(create); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js -/***/ }), - -/***/ 5768: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { +function _inheritsLoose(subClass, superClass) { + subClass.prototype = create_default()(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; +} +// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} +var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(5442); +var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js +var keys = __webpack_require__(2573); +var keys_default = /*#__PURE__*/__webpack_require__.n(keys); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js -// 19.1.3.1 Object.assign(target, source) -var $export = __webpack_require__(3445); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; -$export($export.S + $export.F, 'Object', { - assign: __webpack_require__(344) -}); + var sourceKeys = keys_default()(source); -/***/ }), + var key, i; -/***/ 5862: -/***/ ((module, exports, __webpack_require__) => { + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } -"use strict"; + return target; +} +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(7755); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); +// EXTERNAL MODULE: ./node_modules/prop-types/index.js +var prop_types = __webpack_require__(5762); +var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); +// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js +var uncontrollable = __webpack_require__(3215); +var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable); +;// ./src/PanelGroupContext.js +var PanelGroupContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(undefined); +PanelGroupContext.displayName = 'PanelGroupContext'; +/* harmony default export */ const src_PanelGroupContext = (PanelGroupContext); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js +var entries = __webpack_require__(1953); +var entries_default = /*#__PURE__*/__webpack_require__.n(entries); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/json/stringify.js +var stringify = __webpack_require__(3837); +// EXTERNAL MODULE: ./node_modules/invariant/browser.js +var browser = __webpack_require__(3737); +var browser_default = /*#__PURE__*/__webpack_require__.n(browser); +// EXTERNAL MODULE: ./node_modules/react-is/cjs/react-is.production.js +var react_is_production = __webpack_require__(2691); +// EXTERNAL MODULE: ./node_modules/warning/browser.js +var warning_browser = __webpack_require__(7909); +;// ./src/utils/StyleConfig.js +var Size = { + LARGE: 'large', + SMALL: 'small', + XSMALL: 'xsmall' +}; +var SIZE_MAP = { + large: 'lg', + medium: 'md', + small: 'sm', + xsmall: 'xs', + lg: 'lg', + md: 'md', + sm: 'sm', + xs: 'xs' +}; +var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; +var State = { + SUCCESS: 'success', + WARNING: 'warning', + DANGER: 'danger', + INFO: 'info' +}; +var Style = { + DEFAULT: 'default', + PRIMARY: 'primary', + LINK: 'link', + INVERSE: 'inverse' +}; +;// ./src/utils/bootstrapUtils.js -exports.__esModule = true; -exports["default"] = calculatePosition; -var _offset = __webpack_require__(5547); -var _offset2 = _interopRequireDefault(_offset); +// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. -var _position = __webpack_require__(5083); -var _position2 = _interopRequireDefault(_position); -var _scrollTop = __webpack_require__(4506); -var _scrollTop2 = _interopRequireDefault(_scrollTop); -var _ownerDocument = __webpack_require__(3296); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +function curry(fn) { + return function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -function getContainerDimensions(containerNode) { - var width = void 0, - height = void 0, - scroll = void 0; + var last = args[args.length - 1]; - if (containerNode.tagName === 'BODY') { - width = window.innerWidth; - height = window.innerHeight; - scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode); - } else { - var _getOffset = (0, _offset2.default)(containerNode); + if (typeof last !== 'string' && (0,react_is_production/* isValidElementType */.Hy)(last)) { + // Supports calling curry(...args, Component) + return fn.apply(void 0, args); + } // Supports calling curry(...args)(Component) - width = _getOffset.width; - height = _getOffset.height; - scroll = (0, _scrollTop2.default)(containerNode); - } - return { - width: width, - height: height, - scroll: scroll + return function (Component) { + return fn.apply(void 0, args.concat([Component])); + }; }; } -function getTopDelta(top, overlayHeight, container, padding) { - var containerDimensions = getContainerDimensions(container); - var containerScroll = containerDimensions.scroll; - var containerHeight = containerDimensions.height; - var topEdgeOffset = top - padding - containerScroll; - var bottomEdgeOffset = top + padding - containerScroll + overlayHeight; - - if (topEdgeOffset < 0) { - return -topEdgeOffset; - } else if (bottomEdgeOffset > containerHeight) { - return containerHeight - bottomEdgeOffset; - } else { - return 0; - } +function componentName(Component) { + return Component.displayName || Component.name || 'Component'; } -function getLeftDelta(left, overlayWidth, container, padding) { - var containerDimensions = getContainerDimensions(container); - var containerWidth = containerDimensions.width; - var leftEdgeOffset = left - padding; - var rightEdgeOffset = left + padding + overlayWidth; +function isReactClass(Component) { + return Boolean(Component && Component.prototype && typeof Component.prototype.render === 'function'); +} - if (leftEdgeOffset < 0) { - return -leftEdgeOffset; - } else if (rightEdgeOffset > containerWidth) { - return containerWidth - rightEdgeOffset; +function warnOutOfRange(name, propName, value, allowed) { + if (value != null && allowed.indexOf(value) === -1) { + false ? 0 : void 0; } +} // Patch a class component's `render` so `propName` is validated on every +// render, without wrapping the component (which would break ref forwarding, +// static reads, and — for e.g. `bsRole` — class `defaultProps` merging). - return 0; -} -function calculatePosition(placement, overlayNode, target, container, padding) { - var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container); +function patchRenderValidation(Component, propName, allowed) { + var flag = "__bsValidated_" + propName; + var proto = Component.prototype; - var _getOffset2 = (0, _offset2.default)(overlayNode), - overlayHeight = _getOffset2.height, - overlayWidth = _getOffset2.width; + if (Object.prototype.hasOwnProperty.call(proto, flag)) { + return; + } - var positionLeft = void 0, - positionTop = void 0, - arrowOffsetLeft = void 0, - arrowOffsetTop = void 0; + var name = componentName(Component); + var innerRender = proto.render; - if (placement === 'left' || placement === 'right') { - positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2; + proto.render = function validatedRender() { + warnOutOfRange(name, propName, this.props[propName], allowed); - if (placement === 'left') { - positionLeft = childOffset.left - overlayWidth; - } else { - positionLeft = childOffset.left + childOffset.width; - } - - var topDelta = getTopDelta(positionTop, overlayHeight, container, padding); - positionTop += topDelta; - arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%'; - arrowOffsetLeft = void 0; - } else if (placement === 'top' || placement === 'bottom') { - positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2; - - if (placement === 'top') { - positionTop = childOffset.top - overlayHeight; - } else { - positionTop = childOffset.top + childOffset.height; + for (var _len2 = arguments.length, renderArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + renderArgs[_key2] = arguments[_key2]; } - var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding); - positionLeft += leftDelta; - arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%'; - arrowOffsetTop = void 0; - } else { - throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.'); - } - - return { - positionLeft: positionLeft, - positionTop: positionTop, - arrowOffsetLeft: arrowOffsetLeft, - arrowOffsetTop: arrowOffsetTop + return innerRender.apply(this, renderArgs); }; -} - -module.exports = exports['default']; -/***/ }), + proto[flag] = true; +} // Wrap a function component so the default is applied and the value validated +// at render. -/***/ 5865: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; +function wrapFunctionComponent(Inner, _ref) { + var propName = _ref.propName, + defaultValue = _ref.defaultValue, + allowed = _ref.allowed; + var name = componentName(Inner); + function BootstrapComponent(props) { + var _extends2; -exports.__esModule = true; + var resolved = defaultValue !== undefined && props[propName] === undefined ? _extends({}, props, (_extends2 = {}, _extends2[propName] = defaultValue, _extends2)) : props; -exports["default"] = function (node, event, handler, capture) { - (0, _on2.default)(node, event, handler, capture); - return { - remove: function remove() { - (0, _off2.default)(node, event, handler, capture); + if (allowed) { + warnOutOfRange(name, propName, resolved[propName], allowed); } - }; -}; -var _on = __webpack_require__(8774); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Inner, resolved); + } -var _on2 = _interopRequireDefault(_on); + BootstrapComponent.displayName = name; // Carry over metadata read elsewhere: `propTypes`/`_values` for docs and + // `STYLES`/`SIZES` for decorator chaining. + + if (Inner.propTypes) BootstrapComponent.propTypes = Inner.propTypes; + if (Inner.STYLES) BootstrapComponent.STYLES = Inner.STYLES; + if (Inner.SIZES) BootstrapComponent.SIZES = Inner.SIZES; + return BootstrapComponent; +} // Apply a `bs*` default and (optionally) enum validation to a component, +// dispatching on what kind of thing it is. Class components keep working +// `defaultProps`; function components get a validating wrapper; anything else +// (e.g. a plain object in tests) just records the default. + + +function applyBsProp(Component, _ref2) { + var propName = _ref2.propName, + defaultValue = _ref2.defaultValue, + allowed = _ref2.allowed; + var isClassComponent = isReactClass(Component); + + if (typeof Component === 'function' && !isClassComponent) { + return wrapFunctionComponent(Component, { + propName: propName, + defaultValue: defaultValue, + allowed: allowed + }); + } -var _off = __webpack_require__(6170); + if (defaultValue !== undefined) { + var _extends3; -var _off2 = _interopRequireDefault(_off); + Component.defaultProps = _extends({}, Component.defaultProps, (_extends3 = {}, _extends3[propName] = defaultValue, _extends3)); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + if (allowed && isClassComponent) { + patchRenderValidation(Component, propName, allowed); + } -module.exports = exports['default']; + return Component; +} -/***/ }), +function prefix(props, variant) { + var bsClass = (props.bsClass || '').trim(); + !(bsClass != null) ? false ? 0 : browser_default()(false) : void 0; + return bsClass + (variant ? "-" + variant : ''); +} +var bsClass = curry(function (defaultClass, Component) { + var propTypes = Component.propTypes || (Component.propTypes = {}); + propTypes.bsClass = (prop_types_default()).string; + return applyBsProp(Component, { + propName: 'bsClass', + defaultValue: defaultClass + }); +}); +var bsStyles = curry(function (styles, defaultStyle, Component) { + if (typeof defaultStyle !== 'string') { + Component = defaultStyle; + defaultStyle = undefined; + } -/***/ 6003: -/***/ ((module) => { + var existing = Component.STYLES || []; + var propTypes = Component.propTypes || {}; + styles.forEach(function (style) { + if (existing.indexOf(style) === -1) { + existing.push(style); + } + }); + var propType = prop_types_default().oneOf(existing); // expose the values on the propType function for documentation -"use strict"; -module.exports = __WEBPACK_EXTERNAL_MODULE__6003__; + Component.STYLES = existing; + propType._values = existing; + Component.propTypes = _extends({}, propTypes, { + bsStyle: propType + }); + return applyBsProp(Component, { + propName: 'bsStyle', + defaultValue: defaultStyle, + allowed: existing + }); +}); +var bsSizes = curry(function (sizes, defaultSize, Component) { + if (typeof defaultSize !== 'string') { + Component = defaultSize; + defaultSize = undefined; + } -/***/ }), + var existing = Component.SIZES || []; + var propTypes = Component.propTypes || {}; + sizes.forEach(function (size) { + if (existing.indexOf(size) === -1) { + existing.push(size); + } + }); + var values = []; + existing.forEach(function (size) { + var mappedSize = SIZE_MAP[size]; -/***/ 6065: -/***/ ((module, exports, __webpack_require__) => { + if (mappedSize && mappedSize !== size) { + values.push(mappedSize); + } -"use strict"; + values.push(size); + }); + var propType = prop_types_default().oneOf(values); + propType._values = values; // expose the values on the propType function for documentation + Component.SIZES = existing; + Component.propTypes = _extends({}, propTypes, { + bsSize: propType + }); + return applyBsProp(Component, { + propName: 'bsSize', + defaultValue: defaultSize, + allowed: values + }); +}); +function getClassSet(props) { + var _classes; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); -exports["default"] = function (recalc) { - if (!size && size !== 0 || recalc) { - if (_inDOM2.default) { - var scrollDiv = document.createElement('div'); - scrollDiv.style.position = 'absolute'; - scrollDiv.style.top = '-9999px'; - scrollDiv.style.width = '50px'; - scrollDiv.style.height = '50px'; - scrollDiv.style.overflow = 'scroll'; - document.body.appendChild(scrollDiv); - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - document.body.removeChild(scrollDiv); - } + if (props.bsSize) { + var bsSize = SIZE_MAP[props.bsSize] || props.bsSize; + classes[prefix(props, bsSize)] = true; } - return size; -}; - -var _inDOM = __webpack_require__(8647); + if (props.bsStyle) { + classes[prefix(props, props.bsStyle)] = true; + } -var _inDOM2 = _interopRequireDefault(_inDOM); + return classes; +} -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj +function getBsProps(props) { + return { + bsClass: props.bsClass, + bsSize: props.bsSize, + bsStyle: props.bsStyle, + bsRole: props.bsRole }; } -var size = void 0; -module.exports = exports['default']; - -/***/ }), +function isBsProp(propName) { + return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; +} -/***/ 6170: -/***/ ((module, exports, __webpack_require__) => { +function splitBsProps(props) { + var elementProps = {}; -"use strict"; + entries_default()(props).forEach(function (_ref3) { + var propName = _ref3[0], + propValue = _ref3[1]; + if (!isBsProp(propName)) { + elementProps[propName] = propValue; + } + }); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + return [getBsProps(props), elementProps]; +} +function splitBsPropsAndOmit(props, omittedPropNames) { + var isOmittedProp = {}; + omittedPropNames.forEach(function (propName) { + isOmittedProp[propName] = true; + }); + var elementProps = {}; -var _inDOM = __webpack_require__(8647); + entries_default()(props).forEach(function (_ref4) { + var propName = _ref4[0], + propValue = _ref4[1]; -var _inDOM2 = _interopRequireDefault(_inDOM); + if (!isBsProp(propName) && !isOmittedProp[propName]) { + elementProps[propName] = propValue; + } + }); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + return [getBsProps(props), elementProps]; } +/** + * Add a style variant to a Component. Mutates the propTypes of the component + * in order to validate the new variant. + */ -var off = function off() {}; +function addStyle(Component) { + for (var _len3 = arguments.length, styleVariant = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { + styleVariant[_key3 - 1] = arguments[_key3]; + } -if (_inDOM2.default) { - off = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.removeEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.detachEvent('on' + eventName, handler); - }; - }(); + bsStyles(styleVariant, Component); } +var _curry = curry; +;// ./src/utils/ValidComponentChildren.js +// TODO: This module should be ElementChildren, and should use named exports. -exports["default"] = off; -module.exports = exports['default']; - -/***/ }), - -/***/ 6233: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; +/** + * Iterates through children that are typically specified as `props.children`, + * but only maps over children that are "valid components". + * + * The mapFunction provided index will be normalised to the components mapped, + * so an invalid component would not increase the index. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for func. + * @return {object} Object containing the ordered map of results. + */ +function map(children, func, context) { + var index = 0; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return child; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = filterEvents; + return func.call(context, child, index++); + }); +} +/** + * Iterates through children that are "valid components". + * + * The provided forEachFunc(child, index) will be called for each + * leaf child with the index reflecting the position relative to "valid components". + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for context. + */ -var _contains = __webpack_require__(6489); -var _contains2 = _interopRequireDefault(_contains); +function forEach(children, func, context) { + var index = 0; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -var _querySelectorAll = __webpack_require__(8404); - -var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -function filterEvents(selector, handler) { - return function filterHandler(e) { - var top = e.currentTarget, - target = e.target, - matches = (0, _querySelectorAll2.default)(top, selector); - if (matches.some(function (match) { - return (0, _contains2.default)(match, target); - })) handler.call(this, e); - }; + func.call(context, child, index++); + }); } +/** + * Count the number of "valid components" in the Children container. + * + * @param {?*} children Children tree container. + * @returns {number} + */ -module.exports = exports['default']; -/***/ }), +function count(children) { + var result = 0; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -/***/ 6335: -/***/ ((module, exports, __webpack_require__) => { + ++result; + }); + return result; +} +/** + * Finds children that are typically specified as `props.children`, + * but only iterates over children that are "valid components". + * + * The provided forEachFunc(child, index) will be called for each + * leaf child with the index reflecting the position relative to "valid components". + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func. + * @param {*} context Context for func. + * @returns {array} of children that meet the func return statement + */ -"use strict"; +function filter(children, func, context) { + var index = 0; + var result = []; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = activeElement; + if (func.call(context, child, index++)) { + result.push(child); + } + }); + return result; +} -var _ownerDocument = __webpack_require__(1999); +function find(children, func, context) { + var index = 0; + var result; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + if (func.call(context, child, index++)) { + result = child; + } + }); + return result; } -function activeElement() { - var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); +function every(children, func, context) { + var index = 0; + var result = true; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!result) { + return; + } - try { - return doc.activeElement; - } catch (e) { - /* ie throws if no active element */ - } + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } + + if (!func.call(context, child, index++)) { + result = false; + } + }); + return result; } -module.exports = exports['default']; +function some(children, func, context) { + var index = 0; + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -/***/ }), + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } -/***/ 6387: -/***/ ((module, exports, __webpack_require__) => { + if (func.call(context, child, index++)) { + result = true; + } + }); + return result; +} -"use strict"; +function toArray(children) { + var result = []; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + return; + } + result.push(child); + }); + return result; +} -Object.defineProperty(exports, "__esModule", ({ - value: true -})); +/* harmony default export */ const ValidComponentChildren = ({ + map: map, + forEach: forEach, + count: count, + find: find, + filter: filter, + every: every, + some: some, + toArray: toArray +}); +;// ./src/utils/PropTypes.js -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { - return typeof obj; -} : function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; -}; -var _react = __webpack_require__(5442); +var idPropType = prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]); +function generatedId(name) { + return function (props) { + var error = null; -var _react2 = _interopRequireDefault(_react); + if (!props.generateChildId) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } -var _createChainableTypeChecker = __webpack_require__(8663); + error = idPropType.apply(void 0, [props].concat(args)); -var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + if (!error && !props.id) { + 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")); + } + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + return error; }; } +/** + * Return a warning message if `children` is missing a child for any of the + * required `roles`, otherwise `null`. `bsRole` is matched against each child's + * `bsRole` prop. + */ -function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); +function getMissingRoleError(component, children) { + var missing; - if (_react2.default.isValidElement(propValue)) { - 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.'); + for (var _len2 = arguments.length, roles = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + roles[_key2 - 2] = arguments[_key2]; } - if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); + roles.every(function (role) { + if (!ValidComponentChildren.some(children, function (child) { + return child.props.bsRole === role; + })) { + missing = role; + return false; + } + + return true; + }); + + if (missing) { + return "(children) " + component + " - Missing a required child with bsRole: " + (missing + ". " + component + " must have at least one child of each of ") + ("the following bsRoles: " + roles.join(', ')); } return null; } +/** + * Return a warning message if `children` contains more than one child for any + * of the exclusive `roles`, otherwise `null`. + */ -exports["default"] = (0, _createChainableTypeChecker2.default)(validate); -module.exports = exports['default']; - -/***/ }), - -/***/ 6489: -/***/ ((module, exports, __webpack_require__) => { +function getDuplicateRoleError(component, children) { + var duplicate; -"use strict"; + for (var _len3 = arguments.length, roles = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { + roles[_key3 - 2] = arguments[_key3]; + } + roles.every(function (role) { + var childrenWithRole = ValidComponentChildren.filter(children, function (child) { + return child.props.bsRole === role; + }); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); + if (childrenWithRole.length > 1) { + duplicate = role; + return false; + } -var _inDOM = __webpack_require__(8647); + return true; + }); -var _inDOM2 = _interopRequireDefault(_inDOM); + if (duplicate) { + return "(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', ')); + } -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; + return null; } +;// ./src/PanelGroup.js -exports["default"] = function () { - // HTML DOM and SVG DOM may have different support levels, - // so we need to check on context instead of a document root element. - return _inDOM2.default ? function (context, node) { - if (context.contains) { - return context.contains(node); - } else if (context.compareDocumentPosition) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } else { - return fallback(context, node); - } - } : fallback; -}(); -function fallback(context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); - return false; -} -module.exports = exports['default']; +var _jsxFileName = "/Users/harrison/react-bootstrap/src/PanelGroup.js"; -/***/ }), -/***/ 6509: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var ITERATOR = __webpack_require__(6932)('iterator'); -var SAFE_CLOSING = false; -try { - var riter = [7][ITERATOR](); - riter['return'] = function () { - SAFE_CLOSING = true; - }; // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { - throw 2; - }); -} catch (e) { - /* empty */ -} +var propTypes = { + accordion: (prop_types_default()).bool, -module.exports = function (exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return false; - var safe = false; + /** + * When `accordion` is enabled, `activeKey` controls the which child `Panel` is expanded. `activeKey` should + * match a child Panel `eventKey` prop exactly. + * + * @controllable onSelect + */ + activeKey: (prop_types_default()).any, - try { - var arr = [7]; - var iter = arr[ITERATOR](); + /** + * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey` + * + * @controllable activeKey + */ + onSelect: (prop_types_default()).func, - iter.next = function () { - return { - done: safe = true - }; - }; + /** + * An HTML role attribute + */ + role: (prop_types_default()).string, - arr[ITERATOR] = function () { - return iter; + /** + * A function that takes an eventKey and type and returns a + * unique id for each Panel heading and Panel Collapse. The function _must_ be a pure function, + * meaning it should always return the _same_ id for the same set of inputs. The default + * value requires that an `id` to be set for the PanelGroup. + * + * The `type` argument will either be `"body"` or `"heading"`. + * + * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` + */ + generateChildId: (prop_types_default()).func, + + /** + * HTML id attribute, required if no `generateChildId` prop + * is specified. + */ + id: generatedId('PanelGroup') +}; +var defaultProps = { + accordion: false +}; + +var PanelGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(PanelGroup, _React$Component); + + function PanelGroup() { + var _this; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + + _this.handleSelect = function (key, expanded, e) { + if (expanded) { + _this.props.onSelect(key, e); + } else if (_this.props.activeKey === key) { + _this.props.onSelect(null, e); + } }; - exec(arr); - } catch (e) { - /* empty */ + return _this; } - return safe; -}; + var _proto = PanelGroup.prototype; -/***/ }), + _proto.render = function render() { + var _this$props = this.props, + accordion = _this$props.accordion, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["accordion", "className", "children"]); -/***/ 6534: -/***/ ((module, exports) => { + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; -"use strict"; + if (accordion) { + elementProps.role = elementProps.role || 'tablist'; + } + var classes = getClassSet(bsProps); + var _this$props2 = this.props, + activeKey = _this$props2.activeKey, + generateChildId = _this$props2.generateChildId, + id = _this$props2.id; + var getId = null; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = hyphenate; -var rUpper = /([A-Z])/g; + if (accordion) { + getId = generateChildId || function (key, type) { + return id ? id + "-" + type + "-" + key : null; + }; + } -function hyphenate(string) { - return string.replace(rUpper, '-$1').toLowerCase(); -} + var panelGroupContext = _extends({ + getId: getId, + headerRole: 'tab', + panelRole: 'tabpanel' + }, accordion && { + activeKey: activeKey, + onToggle: this.handleSelect + }); -module.exports = exports['default']; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroupContext.Provider, { + value: panelGroupContext, + __source: { + fileName: _jsxFileName, + lineNumber: 103 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: _jsxFileName, + lineNumber: 104 + }, + __self: this + }), ValidComponentChildren.map(children, function (child) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + bsStyle: child.props.bsStyle || bsProps.bsStyle + }); + }))); + }; -/***/ }), + return PanelGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 6546: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +PanelGroup.propTypes = propTypes; +PanelGroup.defaultProps = defaultProps; +/* harmony default export */ const src_PanelGroup = (uncontrollable_default()(bsClass('panel-group', PanelGroup), { + activeKey: 'onSelect' +})); +;// ./src/Accordion.js -__webpack_require__(6861); -module.exports = __webpack_require__(9520).parseInt; +var Accordion_jsxFileName = "/Users/harrison/react-bootstrap/src/Accordion.js"; -/***/ }), -/***/ 6562: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// call something on iterator step with safe closing on error -var anObject = __webpack_require__(4610); +var Accordion = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Accordion, _React$Component); -module.exports = function (iterator, fn, value, entries) { - try { - return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) - } catch (e) { - var ret = iterator['return']; - if (ret !== undefined) anObject(ret.call(iterator)); - throw e; + function Accordion() { + return _React$Component.apply(this, arguments) || this; } -}; -/***/ }), + var _proto = Accordion.prototype; -/***/ 6563: -/***/ ((module, exports, __webpack_require__) => { + _proto.render = function render() { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroup, _extends({}, this.props, { + accordion: true, + __source: { + fileName: Accordion_jsxFileName, + lineNumber: 8 + }, + __self: this + }), this.props.children); + }; -"use strict"; + return Accordion; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const src_Accordion = (Accordion); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/values.js +var values = __webpack_require__(5115); +var values_default = /*#__PURE__*/__webpack_require__.n(values); +;// ./src/CloseButton.js -exports.__esModule = true; +var CloseButton_jsxFileName = "/Users/harrison/react-bootstrap/src/CloseButton.js"; -var _propTypes = __webpack_require__(5762); -var _propTypes2 = _interopRequireDefault(_propTypes); +var CloseButton_propTypes = { + label: (prop_types_default()).string.isRequired, + onClick: (prop_types_default()).func +}; +var CloseButton_defaultProps = { + label: 'Close' +}; -var _componentOrElement = __webpack_require__(6387); +var CloseButton = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CloseButton, _React$Component); -var _componentOrElement2 = _interopRequireDefault(_componentOrElement); + function CloseButton() { + return _React$Component.apply(this, arguments) || this; + } -var _react = __webpack_require__(5442); + var _proto = CloseButton.prototype; -var _react2 = _interopRequireDefault(_react); + _proto.render = function render() { + var _this$props = this.props, + label = _this$props.label, + onClick = _this$props.onClick; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", { + type: "button", + className: "close", + onClick: onClick, + "aria-label": label, + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 17 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + "aria-hidden": "true", + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 23 + }, + __self: this + }, "\xD7"), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: CloseButton_jsxFileName, + lineNumber: 24 + }, + __self: this + }, label)); + }; -var _reactDom = __webpack_require__(6003); + return CloseButton; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _reactDom2 = _interopRequireDefault(_reactDom); +CloseButton.propTypes = CloseButton_propTypes; +CloseButton.defaultProps = CloseButton_defaultProps; +/* harmony default export */ const src_CloseButton = (CloseButton); +;// ./src/Alert.js -var _getContainer = __webpack_require__(2799); -var _getContainer2 = _interopRequireDefault(_getContainer); -var _ownerDocument = __webpack_require__(3296); -var _ownerDocument2 = _interopRequireDefault(_ownerDocument); +var Alert_jsxFileName = "/Users/harrison/react-bootstrap/src/Alert.js"; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/** - * The `` component renders its children into a new "subtree" outside of current component hierarchy. - * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`. - * The children of `` component will be appended to the `container` specified. - */ +var Alert_propTypes = { + onDismiss: (prop_types_default()).func, + closeLabel: (prop_types_default()).string +}; +var Alert_defaultProps = { + closeLabel: 'Close alert' +}; +var Alert = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Alert, _React$Component); -var Portal = function (_React$Component) { - _inherits(Portal, _React$Component); + function Alert() { + return _React$Component.apply(this, arguments) || this; + } - function Portal() { - var _temp, _this, _ret; + var _proto = Alert.prototype; - _classCallCheck(this, Portal); + _proto.render = function render() { + var _extends2; - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _this$props = this.props, + onDismiss = _this$props.onDismiss, + closeLabel = _this$props.closeLabel, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._mountOverlayTarget = function () { - if (!_this._overlayTarget) { - _this._overlayTarget = document.createElement('div'); - _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - _this._portalContainerNode.appendChild(_this._overlayTarget); - } - }, _this._unmountOverlayTarget = function () { - if (_this._overlayTarget) { - _this._portalContainerNode.removeChild(_this._overlayTarget); + var dismissable = !!onDismiss; - _this._overlayTarget = null; - } + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2)); - _this._portalContainerNode = null; - }, _this._renderOverlay = function () { - var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children); // Save reference for future access. + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + role: "alert", + className: classnames_default()(className, classes), + __source: { + fileName: Alert_jsxFileName, + lineNumber: 36 + }, + __self: this + }), dismissable && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_CloseButton, { + onClick: onDismiss, + label: closeLabel, + __source: { + fileName: Alert_jsxFileName, + lineNumber: 41 + }, + __self: this + }), children); + }; - if (overlay !== null) { - _this._mountOverlayTarget(); + return Alert; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var initialRender = !_this._overlayInstance; - _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () { - if (initialRender && _this.props.onRendered) { - _this.props.onRendered(); - } - }); - } else { - // Unrender if the component is null for transitions to null - _this._unrenderOverlay(); +Alert.propTypes = Alert_propTypes; +Alert.defaultProps = Alert_defaultProps; +/* harmony default export */ const src_Alert = (bsStyles(values_default()(State), State.INFO, bsClass('alert', Alert))); +;// ./src/Badge.js - _this._unmountOverlayTarget(); - } - }, _this._unrenderOverlay = function () { - if (_this._overlayTarget) { - _reactDom2.default.unmountComponentAtNode(_this._overlayTarget); - _this._overlayInstance = null; - } - }, _this.getMountNode = function () { - return _this._overlayTarget; - }, _temp), _possibleConstructorReturn(_this, _ret); - } - Portal.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; +var Badge_jsxFileName = "/Users/harrison/react-bootstrap/src/Badge.js"; - this._renderOverlay(); - }; - Portal.prototype.componentDidUpdate = function componentDidUpdate() { - this._renderOverlay(); - }; - Portal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (this._overlayTarget && nextProps.container !== this.props.container) { - this._portalContainerNode.removeChild(this._overlayTarget); + // TODO: `pullRight` doesn't belong here. There's no special handling here. - this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body); +var Badge_propTypes = { + pullRight: (prop_types_default()).bool +}; +var Badge_defaultProps = { + pullRight: false +}; - this._portalContainerNode.appendChild(this._overlayTarget); - } - }; +var Badge = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Badge, _React$Component); - Portal.prototype.componentWillUnmount = function componentWillUnmount() { - this._isMounted = false; + function Badge() { + return _React$Component.apply(this, arguments) || this; + } - this._unrenderOverlay(); + var _proto = Badge.prototype; - this._unmountOverlayTarget(); - }; + _proto.hasContent = function hasContent(children) { + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } - Portal.prototype.render = function render() { - return null; + if (child || child === 0) { + result = true; + } + }); + return result; }; - return Portal; -}(_react2.default.Component); - -Portal.displayName = 'Portal'; -Portal.propTypes = { - /** - * A Node, Component instance, or function that returns either. The `container` will have the Portal children - * appended to it. - */ - container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), - onRendered: _propTypes2.default.func -}; -exports["default"] = Portal; -module.exports = exports['default']; - -/***/ }), + _proto.render = function render() { + var _this$props = this.props, + pullRight = _this$props.pullRight, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]); -/***/ 6807: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -module.exports = __webpack_require__(8475); + var classes = _extends({}, getClassSet(bsProps), { + 'pull-right': pullRight, + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); -/***/ }), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Badge_jsxFileName, + lineNumber: 47 + }, + __self: this + }), children); + }; -/***/ 6832: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return Badge; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var shared = __webpack_require__(114)('keys'); +Badge.propTypes = Badge_propTypes; +Badge.defaultProps = Badge_defaultProps; +/* harmony default export */ const src_Badge = (bsClass('badge', Badge)); +;// ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } -var uid = __webpack_require__(7209); + return self; +} +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js +var elementType = __webpack_require__(3105); +var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType); +;// ./src/utils/createChainedFunction.js +/** + * Safe chained function + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + * + * @param {function} functions to chain + * @returns {function|null} + */ +function createChainedFunction() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } -module.exports = function (key) { - return shared[key] || (shared[key] = uid(key)); -}; + return funcs.filter(function (f) { + return f != null; + }).reduce(function (acc, f) { + if (typeof f !== 'function') { + throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); + } -/***/ }), + if (acc === null) { + return f; + } -/***/ 6861: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + return function chainedFunction() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } -var $export = __webpack_require__(3445); + acc.apply(this, args); + f.apply(this, args); + }; + }, null); +} -var $parseInt = __webpack_require__(7416); // 18.2.5 parseInt(string, radix) +/* harmony default export */ const utils_createChainedFunction = (createChainedFunction); +;// ./src/SafeAnchor.js -$export($export.G + $export.F * (parseInt != $parseInt), { - parseInt: $parseInt -}); -/***/ }), -/***/ 6932: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var SafeAnchor_jsxFileName = "/Users/harrison/react-bootstrap/src/SafeAnchor.js"; -var store = __webpack_require__(114)('wks'); -var uid = __webpack_require__(7209); -var Symbol = (__webpack_require__(8248).Symbol); -var USE_SYMBOL = typeof Symbol == 'function'; +var SafeAnchor_propTypes = { + href: (prop_types_default()).string, + onClick: (prop_types_default()).func, + onKeyDown: (prop_types_default()).func, + disabled: (prop_types_default()).bool, + role: (prop_types_default()).string, + tabIndex: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]), -var $exports = module.exports = function (name) { - return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); + /** + * this is sort of silly but needed for Button + */ + componentClass: (elementType_default()) +}; +var SafeAnchor_defaultProps = { + componentClass: 'a' }; -$exports.store = store; - -/***/ }), +function isTrivialHref(href) { + return !href || href.trim() === '#'; +} +/** + * There are situations due to browser quirks or Bootstrap CSS where + * an anchor tag is needed, when semantically a button tag is the + * better choice. SafeAnchor ensures that when an anchor is used like a + * button its accessible. It also emulates input `disabled` behavior for + * links, which is usually desirable for Buttons, NavItems, MenuItems, etc. + */ -/***/ 6948: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var classof = __webpack_require__(1222); +var SafeAnchor = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(SafeAnchor, _React$Component); -var ITERATOR = __webpack_require__(6932)('iterator'); + function SafeAnchor(props, context) { + var _this; -var Iterators = __webpack_require__(1428); + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; + } -module.exports = (__webpack_require__(9520).getIteratorMethod) = function (it) { - if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; -}; + var _proto = SafeAnchor.prototype; -/***/ }), + _proto.handleClick = function handleClick(event) { + var _this$props = this.props, + disabled = _this$props.disabled, + href = _this$props.href, + onClick = _this$props.onClick; -/***/ 6997: -/***/ ((module) => { + if (disabled || isTrivialHref(href)) { + event.preventDefault(); + } -// 7.1.4 ToInteger -var ceil = Math.ceil; -var floor = Math.floor; + if (disabled) { + event.stopPropagation(); + return; + } -module.exports = function (it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); -}; + if (onClick) { + onClick(event); + } + }; -/***/ }), + _proto.handleKeyDown = function handleKeyDown(event) { + if (event.key === ' ') { + event.preventDefault(); + this.handleClick(event); + } + }; -/***/ 7209: -/***/ ((module) => { + _proto.render = function render() { + var _this$props2 = this.props, + Component = _this$props2.componentClass, + disabled = _this$props2.disabled, + onKeyDown = _this$props2.onKeyDown, + props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]); -var id = 0; -var px = Math.random(); + if (isTrivialHref(props.href)) { + props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node + // otherwise, the cursor incorrectly styled (except with role='button') -module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); -}; + props.href = props.href || '#'; + } -/***/ }), + if (disabled) { + props.tabIndex = -1; + props.style = _extends({ + pointerEvents: 'none' + }, props.style); + } -/***/ 7222: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + onClick: this.handleClick, + onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown), + __source: { + fileName: SafeAnchor_jsxFileName, + lineNumber: 88 + }, + __self: this + })); + }; -module.exports = __webpack_require__(6546); + return SafeAnchor; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ }), +SafeAnchor.propTypes = SafeAnchor_propTypes; +SafeAnchor.defaultProps = SafeAnchor_defaultProps; +/* harmony default export */ const src_SafeAnchor = (SafeAnchor); +;// ./src/BreadcrumbItem.js -/***/ 7350: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// check on default Array iterator -var Iterators = __webpack_require__(1428); -var ITERATOR = __webpack_require__(6932)('iterator'); +var BreadcrumbItem_jsxFileName = "/Users/harrison/react-bootstrap/src/BreadcrumbItem.js"; -var ArrayProto = Array.prototype; -module.exports = function (it) { - return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); -}; -/***/ }), -/***/ 7416: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var BreadcrumbItem_propTypes = { + /** + * If set to true, renders `span` instead of `a` + */ + active: (prop_types_default()).bool, -var $parseInt = (__webpack_require__(8248).parseInt); + /** + * `href` attribute for the inner `a` element + */ + href: (prop_types_default()).string, -var $trim = (__webpack_require__(7659).trim); + /** + * `title` attribute for the inner `a` element + */ + title: (prop_types_default()).node, -var ws = __webpack_require__(5525); + /** + * `target` attribute for the inner `a` element + */ + target: (prop_types_default()).string +}; +var BreadcrumbItem_defaultProps = { + active: false +}; -var hex = /^[-+]?0[xX]/; -module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { - var string = $trim(String(str), 3); - return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10)); -} : $parseInt; +var BreadcrumbItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(BreadcrumbItem, _React$Component); -/***/ }), + function BreadcrumbItem() { + return _React$Component.apply(this, arguments) || this; + } -/***/ 7659: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _proto = BreadcrumbItem.prototype; -var $export = __webpack_require__(3445); + _proto.render = function render() { + var _this$props = this.props, + active = _this$props.active, + href = _this$props.href, + title = _this$props.title, + target = _this$props.target, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active . -var defined = __webpack_require__(9314); -var fails = __webpack_require__(2250); + var linkProps = { + href: href, + title: title, + target: target + }; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + className: classnames_default()(className, { + active: active + }), + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 38 + }, + __self: this + }, active ? external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, props, { + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 40 + }, + __self: this + })) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, props, linkProps, { + __source: { + fileName: BreadcrumbItem_jsxFileName, + lineNumber: 42 + }, + __self: this + }))); + }; -var spaces = __webpack_require__(5525); + return BreadcrumbItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var space = '[' + spaces + ']'; -var non = '\u200b\u0085'; -var ltrim = RegExp('^' + space + space + '*'); -var rtrim = RegExp(space + space + '*$'); +BreadcrumbItem.propTypes = BreadcrumbItem_propTypes; +BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps; +/* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem); +;// ./src/Breadcrumb.js -var exporter = function (KEY, exec, ALIAS) { - var exp = {}; - var FORCE = fails(function () { - return !!spaces[KEY]() || non[KEY]() != non; - }); - var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; - if (ALIAS) exp[ALIAS] = fn; - $export($export.P + $export.F * FORCE, 'String', exp); -}; // 1 -> String#trimLeft -// 2 -> String#trimRight -// 3 -> String#trim -var trim = exporter.trim = function (string, TYPE) { - string = String(defined(string)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; -}; +var Breadcrumb_jsxFileName = "/Users/harrison/react-bootstrap/src/Breadcrumb.js"; -module.exports = exporter; -/***/ }), -/***/ 7735: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; +var Breadcrumb = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Breadcrumb, _React$Component); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = style; + function Breadcrumb() { + return _React$Component.apply(this, arguments) || this; + } -var _camelizeStyle = __webpack_require__(8039); + var _proto = Breadcrumb.prototype; -var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); -var _hyphenateStyle = __webpack_require__(4065); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", _extends({}, elementProps, { + role: "navigation", + "aria-label": "breadcrumbs", + className: classnames_default()(className, classes), + __source: { + fileName: Breadcrumb_jsxFileName, + lineNumber: 15 + }, + __self: this + })); + }; -var _getComputedStyle2 = __webpack_require__(5647); + return Breadcrumb; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); +Breadcrumb.Item = src_BreadcrumbItem; +/* harmony default export */ const src_Breadcrumb = (bsClass('breadcrumb', Breadcrumb)); +;// ./src/Button.js -var _removeStyle = __webpack_require__(8290); -var _removeStyle2 = _interopRequireDefault(_removeStyle); -var _properties = __webpack_require__(3152); -var _isTransform = __webpack_require__(5229); +var Button_jsxFileName = "/Users/harrison/react-bootstrap/src/Button.js"; -var _isTransform2 = _interopRequireDefault(_isTransform); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function style(node, property, value) { - var css = ''; - var transforms = ''; - var props = property; - - if (typeof property === 'string') { - if (value === undefined) { - return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); - } else { - (props = {})[property] = value; - } - } - Object.keys(props).forEach(function (key) { - var value = props[key]; - if (!value && value !== 0) { - (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); - } else if ((0, _isTransform2.default)(key)) { - transforms += key + '(' + value + ') '; - } else { - css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; - } - }); - if (transforms) { - css += _properties.transform + ': ' + transforms + ';'; - } - node.style.cssText += ';' + css; -} +var Button_propTypes = { + active: (prop_types_default()).bool, + disabled: (prop_types_default()).bool, + block: (prop_types_default()).bool, + onClick: (prop_types_default()).func, + componentClass: (elementType_default()), + href: (prop_types_default()).string, -module.exports = exports['default']; + /** + * Defines HTML button type attribute + * @defaultValue 'button' + */ + type: prop_types_default().oneOf(['button', 'reset', 'submit']) +}; +var Button_defaultProps = { + active: false, + block: false, + disabled: false +}; -/***/ }), +var Button = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Button, _React$Component); -/***/ 7748: -/***/ ((module, exports, __webpack_require__) => { + function Button() { + return _React$Component.apply(this, arguments) || this; + } -"use strict"; + var _proto = Button.prototype; + _proto.renderAnchor = function renderAnchor(elementProps, className) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { + className: classnames_default()(className, elementProps.disabled && 'disabled'), + __source: { + fileName: Button_jsxFileName, + lineNumber: 41 + }, + __self: this + })); + }; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = deprecated; + _proto.renderButton = function renderButton(_ref, className) { + var componentClass = _ref.componentClass, + elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]); -var _warning = __webpack_require__(7909); + var Component = componentClass || 'button'; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + type: elementProps.type || 'button', + className: className, + __source: { + fileName: Button_jsxFileName, + lineNumber: 52 + }, + __self: this + })); + }; -var _warning2 = _interopRequireDefault(_warning); + _proto.render = function render() { + var _extends2; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + var _this$props = this.props, + active = _this$props.active, + block = _this$props.block, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]); -var warned = {}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -function deprecated(validator, reason) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + var classes = _extends({}, getClassSet(bsProps), (_extends2 = { + active: active + }, _extends2[prefix(bsProps, 'block')] = block, _extends2)); - if (props[propName] != null) { - var messageKey = componentName + '.' + propName; - (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); - warned[messageKey] = true; - } + var fullClassName = classnames_default()(className, classes); - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; + if (elementProps.href) { + return this.renderAnchor(elementProps, fullClassName); } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); + return this.renderButton(elementProps, fullClassName); }; -} -/* eslint-disable no-underscore-dangle */ + return Button; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function _resetWarned() { - warned = {}; -} +Button.propTypes = Button_propTypes; +Button.defaultProps = Button_defaultProps; +/* harmony default export */ const src_Button = (bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button)))); +;// ./src/ButtonGroup.js -deprecated._resetWarned = _resetWarned; -/* eslint-enable no-underscore-dangle */ -module.exports = exports['default']; -/***/ }), +var ButtonGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonGroup.js"; -/***/ 7755: -/***/ ((module, exports) => { -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ -(function () { - 'use strict'; - var hasOwn = {}.hasOwnProperty; - function classNames() { - var classes = []; - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - var argType = typeof arg; +var ButtonGroup_propTypes = { + vertical: (prop_types_default()).bool, + justified: (prop_types_default()).bool, - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); + /** + * Display block buttons; only useful when used with the "vertical" prop. + * @type {bool} + */ + block: (prop_types_default()).bool +}; +var ButtonGroup_defaultProps = { + block: false, + justified: false, + vertical: false +}; - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } +var ButtonGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ButtonGroup, _React$Component); - return classes.join(' '); + function ButtonGroup() { + return _React$Component.apply(this, arguments) || this; } - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else // removed by dead control flow -{} -})(); - -/***/ }), + var _proto = ButtonGroup.prototype; -/***/ 7770: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + _proto.render = function render() { + var _extends2; -"use strict"; + var _this$props = this.props, + block = _this$props.block, + justified = _this$props.justified, + vertical = _this$props.vertical, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -exports.__esModule = true; -exports.uncontrolledPropTypes = uncontrolledPropTypes; -exports.isProp = isProp; -exports.defaultKey = defaultKey; -exports.isReactComponent = isReactComponent; + false ? 0 : void 0; -var _invariant = _interopRequireDefault(__webpack_require__(3737)); + 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)); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: ButtonGroup_jsxFileName, + lineNumber: 51 + }, + __self: this + })); }; -} -var noop = function noop() {}; + return ButtonGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function readOnlyPropType(handler, name) { - return function (props, propName) { - if (props[propName] !== undefined) { - if (!props[handler]) { - 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 + "`.")); - } - } - }; -} +ButtonGroup.propTypes = ButtonGroup_propTypes; +ButtonGroup.defaultProps = ButtonGroup_defaultProps; +/* harmony default export */ const src_ButtonGroup = (bsClass('btn-group', ButtonGroup)); +;// ./src/ButtonToolbar.js -function uncontrolledPropTypes(controlledValues, displayName) { - var propTypes = {}; - Object.keys(controlledValues).forEach(function (prop) { - // add default propTypes for folks that use runtime checks - propTypes[defaultKey(prop)] = noop; - if (false) // removed by dead control flow -{ var handler; } - }); - return propTypes; -} -function isProp(props, prop) { - return props[prop] !== undefined; -} - -function defaultKey(key) { - return 'default' + key.charAt(0).toUpperCase() + key.substr(1); -} -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ +var ButtonToolbar_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonToolbar.js"; -function isReactComponent(component) { - return !!(component && component.prototype && component.prototype.isReactComponent); -} -/***/ }), -/***/ 7788: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +var ButtonToolbar = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ButtonToolbar, _React$Component); -var isObject = __webpack_require__(2103); + function ButtonToolbar() { + return _React$Component.apply(this, arguments) || this; + } -var document = (__webpack_require__(8248).document); // typeof document.createElement is 'object' in old IE + var _proto = ButtonToolbar.prototype; + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); -var is = isObject(document) && isObject(document.createElement); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -module.exports = function (it) { - return is ? document.createElement(it) : {}; -}; + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + role: "toolbar", + className: classnames_default()(className, classes), + __source: { + fileName: ButtonToolbar_jsxFileName, + lineNumber: 14 + }, + __self: this + })); + }; -/***/ }), + return ButtonToolbar; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 7909: -/***/ ((module) => { +/* harmony default export */ const src_ButtonToolbar = (bsClass('btn-toolbar', ButtonToolbar)); +;// ./src/CarouselCaption.js -"use strict"; -/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ -var warning = function () {}; +var CarouselCaption_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselCaption.js"; -if (false) // removed by dead control flow -{} -module.exports = warning; -/***/ }), -/***/ 8039: -/***/ ((module, exports, __webpack_require__) => { +var CarouselCaption_propTypes = { + componentClass: (elementType_default()) +}; +var CarouselCaption_defaultProps = { + componentClass: 'div' +}; -"use strict"; +var CarouselCaption = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CarouselCaption, _React$Component); + function CarouselCaption() { + return _React$Component.apply(this, arguments) || this; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = camelizeStyleName; + var _proto = CarouselCaption.prototype; -var _camelize = __webpack_require__(1700); + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); -var _camelize2 = _interopRequireDefault(_camelize); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: CarouselCaption_jsxFileName, + lineNumber: 23 + }, + __self: this + })); }; -} - -var msPattern = /^-ms-/; -/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js - */ - -function camelizeStyleName(string) { - return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); -} -module.exports = exports['default']; + return CarouselCaption; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ }), +CarouselCaption.propTypes = CarouselCaption_propTypes; +CarouselCaption.defaultProps = CarouselCaption_defaultProps; +/* harmony default export */ const src_CarouselCaption = (bsClass('carousel-caption', CarouselCaption)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js +var transition = __webpack_require__(1685); +;// ./src/CarouselItem.js -/***/ 8223: -/***/ ((module, exports, __webpack_require__) => { -"use strict"; -exports.__esModule = true; +var CarouselItem_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselItem.js"; -var _propTypes = __webpack_require__(5762); -var _propTypes2 = _interopRequireDefault(_propTypes); -var _react = __webpack_require__(5442); -var _react2 = _interopRequireDefault(_react); +var CarouselItem_propTypes = { + direction: prop_types_default().oneOf(['prev', 'next']), + onAnimateOutEnd: (prop_types_default()).func, + active: (prop_types_default()).bool, + animateIn: (prop_types_default()).bool, + animateOut: (prop_types_default()).bool, + index: (prop_types_default()).number +}; +var CarouselItem_defaultProps = { + active: false, + animateIn: false, + animateOut: false +}; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} +var CarouselItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(CarouselItem, _React$Component); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} + function CarouselItem(props, context) { + var _this; -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + _this = _React$Component.call(this, props, context) || this; + _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.state = { + direction: null + }; + _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + _this.isUnmounted = false; + return _this; } - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } + var _proto = CarouselItem.prototype; - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + if (this.props.active !== nextProps.active) { + this.setState({ + direction: null + }); } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} + }; -var propTypes = { - children: _propTypes2.default.node -}; -/** - * Internal helper component to allow attaching a non-conflicting ref to a - * child element that may not accept refs. - */ + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var _this2 = this; -var RefHolder = function (_React$Component) { - _inherits(RefHolder, _React$Component); + var active = this.props.active; + var prevActive = prevProps.active; - function RefHolder() { - _classCallCheck(this, RefHolder); + if (!active && prevActive) { + transition/* default.end */.Ay.end(this.containerRef.current, this.handleAnimateOutEnd); + } - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + if (active !== prevActive) { + setTimeout(function () { + return _this2.startAnimation(); + }, 20); + } + }; - RefHolder.prototype.render = function render() { - return this.props.children; + _proto.componentWillUnmount = function componentWillUnmount() { + this.isUnmounted = true; }; - return RefHolder; -}(_react2.default.Component); + _proto.handleAnimateOutEnd = function handleAnimateOutEnd() { + if (this.isUnmounted) { + return; + } -RefHolder.propTypes = propTypes; -exports["default"] = RefHolder; -module.exports = exports['default']; + if (this.props.onAnimateOutEnd) { + this.props.onAnimateOutEnd(this.props.index); + } + }; -/***/ }), + _proto.startAnimation = function startAnimation() { + if (this.isUnmounted) { + return; + } -/***/ 8248: -/***/ ((module) => { + this.setState({ + direction: this.props.direction === 'prev' ? 'right' : 'left' + }); + }; -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func -: Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + _proto.render = function render() { + var _this$props = this.props, + direction = _this$props.direction, + active = _this$props.active, + animateIn = _this$props.animateIn, + animateOut = _this$props.animateOut, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]); -/***/ }), + delete props.onAnimateOutEnd; + delete props.index; + var classes = { + item: true, + active: active && !animateIn || animateOut + }; -/***/ 8283: -/***/ ((module) => { + if (direction && active && animateIn) { + classes[direction] = true; + } -var hasOwnProperty = {}.hasOwnProperty; + if (this.state.direction && (animateIn || animateOut)) { + classes[this.state.direction] = true; + } -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({ + ref: this.containerRef + }, props, { + className: classnames_default()(className, classes), + __source: { + fileName: CarouselItem_jsxFileName, + lineNumber: 103 + }, + __self: this + })); + }; -/***/ }), + return CarouselItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/***/ 8290: -/***/ ((module, exports) => { +CarouselItem.propTypes = CarouselItem_propTypes; +CarouselItem.defaultProps = CarouselItem_defaultProps; +/* harmony default export */ const src_CarouselItem = (CarouselItem); +;// ./src/Glyphicon.js -"use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = removeStyle; +var Glyphicon_jsxFileName = "/Users/harrison/react-bootstrap/src/Glyphicon.js"; -function removeStyle(node, key) { - return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); -} -module.exports = exports['default']; -/***/ }), -/***/ 8338: -/***/ ((module) => { +var Glyphicon_propTypes = { + /** + * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons + */ + glyph: (prop_types_default()).string.isRequired +}; -// IE 8- don't enum bug keys -module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(','); +var Glyphicon = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Glyphicon, _React$Component); -/***/ }), + function Glyphicon() { + return _React$Component.apply(this, arguments) || this; + } -/***/ 8404: -/***/ ((module, exports) => { + var _proto = Glyphicon.prototype; -"use strict"; + _proto.render = function render() { + var _extends2; + var _this$props = this.props, + glyph = _this$props.glyph, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = qsa; // Zepto.js -// (c) 2010-2015 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var simpleSelectorRE = /^[\w-]*$/; -var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2)); -function qsa(element, selector) { - var maybeID = selector[0] === '#', - maybeClass = selector[0] === '.', - nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, - isSimple = simpleSelectorRE.test(nameOnly), - found; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Glyphicon_jsxFileName, + lineNumber: 30 + }, + __self: this + })); + }; - if (isSimple) { - if (maybeID) { - element = element.getElementById ? element : document; - return (found = element.getElementById(nameOnly)) ? [found] : []; - } + return Glyphicon; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly)); - return toArray(element.getElementsByTagName(selector)); - } +Glyphicon.propTypes = Glyphicon_propTypes; +/* harmony default export */ const src_Glyphicon = (bsClass('glyphicon', Glyphicon)); +;// ./src/Carousel.js - return toArray(element.querySelectorAll(selector)); -} -module.exports = exports['default']; -/***/ }), -/***/ 8449: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var Carousel_jsxFileName = "/Users/harrison/react-bootstrap/src/Carousel.js"; -var anObject = __webpack_require__(4610); -var IE8_DOM_DEFINE = __webpack_require__(1614); -var toPrimitive = __webpack_require__(9194); -var dP = Object.defineProperty; -exports.f = __webpack_require__(4725) ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { - /* empty */ - } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; -/***/ }), -/***/ 8475: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -__webpack_require__(4701); -__webpack_require__(3841); + // TODO: `slide` should be `animate`. +// TODO: Use uncontrollable. -module.exports = __webpack_require__(9520).Array.from; +var Carousel_propTypes = { + slide: (prop_types_default()).bool, + indicators: (prop_types_default()).bool, -/***/ }), + /** + * The amount of time to delay between automatically cycling an item. + * If `null`, carousel will not automatically cycle. + */ + interval: (prop_types_default()).number, + controls: (prop_types_default()).bool, + pauseOnHover: (prop_types_default()).bool, + wrap: (prop_types_default()).bool, -/***/ 8643: -/***/ ((module) => { + /** + * Callback fired when the active item changes. + * + * ```js + * (eventKey: any, ?event: Object) => any + * ``` + * + * If this callback takes two or more arguments, the second argument will + * be a persisted event object with `direction` set to the direction of the + * transition. + */ + onSelect: (prop_types_default()).func, + onSlideEnd: (prop_types_default()).func, + activeIndex: (prop_types_default()).number, + defaultActiveIndex: (prop_types_default()).number, + direction: prop_types_default().oneOf(['prev', 'next']), + prevIcon: (prop_types_default()).node, -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + /** + * Label shown to screen readers only, can be used to show the previous element + * in the carousel. + * Set to null to deactivate. + */ + prevLabel: (prop_types_default()).string, + nextIcon: (prop_types_default()).node, + /** + * Label shown to screen readers only, can be used to show the next element + * in the carousel. + * Set to null to deactivate. + */ + nextLabel: (prop_types_default()).string +}; +var Carousel_defaultProps = { + slide: true, + interval: 5000, + pauseOnHover: true, + wrap: true, + indicators: true, + controls: true, + prevIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { + glyph: "chevron-left", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 71 + }, + __self: undefined + }), + prevLabel: 'Previous', + nextIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { + glyph: "chevron-right", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 73 + }, + __self: undefined + }), + nextLabel: 'Next' +}; -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; -module.exports = ReactPropTypesSecret; +var Carousel = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Carousel, _React$Component); -/***/ }), + function Carousel(props, context) { + var _this; -/***/ 8644: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + _this = _React$Component.call(this, props, context) || this; + _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); + var defaultActiveIndex = props.defaultActiveIndex; + _this.state = { + activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, + previousActiveIndex: null, + direction: null + }; + _this.isUnmounted = false; + return _this; + } -// https://github.com/tc39/proposal-object-values-entries -var $export = __webpack_require__(3445); + var _proto = Carousel.prototype; -var $entries = __webpack_require__(5012)(true); + _proto.componentDidMount = function componentDidMount() { + this.waitForNext(); + }; -$export($export.S, 'Object', { - entries: function entries(it) { - return $entries(it); - } -}); - -/***/ }), - -/***/ 8647: -/***/ ((module, exports) => { - -"use strict"; + _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { + var activeIndex = this.getActiveIndex(); + if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { + clearTimeout(this.timeout); + this.setState({ + previousActiveIndex: activeIndex, + direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) + }); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -module.exports = exports['default']; + if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) { + this.setState({ + activeIndex: 0, + previousActiveIndex: null, + direction: null + }); + } + }; -/***/ }), + _proto.UNSAFE_componentWillUnmount = function UNSAFE_componentWillUnmount() { + clearTimeout(this.timeout); + this.isUnmounted = true; + }; -/***/ 8663: -/***/ ((module, exports) => { + _proto.getActiveIndex = function getActiveIndex() { + var activeIndexProp = this.props.activeIndex; + return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; + }; -"use strict"; + _proto.getDirection = function getDirection(prevIndex, index) { + if (prevIndex === index) { + return null; + } + return prevIndex > index ? 'prev' : 'next'; + }; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createChainableTypeChecker; -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -// Mostly taken from ReactPropTypes. + _proto.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { + var _this2 = this; -function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + this.setState({ + previousActiveIndex: null, + direction: null + }, function () { + _this2.waitForNext(); - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + if (_this2.props.onSlideEnd) { + _this2.props.onSlideEnd(); } + }); + }; - return null; + _proto.handleMouseOut = function handleMouseOut() { + if (this.isPaused) { + this.play(); } + }; - for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { - args[_key - 6] = arguments[_key]; + _proto.handleMouseOver = function handleMouseOver() { + if (this.props.pauseOnHover) { + this.pause(); } + }; - return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; -} - -module.exports = exports['default']; - -/***/ }), - -/***/ 8727: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// 7.2.2 IsArray(argument) -var cof = __webpack_require__(3543); - -module.exports = Array.isArray || function isArray(arg) { - return cof(arg) == 'Array'; -}; - -/***/ }), - -/***/ 8759: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + _proto.handleNext = function handleNext(e) { + var index = this.getActiveIndex() + 1; + var count = ValidComponentChildren.count(this.props.children); -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(3443); + if (index > count - 1) { + if (!this.props.wrap) { + return; + } -var defined = __webpack_require__(9314); + index = 0; + } -module.exports = function (it) { - return IObject(defined(it)); -}; + this.select(index, e, 'next'); + }; -/***/ }), + _proto.handlePrev = function handlePrev(e) { + var index = this.getActiveIndex() - 1; -/***/ 8774: -/***/ ((module, exports, __webpack_require__) => { + if (index < 0) { + if (!this.props.wrap) { + return; + } -"use strict"; + index = ValidComponentChildren.count(this.props.children) - 1; + } + this.select(index, e, 'prev'); + }; // This might be a public API. -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -var _inDOM = __webpack_require__(8647); + _proto.pause = function pause() { + this.isPaused = true; + clearTimeout(this.timeout); + }; // This might be a public API. -var _inDOM2 = _interopRequireDefault(_inDOM); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj + _proto.play = function play() { + this.isPaused = false; + this.waitForNext(); }; -} -var on = function on() {}; - -if (_inDOM2.default) { - on = function () { - if (document.addEventListener) return function (node, eventName, handler, capture) { - return node.addEventListener(eventName, handler, capture || false); - };else if (document.attachEvent) return function (node, eventName, handler) { - return node.attachEvent('on' + eventName, function (e) { - e = e || window.event; - e.target = e.target || e.srcElement; - e.currentTarget = node; - handler.call(node, e); - }); - }; - }(); -} - -exports["default"] = on; -module.exports = exports['default']; - -/***/ }), - -/***/ 8861: -/***/ ((module, exports) => { - -"use strict"; + _proto.select = function select(index, e, direction) { + clearTimeout(this.timeout); // TODO: Is this necessary? Seems like the only risk is if the component + // unmounts while handleItemAnimateOutEnd fires. + if (this.isUnmounted) { + return; + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isRequiredForA11y; + var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; + direction = direction || this.getDirection(previousActiveIndex, index); + var onSelect = this.props.onSelect; -function isRequiredForA11y(validator) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + if (onSelect) { + if (onSelect.length > 1) { + // React SyntheticEvents are pooled, so we need to remove this event + // from the pool to add a custom property. To avoid unnecessarily + // removing objects from the pool, only do this when the listener + // actually wants the event. + if (e) { + e.persist(); + e.direction = direction; + } else { + e = { + direction: direction + }; + } - if (props[propName] == null) { - return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); + onSelect(index, e); + } else { + onSelect(index); + } } - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; - } + if (this.props.activeIndex == null && index !== previousActiveIndex) { + if (this.state.previousActiveIndex != null) { + // If currently animating don't activate the new index. + // TODO: look into queueing this canceled call and + // animating after the current animation has ended. + return; + } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); + this.setState({ + activeIndex: index, + previousActiveIndex: previousActiveIndex, + direction: direction + }); + } }; -} - -module.exports = exports['default']; -/***/ }), + _proto.waitForNext = function waitForNext() { + var _this$props = this.props, + slide = _this$props.slide, + interval = _this$props.interval, + activeIndexProp = _this$props.activeIndex; -/***/ 9050: -/***/ ((module) => { + if (!this.isPaused && slide && interval && activeIndexProp == null) { + this.timeout = setTimeout(this.handleNext, interval); + } + }; -"use strict"; + _proto.renderControls = function renderControls(properties) { + var wrap = properties.wrap, + children = properties.children, + activeIndex = properties.activeIndex, + prevIcon = properties.prevIcon, + nextIcon = properties.nextIcon, + bsProps = properties.bsProps, + prevLabel = properties.prevLabel, + nextLabel = properties.nextLabel; + var controlClassName = prefix(bsProps, 'control'); + var count = ValidComponentChildren.count(children); + return [(wrap || activeIndex !== 0) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { + key: "prev", + className: classnames_default()(controlClassName, 'left'), + onClick: this.handlePrev, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 290 + }, + __self: this + }, prevIcon, prevLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 296 + }, + __self: this + }, prevLabel)), (wrap || activeIndex !== count - 1) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { + key: "next", + className: classnames_default()(controlClassName, 'right'), + onClick: this.handleNext, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 301 + }, + __self: this + }, nextIcon, nextLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "sr-only", + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 307 + }, + __self: this + }, nextLabel))]; + }; + _proto.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { + var _this3 = this; -function replaceClassName(origClass, classToRemove) { - return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); -} + var indicators = []; + ValidComponentChildren.forEach(children, function (child, index) { + indicators.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + key: index, + className: index === activeIndex ? 'active' : null, + onClick: function onClick(e) { + return _this3.select(index, e); + }, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 318 + }, + __self: this + }), // Force whitespace between indicator elements. Bootstrap requires + // this for correct spacing of elements. + ' '); + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", { + className: prefix(bsProps, 'indicators'), + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 330 + }, + __self: this + }, indicators); + }; -module.exports = function removeClass(element, className) { - 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)); -}; + _proto.render = function render() { + var _this4 = this; -/***/ }), + var _this$props2 = this.props, + slide = _this$props2.slide, + indicators = _this$props2.indicators, + controls = _this$props2.controls, + wrap = _this$props2.wrap, + prevIcon = _this$props2.prevIcon, + prevLabel = _this$props2.prevLabel, + nextIcon = _this$props2.nextIcon, + nextLabel = _this$props2.nextLabel, + className = _this$props2.className, + children = _this$props2.children, + props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]); -/***/ 9194: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + var _this$state = this.state, + previousActiveIndex = _this$state.previousActiveIndex, + direction = _this$state.direction; -// 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(2103); // instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). + 'defaultActiveIndex', 'direction']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + var activeIndex = this.getActiveIndex(); -module.exports = function (it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - throw TypeError("Can't convert object to primitive value"); -}; + var classes = _extends({}, getClassSet(bsProps), { + slide: slide + }); -/***/ }), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + onMouseOver: this.handleMouseOver, + onMouseOut: this.handleMouseOut, + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 368 + }, + __self: this + }), indicators && this.renderIndicators(children, activeIndex, bsProps), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + className: prefix(bsProps, 'inner'), + __source: { + fileName: Carousel_jsxFileName, + lineNumber: 376 + }, + __self: this + }, ValidComponentChildren.map(children, function (child, index) { + var active = index === activeIndex; + var previousActive = slide && index === previousActiveIndex; + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + active: active, + index: index, + animateOut: previousActive, + animateIn: active && previousActiveIndex != null && slide, + direction: direction, + onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null + }); + })), controls && this.renderControls({ + wrap: wrap, + children: children, + activeIndex: activeIndex, + prevIcon: prevIcon, + prevLabel: prevLabel, + nextIcon: nextIcon, + nextLabel: nextLabel, + bsProps: bsProps + })); + }; -/***/ 9253: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + return Carousel; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -__webpack_require__(8644); +Carousel.propTypes = Carousel_propTypes; +Carousel.defaultProps = Carousel_defaultProps; +Carousel.Caption = src_CarouselCaption; +Carousel.Item = src_CarouselItem; +/* harmony default export */ const src_Carousel = (bsClass('carousel', Carousel)); +;// ./src/Checkbox.js -module.exports = __webpack_require__(9520).Object.entries; -/***/ }), -/***/ 9287: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +var Checkbox_jsxFileName = "/Users/harrison/react-bootstrap/src/Checkbox.js"; -"use strict"; -var __webpack_unused_export__; +/* eslint-disable jsx-a11y/label-has-for */ -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = undefined; -var _on = __webpack_require__(8774); -var _on2 = _interopRequireDefault(_on); -var _off = __webpack_require__(6170); +var Checkbox_propTypes = { + inline: (prop_types_default()).bool, + disabled: (prop_types_default()).bool, + title: (prop_types_default()).string, -var _off2 = _interopRequireDefault(_off); + /** + * Only valid if `inline` is not set. + */ + validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]), -var _filter = __webpack_require__(6233); + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: (prop_types_default()).func +}; +var Checkbox_defaultProps = { + inline: false, + disabled: false, + title: '' +}; -var _filter2 = _interopRequireDefault(_filter); +var Checkbox = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Checkbox, _React$Component); -var _listen = __webpack_require__(3044); + function Checkbox() { + return _React$Component.apply(this, arguments) || this; + } -var _listen2 = _interopRequireDefault(_listen); + var _proto = Checkbox.prototype; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} + _proto.render = function render() { + var _this$props = this.props, + inline = _this$props.inline, + disabled = _this$props.disabled, + validationState = _this$props.validationState, + inputRef = _this$props.inputRef, + className = _this$props.className, + style = _this$props.style, + title = _this$props.title, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]); -__webpack_unused_export__ = _on2.default; -__webpack_unused_export__ = _off2.default; -__webpack_unused_export__ = _filter2.default; -__webpack_unused_export__ = _listen2.default; -exports.Ay = { - on: _on2.default, - off: _off2.default, - filter: _filter2.default, - listen: _listen2.default -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -/***/ }), + var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", _extends({}, elementProps, { + ref: inputRef, + type: "checkbox", + disabled: disabled, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 56 + }, + __self: this + })); -/***/ 9303: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** @license React v16.4.2 - * react-is.production.min.js - * - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + if (inline) { + var _classes2; + var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking + // generated documentation. -Object.defineProperty(exports, "__esModule", ({ - value: !0 -})); -var b = "function" === typeof Symbol && Symbol.for, - c = b ? Symbol.for("react.element") : 60103, - d = b ? Symbol.for("react.portal") : 60106, - e = b ? Symbol.for("react.fragment") : 60107, - f = b ? Symbol.for("react.strict_mode") : 60108, - g = b ? Symbol.for("react.profiler") : 60114, - h = b ? Symbol.for("react.provider") : 60109, - k = b ? Symbol.for("react.context") : 60110, - l = b ? Symbol.for("react.async_mode") : 60111, - m = b ? Symbol.for("react.forward_ref") : 60112, - n = b ? Symbol.for("react.timeout") : 60113; -function q(a) { - if ("object" === typeof a && null !== a) { - var p = a.$$typeof; + false ? 0 : void 0; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { + className: classnames_default()(className, _classes), + style: style, + title: title, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 80 + }, + __self: this + }, input, children); + } - switch (p) { - case c: - switch (a = a.type, a) { - case l: - case e: - case g: - case f: - return a; + var classes = _extends({}, getClassSet(bsProps), { + disabled: disabled + }); - default: - switch (a = a && a.$$typeof, a) { - case k: - case m: - case h: - return a; + if (validationState) { + classes["has-" + validationState] = true; + } - default: - return p; - } + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + className: classnames_default()(className, classes), + style: style, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 100 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { + title: title, + __source: { + fileName: Checkbox_jsxFileName, + lineNumber: 101 + }, + __self: this + }, input, children)); + }; - } + return Checkbox; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - case d: - return p; - } - } +Checkbox.propTypes = Checkbox_propTypes; +Checkbox.defaultProps = Checkbox_defaultProps; +/* harmony default export */ const src_Checkbox = (bsClass('checkbox', Checkbox)); +;// ./src/utils/capitalize.js +function capitalize(string) { + return "" + string.charAt(0).toUpperCase() + string.slice(1); } +;// ./src/Clearfix.js -exports.typeOf = q; -exports.AsyncMode = l; -exports.ContextConsumer = k; -exports.ContextProvider = h; -exports.Element = c; -exports.ForwardRef = m; -exports.Fragment = e; -exports.Profiler = g; -exports.Portal = d; -exports.StrictMode = f; -exports.isValidElementType = function (a) { - 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); -}; -exports.isAsyncMode = function (a) { - return q(a) === l; -}; +var Clearfix_jsxFileName = "/Users/harrison/react-bootstrap/src/Clearfix.js"; -exports.isContextConsumer = function (a) { - return q(a) === k; -}; -exports.isContextProvider = function (a) { - return q(a) === h; -}; -exports.isElement = function (a) { - return "object" === typeof a && null !== a && a.$$typeof === c; -}; -exports.isForwardRef = function (a) { - return q(a) === m; -}; -exports.isFragment = function (a) { - return q(a) === e; -}; -exports.isProfiler = function (a) { - return q(a) === g; -}; -exports.isPortal = function (a) { - return q(a) === d; -}; +var Clearfix_propTypes = { + componentClass: (elementType_default()), -exports.isStrictMode = function (a) { - return q(a) === f; -}; + /** + * Apply clearfix + * + * on Extra small devices Phones + * + * adds class `visible-xs-block` + */ + visibleXsBlock: (prop_types_default()).bool, -/***/ }), + /** + * Apply clearfix + * + * on Small devices Tablets + * + * adds class `visible-sm-block` + */ + visibleSmBlock: (prop_types_default()).bool, -/***/ 9312: -/***/ ((module, exports, __webpack_require__) => { + /** + * Apply clearfix + * + * on Medium devices Desktops + * + * adds class `visible-md-block` + */ + visibleMdBlock: (prop_types_default()).bool, -"use strict"; + /** + * Apply clearfix + * + * on Large devices Desktops + * + * adds class `visible-lg-block` + */ + visibleLgBlock: (prop_types_default()).bool +}; +var Clearfix_defaultProps = { + componentClass: 'div' +}; +var Clearfix = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Clearfix, _React$Component); -exports.__esModule = true; + function Clearfix() { + return _React$Component.apply(this, arguments) || this; + } -var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var _proto = Clearfix.prototype; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - return target; -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; -var _propTypes = __webpack_require__(5762); + var classes = getClassSet(bsProps); + DEVICE_SIZES.forEach(function (size) { + var propName = "visible" + capitalize(size) + "Block"; -var _propTypes2 = _interopRequireDefault(_propTypes); + if (elementProps[propName]) { + classes["visible-" + size + "-block"] = true; + } -var _elementType = __webpack_require__(3105); + delete elementProps[propName]; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Clearfix_jsxFileName, + lineNumber: 68 + }, + __self: this + })); + }; -var _elementType2 = _interopRequireDefault(_elementType); + return Clearfix; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -var _react = __webpack_require__(5442); +Clearfix.propTypes = Clearfix_propTypes; +Clearfix.defaultProps = Clearfix_defaultProps; +/* harmony default export */ const src_Clearfix = (bsClass('clearfix', Clearfix)); +;// ./src/FormGroupContext.js -var _react2 = _interopRequireDefault(_react); +var FormGroupContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(undefined); +FormGroupContext.displayName = 'FormGroupContext'; +/* harmony default export */ const src_FormGroupContext = (FormGroupContext); +;// ./src/ControlLabel.js -var _Portal = __webpack_require__(904); -var _Portal2 = _interopRequireDefault(_Portal); -var _Position = __webpack_require__(4045); +var ControlLabel_jsxFileName = "/Users/harrison/react-bootstrap/src/ControlLabel.js"; -var _Position2 = _interopRequireDefault(_Position); -var _RootCloseWrapper = __webpack_require__(3029); -var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function _objectWithoutProperties(obj, keys) { - var target = {}; - for (var i in obj) { - if (keys.indexOf(i) >= 0) continue; - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; - target[i] = obj[i]; - } +var ControlLabel_propTypes = { + /** + * Uses `controlId` from `` if not explicitly specified. + */ + htmlFor: (prop_types_default()).string, + srOnly: (prop_types_default()).bool +}; +var ControlLabel_defaultProps = { + srOnly: false +}; - return target; -} +var ControlLabel = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ControlLabel, _React$Component); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); + function ControlLabel() { + return _React$Component.apply(this, arguments) || this; } -} -function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; -} -/** - * Built on top of `` and ``, the overlay component is great for custom tooltip overlays. - */ - - -var Overlay = function (_React$Component) { - _inherits(Overlay, _React$Component); - - function Overlay(props, context) { - _classCallCheck(this, Overlay); + var _proto = ControlLabel.prototype; - var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + _proto.render = function render() { + var formGroup = this.context; + var controlId = formGroup && formGroup.controlId; - _this.handleHidden = function () { - _this.setState({ - exited: true - }); + var _this$props = this.props, + _this$props$htmlFor = _this$props.htmlFor, + htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor, + srOnly = _this$props.srOnly, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]); - if (_this.props.onExited) { - var _this$props; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - (_this$props = _this.props).onExited.apply(_this$props, arguments); - } - }; + false ? 0 : void 0; - _this.state = { - exited: !props.show - }; - _this.onHiddenListener = _this.handleHidden.bind(_this); - return _this; - } + var classes = _extends({}, getClassSet(bsProps), { + 'sr-only': srOnly + }); - Overlay.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (nextProps.show) { - this.setState({ - exited: false - }); - } else if (!nextProps.transition) { - // Otherwise let handleHidden take care of marking exited. - this.setState({ - exited: true - }); - } + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", _extends({}, elementProps, { + htmlFor: htmlFor, + className: classnames_default()(className, classes), + __source: { + fileName: ControlLabel_jsxFileName, + lineNumber: 40 + }, + __self: this + })); }; - Overlay.prototype.render = function render() { - var _props = this.props, - container = _props.container, - containerPadding = _props.containerPadding, - target = _props.target, - placement = _props.placement, - shouldUpdatePosition = _props.shouldUpdatePosition, - rootClose = _props.rootClose, - children = _props.children, - Transition = _props.transition, - props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']); // Don't un-render the overlay while it's transitioning out. + return ControlLabel; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +ControlLabel.propTypes = ControlLabel_propTypes; +ControlLabel.defaultProps = ControlLabel_defaultProps; +ControlLabel.contextType = src_FormGroupContext; +/* harmony default export */ const src_ControlLabel = (bsClass('control-label', ControlLabel)); +;// ./src/Col.js - var mountOverlay = props.show || Transition && !this.state.exited; - if (!mountOverlay) { - // Don't bother showing anything if we don't have to. - return null; - } - var child = children; // Position is be inner-most because it adds inline styles into the child, - // which the other wrappers don't forward correctly. +var Col_jsxFileName = "/Users/harrison/react-bootstrap/src/Col.js"; - child = _react2.default.createElement(_Position2.default, { - container: container, - containerPadding: containerPadding, - target: target, - placement: placement, - shouldUpdatePosition: shouldUpdatePosition - }, child); - if (Transition) { - var onExit = props.onExit, - onExiting = props.onExiting, - onEnter = props.onEnter, - onEntering = props.onEntering, - onEntered = props.onEntered; // This animates the child node by injecting props, so it must precede - // anything that adds a wrapping div. - - child = _react2.default.createElement(Transition, { - 'in': props.show, - appear: true, - onExit: onExit, - onExiting: onExiting, - onExited: this.onHiddenListener, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, child); - } // This goes after everything else because it adds a wrapping div. - if (rootClose) { - child = _react2.default.createElement(_RootCloseWrapper2.default, { - onRootClose: props.onHide, - event: props.rootCloseEvent - }, child); - } - return _react2.default.createElement(_Portal2.default, { - container: container - }, child); - }; - return Overlay; -}(_react2.default.Component); +var Col_propTypes = { + componentClass: (elementType_default()), -Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, { /** - * Set the visibility of the Overlay + * The number of columns you wish to span + * + * for Extra small devices Phones (<768px) + * + * class-prefix `col-xs-` */ - show: _propTypes2.default.bool, + xs: (prop_types_default()).number, /** - * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay + * The number of columns you wish to span + * + * for Small devices Tablets (≥768px) + * + * class-prefix `col-sm-` */ - rootClose: _propTypes2.default.bool, + sm: (prop_types_default()).number, /** - * Specify event for toggling overlay + * The number of columns you wish to span + * + * for Medium devices Desktops (≥992px) + * + * class-prefix `col-md-` */ - rootCloseEvent: _RootCloseWrapper2.default.propTypes.event, + md: (prop_types_default()).number, /** - * A Callback fired by the Overlay when it wishes to be hidden. + * The number of columns you wish to span * - * __required__ when `rootClose` is `true`. + * for Large devices Desktops (≥1200px) * - * @type func + * class-prefix `col-lg-` */ - onHide: function onHide(props) { - var propType = _propTypes2.default.func; - - if (props.rootClose) { - propType = propType.isRequired; - } - - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return propType.apply(undefined, [props].concat(args)); - }, + lg: (prop_types_default()).number, /** - * A `react-transition-group@2.0.0` `` component - * used to animate the overlay as it changes visibility. + * Hide column + * + * on Extra small devices Phones + * + * adds class `hidden-xs` */ - transition: _elementType2.default, + xsHidden: (prop_types_default()).bool, /** - * Callback fired before the Overlay transitions in + * Hide column + * + * on Small devices Tablets + * + * adds class `hidden-sm` */ - onEnter: _propTypes2.default.func, + smHidden: (prop_types_default()).bool, /** - * Callback fired as the Overlay begins to transition in + * Hide column + * + * on Medium devices Desktops + * + * adds class `hidden-md` */ - onEntering: _propTypes2.default.func, + mdHidden: (prop_types_default()).bool, /** - * Callback fired after the Overlay finishes transitioning in + * Hide column + * + * on Large devices Desktops + * + * adds class `hidden-lg` */ - onEntered: _propTypes2.default.func, + lgHidden: (prop_types_default()).bool, /** - * Callback fired right before the Overlay transitions out + * Move columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-offset-` */ - onExit: _propTypes2.default.func, + xsOffset: (prop_types_default()).number, /** - * Callback fired as the Overlay begins to transition out + * Move columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-offset-` */ - onExiting: _propTypes2.default.func, + smOffset: (prop_types_default()).number, /** - * Callback fired after the Overlay finishes transitioning out + * Move columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-offset-` */ - onExited: _propTypes2.default.func -}); -exports["default"] = Overlay; -module.exports = exports['default']; - -/***/ }), - -/***/ 9314: -/***/ ((module) => { - -// 7.2.1 RequireObjectCoercible(argument) -module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - -/***/ }), - -/***/ 9345: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(4610); - -var dPs = __webpack_require__(3796); + mdOffset: (prop_types_default()).number, -var enumBugKeys = __webpack_require__(8338); + /** + * Move columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-offset-` + */ + lgOffset: (prop_types_default()).number, -var IE_PROTO = __webpack_require__(6832)('IE_PROTO'); + /** + * Change the order of grid columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-push-` + */ + xsPush: (prop_types_default()).number, -var Empty = function () { - /* empty */ -}; + /** + * Change the order of grid columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-push-` + */ + smPush: (prop_types_default()).number, -var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype + /** + * Change the order of grid columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-push-` + */ + mdPush: (prop_types_default()).number, -var createDict = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(7788)('iframe'); + /** + * Change the order of grid columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-push-` + */ + lgPush: (prop_types_default()).number, - var i = enumBugKeys.length; - var lt = '<'; - var gt = '>'; - var iframeDocument; - iframe.style.display = 'none'; + /** + * Change the order of grid columns to the left + * + * for Extra small devices Phones + * + * class-prefix `col-xs-pull-` + */ + xsPull: (prop_types_default()).number, - (__webpack_require__(2426).appendChild)(iframe); + /** + * Change the order of grid columns to the left + * + * for Small devices Tablets + * + * class-prefix `col-sm-pull-` + */ + smPull: (prop_types_default()).number, - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - - while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - - return createDict(); -}; - -module.exports = Object.create || function create(O, Properties) { - var result; - - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill - - result[IE_PROTO] = O; - } else result = createDict(); - - return Properties === undefined ? result : dPs(result, Properties); -}; - -/***/ }), - -/***/ 9508: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(64); - -/***/ }), - -/***/ 9520: -/***/ ((module) => { - -var core = module.exports = { - version: '2.5.7' -}; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - -/***/ }), - -/***/ 9523: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__(9303); -} else // removed by dead control flow -{} - -/***/ }), - -/***/ 9532: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -// https://github.com/tc39/proposal-object-values-entries -var $export = __webpack_require__(3445); - -var $values = __webpack_require__(5012)(false); - -$export($export.S, 'Object', { - values: function values(it) { - return $values(it); - } -}); - -/***/ }), - -/***/ 9578: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.hasClass = exports.removeClass = exports.addClass = undefined; - -var _addClass = __webpack_require__(385); - -var _addClass2 = _interopRequireDefault(_addClass); - -var _removeClass = __webpack_require__(9050); - -var _removeClass2 = _interopRequireDefault(_removeClass); - -var _hasClass = __webpack_require__(2536); - -var _hasClass2 = _interopRequireDefault(_hasClass); - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - -exports.addClass = _addClass2.default; -exports.removeClass = _removeClass2.default; -exports.hasClass = _hasClass2.default; -exports["default"] = { - addClass: _addClass2.default, - removeClass: _removeClass2.default, - hasClass: _hasClass2.default -}; - -/***/ }), - -/***/ 9871: -/***/ ((__unused_webpack_module, exports) => { - -exports.f = {}.propertyIsEnumerable; - -/***/ }), - -/***/ 9874: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var def = (__webpack_require__(8449).f); - -var has = __webpack_require__(8283); - -var TAG = __webpack_require__(6932)('toStringTag'); - -module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { - configurable: true, - value: tag - }); -}; - -/***/ }), - -/***/ 9905: -/***/ ((module, exports) => { - -"use strict"; - - -exports.__esModule = true; -exports["default"] = addFocusListener; -/** - * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling - * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8 - * - * We only allow one Listener at a time to avoid stack overflows - */ - -function addFocusListener(handler) { - var useFocusin = !document.addEventListener; - var remove = void 0; - - if (useFocusin) { - document.attachEvent('onfocusin', handler); - - remove = function remove() { - return document.detachEvent('onfocusin', handler); - }; - } else { - document.addEventListener('focus', handler, true); - - remove = function remove() { - return document.removeEventListener('focus', handler, true); - }; - } - - return { - remove: remove - }; -} - -module.exports = exports['default']; - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. -(() => { -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Accordion: () => (/* reexport */ src_Accordion), - Alert: () => (/* reexport */ src_Alert), - Badge: () => (/* reexport */ src_Badge), - Breadcrumb: () => (/* reexport */ src_Breadcrumb), - BreadcrumbItem: () => (/* reexport */ src_BreadcrumbItem), - Button: () => (/* reexport */ src_Button), - ButtonGroup: () => (/* reexport */ src_ButtonGroup), - ButtonToolbar: () => (/* reexport */ src_ButtonToolbar), - Carousel: () => (/* reexport */ src_Carousel), - CarouselItem: () => (/* reexport */ src_CarouselItem), - Checkbox: () => (/* reexport */ src_Checkbox), - Clearfix: () => (/* reexport */ src_Clearfix), - CloseButton: () => (/* reexport */ src_CloseButton), - Col: () => (/* reexport */ src_Col), - Collapse: () => (/* reexport */ src_Collapse), - ControlLabel: () => (/* reexport */ src_ControlLabel), - Dropdown: () => (/* reexport */ src_Dropdown), - DropdownButton: () => (/* reexport */ src_DropdownButton), - Fade: () => (/* reexport */ src_Fade), - Form: () => (/* reexport */ src_Form), - FormControl: () => (/* reexport */ src_FormControl), - FormGroup: () => (/* reexport */ src_FormGroup), - Glyphicon: () => (/* reexport */ src_Glyphicon), - Grid: () => (/* reexport */ src_Grid), - HelpBlock: () => (/* reexport */ src_HelpBlock), - Image: () => (/* reexport */ src_Image), - InputGroup: () => (/* reexport */ src_InputGroup), - Jumbotron: () => (/* reexport */ src_Jumbotron), - Label: () => (/* reexport */ src_Label), - ListGroup: () => (/* reexport */ src_ListGroup), - ListGroupItem: () => (/* reexport */ src_ListGroupItem), - Media: () => (/* reexport */ src_Media), - MenuItem: () => (/* reexport */ src_MenuItem), - Modal: () => (/* reexport */ src_Modal), - ModalBody: () => (/* reexport */ src_ModalBody), - ModalDialog: () => (/* reexport */ src_ModalDialog), - ModalFooter: () => (/* reexport */ src_ModalFooter), - ModalHeader: () => (/* reexport */ src_ModalHeader), - ModalTitle: () => (/* reexport */ src_ModalTitle), - Nav: () => (/* reexport */ src_Nav), - NavDropdown: () => (/* reexport */ src_NavDropdown), - NavItem: () => (/* reexport */ src_NavItem), - Navbar: () => (/* reexport */ src_Navbar), - NavbarBrand: () => (/* reexport */ src_NavbarBrand), - Overlay: () => (/* reexport */ src_Overlay), - OverlayTrigger: () => (/* reexport */ src_OverlayTrigger), - PageHeader: () => (/* reexport */ src_PageHeader), - PageItem: () => (/* reexport */ PageItem), - Pager: () => (/* reexport */ src_Pager), - Pagination: () => (/* reexport */ src_Pagination), - Panel: () => (/* reexport */ src_Panel), - PanelGroup: () => (/* reexport */ src_PanelGroup), - Popover: () => (/* reexport */ src_Popover), - ProgressBar: () => (/* reexport */ src_ProgressBar), - Radio: () => (/* reexport */ src_Radio), - ResponsiveEmbed: () => (/* reexport */ src_ResponsiveEmbed), - Row: () => (/* reexport */ src_Row), - SafeAnchor: () => (/* reexport */ src_SafeAnchor), - SplitButton: () => (/* reexport */ src_SplitButton), - Tab: () => (/* reexport */ src_Tab), - TabContainer: () => (/* reexport */ src_TabContainer), - TabContent: () => (/* reexport */ src_TabContent), - TabPane: () => (/* reexport */ src_TabPane), - Table: () => (/* reexport */ src_Table), - Tabs: () => (/* reexport */ src_Tabs), - Thumbnail: () => (/* reexport */ src_Thumbnail), - ToggleButton: () => (/* reexport */ src_ToggleButton), - ToggleButtonGroup: () => (/* reexport */ src_ToggleButtonGroup), - Tooltip: () => (/* reexport */ src_Tooltip), - Well: () => (/* reexport */ src_Well), - utils: () => (/* reexport */ utils_namespaceObject) -}); + /** + * Change the order of grid columns to the left + * + * for Medium devices Desktops + * + * class-prefix `col-md-pull-` + */ + mdPull: (prop_types_default()).number, -// NAMESPACE OBJECT: ./src/utils/bootstrapUtils.js -var bootstrapUtils_namespaceObject = {}; -__webpack_require__.r(bootstrapUtils_namespaceObject); -__webpack_require__.d(bootstrapUtils_namespaceObject, { - _curry: () => (_curry), - addStyle: () => (addStyle), - bsClass: () => (bsClass), - bsSizes: () => (bsSizes), - bsStyles: () => (bsStyles), - getClassSet: () => (getClassSet), - prefix: () => (prefix), - splitBsProps: () => (splitBsProps), - splitBsPropsAndOmit: () => (splitBsPropsAndOmit) -}); + /** + * Change the order of grid columns to the left + * + * for Large devices Desktops + * + * class-prefix `col-lg-pull-` + */ + lgPull: (prop_types_default()).number +}; +var Col_defaultProps = { + componentClass: 'div' +}; -// NAMESPACE OBJECT: ./src/utils/index.js -var utils_namespaceObject = {}; -__webpack_require__.r(utils_namespaceObject); -__webpack_require__.d(utils_namespaceObject, { - ValidComponentChildren: () => (ValidComponentChildren), - bootstrapUtils: () => (bootstrapUtils_namespaceObject), - createChainedFunction: () => (utils_createChainedFunction) -}); +var Col = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Col, _React$Component); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js -var object_assign = __webpack_require__(9508); -var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js + function Col() { + return _React$Component.apply(this, arguments) || this; + } -function _extends() { - _extends = (assign_default()) || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; + var _proto = Col.prototype; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = []; + DEVICE_SIZES.forEach(function (size) { + function popProp(propSuffix, modifier) { + var propName = "" + size + propSuffix; + var propValue = elementProps[propName]; + + if (propValue != null) { + classes.push(prefix(bsProps, "" + size + modifier + "-" + propValue)); } + + delete elementProps[propName]; } - } - return target; + popProp('', ''); + popProp('Offset', '-offset'); + popProp('Push', '-push'); + popProp('Pull', '-pull'); + var hiddenPropName = size + "Hidden"; + + if (elementProps[hiddenPropName]) { + classes.push("hidden-" + size); + } + + delete elementProps[hiddenPropName]; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Col_jsxFileName, + lineNumber: 210 + }, + __self: this + })); }; - return _extends.apply(this, arguments); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/create.js -var create = __webpack_require__(2309); -var create_default = /*#__PURE__*/__webpack_require__.n(create); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js + return Col; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -function _inheritsLoose(subClass, superClass) { - subClass.prototype = create_default()(superClass.prototype); - subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; +Col.propTypes = Col_propTypes; +Col.defaultProps = Col_defaultProps; +/* harmony default export */ const src_Col = (bsClass('col', Col)); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js +var parse_int = __webpack_require__(7222); +var parse_int_default = /*#__PURE__*/__webpack_require__.n(parse_int); +// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js +var style = __webpack_require__(7735); +var style_default = /*#__PURE__*/__webpack_require__.n(style); +;// ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + + for (var n in r) if ({}.hasOwnProperty.call(r, n)) { + if (-1 !== e.indexOf(n)) continue; + t[n] = r[n]; + } + + return t; } -// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} -var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(5442); -var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js -var keys = __webpack_require__(2573); -var keys_default = /*#__PURE__*/__webpack_require__.n(keys); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = keys_default()(source); +;// ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(t, e) { + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, _setPrototypeOf(t, e); +} - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } +;// ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js - return target; + +function inheritsLoose_inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); } -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(7755); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); -// EXTERNAL MODULE: ./node_modules/prop-types/index.js -var prop_types = __webpack_require__(5762); -var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); -// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js -var uncontrollable = __webpack_require__(3215); -var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js -var entries = __webpack_require__(1953); -var entries_default = /*#__PURE__*/__webpack_require__.n(entries); -// EXTERNAL MODULE: ./node_modules/invariant/browser.js -var browser = __webpack_require__(3737); -var browser_default = /*#__PURE__*/__webpack_require__.n(browser); -;// ./src/utils/StyleConfig.js -var Size = { - LARGE: 'large', - SMALL: 'small', - XSMALL: 'xsmall' -}; -var SIZE_MAP = { - large: 'lg', - medium: 'md', - small: 'sm', - xsmall: 'xs', - lg: 'lg', - md: 'md', - sm: 'sm', - xs: 'xs' -}; -var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; -var State = { - SUCCESS: 'success', - WARNING: 'warning', - DANGER: 'danger', - INFO: 'info' -}; -var Style = { - DEFAULT: 'default', - PRIMARY: 'primary', - LINK: 'link', - INVERSE: 'inverse' -}; -;// ./src/utils/bootstrapUtils.js -// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. +// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} +var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(6003); +var 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_); +;// ./node_modules/react-transition-group/esm/config.js +/* harmony default export */ const config = ({ + disabled: false +}); +;// ./node_modules/react-transition-group/esm/TransitionGroupContext.js +/* harmony default export */ const TransitionGroupContext = (external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null)); +;// ./node_modules/react-transition-group/esm/utils/reflow.js +var forceReflow = function forceReflow(node) { + return node.scrollTop; +}; +;// ./node_modules/react-transition-group/esm/Transition.js -function curry(fn) { - return function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - var last = args[args.length - 1]; - if (typeof last === 'function') { - return fn.apply(void 0, args); - } - return function (Component) { - return fn.apply(void 0, args.concat([Component])); - }; - }; -} -function prefix(props, variant) { - var bsClass = (props.bsClass || '').trim(); - !(bsClass != null) ? false ? 0 : browser_default()(false) : void 0; - return bsClass + (variant ? "-" + variant : ''); -} -var bsClass = curry(function (defaultClass, Component) { - var propTypes = Component.propTypes || (Component.propTypes = {}); - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - propTypes.bsClass = (prop_types_default()).string; - defaultProps.bsClass = defaultClass; - return Component; -}); -var bsStyles = curry(function (styles, defaultStyle, Component) { - if (typeof defaultStyle !== 'string') { - Component = defaultStyle; - defaultStyle = undefined; - } - var existing = Component.STYLES || []; - var propTypes = Component.propTypes || {}; - styles.forEach(function (style) { - if (existing.indexOf(style) === -1) { - existing.push(style); - } - }); - var propType = prop_types_default().oneOf(existing); // expose the values on the propType function for documentation - Component.STYLES = existing; - propType._values = existing; - Component.propTypes = _extends({}, propTypes, { - bsStyle: propType - }); +var UNMOUNTED = 'unmounted'; +var EXITED = 'exited'; +var ENTERING = 'entering'; +var ENTERED = 'entered'; +var EXITING = 'exiting'; +/** + * The Transition component lets you describe a transition from one component + * state to another _over time_ with a simple declarative API. Most commonly + * it's used to animate the mounting and unmounting of a component, but can also + * be used to describe in-place transition states as well. + * + * --- + * + * **Note**: `Transition` is a platform-agnostic base component. If you're using + * transitions in CSS, you'll probably want to use + * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) + * instead. It inherits all the features of `Transition`, but contains + * additional features necessary to play nice with CSS transitions (hence the + * name of the component). + * + * --- + * + * By default the `Transition` component does not alter the behavior of the + * component it renders, it only tracks "enter" and "exit" states for the + * components. It's up to you to give meaning and effect to those states. For + * example we can add styles to a component when it enters or exits: + * + * ```jsx + * import { Transition } from 'react-transition-group'; + * + * const duration = 300; + * + * const defaultStyle = { + * transition: `opacity ${duration}ms ease-in-out`, + * opacity: 0, + * } + * + * const transitionStyles = { + * entering: { opacity: 1 }, + * entered: { opacity: 1 }, + * exiting: { opacity: 0 }, + * exited: { opacity: 0 }, + * }; + * + * const Fade = ({ in: inProp }) => ( + * + * {state => ( + *
+ * I'm a fade Transition! + *
+ * )} + *
+ * ); + * ``` + * + * There are 4 main states a Transition can be in: + * - `'entering'` + * - `'entered'` + * - `'exiting'` + * - `'exited'` + * + * Transition state is toggled via the `in` prop. When `true` the component + * begins the "Enter" stage. During this stage, the component will shift from + * its current transition state, to `'entering'` for the duration of the + * transition and then to the `'entered'` stage once it's complete. Let's take + * the following example (we'll use the + * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
+ * + * {state => ( + * // ... + * )} + * + * + *
+ * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ + +var Transition = +/*#__PURE__*/ +function (_React$Component) { + inheritsLoose_inheritsLoose(Transition, _React$Component); - if (defaultStyle !== undefined) { - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - defaultProps.bsStyle = defaultStyle; - } + function Transition(props, context) { + var _this; - return Component; -}); -var bsSizes = curry(function (sizes, defaultSize, Component) { - if (typeof defaultSize !== 'string') { - Component = defaultSize; - defaultSize = undefined; - } + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context; // In the context of a TransitionGroup all enters are really appears - var existing = Component.SIZES || []; - var propTypes = Component.propTypes || {}; - sizes.forEach(function (size) { - if (existing.indexOf(size) === -1) { - existing.push(size); - } - }); - var values = []; - existing.forEach(function (size) { - var mappedSize = SIZE_MAP[size]; + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; - if (mappedSize && mappedSize !== size) { - values.push(mappedSize); + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } } - values.push(size); - }); - var propType = prop_types_default().oneOf(values); - propType._values = values; // expose the values on the propType function for documentation + _this.state = { + status: initialStatus + }; + _this.nextCallback = null; + return _this; + } - Component.SIZES = existing; - Component.propTypes = _extends({}, propTypes, { - bsSize: propType - }); + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; - if (defaultSize !== undefined) { - if (!Component.defaultProps) { - Component.defaultProps = {}; + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED + }; } - Component.defaultProps.bsSize = defaultSize; - } + return null; + } // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } + ; - return Component; -}); -function getClassSet(props) { - var _classes; + var _proto = Transition.prototype; - var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; - if (props.bsSize) { - var bsSize = SIZE_MAP[props.bsSize] || props.bsSize; - classes[prefix(props, bsSize)] = true; - } + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; - if (props.bsStyle) { - classes[prefix(props, props.bsStyle)] = true; - } + if (prevProps !== this.props) { + var status = this.state.status; - return classes; -} + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } -function getBsProps(props) { - return { - bsClass: props.bsClass, - bsSize: props.bsSize, - bsStyle: props.bsStyle, - bsRole: props.bsRole + this.updateStatus(false, nextStatus); }; -} -function isBsProp(propName) { - return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; -} + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; -function splitBsProps(props) { - var elementProps = {}; + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; - entries_default()(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major - if (!isBsProp(propName)) { - elementProps[propName] = propValue; + appear = timeout.appear !== undefined ? timeout.appear : enter; } - }); - - return [getBsProps(props), elementProps]; -} -function splitBsPropsAndOmit(props, omittedPropNames) { - var isOmittedProp = {}; - omittedPropNames.forEach(function (propName) { - isOmittedProp[propName] = true; - }); - var elementProps = {}; - entries_default()(props).forEach(function (_ref2) { - var propName = _ref2[0], - propValue = _ref2[1]; + return { + exit: exit, + enter: enter, + appear: appear + }; + }; - if (!isBsProp(propName) && !isOmittedProp[propName]) { - elementProps[propName] = propValue; + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; } - }); - - return [getBsProps(props), elementProps]; -} -/** - * Add a style variant to a Component. Mutates the propTypes of the component - * in order to validate the new variant. - */ -function addStyle(Component) { - for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - styleVariant[_key2 - 1] = arguments[_key2]; - } + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); - bsStyles(styleVariant, Component); -} -var _curry = curry; -;// ./src/utils/ValidComponentChildren.js -// TODO: This module should be ElementChildren, and should use named exports. + if (nextStatus === ENTERING) { + if (this.props.unmountOnExit || this.props.mountOnEnter) { + var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749 + // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`. + // To make the animation happen, we have to separate each rendering and avoid being processed as batched. -/** - * Iterates through children that are typically specified as `props.children`, - * but only maps over children that are "valid components". - * - * The mapFunction provided index will be normalised to the components mapped, - * so an invalid component would not increase the index. - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for func. - * @return {object} Object containing the ordered map of results. - */ + if (node) forceReflow(node); + } -function map(children, func, context) { - var index = 0; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return child; + this.performEnter(mounting); + } else { + this.performExit(); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED + }); } + }; - return func.call(context, child, index++); - }); -} -/** - * Iterates through children that are "valid components". - * - * The provided forEachFunc(child, index) will be called for each - * leaf child with the index reflecting the position relative to "valid components". - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for context. - */ + _proto.performEnter = function performEnter(mounting) { + var _this2 = this; + var enter = this.props.enter; + var appearing = this.context ? this.context.isMounting : mounting; -function forEach(children, func, context) { - var index = 0; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + var _ref2 = this.props.nodeRef ? [appearing] : [external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this), appearing], + maybeNode = _ref2[0], + maybeAppearing = _ref2[1]; + + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set + + if (!mounting && !enter || config.disabled) { + this.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode); + }); return; } - func.call(context, child, index++); - }); -} -/** - * Count the number of "valid components" in the Children container. - * - * @param {?*} children Children tree container. - * @returns {number} - */ + this.props.onEnter(maybeNode, maybeAppearing); + this.safeSetState({ + status: ENTERING + }, function () { + _this2.props.onEntering(maybeNode, maybeAppearing); + _this2.onTransitionEnd(enterTimeout, function () { + _this2.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode, maybeAppearing); + }); + }); + }); + }; -function count(children) { - var result = 0; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { + _proto.performExit = function performExit() { + var _this3 = this; + + var exit = this.props.exit; + var timeouts = this.getTimeouts(); + var maybeNode = this.props.nodeRef ? undefined : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // no exit animation skip right to EXITED + + if (!exit || config.disabled) { + this.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); return; } - ++result; - }); - return result; -} -/** - * Finds children that are typically specified as `props.children`, - * but only iterates over children that are "valid components". - * - * The provided forEachFunc(child, index) will be called for each - * leaf child with the index reflecting the position relative to "valid components". - * - * @param {?*} children Children tree container. - * @param {function(*, int)} func. - * @param {*} context Context for func. - * @returns {array} of children that meet the func return statement - */ + this.props.onExit(maybeNode); + this.safeSetState({ + status: EXITING + }, function () { + _this3.props.onExiting(maybeNode); + _this3.onTransitionEnd(timeouts.exit, function () { + _this3.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); + }); + }); + }; -function filter(children, func, context) { - var index = 0; - var result = []; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } + }; - if (func.call(context, child, index++)) { - result.push(child); - } - }); - return result; -} + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; -function find(children, func, context) { - var index = 0; - var result; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { - return; - } + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; - } + var active = true; - if (func.call(context, child, index++)) { - result = child; - } - }); - return result; -} + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; -function every(children, func, context) { - var index = 0; - var result = true; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!result) { - return; - } + this.nextCallback.cancel = function () { + active = false; + }; - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; - } + return this.nextCallback; + }; - if (!func.call(context, child, index++)) { - result = false; - } - }); - return result; -} + _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) { + this.setNextCallback(handler); + var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; -function some(children, func, context) { - var index = 0; - var result = false; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); return; } - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + if (this.props.addEndListener) { + var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], + maybeNode = _ref3[0], + maybeNextCallback = _ref3[1]; + + this.props.addEndListener(maybeNode, maybeNextCallback); } - if (func.call(context, child, index++)) { - result = true; + if (timeout != null) { + setTimeout(this.nextCallback, timeout); } - }); - return result; -} + }; -function toArray(children) { - var result = []; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) { - return; + _proto.render = function render() { + var status = this.state.status; + + if (status === UNMOUNTED) { + return null; } - result.push(child); - }); - return result; -} + var _this$props = this.props, + children = _this$props.children, + _in = _this$props.in, + _mountOnEnter = _this$props.mountOnEnter, + _unmountOnExit = _this$props.unmountOnExit, + _appear = _this$props.appear, + _enter = _this$props.enter, + _exit = _this$props.exit, + _timeout = _this$props.timeout, + _addEndListener = _this$props.addEndListener, + _onEnter = _this$props.onEnter, + _onEntering = _this$props.onEntering, + _onEntered = _this$props.onEntered, + _onExit = _this$props.onExit, + _onExiting = _this$props.onExiting, + _onExited = _this$props.onExited, + _nodeRef = _this$props.nodeRef, + childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + + return ( + /*#__PURE__*/ + // allows for nested Transitions + external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, { + value: null + }, typeof children === 'function' ? children(status, childProps) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(children), childProps)) + ); + }; -/* harmony default export */ const ValidComponentChildren = ({ - map: map, - forEach: forEach, - count: count, - find: find, - filter: filter, - every: every, - some: some, - toArray: toArray -}); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js -var createChainableTypeChecker = __webpack_require__(8663); -var createChainableTypeChecker_default = /*#__PURE__*/__webpack_require__.n(createChainableTypeChecker); -;// ./src/utils/PropTypes.js + return Transition; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +Transition.contextType = TransitionGroupContext; +Transition.propTypes = false ? 0 : {}; // Name the function so it is clearer in the documentation +function noop() {} -var idPropType = prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]); -function generatedId(name) { - return function (props) { - var error = null; +Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop +}; +Transition.UNMOUNTED = UNMOUNTED; +Transition.EXITED = EXITED; +Transition.ENTERING = ENTERING; +Transition.ENTERED = ENTERED; +Transition.EXITING = EXITING; +/* harmony default export */ const esm_Transition = (Transition); +;// ./src/utils/mergeRefs.js - if (!props.generateChildId) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - error = idPropType.apply(void 0, [props].concat(args)); +var hasRefProp = parse_int_default()((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).version, 10) >= 19; +/** + * Given any number of React ref callbacks or ref objects, returns a new ref callback + * that sets all of the provided refs. This result isn't memoized, so useMergedRef + * should be preferred. + */ - if (!error && !props.id) { - 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")); +function makeMergedRef(refs) { + return function (el) { + refs.forEach(function (ref) { + if (typeof ref === 'function') { + ref(el); + } else if (ref != null) { + ref.current = el; } - } - - return error; + }); }; } -function requiredRoles() { - for (var _len2 = arguments.length, roles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - roles[_key2] = arguments[_key2]; - } +/** + * Given any number of React ref callbacks or ref objects, returns a new ref callback + * that sets all of the provided refs. + */ - return createChainableTypeChecker_default()(function (props, propName, component) { - var missing; - roles.every(function (role) { - if (!ValidComponentChildren.some(props.children, function (child) { - return child.props.bsRole === role; - })) { - missing = role; - return false; - } +function useMergedRef(refs) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(makeMergedRef(refs), refs); +} +/** + * Given a React element, returns the ref of that object in a way that's compatible + * with different React versions. + */ + +function getElementRef(reactElement) { + if (!reactElement) { + return null; + } // Accessing reactElement.ref prints a warning in React 19 and will likely be removed eventually - return true; - }); - if (missing) { - 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(', '))); + return hasRefProp ? reactElement.props.ref : reactElement.ref; +} +;// ./src/utils/withRef.js +/** + * Given a function, returns that function with the first parameter set to the referenced element. + */ +function withRef(callback, ref) { + return callback ? function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - return null; - }); + return callback.apply(void 0, [ref.current].concat(args)); + } : undefined; } -function exclusiveRoles() { - for (var _len3 = arguments.length, roles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - roles[_key3] = arguments[_key3]; - } +;// ./src/Collapse.js - return createChainableTypeChecker_default()(function (props, propName, component) { - var duplicate; - roles.every(function (role) { - var childrenWithRole = ValidComponentChildren.filter(props.children, function (child) { - return child.props.bsRole === role; - }); - if (childrenWithRole.length > 1) { - duplicate = role; - return false; - } - return true; - }); - if (duplicate) { - return new Error("(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', '))); - } - return null; - }); -} -;// ./src/PanelGroup.js +var _collapseStyles, + Collapse_jsxFileName = "/Users/harrison/react-bootstrap/src/Collapse.js"; + + -var _jsxFileName = "/Users/harrison/react-bootstrap/src/PanelGroup.js"; +var MARGINS = { + height: ['marginTop', 'marginBottom'], + width: ['marginLeft', 'marginRight'] +}; // reading a dimension prop will cause the browser to recalculate, +// which will let our animations work + +function triggerBrowserReflow(node) { + node.offsetHeight; // eslint-disable-line no-unused-expressions +} + +function getDimensionValue(dimension, elem) { + var value = elem["offset" + capitalize(dimension)]; + var margins = MARGINS[dimension]; + return value + parse_int_default()(style_default()(elem, margins[0]), 10) + parse_int_default()(style_default()(elem, margins[1]), 10); +} + +var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse in', _collapseStyles); +var Collapse_propTypes = { + /** + * Show the component; triggers the expand or collapse animation + */ + in: (prop_types_default()).bool, + + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: (prop_types_default()).bool, + + /** + * Unmount the component (remove it from the DOM) when it is collapsed + */ + unmountOnExit: (prop_types_default()).bool, + + /** + * Run the expand animation when the component mounts, if it is initially + * shown + */ + appear: (prop_types_default()).bool, + + /** + * Duration of the collapse animation in milliseconds, to ensure that + * finishing callbacks are fired even if the original browser transition end + * events are canceled + */ + timeout: (prop_types_default()).number, + + /** + * Callback fired before the component expands + */ + onEnter: (prop_types_default()).func, + /** + * Callback fired after the component starts to expand + */ + onEntering: (prop_types_default()).func, -var propTypes = { - accordion: (prop_types_default()).bool, + /** + * Callback fired after the component has expanded + */ + onEntered: (prop_types_default()).func, /** - * When `accordion` is enabled, `activeKey` controls the which child `Panel` is expanded. `activeKey` should - * match a child Panel `eventKey` prop exactly. - * - * @controllable onSelect + * Callback fired before the component collapses */ - activeKey: (prop_types_default()).any, + onExit: (prop_types_default()).func, /** - * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey` - * - * @controllable activeKey + * Callback fired after the component starts to collapse */ - onSelect: (prop_types_default()).func, + onExiting: (prop_types_default()).func, /** - * An HTML role attribute + * Callback fired after the component has collapsed */ - role: (prop_types_default()).string, + onExited: (prop_types_default()).func, /** - * A function that takes an eventKey and type and returns a - * unique id for each Panel heading and Panel Collapse. The function _must_ be a pure function, - * meaning it should always return the _same_ id for the same set of inputs. The default - * value requires that an `id` to be set for the PanelGroup. + * The dimension used when collapsing, or a function that returns the + * dimension * - * The `type` argument will either be `"body"` or `"heading"`. + * _Note: Bootstrap only partially supports 'width'! + * You will need to supply your own CSS animation for the `.width` CSS class._ + */ + dimension: prop_types_default().oneOfType([prop_types_default().oneOf(['height', 'width']), (prop_types_default()).func]), + + /** + * Function that returns the height or width of the animating DOM node * - * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` + * Allows for providing some custom logic for how much the Collapse component + * should animate in its specified dimension. Called with the current + * dimension prop value and the DOM node. */ - generateChildId: (prop_types_default()).func, + getDimensionValue: (prop_types_default()).func, /** - * HTML id attribute, required if no `generateChildId` prop - * is specified. + * ARIA role of collapsible element */ - id: generatedId('PanelGroup') -}; -var defaultProps = { - accordion: false + role: (prop_types_default()).string }; -var childContextTypes = { - $bs_panelGroup: prop_types_default().shape({ - getId: (prop_types_default()).func, - headerRole: (prop_types_default()).string, - panelRole: (prop_types_default()).string, - activeKey: (prop_types_default()).any, - onToggle: (prop_types_default()).func - }) +var Collapse_defaultProps = { + in: false, + timeout: 300, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + dimension: 'height', + getDimensionValue: getDimensionValue }; -var PanelGroup = +var Collapse = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(PanelGroup, _React$Component); + _inheritsLoose(Collapse, _React$Component); - function PanelGroup() { + function Collapse(props) { var _this; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + _this = _React$Component.call(this, props) || this; - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + _this.handleEnter = function () { + _this.childRef.current.style[_this.getDimension()] = '0'; + }; - _this.handleSelect = function (key, expanded, e) { - if (expanded) { - _this.props.onSelect(key, e); - } else if (_this.props.activeKey === key) { - _this.props.onSelect(null, e); - } + _this.handleEntering = function () { + var dimension = _this.getDimension(); + + _this.childRef.current.style[dimension] = _this._getScrollDimensionValue(_this.childRef.current, dimension); + }; + + _this.handleEntered = function () { + _this.childRef.current.style[_this.getDimension()] = null; + }; + + _this.handleExit = function () { + var dimension = _this.getDimension(); + + _this.childRef.current.style[dimension] = _this.props.getDimensionValue(dimension, _this.childRef.current) + "px"; + triggerBrowserReflow(_this.childRef.current); + }; + + _this.handleExiting = function () { + _this.childRef.current.style[_this.getDimension()] = '0'; }; + _this.childRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); return _this; } - var _proto = PanelGroup.prototype; + var _proto = Collapse.prototype; - _proto.getChildContext = function getChildContext() { - var _this$props = this.props, - activeKey = _this$props.activeKey, - accordion = _this$props.accordion, - generateChildId = _this$props.generateChildId, - id = _this$props.id; - var getId = null; + _proto.getDimension = function getDimension() { + return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; + }; // for testing - if (accordion) { - getId = generateChildId || function (key, type) { - return id ? id + "-" + type + "-" + key : null; - }; - } - return { - $bs_panelGroup: _extends({ - getId: getId, - headerRole: 'tab', - panelRole: 'tabpanel' - }, accordion && { - activeKey: activeKey, - onToggle: this.handleSelect - }) - }; + _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { + return elem["scroll" + capitalize(dimension)] + "px"; }; + /* -- Expanding -- */ - _proto.render = function render() { - var _this$props2 = this.props, - accordion = _this$props2.accordion, - className = _this$props2.className, - children = _this$props2.children, - props = _objectWithoutPropertiesLoose(_this$props2, ["accordion", "className", "children"]); - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; + _proto.render = function render() { + var _this2 = this; - if (accordion) { - elementProps.role = elementProps.role || 'tablist'; - } + var _this$props = this.props, + onEnter = _this$props.onEnter, + onEntering = _this$props.onEntering, + onEntered = _this$props.onEntered, + onExit = _this$props.onExit, + onExiting = _this$props.onExiting, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]); - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - className: classnames_default()(className, classes), + delete props.dimension; + delete props.getDimensionValue; + var handleEnter = utils_createChainedFunction(this.handleEnter, withRef(onEnter, this.childRef)); + var handleEntering = utils_createChainedFunction(this.handleEntering, withRef(onEntering, this.childRef)); + var handleEntered = utils_createChainedFunction(this.handleEntered, withRef(onEntered, this.childRef)); + var handleExit = utils_createChainedFunction(this.handleExit, withRef(onExit, this.childRef)); + var handleExiting = utils_createChainedFunction(this.handleExiting, withRef(onExiting, this.childRef)); + var ref = makeMergedRef([this.childRef, getElementRef(children)]); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(esm_Transition, _extends({}, props, { + "aria-expanded": props.role ? props.in : null, + nodeRef: this.childRef, + onEnter: handleEnter, + onEntering: handleEntering, + onEntered: handleEntered, + onExit: handleExit, + onExiting: handleExiting, __source: { - fileName: _jsxFileName, - lineNumber: 116 + fileName: Collapse_jsxFileName, + lineNumber: 226 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { - bsStyle: child.props.bsStyle || bsProps.bsStyle - }); - })); + }), function (state, innerProps) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { + ref: ref, + className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width') + })); + }); + }; + + return Collapse; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + +Collapse.propTypes = Collapse_propTypes; +Collapse.defaultProps = Collapse_defaultProps; +/* harmony default export */ const src_Collapse = (Collapse); +// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js +var activeElement = __webpack_require__(6335); +var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement); +// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js +var contains = __webpack_require__(6489); +var contains_default = /*#__PURE__*/__webpack_require__.n(contains); +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js +var isRequiredForA11y = __webpack_require__(8861); +var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y); +// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js +var from = __webpack_require__(6807); +var from_default = /*#__PURE__*/__webpack_require__.n(from); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/contains.js +/* eslint-disable no-bitwise, no-cond-assign */ + +/** + * Checks if an element contains another given element. + * + * @param context the context element + * @param node the element to check + */ +function contains_contains(context, node) { + // HTML DOM and SVG DOM may have different support levels, + // so we need to check on context instead of a document root element. + if (context.contains) return context.contains(node); + if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16); +} +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/canUseDOM.js +/* harmony default export */ const canUseDOM = (!!(typeof window !== 'undefined' && window.document && window.document.createElement)); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/addEventListener.js +/* eslint-disable no-return-assign */ + +var optionsSupported = false; +var onceSupported = false; + +try { + var options = { + get passive() { + return optionsSupported = true; + }, + + get once() { + // eslint-disable-next-line no-multi-assign + return onceSupported = optionsSupported = true; + } + + }; + + if (canUseDOM) { + window.addEventListener('test', options, options); + window.removeEventListener('test', options, true); + } +} catch (e) {} +/* */ + +/** + * An `addEventListener` ponyfill, supports the `once` option + * + * @param node the element + * @param eventName the event name + * @param handle the handler + * @param options event options + */ + + +function addEventListener(node, eventName, handler, options) { + if (options && typeof options !== 'boolean' && !onceSupported) { + var once = options.once, + capture = options.capture; + var wrappedHandler = handler; + + if (!onceSupported && once) { + wrappedHandler = handler.__once || function onceHandler(event) { + this.removeEventListener(eventName, onceHandler, capture); + handler.call(this, event); + }; + + handler.__once = wrappedHandler; + } + + node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture); + } + + node.addEventListener(eventName, handler, options); +} + +/* harmony default export */ const esm_addEventListener = (addEventListener); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/removeEventListener.js +/** + * A `removeEventListener` ponyfill + * + * @param node the element + * @param eventName the event name + * @param handle the handler + * @param options event options + */ +function removeEventListener(node, eventName, handler, options) { + var capture = options && typeof options !== 'boolean' ? options.capture : options; + node.removeEventListener(eventName, handler, capture); + + if (handler.__once) { + node.removeEventListener(eventName, handler.__once, capture); + } +} + +/* harmony default export */ const esm_removeEventListener = (removeEventListener); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/listen.js + + + +function listen(node, eventName, handler, options) { + esm_addEventListener(node, eventName, handler, options); + return function () { + esm_removeEventListener(node, eventName, handler, options); }; +} + +/* harmony default export */ const esm_listen = (listen); +;// ./node_modules/@restart/hooks/esm/useCommittedRef.js + +/** + * Creates a `Ref` whose value is updated in an effect, ensuring the most recent + * value is the one rendered with. Generally only required for Concurrent mode usage + * where previous work in `render()` may be discarded before being used. + * + * This is safe to access in an event handler. + * + * @param value The `Ref` value + */ + +function useCommittedRef(value) { + const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value); + (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => { + ref.current = value; + }, [value]); + return ref; +} - return PanelGroup; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const esm_useCommittedRef = (useCommittedRef); +;// ./node_modules/@restart/hooks/esm/useEventCallback.js -PanelGroup.propTypes = propTypes; -PanelGroup.defaultProps = defaultProps; -PanelGroup.childContextTypes = childContextTypes; -/* harmony default export */ const src_PanelGroup = (uncontrollable_default()(bsClass('panel-group', PanelGroup), { - activeKey: 'onSelect' -})); -;// ./src/Accordion.js +function useEventCallback(fn) { + const ref = esm_useCommittedRef(fn); + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (...args) { + return ref.current && ref.current(...args); + }, [ref]); +} +// EXTERNAL MODULE: ./node_modules/react-overlays/node_modules/warning/warning.js +var warning = __webpack_require__(2384); +var warning_default = /*#__PURE__*/__webpack_require__.n(warning); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/ownerDocument.js +/** + * Returns the owner document of a given element. + * + * @param node the element + */ +function ownerDocument(node) { + return node && node.ownerDocument || document; +} +;// ./node_modules/react-overlays/esm/safeFindDOMNode.js -var Accordion_jsxFileName = "/Users/harrison/react-bootstrap/src/Accordion.js"; +function safeFindDOMNode(componentOrElement) { + if (componentOrElement && 'setState' in componentOrElement) { + return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(componentOrElement); + } + return componentOrElement != null ? componentOrElement : null; +} +;// ./node_modules/react-overlays/esm/ownerDocument.js -var Accordion = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Accordion, _React$Component); +/* harmony default export */ const esm_ownerDocument = (function (componentOrElement) { + return ownerDocument(safeFindDOMNode(componentOrElement)); +}); +;// ./node_modules/react-overlays/esm/useRootClose.js - function Accordion() { - return _React$Component.apply(this, arguments) || this; - } - var _proto = Accordion.prototype; - _proto.render = function render() { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_PanelGroup, _extends({}, this.props, { - accordion: true, - __source: { - fileName: Accordion_jsxFileName, - lineNumber: 8 - }, - __self: this - }), this.props.children); - }; - return Accordion; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/* harmony default export */ const src_Accordion = (Accordion); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/values.js -var values = __webpack_require__(5115); -var values_default = /*#__PURE__*/__webpack_require__.n(values); -;// ./src/CloseButton.js -var CloseButton_jsxFileName = "/Users/harrison/react-bootstrap/src/CloseButton.js"; +var escapeKeyCode = 27; +var useRootClose_noop = function noop() {}; -var CloseButton_propTypes = { - label: (prop_types_default()).string.isRequired, - onClick: (prop_types_default()).func -}; -var CloseButton_defaultProps = { - label: 'Close' +function isLeftClickEvent(event) { + return event.button === 0; +} + +function isModifiedEvent(event) { + return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); +} + +var getRefTarget = function getRefTarget(ref) { + return ref && ('current' in ref ? ref.current : ref); }; +/** + * The `useRootClose` hook registers your callback on the document + * when rendered. Powers the `` component. This is used achieve modal + * style behavior where your callback is triggered when the user tries to + * interact with the rest of the document or hits the `esc` key. + * + * @param {Ref| HTMLElement} ref The element boundary + * @param {function} onRootClose + * @param {object=} options + * @param {boolean=} options.disabled + * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on + */ -var CloseButton = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CloseButton, _React$Component); - function CloseButton() { - return _React$Component.apply(this, arguments) || this; - } +function useRootClose(ref, onRootClose, _temp) { + var _ref = _temp === void 0 ? {} : _temp, + disabled = _ref.disabled, + _ref$clickTrigger = _ref.clickTrigger, + clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger; + + var preventMouseRootCloseRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false); + var onClose = onRootClose || useRootClose_noop; + var handleMouseCapture = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (e) { + var _e$composedPath$; + + var currentTarget = getRefTarget(ref); + warning_default()(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node'); + preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains_contains(currentTarget, (_e$composedPath$ = e.composedPath == null ? void 0 : e.composedPath()[0]) != null ? _e$composedPath$ : e.target); + }, [ref]); + var handleMouse = useEventCallback(function (e) { + if (!preventMouseRootCloseRef.current) { + onClose(e); + } + }); + var handleKeyUp = useEventCallback(function (e) { + if (e.keyCode === escapeKeyCode || e.key === 'Escape') { + onClose(e); + } + }); + (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () { + if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately + // https://github.com/facebook/react/issues/20074 - var _proto = CloseButton.prototype; + var currentEvent = window.event; + var doc = esm_ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to + // avoid false positives in the contains() check below if the target DOM + // element is removed in the React mouse callback. - _proto.render = function render() { - var _this$props = this.props, - label = _this$props.label, - onClick = _this$props.onClick; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", { - type: "button", - className: "close", - onClick: onClick, - "aria-label": label, - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 17 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - "aria-hidden": "true", - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 23 - }, - __self: this - }, "\xD7"), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", - __source: { - fileName: CloseButton_jsxFileName, - lineNumber: 24 - }, - __self: this - }, label)); - }; + var removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true); + var removeMouseListener = esm_listen(doc, clickTrigger, function (e) { + // skip if this event is the same as the one running when we added the handlers + if (e === currentEvent) { + currentEvent = undefined; + return; + } - return CloseButton; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + handleMouse(e); + }); + var removeKeyupListener = esm_listen(doc, 'keyup', function (e) { + // skip if this event is the same as the one running when we added the handlers + if (e === currentEvent) { + currentEvent = undefined; + return; + } -CloseButton.propTypes = CloseButton_propTypes; -CloseButton.defaultProps = CloseButton_defaultProps; -/* harmony default export */ const src_CloseButton = (CloseButton); -;// ./src/Alert.js + handleKeyUp(e); + }); + var mobileSafariHackListeners = []; + + if ('ontouchstart' in doc.documentElement) { + mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) { + return esm_listen(el, 'mousemove', useRootClose_noop); + }); + } + + return function () { + removeMouseCaptureListener(); + removeMouseListener(); + removeKeyupListener(); + mobileSafariHackListeners.forEach(function (remove) { + return remove(); + }); + }; + }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse, handleKeyUp]); +} +/* harmony default export */ const esm_useRootClose = (useRootClose); +;// ./src/DropdownMenu.js -var Alert_jsxFileName = "/Users/harrison/react-bootstrap/src/Alert.js"; +var DropdownMenu_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownMenu.js"; -var Alert_propTypes = { - onDismiss: (prop_types_default()).func, - closeLabel: (prop_types_default()).string + + + +var DropdownMenu_propTypes = { + open: (prop_types_default()).bool, + pullRight: (prop_types_default()).bool, + onClose: (prop_types_default()).func, + labelledBy: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]), + onSelect: (prop_types_default()).func, + rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']) }; -var Alert_defaultProps = { - closeLabel: 'Close alert' +var DropdownMenu_defaultProps = { + bsRole: 'menu', + pullRight: false }; -var Alert = +var DropdownMenu = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Alert, _React$Component); - - function Alert() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = Alert.prototype; + _inheritsLoose(DropdownMenu, _React$Component); - _proto.render = function render() { - var _extends2; + function DropdownMenu(props) { + var _this; - var _this$props = this.props, - onDismiss = _this$props.onDismiss, - closeLabel = _this$props.closeLabel, - className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]); + _this = _React$Component.call(this, props) || this; + _this.handleRootClose = _this.handleRootClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.menuRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + return _this; + } - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _proto = DropdownMenu.prototype; - var dismissable = !!onDismiss; + _proto.getFocusableMenuItems = function getFocusableMenuItems() { + var node = this.menuRef.current; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2)); + if (!node) { + return []; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - role: "alert", - className: classnames_default()(className, classes), - __source: { - fileName: Alert_jsxFileName, - lineNumber: 36 - }, - __self: this - }), dismissable && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_CloseButton, { - onClick: onDismiss, - label: closeLabel, - __source: { - fileName: Alert_jsxFileName, - lineNumber: 41 - }, - __self: this - }), children); + return from_default()(node.querySelectorAll('[tabIndex="-1"]')); }; - return Alert; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Alert.propTypes = Alert_propTypes; -Alert.defaultProps = Alert_defaultProps; -/* harmony default export */ const src_Alert = (bsStyles(values_default()(State), State.INFO, bsClass('alert', Alert))); -;// ./src/Badge.js - + _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() { + var items = this.getFocusableMenuItems(); + var activeIndex = items.indexOf(document.activeElement); + return { + items: items, + activeIndex: activeIndex + }; + }; + _proto.focusNext = function focusNext() { + var _this$getItemsAndActi = this.getItemsAndActiveIndex(), + items = _this$getItemsAndActi.items, + activeIndex = _this$getItemsAndActi.activeIndex; -var Badge_jsxFileName = "/Users/harrison/react-bootstrap/src/Badge.js"; + if (items.length === 0) { + return; + } + var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; + items[nextIndex].focus(); + }; + _proto.focusPrevious = function focusPrevious() { + var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(), + items = _this$getItemsAndActi2.items, + activeIndex = _this$getItemsAndActi2.activeIndex; - // TODO: `pullRight` doesn't belong here. There's no special handling here. + if (items.length === 0) { + return; + } -var Badge_propTypes = { - pullRight: (prop_types_default()).bool -}; -var Badge_defaultProps = { - pullRight: false -}; + var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; + items[prevIndex].focus(); + }; -var Badge = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Badge, _React$Component); + _proto.handleKeyDown = function handleKeyDown(event) { + switch (event.key) { + case 'ArrowDown': + this.focusNext(); + event.preventDefault(); + break; - function Badge() { - return _React$Component.apply(this, arguments) || this; - } + case 'ArrowUp': + this.focusPrevious(); + event.preventDefault(); + break; - var _proto = Badge.prototype; + case 'Escape': + case 'Tab': + this.props.onClose(event, { + source: 'keydown' + }); + break; - _proto.hasContent = function hasContent(children) { - var result = false; - external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { - if (result) { - return; - } + default: + } + }; - if (child || child === 0) { - result = true; - } + _proto.handleRootClose = function handleRootClose(event) { + this.props.onClose(event, { + source: 'rootClose' }); - return result; }; _proto.render = function render() { + var _extends2, + _this2 = this; + var _this$props = this.props, + open = _this$props.open, pullRight = _this$props.pullRight, + labelledBy = _this$props.labelledBy, + onSelect = _this$props.onSelect, className = _this$props.className, + rootCloseEvent = _this$props.rootCloseEvent, children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; - var classes = _extends({}, getClassSet(bsProps), { - 'pull-right': pullRight, - // Hack for collapsing on IE8. - hidden: !this.hasContent(children) - }); + var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2)); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(RootCloseWrapper, { + disabled: !open, + onRootClose: this.handleRootClose, + event: rootCloseEvent, + menuRef: this.menuRef, + __source: { + fileName: DropdownMenu_jsxFileName, + lineNumber: 117 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({ + ref: this.menuRef + }, elementProps, { + role: "menu", className: classnames_default()(className, classes), + "aria-labelledby": labelledBy, __source: { - fileName: Badge_jsxFileName, - lineNumber: 47 + fileName: DropdownMenu_jsxFileName, + lineNumber: 123 }, __self: this - }), children); + }), ValidComponentChildren.map(children, function (child) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, { + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown), + onSelect: utils_createChainedFunction(child.props.onSelect, onSelect) + }); + }))); }; - return Badge; + return DropdownMenu; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Badge.propTypes = Badge_propTypes; -Badge.defaultProps = Badge_defaultProps; -/* harmony default export */ const src_Badge = (bsClass('badge', Badge)); -;// ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js -var elementType = __webpack_require__(3105); -var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType); -;// ./src/utils/createChainedFunction.js -/** - * Safe chained function - * - * Will only create a new function if needed, - * otherwise will pass back existing functions or null. - * - * @param {function} functions to chain - * @returns {function|null} - */ -function createChainedFunction() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - return funcs.filter(function (f) { - return f != null; - }).reduce(function (acc, f) { - if (typeof f !== 'function') { - throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); - } - - if (acc === null) { - return f; - } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - f.apply(this, args); - }; - }, null); +function RootCloseWrapper(_ref) { + var disabled = _ref.disabled, + onRootClose = _ref.onRootClose, + event = _ref.event, + children = _ref.children, + menuRef = _ref.menuRef; + esm_useRootClose(menuRef, onRootClose, { + disabled: disabled, + clickTrigger: event + }); + return children; } -/* harmony default export */ const utils_createChainedFunction = (createChainedFunction); -;// ./src/SafeAnchor.js +DropdownMenu.propTypes = DropdownMenu_propTypes; +DropdownMenu.defaultProps = DropdownMenu_defaultProps; +/* harmony default export */ const src_DropdownMenu = (bsClass('dropdown-menu', DropdownMenu)); +;// ./src/DropdownToggle.js +var DropdownToggle_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownToggle.js"; -var SafeAnchor_jsxFileName = "/Users/harrison/react-bootstrap/src/SafeAnchor.js"; -var SafeAnchor_propTypes = { - href: (prop_types_default()).string, - onClick: (prop_types_default()).func, - onKeyDown: (prop_types_default()).func, - disabled: (prop_types_default()).bool, - role: (prop_types_default()).string, - tabIndex: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]), - /** - * this is sort of silly but needed for Button - */ - componentClass: (elementType_default()) +var DropdownToggle_propTypes = { + noCaret: (prop_types_default()).bool, + open: (prop_types_default()).bool, + title: (prop_types_default()).string, + useAnchor: (prop_types_default()).bool }; -var SafeAnchor_defaultProps = { - componentClass: 'a' +var DropdownToggle_defaultProps = { + open: false, + useAnchor: false, + bsRole: 'toggle' }; -function isTrivialHref(href) { - return !href || href.trim() === '#'; -} -/** - * There are situations due to browser quirks or Bootstrap CSS where - * an anchor tag is needed, when semantically a button tag is the - * better choice. SafeAnchor ensures that when an anchor is used like a - * button its accessible. It also emulates input `disabled` behavior for - * links, which is usually desirable for Buttons, NavItems, MenuItems, etc. - */ - - -var SafeAnchor = +var DropdownToggle = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(SafeAnchor, _React$Component); - - function SafeAnchor(props, context) { - var _this; + _inheritsLoose(DropdownToggle, _React$Component); - _this = _React$Component.call(this, props, context) || this; - _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; + function DropdownToggle() { + return _React$Component.apply(this, arguments) || this; } - var _proto = SafeAnchor.prototype; - - _proto.handleClick = function handleClick(event) { - var _this$props = this.props, - disabled = _this$props.disabled, - href = _this$props.href, - onClick = _this$props.onClick; - - if (disabled || isTrivialHref(href)) { - event.preventDefault(); - } - - if (disabled) { - event.stopPropagation(); - return; - } - - if (onClick) { - onClick(event); - } - }; - - _proto.handleKeyDown = function handleKeyDown(event) { - if (event.key === ' ') { - event.preventDefault(); - this.handleClick(event); - } - }; + var _proto = DropdownToggle.prototype; _proto.render = function render() { - var _this$props2 = this.props, - Component = _this$props2.componentClass, - disabled = _this$props2.disabled, - onKeyDown = _this$props2.onKeyDown, - props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]); - - if (isTrivialHref(props.href)) { - props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node - // otherwise, the cursor incorrectly styled (except with role='button') - - props.href = props.href || '#'; - } + var _this$props = this.props, + noCaret = _this$props.noCaret, + open = _this$props.open, + useAnchor = _this$props.useAnchor, + bsClass = _this$props.bsClass, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]); - if (disabled) { - props.tabIndex = -1; - props.style = _extends({ - pointerEvents: 'none' - }, props.style); - } + delete props.bsRole; + var Component = useAnchor ? src_SafeAnchor : src_Button; + var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the + // underlying component, to allow it to render size and style variants. + // FIXME: Should this really fall back to `title` as children? return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { - onClick: this.handleClick, - onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown), + role: "button", + className: classnames_default()(className, bsClass), + "aria-haspopup": true, + "aria-expanded": open, __source: { - fileName: SafeAnchor_jsxFileName, - lineNumber: 88 + fileName: DropdownToggle_jsxFileName, + lineNumber: 45 + }, + __self: this + }), children || props.title, useCaret && ' ', useCaret && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { + className: "caret", + __source: { + fileName: DropdownToggle_jsxFileName, + lineNumber: 54 }, __self: this })); }; - return SafeAnchor; + return DropdownToggle; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -SafeAnchor.propTypes = SafeAnchor_propTypes; -SafeAnchor.defaultProps = SafeAnchor_defaultProps; -/* harmony default export */ const src_SafeAnchor = (SafeAnchor); -;// ./src/BreadcrumbItem.js +DropdownToggle.propTypes = DropdownToggle_propTypes; +DropdownToggle.defaultProps = DropdownToggle_defaultProps; +/* harmony default export */ const src_DropdownToggle = (bsClass('dropdown-toggle', DropdownToggle)); +;// ./src/Dropdown.js -var BreadcrumbItem_jsxFileName = "/Users/harrison/react-bootstrap/src/BreadcrumbItem.js"; +var Dropdown_jsxFileName = "/Users/harrison/react-bootstrap/src/Dropdown.js"; -var BreadcrumbItem_propTypes = { + + + + + + + + + + + + + + +var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole; +var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole; +var Dropdown_propTypes = { /** - * If set to true, renders `span` instead of `a` + * The menu will open above the dropdown button, instead of below it. */ - active: (prop_types_default()).bool, + dropup: (prop_types_default()).bool, /** - * `href` attribute for the inner `a` element + * An html id attribute, necessary for assistive technologies, such as screen readers. + * @type {string|number} + * @required */ - href: (prop_types_default()).string, + id: isRequiredForA11y_default()(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])), + componentClass: (elementType_default()), /** - * `title` attribute for the inner `a` element + * The children of a Dropdown may be a `` or a ``. + * @type {node} */ - title: (prop_types_default()).node, + children: (prop_types_default()).node, /** - * `target` attribute for the inner `a` element + * Whether or not component is disabled. */ - target: (prop_types_default()).string -}; -var BreadcrumbItem_defaultProps = { - active: false -}; - -var BreadcrumbItem = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(BreadcrumbItem, _React$Component); - - function BreadcrumbItem() { - return _React$Component.apply(this, arguments) || this; - } + disabled: (prop_types_default()).bool, - var _proto = BreadcrumbItem.prototype; + /** + * Align the menu to the right side of the Dropdown toggle + */ + pullRight: (prop_types_default()).bool, - _proto.render = function render() { - var _this$props = this.props, - active = _this$props.active, - href = _this$props.href, - title = _this$props.title, - target = _this$props.target, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active . + /** + * Whether or not the Dropdown is visible. + * + * @controllable onToggle + */ + open: (prop_types_default()).bool, + defaultOpen: (prop_types_default()).bool, + /** + * A callback fired when the Dropdown wishes to change visibility. Called with the requested + * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. + * + * ```js + * function(Boolean isOpen, Object event, { String source }) {} + * ``` + * @controllable open + */ + onToggle: (prop_types_default()).func, - var linkProps = { - href: href, - title: title, - target: target - }; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { - className: classnames_default()(className, { - active: active - }), - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 38 - }, - __self: this - }, active ? external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, props, { - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 40 - }, - __self: this - })) : external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, props, linkProps, { - __source: { - fileName: BreadcrumbItem_jsxFileName, - lineNumber: 42 - }, - __self: this - }))); - }; + /** + * A callback fired when a menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` + */ + onSelect: (prop_types_default()).func, - return BreadcrumbItem; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + /** + * If `'menuitem'`, causes the dropdown to behave like a menu item rather than + * a menu button. + */ + role: (prop_types_default()).string, -BreadcrumbItem.propTypes = BreadcrumbItem_propTypes; -BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps; -/* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem); -;// ./src/Breadcrumb.js + /** + * Which event when fired outside the component will cause it to be closed + * + * *Note: For custom dropdown components, you will have to pass the + * `rootCloseEvent` to `` in your custom dropdown menu + * component ([similarly to how it is implemented in ``](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).* + */ + rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']), + /** + * @private + */ + onMouseEnter: (prop_types_default()).func, + /** + * @private + */ + onMouseLeave: (prop_types_default()).func +}; +var Dropdown_defaultProps = { + componentClass: src_ButtonGroup +}; -var Breadcrumb_jsxFileName = "/Users/harrison/react-bootstrap/src/Breadcrumb.js"; +var Dropdown = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Dropdown, _React$Component); + function Dropdown(props, context) { + var _this; + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this._focusInDropdown = false; + _this.containerRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef(); + _this.lastOpenEventType = null; + return _this; + } + var _proto = Dropdown.prototype; + _proto.componentDidMount = function componentDidMount() { + this.focusNextOnOpen(); + }; -var Breadcrumb = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Breadcrumb, _React$Component); + _proto.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { + if (!nextProps.open && this.props.open) { + this._focusInDropdown = contains_default()(this.containerRef.current.querySelector('[role=menu]'), activeElement_default()(document)); + } + }; - function Breadcrumb() { - return _React$Component.apply(this, arguments) || this; - } + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var open = this.props.open; + var prevOpen = prevProps.open; - var _proto = Breadcrumb.prototype; + if (open && !prevOpen) { + this.focusNextOnOpen(); + } - _proto.render = function render() { - var _this$props = this.props, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + if (!open && prevOpen) { + // if focus hasn't already moved from the menu let's return it + // to the toggle + if (this._focusInDropdown) { + this._focusInDropdown = false; + this.focus(); + } + } + }; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + _proto.focus = function focus() { + var toggle = this.containerRef.current.querySelector('[role=button][aria-haspopup]'); - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", _extends({}, elementProps, { - role: "navigation", - "aria-label": "breadcrumbs", - className: classnames_default()(className, classes), - __source: { - fileName: Breadcrumb_jsxFileName, - lineNumber: 15 - }, - __self: this - })); + if (toggle && toggle.focus) { + toggle.focus(); + } }; - return Breadcrumb; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + _proto.focusNextOnOpen = function focusNextOnOpen() { + var menu = this.menu; -Breadcrumb.Item = src_BreadcrumbItem; -/* harmony default export */ const src_Breadcrumb = (bsClass('breadcrumb', Breadcrumb)); -;// ./src/Button.js + if (!menu || !menu.focusNext) { + return; + } + if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { + menu.focusNext(); + } + }; + + _proto.handleClick = function handleClick(event) { + // @hmhealey I added this because, when migrating the "passes open, event, and source correctly when closed with click" + // test to use RTL, the root close handler started triggering when clicking on the menu button toggle which seems + // like it shouldn't happen. We had similar issues with React 17 where overlays would open and immediately close, so + // while that didn't happen in the tests using React 17, I'd be willing to guess that ReactTestUtils hid that from us. + event.stopPropagation(); + if (this.props.disabled) { + return; + } + this.toggleOpen(event, { + source: 'click' + }); + }; -var Button_jsxFileName = "/Users/harrison/react-bootstrap/src/Button.js"; + _proto.handleClose = function handleClose(event, eventDetails) { + if (!this.props.open) { + return; + } + this.toggleOpen(event, eventDetails); + }; + _proto.handleKeyDown = function handleKeyDown(event) { + if (this.props.disabled) { + return; + } + switch (event.key) { + case 'ArrowDown': + if (!this.props.open) { + this.toggleOpen(event, { + source: 'keydown' + }); + } else if (this.menu.focusNext) { + this.menu.focusNext(); + } + event.preventDefault(); + break; + case 'Escape': + case 'Tab': + this.handleClose(event, { + source: 'keydown' + }); + break; + default: + } + }; -var Button_propTypes = { - active: (prop_types_default()).bool, - disabled: (prop_types_default()).bool, - block: (prop_types_default()).bool, - onClick: (prop_types_default()).func, - componentClass: (elementType_default()), - href: (prop_types_default()).string, + _proto.toggleOpen = function toggleOpen(event, eventDetails) { + var open = !this.props.open; - /** - * Defines HTML button type attribute - * @defaultValue 'button' - */ - type: prop_types_default().oneOf(['button', 'reset', 'submit']) -}; -var Button_defaultProps = { - active: false, - block: false, - disabled: false -}; + if (open) { + this.lastOpenEventType = eventDetails.source; + } -var Button = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Button, _React$Component); + if (this.props.onToggle) { + this.props.onToggle(open, event, eventDetails); + } + }; - function Button() { - return _React$Component.apply(this, arguments) || this; - } + _proto.renderMenu = function renderMenu(child, _ref) { + var _this2 = this; - var _proto = Button.prototype; + var id = _ref.id, + onSelect = _ref.onSelect, + rootCloseEvent = _ref.rootCloseEvent, + props = _objectWithoutPropertiesLoose(_ref, ["id", "onSelect", "rootCloseEvent"]); - _proto.renderAnchor = function renderAnchor(elementProps, className) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { - className: classnames_default()(className, elementProps.disabled && 'disabled'), - __source: { - fileName: Button_jsxFileName, - lineNumber: 41 - }, - __self: this + var ref = makeMergedRef([function (el) { + _this2.menu = el; + }, getElementRef(child)]); + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { + ref: ref, + labelledBy: id, + bsClass: prefix(props, 'menu'), + onClose: utils_createChainedFunction(child.props.onClose, this.handleClose), + onSelect: utils_createChainedFunction(child.props.onSelect, onSelect, function (key, event) { + return _this2.handleClose(event, { + source: 'select' + }); + }), + rootCloseEvent: rootCloseEvent })); }; - _proto.renderButton = function renderButton(_ref, className) { - var componentClass = _ref.componentClass, - elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]); - - var Component = componentClass || 'button'; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - type: elementProps.type || 'button', - className: className, - __source: { - fileName: Button_jsxFileName, - lineNumber: 52 - }, - __self: this + _proto.renderToggle = function renderToggle(child, props) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { + bsClass: prefix(props, 'toggle'), + onClick: utils_createChainedFunction(child.props.onClick, this.handleClick), + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown) })); }; _proto.render = function render() { - var _extends2; + var _classes, + _this3 = this; var _this$props = this.props, - active = _this$props.active, - block = _this$props.block, + Component = _this$props.componentClass, + id = _this$props.id, + dropup = _this$props.dropup, + disabled = _this$props.disabled, + pullRight = _this$props.pullRight, + open = _this$props.open, + onSelect = _this$props.onSelect, + role = _this$props.role, + bsClass = _this$props.bsClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]); - - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - - var classes = _extends({}, getClassSet(bsProps), (_extends2 = { - active: active - }, _extends2[prefix(bsProps, 'block')] = block, _extends2)); + rootCloseEvent = _this$props.rootCloseEvent, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]); - var fullClassName = classnames_default()(className, classes); + delete props.onToggle; + var missingRoleError = getMissingRoleError('Dropdown', children, TOGGLE_ROLE, MENU_ROLE); - if (elementProps.href) { - return this.renderAnchor(elementProps, fullClassName); + if (missingRoleError) { + false ? 0 : void 0; } - return this.renderButton(elementProps, fullClassName); - }; - - return Button; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Button.propTypes = Button_propTypes; -Button.defaultProps = Button_defaultProps; -/* harmony default export */ const src_Button = (bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button)))); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js -var lib_all = __webpack_require__(3526); -var all_default = /*#__PURE__*/__webpack_require__.n(lib_all); -;// ./src/ButtonGroup.js - - - -var ButtonGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonGroup.js"; - + var duplicateRoleError = getDuplicateRoleError('Dropdown', children, MENU_ROLE); + if (duplicateRoleError) { + false ? 0 : void 0; + } + var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); + if (dropup) { + classes[bsClass] = false; + classes.dropup = true; + } // This intentionally forwards bsSize and bsStyle (if set) to the + // underlying component, to allow it to render size and style variants. -var ButtonGroup_propTypes = { - vertical: (prop_types_default()).bool, - justified: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { + ref: this.containerRef, + style: { + display: 'contents' + }, + __source: { + fileName: Dropdown_jsxFileName, + lineNumber: 327 + }, + __self: this + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + className: classnames_default()(className, classes), + __source: { + fileName: Dropdown_jsxFileName, + lineNumber: 328 + }, + __self: this + }), ValidComponentChildren.map(children, function (child) { + switch (child.props.bsRole) { + case TOGGLE_ROLE: + return _this3.renderToggle(child, { + id: id, + disabled: disabled, + open: open, + role: role, + bsClass: bsClass + }); - /** - * Display block buttons; only useful when used with the "vertical" prop. - * @type {bool} - */ - block: all_default()((prop_types_default()).bool, function (_ref) { - var block = _ref.block, - vertical = _ref.vertical; - return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null; - }) -}; -var ButtonGroup_defaultProps = { - block: false, - justified: false, - vertical: false -}; + case MENU_ROLE: + return _this3.renderMenu(child, { + id: id, + open: open, + pullRight: pullRight, + bsClass: bsClass, + onSelect: onSelect, + rootCloseEvent: rootCloseEvent + }); -var ButtonGroup = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(ButtonGroup, _React$Component); + default: + return child; + } + }))); + }; - function ButtonGroup() { - return _React$Component.apply(this, arguments) || this; - } + return Dropdown; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var _proto = ButtonGroup.prototype; +Dropdown.propTypes = Dropdown_propTypes; +Dropdown.defaultProps = Dropdown_defaultProps; +bsClass('dropdown', Dropdown); +var UncontrolledDropdown = uncontrollable_default()(Dropdown, { + open: 'onToggle' +}); +UncontrolledDropdown.Toggle = src_DropdownToggle; +UncontrolledDropdown.Menu = src_DropdownMenu; +/* harmony default export */ const src_Dropdown = (UncontrolledDropdown); +;// ./src/utils/splitComponentProps.js - _proto.render = function render() { - var _extends2; +function splitComponentProps(props, Component) { + var componentPropTypes = Component.propTypes; + var parentProps = {}; + var childProps = {}; - var _this$props = this.props, - block = _this$props.block, - justified = _this$props.justified, - vertical = _this$props.vertical, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]); + entries_default()(props).forEach(function (_ref) { + var propName = _ref[0], + propValue = _ref[1]; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + if (componentPropTypes[propName]) { + parentProps[propName] = propValue; + } else { + childProps[propName] = propValue; + } + }); - 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)); + return [parentProps, childProps]; +} +;// ./src/DropdownButton.js - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - className: classnames_default()(className, classes), - __source: { - fileName: ButtonGroup_jsxFileName, - lineNumber: 52 - }, - __self: this - })); - }; - return ButtonGroup; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -ButtonGroup.propTypes = ButtonGroup_propTypes; -ButtonGroup.defaultProps = ButtonGroup_defaultProps; -/* harmony default export */ const src_ButtonGroup = (bsClass('btn-group', ButtonGroup)); -;// ./src/ButtonToolbar.js +var DropdownButton_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownButton.js"; -var ButtonToolbar_jsxFileName = "/Users/harrison/react-bootstrap/src/ButtonToolbar.js"; +var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, { + // Toggle props. + bsStyle: (prop_types_default()).string, + bsSize: (prop_types_default()).string, + title: (prop_types_default()).node.isRequired, + noCaret: (prop_types_default()).bool, + // Override generated docs from . + /** + * @private + */ + children: (prop_types_default()).node +}); -var ButtonToolbar = +var DropdownButton = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(ButtonToolbar, _React$Component); + _inheritsLoose(DropdownButton, _React$Component); - function ButtonToolbar() { + function DropdownButton() { return _React$Component.apply(this, arguments) || this; } - var _proto = ButtonToolbar.prototype; + var _proto = DropdownButton.prototype; _proto.render = function render() { var _this$props = this.props, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + bsSize = _this$props.bsSize, + bsStyle = _this$props.bsStyle, + title = _this$props.title, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "children"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent), + dropdownProps = _splitComponentProps[0], + toggleProps = _splitComponentProps[1]; - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { - role: "toolbar", - className: classnames_default()(className, classes), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown, _extends({}, dropdownProps, { + bsSize: bsSize, + bsStyle: bsStyle, __source: { - fileName: ButtonToolbar_jsxFileName, - lineNumber: 14 + fileName: DropdownButton_jsxFileName, + lineNumber: 33 }, __self: this - })); + }), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Toggle, _extends({}, toggleProps, { + bsSize: bsSize, + bsStyle: bsStyle, + __source: { + fileName: DropdownButton_jsxFileName, + lineNumber: 34 + }, + __self: this + }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Menu, { + __source: { + fileName: DropdownButton_jsxFileName, + lineNumber: 38 + }, + __self: this + }, children)); }; - return ButtonToolbar; + return DropdownButton; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -/* harmony default export */ const src_ButtonToolbar = (bsClass('btn-toolbar', ButtonToolbar)); -;// ./src/CarouselCaption.js - - - -var CarouselCaption_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselCaption.js"; - +DropdownButton.propTypes = DropdownButton_propTypes; +/* harmony default export */ const src_DropdownButton = (DropdownButton); +;// ./src/Fade.js -var CarouselCaption_propTypes = { - componentClass: (elementType_default()) -}; -var CarouselCaption_defaultProps = { - componentClass: 'div' -}; +var _fadeStyles, + Fade_jsxFileName = "/Users/harrison/react-bootstrap/src/Fade.js"; -var CarouselCaption = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CarouselCaption, _React$Component); - function CarouselCaption() { - return _React$Component.apply(this, arguments) || this; - } - var _proto = CarouselCaption.prototype; - _proto.render = function render() { - var _this$props = this.props, - Component = _this$props.componentClass, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - var classes = getClassSet(bsProps); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - className: classnames_default()(className, classes), - __source: { - fileName: CarouselCaption_jsxFileName, - lineNumber: 23 - }, - __self: this - })); - }; - return CarouselCaption; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +var Fade_propTypes = { + /** + * Show the component; triggers the fade in or fade out animation + */ + in: (prop_types_default()).bool, -CarouselCaption.propTypes = CarouselCaption_propTypes; -CarouselCaption.defaultProps = CarouselCaption_defaultProps; -/* harmony default export */ const src_CarouselCaption = (bsClass('carousel-caption', CarouselCaption)); -// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} -var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(6003); -var 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_); -// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js -var transition = __webpack_require__(1685); -;// ./src/CarouselItem.js + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: (prop_types_default()).bool, + /** + * Unmount the component (remove it from the DOM) when it is faded out + */ + unmountOnExit: (prop_types_default()).bool, + /** + * Run the fade in animation when the component mounts, if it is initially + * shown + */ + appear: (prop_types_default()).bool, + /** + * Duration of the fade animation in milliseconds, to ensure that finishing + * callbacks are fired even if the original browser transition end events are + * canceled + */ + timeout: (prop_types_default()).number, -var CarouselItem_jsxFileName = "/Users/harrison/react-bootstrap/src/CarouselItem.js"; + /** + * Callback fired before the component fades in + */ + onEnter: (prop_types_default()).func, + /** + * Callback fired after the component starts to fade in + */ + onEntering: (prop_types_default()).func, + /** + * Callback fired after the has component faded in + */ + onEntered: (prop_types_default()).func, + /** + * Callback fired before the component fades out + */ + onExit: (prop_types_default()).func, + /** + * Callback fired after the component starts to fade out + */ + onExiting: (prop_types_default()).func, -var CarouselItem_propTypes = { - direction: prop_types_default().oneOf(['prev', 'next']), - onAnimateOutEnd: (prop_types_default()).func, - active: (prop_types_default()).bool, - animateIn: (prop_types_default()).bool, - animateOut: (prop_types_default()).bool, - index: (prop_types_default()).number -}; -var CarouselItem_defaultProps = { - active: false, - animateIn: false, - animateOut: false + /** + * Callback fired after the component has faded out + */ + onExited: (prop_types_default()).func }; +var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'in', _fadeStyles[ENTERED] = 'in', _fadeStyles); +var Fade = external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (_ref, ref) { + var className = _ref.className, + children = _ref.children, + _ref$in = _ref.in, + inProp = _ref$in === void 0 ? false : _ref$in, + _ref$timeout = _ref.timeout, + timeout = _ref$timeout === void 0 ? 300 : _ref$timeout, + _ref$mountOnEnter = _ref.mountOnEnter, + mountOnEnter = _ref$mountOnEnter === void 0 ? false : _ref$mountOnEnter, + _ref$unmountOnExit = _ref.unmountOnExit, + unmountOnExit = _ref$unmountOnExit === void 0 ? false : _ref$unmountOnExit, + _ref$appear = _ref.appear, + appear = _ref$appear === void 0 ? false : _ref$appear, + onEnter = _ref.onEnter, + onEntering = _ref.onEntering, + onEntered = _ref.onEntered, + onExit = _ref.onExit, + onExiting = _ref.onExiting, + onExited = _ref.onExited, + props = _objectWithoutPropertiesLoose(_ref, ["className", "children", "in", "timeout", "mountOnEnter", "unmountOnExit", "appear", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"]); + + var childRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null); + var setChildRef = useMergedRef([childRef, getElementRef(children), ref]); // Transition doesn't pass the node as the first parameter of these callbacks when nodeRef is used, + // so we add that ourselves to keep the API for Fade consistent + + var callbacks = { + onEnter: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEnter, childRef); + }, [onEnter]), + onEntering: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEntering, childRef); + }, [onEntering]), + onEntered: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onEntered, childRef); + }, [onEntered]), + onExit: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExit, childRef); + }, [onExit]), + onExiting: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExiting, childRef); + }, [onExiting]), + onExited: (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () { + return withRef(onExited, childRef); + }, [onExited]) + }; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(esm_Transition, _extends({}, props, callbacks, { + in: inProp, + timeout: timeout, + mountOnEnter: mountOnEnter, + unmountOnExit: unmountOnExit, + appear: appear, + nodeRef: childRef, + __source: { + fileName: Fade_jsxFileName, + lineNumber: 107 + }, + __self: this + }), function (status, innerProps) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { + ref: setChildRef, + className: classnames_default()('fade', className, children.props.className, fadeStyles[status]) + })); + }); +}); +Fade.displayName = 'Fade'; +Fade.propTypes = Fade_propTypes; +/* harmony default export */ const src_Fade = (Fade); +;// ./src/Form.js -var CarouselItem = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(CarouselItem, _React$Component); - - function CarouselItem(props, context) { - var _this; - - _this = _React$Component.call(this, props, context) || this; - _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.state = { - direction: null - }; - _this.isUnmounted = false; - return _this; - } - - var _proto = CarouselItem.prototype; - - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - if (this.props.active !== nextProps.active) { - this.setState({ - direction: null - }); - } - }; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var _this2 = this; - - var active = this.props.active; - var prevActive = prevProps.active; - if (!active && prevActive) { - transition/* default.end */.Ay.end(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this), this.handleAnimateOutEnd); - } - if (active !== prevActive) { - setTimeout(function () { - return _this2.startAnimation(); - }, 20); - } - }; +var Form_jsxFileName = "/Users/harrison/react-bootstrap/src/Form.js"; - _proto.componentWillUnmount = function componentWillUnmount() { - this.isUnmounted = true; - }; - _proto.handleAnimateOutEnd = function handleAnimateOutEnd() { - if (this.isUnmounted) { - return; - } - if (this.props.onAnimateOutEnd) { - this.props.onAnimateOutEnd(this.props.index); - } - }; - _proto.startAnimation = function startAnimation() { - if (this.isUnmounted) { - return; - } - this.setState({ - direction: this.props.direction === 'prev' ? 'right' : 'left' - }); - }; +var Form_propTypes = { + horizontal: (prop_types_default()).bool, + inline: (prop_types_default()).bool, + componentClass: (elementType_default()) +}; +var Form_defaultProps = { + horizontal: false, + inline: false, + componentClass: 'form' +}; + +var Form = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Form, _React$Component); + + function Form() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = Form.prototype; _proto.render = function render() { var _this$props = this.props, - direction = _this$props.direction, - active = _this$props.active, - animateIn = _this$props.animateIn, - animateOut = _this$props.animateOut, + horizontal = _this$props.horizontal, + inline = _this$props.inline, + Component = _this$props.componentClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["horizontal", "inline", "componentClass", "className"]); - delete props.onAnimateOutEnd; - delete props.index; - var classes = { - item: true, - active: active && !animateIn || animateOut - }; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - if (direction && active && animateIn) { - classes[direction] = true; + var classes = []; + + if (horizontal) { + classes.push(prefix(bsProps, 'horizontal')); } - if (this.state.direction && (animateIn || animateOut)) { - classes[this.state.direction] = true; + if (inline) { + classes.push(prefix(bsProps, 'inline')); } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, props, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: CarouselItem_jsxFileName, - lineNumber: 102 + fileName: Form_jsxFileName, + lineNumber: 41 }, __self: this })); }; - return CarouselItem; + return Form; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -CarouselItem.propTypes = CarouselItem_propTypes; -CarouselItem.defaultProps = CarouselItem_defaultProps; -/* harmony default export */ const src_CarouselItem = (CarouselItem); -;// ./src/Glyphicon.js +Form.propTypes = Form_propTypes; +Form.defaultProps = Form_defaultProps; +/* harmony default export */ const src_Form = (bsClass('form', Form)); +;// ./src/FormControlFeedback.js -var Glyphicon_jsxFileName = "/Users/harrison/react-bootstrap/src/Glyphicon.js"; +var FormControlFeedback_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlFeedback.js"; -var Glyphicon_propTypes = { - /** - * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons - */ - glyph: (prop_types_default()).string.isRequired + +var FormControlFeedback_defaultProps = { + bsRole: 'feedback' }; -var Glyphicon = +var FormControlFeedback = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Glyphicon, _React$Component); + _inheritsLoose(FormControlFeedback, _React$Component); - function Glyphicon() { + function FormControlFeedback() { return _React$Component.apply(this, arguments) || this; } - var _proto = Glyphicon.prototype; + var _proto = FormControlFeedback.prototype; - _proto.render = function render() { - var _extends2; + _proto.getGlyph = function getGlyph(validationState) { + switch (validationState) { + case 'success': + return 'ok'; - var _this$props = this.props, - glyph = _this$props.glyph, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]); + case 'warning': + return 'warning-sign'; - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + case 'error': + return 'remove'; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2)); + default: + return null; + } + }; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + _proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) { + var glyph = this.getGlyph(formGroup && formGroup.validationState); + + if (!glyph) { + return null; + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, _extends({}, elementProps, { + glyph: glyph, className: classnames_default()(className, classes), __source: { - fileName: Glyphicon_jsxFileName, - lineNumber: 30 + fileName: FormControlFeedback_jsxFileName, + lineNumber: 33 }, __self: this })); }; - return Glyphicon; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); -Glyphicon.propTypes = Glyphicon_propTypes; -/* harmony default export */ const src_Glyphicon = (bsClass('glyphicon', Glyphicon)); -;// ./src/Carousel.js + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + var classes = getClassSet(bsProps); + if (!children) { + return this.renderDefaultFeedback(this.context, className, classes, elementProps); + } + var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(children); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, _extends({}, elementProps, { + className: classnames_default()(child.props.className, className, classes) + })); + }; -var Carousel_jsxFileName = "/Users/harrison/react-bootstrap/src/Carousel.js"; + return FormControlFeedback; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +FormControlFeedback.defaultProps = FormControlFeedback_defaultProps; +FormControlFeedback.contextType = src_FormGroupContext; +/* harmony default export */ const src_FormControlFeedback = (bsClass('form-control-feedback', FormControlFeedback)); +;// ./src/FormControlStatic.js +var FormControlStatic_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlStatic.js"; - // TODO: `slide` should be `animate`. -// TODO: Use uncontrollable. +var FormControlStatic_propTypes = { + componentClass: (elementType_default()) +}; +var FormControlStatic_defaultProps = { + componentClass: 'p' +}; -var Carousel_propTypes = { - slide: (prop_types_default()).bool, - indicators: (prop_types_default()).bool, +var FormControlStatic = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormControlStatic, _React$Component); - /** - * The amount of time to delay between automatically cycling an item. - * If `null`, carousel will not automatically cycle. - */ - interval: (prop_types_default()).number, - controls: (prop_types_default()).bool, - pauseOnHover: (prop_types_default()).bool, - wrap: (prop_types_default()).bool, + function FormControlStatic() { + return _React$Component.apply(this, arguments) || this; + } - /** - * Callback fired when the active item changes. - * - * ```js - * (eventKey: any, ?event: Object) => any - * ``` - * - * If this callback takes two or more arguments, the second argument will - * be a persisted event object with `direction` set to the direction of the - * transition. - */ - onSelect: (prop_types_default()).func, - onSlideEnd: (prop_types_default()).func, - activeIndex: (prop_types_default()).number, - defaultActiveIndex: (prop_types_default()).number, - direction: prop_types_default().oneOf(['prev', 'next']), - prevIcon: (prop_types_default()).node, + var _proto = FormControlStatic.prototype; - /** - * Label shown to screen readers only, can be used to show the previous element - * in the carousel. - * Set to null to deactivate. - */ - prevLabel: (prop_types_default()).string, - nextIcon: (prop_types_default()).node, + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - /** - * Label shown to screen readers only, can be used to show the next element - * in the carousel. - * Set to null to deactivate. - */ - nextLabel: (prop_types_default()).string -}; -var Carousel_defaultProps = { - slide: true, - interval: 5000, - pauseOnHover: true, - wrap: true, - indicators: true, - controls: true, - prevIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { - glyph: "chevron-left", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 71 - }, - __self: undefined - }), - prevLabel: 'Previous', - nextIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Glyphicon, { - glyph: "chevron-right", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 73 - }, - __self: undefined - }), - nextLabel: 'Next' -}; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: FormControlStatic_jsxFileName, + lineNumber: 23 + }, + __self: this + })); + }; -var Carousel = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Carousel, _React$Component); + return FormControlStatic; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - function Carousel(props, context) { - var _this; +FormControlStatic.propTypes = FormControlStatic_propTypes; +FormControlStatic.defaultProps = FormControlStatic_defaultProps; +/* harmony default export */ const src_FormControlStatic = (bsClass('form-control-static', FormControlStatic)); +;// ./src/FormControl.js - _this = _React$Component.call(this, props, context) || this; - _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))); - var defaultActiveIndex = props.defaultActiveIndex; - _this.state = { - activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, - previousActiveIndex: null, - direction: null - }; - _this.isUnmounted = false; - return _this; - } - var _proto = Carousel.prototype; - _proto.componentDidMount = function componentDidMount() { - this.waitForNext(); - }; +var FormControl_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControl.js"; - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - var activeIndex = this.getActiveIndex(); - if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { - clearTimeout(this.timeout); - this.setState({ - previousActiveIndex: activeIndex, - direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) - }); - } - if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) { - this.setState({ - activeIndex: 0, - previousActiveIndex: null, - direction: null - }); - } - }; - _proto.UNSAFE_componentWillUnmount = function UNSAFE_componentWillUnmount() { - clearTimeout(this.timeout); - this.isUnmounted = true; - }; - _proto.getActiveIndex = function getActiveIndex() { - var activeIndexProp = this.props.activeIndex; - return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; - }; - _proto.getDirection = function getDirection(prevIndex, index) { - if (prevIndex === index) { - return null; - } - return prevIndex > index ? 'prev' : 'next'; - }; - _proto.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { - var _this2 = this; - this.setState({ - previousActiveIndex: null, - direction: null - }, function () { - _this2.waitForNext(); - if (_this2.props.onSlideEnd) { - _this2.props.onSlideEnd(); - } - }); - }; +var FormControl_propTypes = { + componentClass: (elementType_default()), - _proto.handleMouseOut = function handleMouseOut() { - if (this.isPaused) { - this.play(); - } - }; + /** + * Only relevant if `componentClass` is `'input'`. + */ + type: (prop_types_default()).string, - _proto.handleMouseOver = function handleMouseOver() { - if (this.props.pauseOnHover) { - this.pause(); - } - }; + /** + * Uses `controlId` from `` if not explicitly specified. + */ + id: (prop_types_default()).string, - _proto.handleNext = function handleNext(e) { - var index = this.getActiveIndex() + 1; - var count = ValidComponentChildren.count(this.props.children); + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: (prop_types_default()).func +}; +var FormControl_defaultProps = { + componentClass: 'input' +}; - if (index > count - 1) { - if (!this.props.wrap) { - return; - } +var FormControl = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormControl, _React$Component); - index = 0; + function FormControl() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = FormControl.prototype; + + _proto.render = function render() { + var formGroup = this.context; + var controlId = formGroup && formGroup.controlId; + + var _this$props = this.props, + Component = _this$props.componentClass, + type = _this$props.type, + _this$props$id = _this$props.id, + id = _this$props$id === void 0 ? controlId : _this$props$id, + inputRef = _this$props.inputRef, + className = _this$props.className, + bsSize = _this$props.bsSize, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "type", "id", "inputRef", "className", "bsSize"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + false ? 0 : void 0; // input[type="file"] should not have .form-control. + + var classes; + + if (type !== 'file') { + classes = getClassSet(bsProps); + } // If user provides a size, make sure to append it to classes as input- + // e.g. if bsSize is small, it will append input-sm + + + if (bsSize) { + var size = SIZE_MAP[bsSize] || bsSize; + classes[prefix({ + bsClass: 'input' + }, size)] = true; } - this.select(index, e, 'next'); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + type: type, + id: id, + ref: inputRef, + className: classnames_default()(className, classes), + __source: { + fileName: FormControl_jsxFileName, + lineNumber: 79 + }, + __self: this + })); }; - _proto.handlePrev = function handlePrev(e) { - var index = this.getActiveIndex() - 1; + return FormControl; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - if (index < 0) { - if (!this.props.wrap) { - return; - } +FormControl.propTypes = FormControl_propTypes; +FormControl.defaultProps = FormControl_defaultProps; +FormControl.contextType = src_FormGroupContext; +FormControl.Feedback = src_FormControlFeedback; +FormControl.Static = src_FormControlStatic; +/* harmony default export */ const src_FormControl = (bsClass('form-control', bsSizes([Size.SMALL, Size.LARGE], FormControl))); +;// ./src/FormGroup.js - index = ValidComponentChildren.count(this.props.children) - 1; - } - this.select(index, e, 'prev'); - }; // This might be a public API. +var FormGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/FormGroup.js"; - _proto.pause = function pause() { - this.isPaused = true; - clearTimeout(this.timeout); - }; // This might be a public API. - _proto.play = function play() { - this.isPaused = false; - this.waitForNext(); - }; - _proto.select = function select(index, e, direction) { - clearTimeout(this.timeout); // TODO: Is this necessary? Seems like the only risk is if the component - // unmounts while handleItemAnimateOutEnd fires. - if (this.isUnmounted) { - return; - } - var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; - direction = direction || this.getDirection(previousActiveIndex, index); - var onSelect = this.props.onSelect; - if (onSelect) { - if (onSelect.length > 1) { - // React SyntheticEvents are pooled, so we need to remove this event - // from the pool to add a custom property. To avoid unnecessarily - // removing objects from the pool, only do this when the listener - // actually wants the event. - if (e) { - e.persist(); - e.direction = direction; - } else { - e = { - direction: direction - }; - } +var FormGroup_propTypes = { + /** + * Sets `id` on `` and `htmlFor` on ``. + */ + controlId: (prop_types_default()).string, + validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]) +}; - onSelect(index, e); - } else { - onSelect(index); - } - } +var FormGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(FormGroup, _React$Component); - if (this.props.activeIndex == null && index !== previousActiveIndex) { - if (this.state.previousActiveIndex != null) { - // If currently animating don't activate the new index. - // TODO: look into queueing this canceled call and - // animating after the current animation has ended. - return; - } + function FormGroup() { + return _React$Component.apply(this, arguments) || this; + } - this.setState({ - activeIndex: index, - previousActiveIndex: previousActiveIndex, - direction: direction - }); - } + var _proto = FormGroup.prototype; + + _proto.hasFeedback = function hasFeedback(children) { + var _this = this; + + return ValidComponentChildren.some(children, function (child) { + return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children); + }); }; - _proto.waitForNext = function waitForNext() { + _proto.render = function render() { var _this$props = this.props, - slide = _this$props.slide, - interval = _this$props.interval, - activeIndexProp = _this$props.activeIndex; + validationState = _this$props.validationState, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["validationState", "className", "children"]); - if (!this.isPaused && slide && interval && activeIndexProp == null) { - this.timeout = setTimeout(this.handleNext, interval); + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['controlId']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + + var classes = _extends({}, getClassSet(bsProps), { + 'has-feedback': this.hasFeedback(children) + }); + + if (validationState) { + classes["has-" + validationState] = true; } - }; - _proto.renderControls = function renderControls(properties) { - var wrap = properties.wrap, - children = properties.children, - activeIndex = properties.activeIndex, - prevIcon = properties.prevIcon, - nextIcon = properties.nextIcon, - bsProps = properties.bsProps, - prevLabel = properties.prevLabel, - nextLabel = properties.nextLabel; - var controlClassName = prefix(bsProps, 'control'); - var count = ValidComponentChildren.count(children); - return [(wrap || activeIndex !== 0) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { - key: "prev", - className: classnames_default()(controlClassName, 'left'), - onClick: this.handlePrev, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 290 - }, - __self: this - }, prevIcon, prevLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 296 + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_FormGroupContext.Provider, { + value: { + controlId: this.props.controlId, + validationState: validationState }, - __self: this - }, prevLabel)), (wrap || activeIndex !== count - 1) && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, { - key: "next", - className: classnames_default()(controlClassName, 'right'), - onClick: this.handleNext, __source: { - fileName: Carousel_jsxFileName, - lineNumber: 301 + fileName: FormGroup_jsxFileName, + lineNumber: 46 }, __self: this - }, nextIcon, nextLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "sr-only", + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Carousel_jsxFileName, - lineNumber: 307 + fileName: FormGroup_jsxFileName, + lineNumber: 49 }, __self: this - }, nextLabel))]; + }), children)); }; - _proto.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { - var _this3 = this; + return FormGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - var indicators = []; - ValidComponentChildren.forEach(children, function (child, index) { - indicators.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { - key: index, - className: index === activeIndex ? 'active' : null, - onClick: function onClick(e) { - return _this3.select(index, e); - }, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 318 - }, - __self: this - }), // Force whitespace between indicator elements. Bootstrap requires - // this for correct spacing of elements. - ' '); - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ol", { - className: prefix(bsProps, 'indicators'), - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 330 - }, - __self: this - }, indicators); - }; +FormGroup.propTypes = FormGroup_propTypes; +/* harmony default export */ const src_FormGroup = (bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup))); +;// ./src/Grid.js - _proto.render = function render() { - var _this4 = this; - var _this$props2 = this.props, - slide = _this$props2.slide, - indicators = _this$props2.indicators, - controls = _this$props2.controls, - wrap = _this$props2.wrap, - prevIcon = _this$props2.prevIcon, - prevLabel = _this$props2.prevLabel, - nextIcon = _this$props2.nextIcon, - nextLabel = _this$props2.nextLabel, - className = _this$props2.className, - children = _this$props2.children, - props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]); - var _this$state = this.state, - previousActiveIndex = _this$state.previousActiveIndex, - direction = _this$state.direction; +var Grid_jsxFileName = "/Users/harrison/react-bootstrap/src/Grid.js"; - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). - 'defaultActiveIndex', 'direction']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; - var activeIndex = this.getActiveIndex(); - var classes = _extends({}, getClassSet(bsProps), { - slide: slide - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + +var Grid_propTypes = { + /** + * Turn any fixed-width grid layout into a full-width layout by this property. + * + * Adds `container-fluid` class. + */ + fluid: (prop_types_default()).bool, + + /** + * You can use a custom element for this component + */ + componentClass: (elementType_default()) +}; +var Grid_defaultProps = { + componentClass: 'div', + fluid: false +}; + +var Grid = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Grid, _React$Component); + + function Grid() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = Grid.prototype; + + _proto.render = function render() { + var _this$props = this.props, + fluid = _this$props.fluid, + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["fluid", "componentClass", "className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = prefix(bsProps, fluid && 'fluid'); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), - onMouseOver: this.handleMouseOver, - onMouseOut: this.handleMouseOut, - __source: { - fileName: Carousel_jsxFileName, - lineNumber: 368 - }, - __self: this - }), indicators && this.renderIndicators(children, activeIndex, bsProps), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { - className: prefix(bsProps, 'inner'), __source: { - fileName: Carousel_jsxFileName, - lineNumber: 376 + fileName: Grid_jsxFileName, + lineNumber: 39 }, __self: this - }, ValidComponentChildren.map(children, function (child, index) { - var active = index === activeIndex; - var previousActive = slide && index === previousActiveIndex; - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { - active: active, - index: index, - animateOut: previousActive, - animateIn: active && previousActiveIndex != null && slide, - direction: direction, - onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null - }); - })), controls && this.renderControls({ - wrap: wrap, - children: children, - activeIndex: activeIndex, - prevIcon: prevIcon, - prevLabel: prevLabel, - nextIcon: nextIcon, - nextLabel: nextLabel, - bsProps: bsProps })); }; - return Carousel; + return Grid; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Carousel.propTypes = Carousel_propTypes; -Carousel.defaultProps = Carousel_defaultProps; -Carousel.Caption = src_CarouselCaption; -Carousel.Item = src_CarouselItem; -/* harmony default export */ const src_Carousel = (bsClass('carousel', Carousel)); -// EXTERNAL MODULE: ./node_modules/warning/browser.js -var warning_browser = __webpack_require__(7909); -;// ./src/Checkbox.js +Grid.propTypes = Grid_propTypes; +Grid.defaultProps = Grid_defaultProps; +/* harmony default export */ const src_Grid = (bsClass('container', Grid)); +;// ./src/HelpBlock.js + + + +var HelpBlock_jsxFileName = "/Users/harrison/react-bootstrap/src/HelpBlock.js"; + + + + +var HelpBlock = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(HelpBlock, _React$Component); + + function HelpBlock() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = HelpBlock.prototype; + + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: HelpBlock_jsxFileName, + lineNumber: 14 + }, + __self: this + })); + }; + return HelpBlock; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); +/* harmony default export */ const src_HelpBlock = (bsClass('help-block', HelpBlock)); +;// ./src/Image.js -var Checkbox_jsxFileName = "/Users/harrison/react-bootstrap/src/Checkbox.js"; -/* eslint-disable jsx-a11y/label-has-for */ +var Image_jsxFileName = "/Users/harrison/react-bootstrap/src/Image.js"; -var Checkbox_propTypes = { - inline: (prop_types_default()).bool, - disabled: (prop_types_default()).bool, - title: (prop_types_default()).string, +var Image_propTypes = { + /** + * Sets image as responsive image + */ + responsive: (prop_types_default()).bool, /** - * Only valid if `inline` is not set. + * Sets image shape as rounded */ - validationState: prop_types_default().oneOf(['success', 'warning', 'error', null]), + rounded: (prop_types_default()).bool, /** - * Attaches a ref to the `` element. Only functions can be used here. - * - * ```js - * { this.input = ref; }} /> - * ``` + * Sets image shape as circle */ - inputRef: (prop_types_default()).func + circle: (prop_types_default()).bool, + + /** + * Sets image shape as thumbnail + */ + thumbnail: (prop_types_default()).bool }; -var Checkbox_defaultProps = { - inline: false, - disabled: false, - title: '' +var Image_defaultProps = { + responsive: false, + rounded: false, + circle: false, + thumbnail: false }; -var Checkbox = +var Image = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Checkbox, _React$Component); + _inheritsLoose(Image, _React$Component); - function Checkbox() { + function Image() { return _React$Component.apply(this, arguments) || this; } - var _proto = Checkbox.prototype; + var _proto = Image.prototype; _proto.render = function render() { + var _classes; + var _this$props = this.props, - inline = _this$props.inline, - disabled = _this$props.disabled, - validationState = _this$props.validationState, - inputRef = _this$props.inputRef, + responsive = _this$props.responsive, + rounded = _this$props.rounded, + circle = _this$props.circle, + thumbnail = _this$props.thumbnail, className = _this$props.className, - style = _this$props.style, - title = _this$props.title, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["responsive", "rounded", "circle", "thumbnail", "className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; - var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", _extends({}, elementProps, { - ref: inputRef, - type: "checkbox", - disabled: disabled, + var classes = (_classes = {}, _classes[prefix(bsProps, 'responsive')] = responsive, _classes[prefix(bsProps, 'rounded')] = rounded, _classes[prefix(bsProps, 'circle')] = circle, _classes[prefix(bsProps, 'thumbnail')] = thumbnail, _classes); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Checkbox_jsxFileName, + fileName: Image_jsxFileName, lineNumber: 56 }, __self: this })); - - if (inline) { - var _classes2; - - var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking - // generated documentation. - - - false ? 0 : void 0; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { - className: classnames_default()(className, _classes), - style: style, - title: title, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 80 - }, - __self: this - }, input, children); - } - - var classes = _extends({}, getClassSet(bsProps), { - disabled: disabled - }); - - if (validationState) { - classes["has-" + validationState] = true; - } - - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", { - className: classnames_default()(className, classes), - style: style, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 100 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", { - title: title, - __source: { - fileName: Checkbox_jsxFileName, - lineNumber: 101 - }, - __self: this - }, input, children)); }; - return Checkbox; + return Image; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Checkbox.propTypes = Checkbox_propTypes; -Checkbox.defaultProps = Checkbox_defaultProps; -/* harmony default export */ const src_Checkbox = (bsClass('checkbox', Checkbox)); -;// ./src/utils/capitalize.js -function capitalize(string) { - return "" + string.charAt(0).toUpperCase() + string.slice(1); -} -;// ./src/Clearfix.js - - - -var Clearfix_jsxFileName = "/Users/harrison/react-bootstrap/src/Clearfix.js"; - - - - - +Image.propTypes = Image_propTypes; +Image.defaultProps = Image_defaultProps; +/* harmony default export */ const src_Image = (bsClass('img', Image)); +;// ./src/InputGroupAddon.js -var Clearfix_propTypes = { - componentClass: (elementType_default()), - /** - * Apply clearfix - * - * on Extra small devices Phones - * - * adds class `visible-xs-block` - */ - visibleXsBlock: (prop_types_default()).bool, +var InputGroupAddon_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroupAddon.js"; - /** - * Apply clearfix - * - * on Small devices Tablets - * - * adds class `visible-sm-block` - */ - visibleSmBlock: (prop_types_default()).bool, - /** - * Apply clearfix - * - * on Medium devices Desktops - * - * adds class `visible-md-block` - */ - visibleMdBlock: (prop_types_default()).bool, - /** - * Apply clearfix - * - * on Large devices Desktops - * - * adds class `visible-lg-block` - */ - visibleLgBlock: (prop_types_default()).bool -}; -var Clearfix_defaultProps = { - componentClass: 'div' -}; -var Clearfix = +var InputGroupAddon = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Clearfix, _React$Component); + _inheritsLoose(InputGroupAddon, _React$Component); - function Clearfix() { + function InputGroupAddon() { return _React$Component.apply(this, arguments) || this; } - var _proto = Clearfix.prototype; + var _proto = InputGroupAddon.prototype; _proto.render = function render() { var _this$props = this.props, - Component = _this$props.componentClass, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; var classes = getClassSet(bsProps); - DEVICE_SIZES.forEach(function (size) { - var propName = "visible" + capitalize(size) + "Block"; - - if (elementProps[propName]) { - classes["visible-" + size + "-block"] = true; - } - - delete elementProps[propName]; - }); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Clearfix_jsxFileName, - lineNumber: 68 + fileName: InputGroupAddon_jsxFileName, + lineNumber: 14 }, __self: this })); }; - return Clearfix; + return InputGroupAddon; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Clearfix.propTypes = Clearfix_propTypes; -Clearfix.defaultProps = Clearfix_defaultProps; -/* harmony default export */ const src_Clearfix = (bsClass('clearfix', Clearfix)); -;// ./src/ControlLabel.js - - +/* harmony default export */ const src_InputGroupAddon = (bsClass('input-group-addon', InputGroupAddon)); +;// ./src/InputGroupButton.js -var ControlLabel_jsxFileName = "/Users/harrison/react-bootstrap/src/ControlLabel.js"; +var InputGroupButton_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroupButton.js"; -var ControlLabel_propTypes = { - /** - * Uses `controlId` from `` if not explicitly specified. - */ - htmlFor: (prop_types_default()).string, - srOnly: (prop_types_default()).bool -}; -var ControlLabel_defaultProps = { - srOnly: false -}; -var contextTypes = { - $bs_formGroup: (prop_types_default()).object -}; -var ControlLabel = +var InputGroupButton = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(ControlLabel, _React$Component); + _inheritsLoose(InputGroupButton, _React$Component); - function ControlLabel() { + function InputGroupButton() { return _React$Component.apply(this, arguments) || this; } - var _proto = ControlLabel.prototype; + var _proto = InputGroupButton.prototype; _proto.render = function render() { - var formGroup = this.context.$bs_formGroup; - var controlId = formGroup && formGroup.controlId; - var _this$props = this.props, - _this$props$htmlFor = _this$props.htmlFor, - htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor, - srOnly = _this$props.srOnly, className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]); + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); var _splitBsProps = splitBsProps(props), bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; - - false ? 0 : void 0; - - var classes = _extends({}, getClassSet(bsProps), { - 'sr-only': srOnly - }); + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", _extends({}, elementProps, { - htmlFor: htmlFor, + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: ControlLabel_jsxFileName, - lineNumber: 43 + fileName: InputGroupButton_jsxFileName, + lineNumber: 14 }, __self: this })); }; - return ControlLabel; + return InputGroupButton; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -ControlLabel.propTypes = ControlLabel_propTypes; -ControlLabel.defaultProps = ControlLabel_defaultProps; -ControlLabel.contextTypes = contextTypes; -/* harmony default export */ const src_ControlLabel = (bsClass('control-label', ControlLabel)); -;// ./src/Col.js - - - -var Col_jsxFileName = "/Users/harrison/react-bootstrap/src/Col.js"; - - +/* harmony default export */ const src_InputGroupButton = (bsClass('input-group-btn', InputGroupButton)); +;// ./src/InputGroup.js +var InputGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/InputGroup.js"; -var Col_propTypes = { - componentClass: (elementType_default()), - /** - * The number of columns you wish to span - * - * for Extra small devices Phones (<768px) - * - * class-prefix `col-xs-` - */ - xs: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Small devices Tablets (≥768px) - * - * class-prefix `col-sm-` - */ - sm: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Medium devices Desktops (≥992px) - * - * class-prefix `col-md-` - */ - md: (prop_types_default()).number, - /** - * The number of columns you wish to span - * - * for Large devices Desktops (≥1200px) - * - * class-prefix `col-lg-` - */ - lg: (prop_types_default()).number, - /** - * Hide column - * - * on Extra small devices Phones - * - * adds class `hidden-xs` - */ - xsHidden: (prop_types_default()).bool, - /** - * Hide column - * - * on Small devices Tablets - * - * adds class `hidden-sm` - */ - smHidden: (prop_types_default()).bool, +var InputGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(InputGroup, _React$Component); - /** - * Hide column - * - * on Medium devices Desktops - * - * adds class `hidden-md` - */ - mdHidden: (prop_types_default()).bool, + function InputGroup() { + return _React$Component.apply(this, arguments) || this; + } - /** - * Hide column - * - * on Large devices Desktops - * - * adds class `hidden-lg` - */ - lgHidden: (prop_types_default()).bool, + var _proto = InputGroup.prototype; - /** - * Move columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-offset-` - */ - xsOffset: (prop_types_default()).number, + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); - /** - * Move columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-offset-` - */ - smOffset: (prop_types_default()).number, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * Move columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-offset-` - */ - mdOffset: (prop_types_default()).number, + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: InputGroup_jsxFileName, + lineNumber: 22 + }, + __self: this + })); + }; - /** - * Move columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-offset-` - */ - lgOffset: (prop_types_default()).number, + return InputGroup; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Change the order of grid columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-push-` - */ - xsPush: (prop_types_default()).number, +InputGroup.Addon = src_InputGroupAddon; +InputGroup.Button = src_InputGroupButton; +/* harmony default export */ const src_InputGroup = (bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup))); +;// ./src/Jumbotron.js - /** - * Change the order of grid columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-push-` - */ - smPush: (prop_types_default()).number, - /** - * Change the order of grid columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-push-` - */ - mdPush: (prop_types_default()).number, - /** - * Change the order of grid columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-push-` - */ - lgPush: (prop_types_default()).number, +var Jumbotron_jsxFileName = "/Users/harrison/react-bootstrap/src/Jumbotron.js"; - /** - * Change the order of grid columns to the left - * - * for Extra small devices Phones - * - * class-prefix `col-xs-pull-` - */ - xsPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Small devices Tablets - * - * class-prefix `col-sm-pull-` - */ - smPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Medium devices Desktops - * - * class-prefix `col-md-pull-` - */ - mdPull: (prop_types_default()).number, - /** - * Change the order of grid columns to the left - * - * for Large devices Desktops - * - * class-prefix `col-lg-pull-` - */ - lgPull: (prop_types_default()).number +var Jumbotron_propTypes = { + componentClass: (elementType_default()) }; -var Col_defaultProps = { +var Jumbotron_defaultProps = { componentClass: 'div' }; -var Col = +var Jumbotron = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Col, _React$Component); + _inheritsLoose(Jumbotron, _React$Component); - function Col() { + function Jumbotron() { return _React$Component.apply(this, arguments) || this; } - var _proto = Col.prototype; + var _proto = Jumbotron.prototype; _proto.render = function render() { var _this$props = this.props, @@ -9842,1883 +9386,2187 @@ function (_React$Component) { bsProps = _splitBsProps[0], elementProps = _splitBsProps[1]; - var classes = []; - DEVICE_SIZES.forEach(function (size) { - function popProp(propSuffix, modifier) { - var propName = "" + size + propSuffix; - var propValue = elementProps[propName]; - - if (propValue != null) { - classes.push(prefix(bsProps, "" + size + modifier + "-" + propValue)); - } - - delete elementProps[propName]; - } - - popProp('', ''); - popProp('Offset', '-offset'); - popProp('Push', '-push'); - popProp('Pull', '-pull'); - var hiddenPropName = size + "Hidden"; - - if (elementProps[hiddenPropName]) { - classes.push("hidden-" + size); - } - - delete elementProps[hiddenPropName]; - }); + var classes = getClassSet(bsProps); return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Col_jsxFileName, - lineNumber: 210 + fileName: Jumbotron_jsxFileName, + lineNumber: 23 }, __self: this })); }; - return Col; + return Jumbotron; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Col.propTypes = Col_propTypes; -Col.defaultProps = Col_defaultProps; -/* harmony default export */ const src_Col = (bsClass('col', Col)); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js -var parse_int = __webpack_require__(7222); -var parse_int_default = /*#__PURE__*/__webpack_require__.n(parse_int); -// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js -var style = __webpack_require__(7735); -var style_default = /*#__PURE__*/__webpack_require__.n(style); -// EXTERNAL MODULE: ./node_modules/react-transition-group/Transition.js -var Transition = __webpack_require__(1485); -;// ./src/Collapse.js - +Jumbotron.propTypes = Jumbotron_propTypes; +Jumbotron.defaultProps = Jumbotron_defaultProps; +/* harmony default export */ const src_Jumbotron = (bsClass('jumbotron', Jumbotron)); +;// ./src/Label.js -var _collapseStyles, - Collapse_jsxFileName = "/Users/harrison/react-bootstrap/src/Collapse.js"; +var Label_jsxFileName = "/Users/harrison/react-bootstrap/src/Label.js"; +var Label = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(Label, _React$Component); + function Label() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = Label.prototype; -var MARGINS = { - height: ['marginTop', 'marginBottom'], - width: ['marginLeft', 'marginRight'] -}; // reading a dimension prop will cause the browser to recalculate, -// which will let our animations work + _proto.hasContent = function hasContent(children) { + var result = false; + external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.forEach(children, function (child) { + if (result) { + return; + } -function triggerBrowserReflow(node) { - node.offsetHeight; // eslint-disable-line no-unused-expressions -} + if (child || child === 0) { + result = true; + } + }); + return result; + }; -function getDimensionValue(dimension, elem) { - var value = elem["offset" + capitalize(dimension)]; - var margins = MARGINS[dimension]; - return value + parse_int_default()(style_default()(elem, margins[0]), 10) + parse_int_default()(style_default()(elem, margins[1]), 10); -} + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); -var collapseStyles = (_collapseStyles = {}, _collapseStyles[Transition/* EXITED */.kp] = 'collapse', _collapseStyles[Transition/* EXITING */.ze] = 'collapsing', _collapseStyles[Transition/* ENTERING */.ns] = 'collapsing', _collapseStyles[Transition/* ENTERED */._K] = 'collapse in', _collapseStyles); -var Collapse_propTypes = { - /** - * Show the component; triggers the expand or collapse animation - */ - in: (prop_types_default()).bool, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * Wait until the first "enter" transition to mount the component (add it to the DOM) - */ - mountOnEnter: (prop_types_default()).bool, + var classes = _extends({}, getClassSet(bsProps), { + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); - /** - * Unmount the component (remove it from the DOM) when it is collapsed - */ - unmountOnExit: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: Label_jsxFileName, + lineNumber: 41 + }, + __self: this + }), children); + }; - /** - * Run the expand animation when the component mounts, if it is initially - * shown - */ - appear: (prop_types_default()).bool, + return Label; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Duration of the collapse animation in milliseconds, to ensure that - * finishing callbacks are fired even if the original browser transition end - * events are canceled - */ - timeout: (prop_types_default()).number, +/* harmony default export */ const src_Label = (bsClass('label', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Label))); +;// ./src/ListGroupItem.js - /** - * Callback fired before the component expands - */ - onEnter: (prop_types_default()).func, - /** - * Callback fired after the component starts to expand - */ - onEntering: (prop_types_default()).func, - /** - * Callback fired after the component has expanded - */ - onEntered: (prop_types_default()).func, - /** - * Callback fired before the component collapses - */ - onExit: (prop_types_default()).func, +var ListGroupItem_jsxFileName = "/Users/harrison/react-bootstrap/src/ListGroupItem.js"; - /** - * Callback fired after the component starts to collapse - */ - onExiting: (prop_types_default()).func, - /** - * Callback fired after the component has collapsed - */ - onExited: (prop_types_default()).func, - /** - * The dimension used when collapsing, or a function that returns the - * dimension - * - * _Note: Bootstrap only partially supports 'width'! - * You will need to supply your own CSS animation for the `.width` CSS class._ - */ - dimension: prop_types_default().oneOfType([prop_types_default().oneOf(['height', 'width']), (prop_types_default()).func]), - /** - * Function that returns the height or width of the animating DOM node - * - * Allows for providing some custom logic for how much the Collapse component - * should animate in its specified dimension. Called with the current - * dimension prop value and the DOM node. - */ - getDimensionValue: (prop_types_default()).func, - /** - * ARIA role of collapsible element - */ - role: (prop_types_default()).string +var ListGroupItem_propTypes = { + active: (prop_types_default()).any, + disabled: (prop_types_default()).any, + header: (prop_types_default()).node, + listItem: (prop_types_default()).bool, + onClick: (prop_types_default()).func, + href: (prop_types_default()).string, + type: (prop_types_default()).string }; -var Collapse_defaultProps = { - in: false, - timeout: 300, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - dimension: 'height', - getDimensionValue: getDimensionValue +var ListGroupItem_defaultProps = { + listItem: false }; -var Collapse = +var ListGroupItem = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Collapse, _React$Component); + _inheritsLoose(ListGroupItem, _React$Component); + + function ListGroupItem() { + return _React$Component.apply(this, arguments) || this; + } + + var _proto = ListGroupItem.prototype; + + _proto.renderHeader = function renderHeader(header, headingClassName) { + if (external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(header)) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(header, { + className: classnames_default()(header.props.className, headingClassName) + }); + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("h4", { + className: headingClassName, + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 36 + }, + __self: this + }, header); + }; + + _proto.render = function render() { + var _this$props = this.props, + active = _this$props.active, + disabled = _this$props.disabled, + className = _this$props.className, + header = _this$props.header, + listItem = _this$props.listItem, + children = _this$props.children, + props = _objectWithoutPropertiesLoose(_this$props, ["active", "disabled", "className", "header", "listItem", "children"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = _extends({}, getClassSet(bsProps), { + active: active, + disabled: disabled + }); + + var Component; + + if (elementProps.href) { + Component = 'a'; + } else if (elementProps.onClick) { + Component = 'button'; + elementProps.type = elementProps.type || 'button'; + } else if (listItem) { + Component = 'li'; + } else { + Component = 'span'; + } + + elementProps.className = classnames_default()(className, classes); // TODO: Deprecate `header` prop. + + if (header) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 76 + }, + __self: this + }), this.renderHeader(header, prefix(bsProps, 'heading')), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("p", { + className: prefix(bsProps, 'text'), + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 79 + }, + __self: this + }, children)); + } + + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + __source: { + fileName: ListGroupItem_jsxFileName, + lineNumber: 84 + }, + __self: this + }), children); + }; - function Collapse() { - var _this; + return ListGroupItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +ListGroupItem.propTypes = ListGroupItem_propTypes; +ListGroupItem.defaultProps = ListGroupItem_defaultProps; +/* harmony default export */ const src_ListGroupItem = (bsClass('list-group-item', bsStyles(values_default()(State), ListGroupItem))); +;// ./src/ListGroup.js - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.handleEnter = function (elem) { - elem.style[_this.getDimension()] = '0'; - }; - _this.handleEntering = function (elem) { - var dimension = _this.getDimension(); +var ListGroup_jsxFileName = "/Users/harrison/react-bootstrap/src/ListGroup.js"; - elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension); - }; - _this.handleEntered = function (elem) { - elem.style[_this.getDimension()] = null; - }; - _this.handleExit = function (elem) { - var dimension = _this.getDimension(); - elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px"; - triggerBrowserReflow(elem); - }; - _this.handleExiting = function (elem) { - elem.style[_this.getDimension()] = '0'; - }; - return _this; +var ListGroup_propTypes = { + /** + * You can use a custom element type for this component. + * + * If not specified, it will be treated as `'li'` if every child is a + * non-actionable ``, and `'div'` otherwise. + */ + componentClass: (elementType_default()) +}; + +function getDefaultComponent(children) { + if (!children) { + // FIXME: This is the old behavior. Is this right? + return 'div'; } - var _proto = Collapse.prototype; + if (ValidComponentChildren.some(children, function (child) { + return child.type !== src_ListGroupItem || child.props.href || child.props.onClick; + })) { + return 'div'; + } - _proto.getDimension = function getDimension() { - return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; - }; // for testing + return 'ul'; +} +var ListGroup = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(ListGroup, _React$Component); - _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { - return elem["scroll" + capitalize(dimension)] + "px"; - }; - /* -- Expanding -- */ + function ListGroup() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = ListGroup.prototype; _proto.render = function render() { - var _this2 = this; - var _this$props = this.props, - onEnter = _this$props.onEnter, - onEntering = _this$props.onEntering, - onEntered = _this$props.onEntered, - onExit = _this$props.onExit, - onExiting = _this$props.onExiting, - className = _this$props.className, children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]); + _this$props$component = _this$props.componentClass, + Component = _this$props$component === void 0 ? getDefaultComponent(children) : _this$props$component, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["children", "componentClass", "className"]); - delete props.dimension; - delete props.getDimensionValue; - var handleEnter = utils_createChainedFunction(this.handleEnter, onEnter); - var handleEntering = utils_createChainedFunction(this.handleEntering, onEntering); - var handleEntered = utils_createChainedFunction(this.handleEntered, onEntered); - var handleExit = utils_createChainedFunction(this.handleExit, onExit); - var handleExiting = utils_createChainedFunction(this.handleExiting, onExiting); - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Transition/* default */.Ay, _extends({}, props, { - "aria-expanded": props.role ? props.in : null, - onEnter: handleEnter, - onEntering: handleEntering, - onEntered: handleEntered, - onExit: handleExit, - onExiting: handleExiting, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var classes = getClassSet(bsProps); + var useListItem = Component === 'ul' && ValidComponentChildren.every(children, function (child) { + return child.type === src_ListGroupItem; + }); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: Collapse_jsxFileName, - lineNumber: 201 + fileName: ListGroup_jsxFileName, + lineNumber: 59 }, __self: this - }), function (state, innerProps) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { - className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width') - })); - }); + }), useListItem ? ValidComponentChildren.map(children, function (child) { + return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, { + listItem: true + }); + }) : children); }; - return Collapse; + return ListGroup; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Collapse.propTypes = Collapse_propTypes; -Collapse.defaultProps = Collapse_defaultProps; -/* harmony default export */ const src_Collapse = (Collapse); -// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js -var activeElement = __webpack_require__(6335); -var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement); -// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js -var contains = __webpack_require__(6489); -var contains_default = /*#__PURE__*/__webpack_require__.n(contains); -// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js -var isRequiredForA11y = __webpack_require__(8861); -var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y); -// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js -var from = __webpack_require__(6807); -var from_default = /*#__PURE__*/__webpack_require__.n(from); -// EXTERNAL MODULE: ./node_modules/react-overlays/lib/RootCloseWrapper.js -var RootCloseWrapper = __webpack_require__(3029); -var RootCloseWrapper_default = /*#__PURE__*/__webpack_require__.n(RootCloseWrapper); -;// ./src/DropdownMenu.js - - - - +ListGroup.propTypes = ListGroup_propTypes; +/* harmony default export */ const src_ListGroup = (bsClass('list-group', ListGroup)); +;// ./src/MediaBody.js -var DropdownMenu_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownMenu.js"; +var MediaBody_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaBody.js"; -var DropdownMenu_propTypes = { - open: (prop_types_default()).bool, - pullRight: (prop_types_default()).bool, - onClose: (prop_types_default()).func, - labelledBy: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]), - onSelect: (prop_types_default()).func, - rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']) +var MediaBody_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']), + componentClass: (elementType_default()) }; -var DropdownMenu_defaultProps = { - bsRole: 'menu', - pullRight: false +var MediaBody_defaultProps = { + componentClass: 'div' }; -var DropdownMenu = +var MediaBody = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownMenu, _React$Component); - - function DropdownMenu(props) { - var _this; + _inheritsLoose(MediaBody, _React$Component); - _this = _React$Component.call(this, props) || this; - _this.handleRootClose = _this.handleRootClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; + function MediaBody() { + return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownMenu.prototype; - - _proto.getFocusableMenuItems = function getFocusableMenuItems() { - var node = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); - - if (!node) { - return []; - } - - return from_default()(node.querySelectorAll('[tabIndex="-1"]')); - }; - - _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() { - var items = this.getFocusableMenuItems(); - var activeIndex = items.indexOf(document.activeElement); - return { - items: items, - activeIndex: activeIndex - }; - }; - - _proto.focusNext = function focusNext() { - var _this$getItemsAndActi = this.getItemsAndActiveIndex(), - items = _this$getItemsAndActi.items, - activeIndex = _this$getItemsAndActi.activeIndex; - - if (items.length === 0) { - return; - } - - var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; - items[nextIndex].focus(); - }; - - _proto.focusPrevious = function focusPrevious() { - var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(), - items = _this$getItemsAndActi2.items, - activeIndex = _this$getItemsAndActi2.activeIndex; - - if (items.length === 0) { - return; - } - - var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; - items[prevIndex].focus(); - }; - - _proto.handleKeyDown = function handleKeyDown(event) { - switch (event.key) { - case 'ArrowDown': - this.focusNext(); - event.preventDefault(); - break; - - case 'ArrowUp': - this.focusPrevious(); - event.preventDefault(); - break; - - case 'Escape': - case 'Tab': - this.props.onClose(event, { - source: 'keydown' - }); - break; - - default: - } - }; - - _proto.handleRootClose = function handleRootClose(event) { - this.props.onClose(event, { - source: 'rootClose' - }); - }; + var _proto = MediaBody.prototype; _proto.render = function render() { - var _extends2, - _this2 = this; - var _this$props = this.props, - open = _this$props.open, - pullRight = _this$props.pullRight, - labelledBy = _this$props.labelledBy, - onSelect = _this$props.onSelect, + Component = _this$props.componentClass, + align = _this$props.align, className = _this$props.className, - rootCloseEvent = _this$props.rootCloseEvent, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "align", "className"]); - var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']), - bsProps = _splitBsPropsAndOmit[0], - elementProps = _splitBsPropsAndOmit[1]; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2)); + var classes = getClassSet(bsProps); + + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((RootCloseWrapper_default()), { - disabled: !open, - onRootClose: this.handleRootClose, - event: rootCloseEvent, - __source: { - fileName: DropdownMenu_jsxFileName, - lineNumber: 116 - }, - __self: this - }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({}, elementProps, { - role: "menu", + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { className: classnames_default()(className, classes), - "aria-labelledby": labelledBy, __source: { - fileName: DropdownMenu_jsxFileName, - lineNumber: 121 + fileName: MediaBody_jsxFileName, + lineNumber: 45 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, { - onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown), - onSelect: utils_createChainedFunction(child.props.onSelect, onSelect) - }); - }))); + })); }; - return DropdownMenu; + return MediaBody; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownMenu.propTypes = DropdownMenu_propTypes; -DropdownMenu.defaultProps = DropdownMenu_defaultProps; -/* harmony default export */ const src_DropdownMenu = (bsClass('dropdown-menu', DropdownMenu)); -;// ./src/DropdownToggle.js - - +MediaBody.propTypes = MediaBody_propTypes; +MediaBody.defaultProps = MediaBody_defaultProps; +/* harmony default export */ const src_MediaBody = (bsClass('media-body', MediaBody)); +;// ./src/MediaHeading.js -var DropdownToggle_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownToggle.js"; +var MediaHeading_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaHeading.js"; -var DropdownToggle_propTypes = { - noCaret: (prop_types_default()).bool, - open: (prop_types_default()).bool, - title: (prop_types_default()).string, - useAnchor: (prop_types_default()).bool +var MediaHeading_propTypes = { + componentClass: (elementType_default()) }; -var DropdownToggle_defaultProps = { - open: false, - useAnchor: false, - bsRole: 'toggle' +var MediaHeading_defaultProps = { + componentClass: 'h4' }; -var DropdownToggle = +var MediaHeading = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownToggle, _React$Component); + _inheritsLoose(MediaHeading, _React$Component); - function DropdownToggle() { + function MediaHeading() { return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownToggle.prototype; + var _proto = MediaHeading.prototype; _proto.render = function render() { var _this$props = this.props, - noCaret = _this$props.noCaret, - open = _this$props.open, - useAnchor = _this$props.useAnchor, - bsClass = _this$props.bsClass, + Component = _this$props.componentClass, className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - delete props.bsRole; - var Component = useAnchor ? src_SafeAnchor : src_Button; - var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the - // underlying component, to allow it to render size and style variants. - // FIXME: Should this really fall back to `title` as children? + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { - role: "button", - className: classnames_default()(className, bsClass), - "aria-haspopup": true, - "aria-expanded": open, - __source: { - fileName: DropdownToggle_jsxFileName, - lineNumber: 45 - }, - __self: this - }), children || props.title, useCaret && ' ', useCaret && external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", { - className: "caret", + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: DropdownToggle_jsxFileName, - lineNumber: 54 + fileName: MediaHeading_jsxFileName, + lineNumber: 23 }, __self: this })); }; - return DropdownToggle; + return MediaHeading; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownToggle.propTypes = DropdownToggle_propTypes; -DropdownToggle.defaultProps = DropdownToggle_defaultProps; -/* harmony default export */ const src_DropdownToggle = (bsClass('dropdown-toggle', DropdownToggle)); -;// ./src/Dropdown.js - - - - -var Dropdown_jsxFileName = "/Users/harrison/react-bootstrap/src/Dropdown.js"; - - - - +MediaHeading.propTypes = MediaHeading_propTypes; +MediaHeading.defaultProps = MediaHeading_defaultProps; +/* harmony default export */ const src_MediaHeading = (bsClass('media-heading', MediaHeading)); +;// ./src/MediaLeft.js +var MediaLeft_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaLeft.js"; +var MediaLeft_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']) +}; +var MediaLeft = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaLeft, _React$Component); + function MediaLeft() { + return _React$Component.apply(this, arguments) || this; + } + var _proto = MediaLeft.prototype; + _proto.render = function render() { + var _this$props = this.props, + align = _this$props.align, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]); -var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole; -var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole; -var Dropdown_propTypes = { - /** - * The menu will open above the dropdown button, instead of below it. - */ - dropup: (prop_types_default()).bool, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * An html id attribute, necessary for assistive technologies, such as screen readers. - * @type {string|number} - * @required - */ - id: isRequiredForA11y_default()(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])), - componentClass: (elementType_default()), + var classes = getClassSet(bsProps); - /** - * The children of a Dropdown may be a `` or a ``. - * @type {node} - */ - children: all_default()(requiredRoles(TOGGLE_ROLE, MENU_ROLE), exclusiveRoles(MENU_ROLE)), + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - /** - * Whether or not component is disabled. - */ - disabled: (prop_types_default()).bool, + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaLeft_jsxFileName, + lineNumber: 32 + }, + __self: this + })); + }; - /** - * Align the menu to the right side of the Dropdown toggle - */ - pullRight: (prop_types_default()).bool, + return MediaLeft; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - /** - * Whether or not the Dropdown is visible. - * - * @controllable onToggle - */ - open: (prop_types_default()).bool, - defaultOpen: (prop_types_default()).bool, +MediaLeft.propTypes = MediaLeft_propTypes; +/* harmony default export */ const src_MediaLeft = (bsClass('media-left', MediaLeft)); +;// ./src/MediaList.js - /** - * A callback fired when the Dropdown wishes to change visibility. Called with the requested - * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. - * - * ```js - * function(Boolean isOpen, Object event, { String source }) {} - * ``` - * @controllable open - */ - onToggle: (prop_types_default()).func, - /** - * A callback fired when a menu item is selected. - * - * ```js - * (eventKey: any, event: Object) => any - * ``` - */ - onSelect: (prop_types_default()).func, - /** - * If `'menuitem'`, causes the dropdown to behave like a menu item rather than - * a menu button. - */ - role: (prop_types_default()).string, +var MediaList_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaList.js"; - /** - * Which event when fired outside the component will cause it to be closed - * - * *Note: For custom dropdown components, you will have to pass the - * `rootCloseEvent` to `` in your custom dropdown menu - * component ([similarly to how it is implemented in ``](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).* - */ - rootCloseEvent: prop_types_default().oneOf(['click', 'mousedown']), - /** - * @private - */ - onMouseEnter: (prop_types_default()).func, - /** - * @private - */ - onMouseLeave: (prop_types_default()).func -}; -var Dropdown_defaultProps = { - componentClass: src_ButtonGroup -}; -var Dropdown = +var MediaList = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Dropdown, _React$Component); - - function Dropdown(props, context) { - var _this; + _inheritsLoose(MediaList, _React$Component); - _this = _React$Component.call(this, props, context) || this; - _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._focusInDropdown = false; - _this.lastOpenEventType = null; - return _this; + function MediaList() { + return _React$Component.apply(this, arguments) || this; } - var _proto = Dropdown.prototype; + var _proto = MediaList.prototype; + + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); + + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - _proto.componentDidMount = function componentDidMount() { - this.focusNextOnOpen(); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaList_jsxFileName, + lineNumber: 13 + }, + __self: this + })); }; - _proto.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) { - if (!nextProps.open && this.props.open) { - this._focusInDropdown = contains_default()(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this.menu), activeElement_default()(document)); - } - }; + return MediaList; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var open = this.props.open; - var prevOpen = prevProps.open; +/* harmony default export */ const src_MediaList = (bsClass('media-list', MediaList)); +;// ./src/MediaListItem.js - if (open && !prevOpen) { - this.focusNextOnOpen(); - } - if (!open && prevOpen) { - // if focus hasn't already moved from the menu let's return it - // to the toggle - if (this._focusInDropdown) { - this._focusInDropdown = false; - this.focus(); - } - } - }; - _proto.focus = function focus() { - var toggle = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this.toggle); +var MediaListItem_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaListItem.js"; - if (toggle && toggle.focus) { - toggle.focus(); - } - }; - _proto.focusNextOnOpen = function focusNextOnOpen() { - var menu = this.menu; - if (!menu || !menu.focusNext) { - return; - } - if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { - menu.focusNext(); - } - }; +var MediaListItem = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaListItem, _React$Component); - _proto.handleClick = function handleClick(event) { - // @hmhealey I added this because, when migrating the "passes open, event, and source correctly when closed with click" - // test to use RTL, the root close handler started triggering when clicking on the menu button toggle which seems - // like it shouldn't happen. We had similar issues with React 17 where overlays would open and immediately close, so - // while that didn't happen in the tests using React 17, I'd be willing to guess that ReactTestUtils hid that from us. - event.stopPropagation(); + function MediaListItem() { + return _React$Component.apply(this, arguments) || this; + } - if (this.props.disabled) { - return; - } + var _proto = MediaListItem.prototype; - this.toggleOpen(event, { - source: 'click' - }); - }; + _proto.render = function render() { + var _this$props = this.props, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["className"]); - _proto.handleClose = function handleClose(event, eventDetails) { - if (!this.props.open) { - return; - } + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - this.toggleOpen(event, eventDetails); + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + className: classnames_default()(className, classes), + __source: { + fileName: MediaListItem_jsxFileName, + lineNumber: 13 + }, + __self: this + })); }; - _proto.handleKeyDown = function handleKeyDown(event) { - if (this.props.disabled) { - return; - } - - switch (event.key) { - case 'ArrowDown': - if (!this.props.open) { - this.toggleOpen(event, { - source: 'keydown' - }); - } else if (this.menu.focusNext) { - this.menu.focusNext(); - } - - event.preventDefault(); - break; + return MediaListItem; +}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - case 'Escape': - case 'Tab': - this.handleClose(event, { - source: 'keydown' - }); - break; +/* harmony default export */ const src_MediaListItem = (bsClass('media', MediaListItem)); +;// ./src/MediaRight.js - default: - } - }; - _proto.toggleOpen = function toggleOpen(event, eventDetails) { - var open = !this.props.open; - if (open) { - this.lastOpenEventType = eventDetails.source; - } +var MediaRight_jsxFileName = "/Users/harrison/react-bootstrap/src/MediaRight.js"; - if (this.props.onToggle) { - this.props.onToggle(open, event, eventDetails); - } - }; - _proto.renderMenu = function renderMenu(child, _ref) { - var _this2 = this; - var id = _ref.id, - onSelect = _ref.onSelect, - rootCloseEvent = _ref.rootCloseEvent, - props = _objectWithoutPropertiesLoose(_ref, ["id", "onSelect", "rootCloseEvent"]); - var ref = function ref(c) { - _this2.menu = c; - }; - ref = utils_createChainedFunction(child.ref, ref); - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { - ref: ref, - labelledBy: id, - bsClass: prefix(props, 'menu'), - onClose: utils_createChainedFunction(child.props.onClose, this.handleClose), - onSelect: utils_createChainedFunction(child.props.onSelect, onSelect, function (key, event) { - return _this2.handleClose(event, { - source: 'select' - }); - }), - rootCloseEvent: rootCloseEvent - })); - }; +var MediaRight_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default().oneOf(['top', 'middle', 'bottom']) +}; - _proto.renderToggle = function renderToggle(child, props) { - var _this3 = this; +var MediaRight = +/*#__PURE__*/ +function (_React$Component) { + _inheritsLoose(MediaRight, _React$Component); - var ref = function ref(c) { - _this3.toggle = c; - }; + function MediaRight() { + return _React$Component.apply(this, arguments) || this; + } - ref = utils_createChainedFunction(child.ref, ref); - return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, _extends({}, props, { - ref: ref, - bsClass: prefix(props, 'toggle'), - onClick: utils_createChainedFunction(child.props.onClick, this.handleClick), - onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown) - })); - }; + var _proto = MediaRight.prototype; _proto.render = function render() { - var _classes, - _this4 = this; - var _this$props = this.props, - Component = _this$props.componentClass, - id = _this$props.id, - dropup = _this$props.dropup, - disabled = _this$props.disabled, - pullRight = _this$props.pullRight, - open = _this$props.open, - onSelect = _this$props.onSelect, - role = _this$props.role, - bsClass = _this$props.bsClass, + align = _this$props.align, className = _this$props.className, - rootCloseEvent = _this$props.rootCloseEvent, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]); + props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]); - delete props.onToggle; - var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - if (dropup) { - classes[bsClass] = false; - classes.dropup = true; - } // This intentionally forwards bsSize and bsStyle (if set) to the - // underlying component, to allow it to render size and style variants. + var classes = getClassSet(bsProps); + if (align) { + // The class is e.g. `media-top`, not `media-right-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, props, { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", _extends({}, elementProps, { className: classnames_default()(className, classes), __source: { - fileName: Dropdown_jsxFileName, - lineNumber: 314 + fileName: MediaRight_jsxFileName, + lineNumber: 32 }, __self: this - }), ValidComponentChildren.map(children, function (child) { - switch (child.props.bsRole) { - case TOGGLE_ROLE: - return _this4.renderToggle(child, { - id: id, - disabled: disabled, - open: open, - role: role, - bsClass: bsClass - }); - - case MENU_ROLE: - return _this4.renderMenu(child, { - id: id, - open: open, - pullRight: pullRight, - bsClass: bsClass, - onSelect: onSelect, - rootCloseEvent: rootCloseEvent - }); - - default: - return child; - } })); }; - return Dropdown; + return MediaRight; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Dropdown.propTypes = Dropdown_propTypes; -Dropdown.defaultProps = Dropdown_defaultProps; -bsClass('dropdown', Dropdown); -var UncontrolledDropdown = uncontrollable_default()(Dropdown, { - open: 'onToggle' -}); -UncontrolledDropdown.Toggle = src_DropdownToggle; -UncontrolledDropdown.Menu = src_DropdownMenu; -/* harmony default export */ const src_Dropdown = (UncontrolledDropdown); -;// ./src/utils/splitComponentProps.js - -function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; - var parentProps = {}; - var childProps = {}; +MediaRight.propTypes = MediaRight_propTypes; +/* harmony default export */ const src_MediaRight = (bsClass('media-right', MediaRight)); +;// ./src/Media.js - entries_default()(props).forEach(function (_ref) { - var propName = _ref[0], - propValue = _ref[1]; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); - return [parentProps, childProps]; -} -;// ./src/DropdownButton.js +var Media_jsxFileName = "/Users/harrison/react-bootstrap/src/Media.js"; -var DropdownButton_jsxFileName = "/Users/harrison/react-bootstrap/src/DropdownButton.js"; -var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, { - // Toggle props. - bsStyle: (prop_types_default()).string, - bsSize: (prop_types_default()).string, - title: (prop_types_default()).node.isRequired, - noCaret: (prop_types_default()).bool, - // Override generated docs from . - /** - * @private - */ - children: (prop_types_default()).node -}); -var DropdownButton = +var Media_propTypes = { + componentClass: (elementType_default()) +}; +var Media_defaultProps = { + componentClass: 'div' +}; + +var Media = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(DropdownButton, _React$Component); + _inheritsLoose(Media, _React$Component); - function DropdownButton() { + function Media() { return _React$Component.apply(this, arguments) || this; } - var _proto = DropdownButton.prototype; + var _proto = Media.prototype; _proto.render = function render() { var _this$props = this.props, - bsSize = _this$props.bsSize, - bsStyle = _this$props.bsStyle, - title = _this$props.title, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "children"]); + Component = _this$props.componentClass, + className = _this$props.className, + props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]); - var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent), - dropdownProps = _splitComponentProps[0], - toggleProps = _splitComponentProps[1]; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown, _extends({}, dropdownProps, { - bsSize: bsSize, - bsStyle: bsStyle, - __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 33 - }, - __self: this - }), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Toggle, _extends({}, toggleProps, { - bsSize: bsSize, - bsStyle: bsStyle, - __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 34 - }, - __self: this - }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_Dropdown.Menu, { + var classes = getClassSet(bsProps); + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { + className: classnames_default()(className, classes), __source: { - fileName: DropdownButton_jsxFileName, - lineNumber: 38 + fileName: Media_jsxFileName, + lineNumber: 29 }, __self: this - }, children)); + })); }; - return DropdownButton; + return Media; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -DropdownButton.propTypes = DropdownButton_propTypes; -/* harmony default export */ const src_DropdownButton = (DropdownButton); -;// ./src/Fade.js - +Media.propTypes = Media_propTypes; +Media.defaultProps = Media_defaultProps; +Media.Heading = src_MediaHeading; +Media.Body = src_MediaBody; +Media.Left = src_MediaLeft; +Media.Right = src_MediaRight; +Media.List = src_MediaList; +Media.ListItem = src_MediaListItem; +/* harmony default export */ const src_Media = (bsClass('media', Media)); +;// ./src/MenuItem.js -var _fadeStyles, - Fade_jsxFileName = "/Users/harrison/react-bootstrap/src/Fade.js"; +var MenuItem_jsxFileName = "/Users/harrison/react-bootstrap/src/MenuItem.js"; -var Fade_propTypes = { - /** - * Show the component; triggers the fade in or fade out animation - */ - in: (prop_types_default()).bool, - /** - * Wait until the first "enter" transition to mount the component (add it to the DOM) - */ - mountOnEnter: (prop_types_default()).bool, - /** - * Unmount the component (remove it from the DOM) when it is faded out - */ - unmountOnExit: (prop_types_default()).bool, +var MenuItem_propTypes = { /** - * Run the fade in animation when the component mounts, if it is initially - * shown + * Highlight the menu item as active. */ - appear: (prop_types_default()).bool, + active: (prop_types_default()).bool, /** - * Duration of the fade animation in milliseconds, to ensure that finishing - * callbacks are fired even if the original browser transition end events are - * canceled + * Disable the menu item, making it unselectable. */ - timeout: (prop_types_default()).number, + disabled: (prop_types_default()).bool, /** - * Callback fired before the component fades in + * Styles the menu item as a horizontal rule, providing visual separation between + * groups of menu items. */ - onEnter: (prop_types_default()).func, + divider: (prop_types_default()).bool, /** - * Callback fired after the component starts to fade in + * Value passed to the `onSelect` handler, useful for identifying the selected menu item. */ - onEntering: (prop_types_default()).func, + eventKey: (prop_types_default()).any, /** - * Callback fired after the has component faded in + * Styles the menu item as a header label, useful for describing a group of menu items. */ - onEntered: (prop_types_default()).func, + header: (prop_types_default()).bool, /** - * Callback fired before the component fades out + * HTML `href` attribute corresponding to `a.href`. */ - onExit: (prop_types_default()).func, + href: (prop_types_default()).string, /** - * Callback fired after the component starts to fade out + * Callback fired when the menu item is clicked. */ - onExiting: (prop_types_default()).func, + onClick: (prop_types_default()).func, /** - * Callback fired after the component has faded out + * Callback fired when the menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` */ - onExited: (prop_types_default()).func + onSelect: (prop_types_default()).func }; -var Fade_defaultProps = { - in: false, - timeout: 300, - mountOnEnter: false, - unmountOnExit: false, - appear: false +var MenuItem_defaultProps = { + divider: false, + disabled: false, + header: false }; -var fadeStyles = (_fadeStyles = {}, _fadeStyles[Transition/* ENTERING */.ns] = 'in', _fadeStyles[Transition/* ENTERED */._K] = 'in', _fadeStyles); -var Fade = +var MenuItem = /*#__PURE__*/ function (_React$Component) { - _inheritsLoose(Fade, _React$Component); + _inheritsLoose(MenuItem, _React$Component); - function Fade() { - return _React$Component.apply(this, arguments) || this; + function MenuItem(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this))); + return _this; } - var _proto = Fade.prototype; + var _proto = MenuItem.prototype; - _proto.render = function render() { + _proto.handleClick = function handleClick(event) { var _this$props = this.props, - className = _this$props.className, - children = _this$props.children, - props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]); - - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Transition/* default */.Ay, _extends({}, props, { - __source: { - fileName: Fade_jsxFileName, - lineNumber: 82 - }, - __self: this - }), function (status, innerProps) { - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, _extends({}, innerProps, { - className: classnames_default()('fade', className, children.props.className, fadeStyles[status]) - })); - }); - }; - - return Fade; -}((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); - -Fade.propTypes = Fade_propTypes; -Fade.defaultProps = Fade_defaultProps; -/* harmony default export */ const src_Fade = (Fade); -;// ./src/Form.js - - - -var Form_jsxFileName = "/Users/harrison/react-bootstrap/src/Form.js"; - - - - - -var Form_propTypes = { - horizontal: (prop_types_default()).bool, - inline: (prop_types_default()).bool, - componentClass: (elementType_default()) -}; -var Form_defaultProps = { - horizontal: false, - inline: false, - componentClass: 'form' -}; + href = _this$props.href, + disabled = _this$props.disabled, + onSelect = _this$props.onSelect, + eventKey = _this$props.eventKey; -var Form = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Form, _React$Component); + if (!href || disabled) { + event.preventDefault(); + } - function Form() { - return _React$Component.apply(this, arguments) || this; - } + if (disabled) { + return; + } - var _proto = Form.prototype; + if (onSelect) { + onSelect(eventKey, event); + } + }; _proto.render = function render() { - var _this$props = this.props, - horizontal = _this$props.horizontal, - inline = _this$props.inline, - Component = _this$props.componentClass, - className = _this$props.className, - props = _objectWithoutPropertiesLoose(_this$props, ["horizontal", "inline", "componentClass", "className"]); + var _this$props2 = this.props, + active = _this$props2.active, + disabled = _this$props2.disabled, + divider = _this$props2.divider, + header = _this$props2.header, + onClick = _this$props2.onClick, + className = _this$props2.className, + style = _this$props2.style, + props = _objectWithoutPropertiesLoose(_this$props2, ["active", "disabled", "divider", "header", "onClick", "className", "style"]); - var _splitBsProps = splitBsProps(props), - bsProps = _splitBsProps[0], - elementProps = _splitBsProps[1]; + false ? 0 : void 0; - var classes = []; + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['eventKey', 'onSelect']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; - if (horizontal) { - classes.push(prefix(bsProps, 'horizontal')); + if (divider) { + // Forcibly blank out the children; separators shouldn't render any. + elementProps.children = undefined; + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + role: "separator", + className: classnames_default()(className, 'divider'), + style: style, + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 113 + }, + __self: this + })); } - if (inline) { - classes.push(prefix(bsProps, 'inline')); + if (header) { + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", _extends({}, elementProps, { + role: "heading", + className: classnames_default()(className, prefix(bsProps, 'header')), + style: style, + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 124 + }, + __self: this + })); } - return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Component, _extends({}, elementProps, { - className: classnames_default()(className, classes), + return external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", { + role: "presentation", + className: classnames_default()(className, { + active: active, + disabled: disabled + }), + style: style, __source: { - fileName: Form_jsxFileName, - lineNumber: 41 + fileName: MenuItem_jsxFileName, + lineNumber: 134 }, __self: this - })); + }, external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(src_SafeAnchor, _extends({}, elementProps, { + role: "menuitem", + tabIndex: "-1", + onClick: utils_createChainedFunction(onClick, this.handleClick), + __source: { + fileName: MenuItem_jsxFileName, + lineNumber: 139 + }, + __self: this + }))); }; - return Form; + return MenuItem; }((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component); -Form.propTypes = Form_propTypes; -Form.defaultProps = Form_defaultProps; -/* harmony default export */ const src_Form = (bsClass('form', Form)); -;// ./src/FormControlFeedback.js +MenuItem.propTypes = MenuItem_propTypes; +MenuItem.defaultProps = MenuItem_defaultProps; +/* harmony default export */ const src_MenuItem = (bsClass('dropdown', MenuItem)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/events/index.js +var events = __webpack_require__(9287); +// EXTERNAL MODULE: ./node_modules/dom-helpers/ownerDocument.js +var dom_helpers_ownerDocument = __webpack_require__(1999); +var ownerDocument_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_ownerDocument); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/inDOM.js +var inDOM = __webpack_require__(8647); +var inDOM_default = /*#__PURE__*/__webpack_require__.n(inDOM); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/scrollbarSize.js +var scrollbarSize = __webpack_require__(6065); +var scrollbarSize_default = /*#__PURE__*/__webpack_require__.n(scrollbarSize); +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/isDocument.js +function isDocument(element) { + return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE; +} +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/isWindow.js +function isWindow(node) { + if ('window' in node && node.window === node) return node; + if (isDocument(node)) return node.defaultView || false; + return false; +} +;// ./node_modules/react-overlays/esm/isOverflowing.js -var FormControlFeedback_jsxFileName = "/Users/harrison/react-bootstrap/src/FormControlFeedback.js"; +function isBody(node) { + return node && node.tagName.toLowerCase() === 'body'; +} +function bodyIsOverflowing(node) { + var doc = isWindow(node) ? ownerDocument() : ownerDocument(node); + var win = isWindow(node) || doc.defaultView; + return doc.body.clientWidth < win.innerWidth; +} +function isOverflowing(container) { + var win = isWindow(container); + return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight; +} +;// ./node_modules/@babel/runtime/helpers/esm/extends.js +function extends_extends() { + return extends_extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } -var FormControlFeedback_defaultProps = { - bsRole: 'feedback' -}; -var FormControlFeedback_contextTypes = { - $bs_formGroup: (prop_types_default()).object -}; + return n; + }, extends_extends.apply(null, arguments); +} -var FormControlFeedback = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(FormControlFeedback, _React$Component); - function FormControlFeedback() { - return _React$Component.apply(this, arguments) || this; +;// ./node_modules/react-overlays/node_modules/dom-helpers/esm/activeElement.js + +/** + * Returns the actively focused element safely. + * + * @param doc the document to check + */ + +function activeElement_activeElement(doc) { + if (doc === void 0) { + doc = ownerDocument(); + } // Support: IE 9 only + // IE9 throws an "Unspecified error" accessing document.activeElement from an