From 5e7232d3a1e0f36cf1e088b7e999d7b928f3ee27 Mon Sep 17 00:00:00 2001 From: Julien 'Lta' BALLET Date: Fri, 26 Jan 2018 23:50:16 +0100 Subject: [PATCH] Update to React Bootstrap 0.32.1 Signed-off-by: Julien 'Lta' BALLET --- lib/react/bootstrap/rails/version.rb | 2 +- vendor/assets/javascripts/react_bootstrap.js | 30246 ++++++++-------- .../assets/javascripts/react_bootstrap.min.js | 18489 +++++++++- 3 files changed, 33412 insertions(+), 15325 deletions(-) diff --git a/lib/react/bootstrap/rails/version.rb b/lib/react/bootstrap/rails/version.rb index 8e7cb8a..8f6f0e5 100644 --- a/lib/react/bootstrap/rails/version.rb +++ b/lib/react/bootstrap/rails/version.rb @@ -1,7 +1,7 @@ module React module Bootstrap module Rails - VERSION = '0.30.2' + VERSION = '0.32.1' end end end diff --git a/vendor/assets/javascripts/react_bootstrap.js b/vendor/assets/javascripts/react_bootstrap.js index b95f1be..0c8b2e6 100644 --- a/vendor/assets/javascripts/react_bootstrap.js +++ b/vendor/assets/javascripts/react_bootstrap.js @@ -7,18849 +7,18473 @@ exports["ReactBootstrap"] = factory(require("react"), require("react-dom")); else root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_85__, __WEBPACK_EXTERNAL_MODULE_115__) { - return /******/ (function(modules) { // webpackBootstrap - /******/ // The module cache - /******/ var installedModules = {}; +})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_9__) { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 91); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_0__; + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +exports.default = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}; + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _typeof2 = __webpack_require__(52); + +var _typeof3 = _interopRequireDefault(_typeof2); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; +}; + +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; - /******/ // The require function - /******/ function __webpack_require__(moduleId) { - /******/ // Check if module is in cache - /******/ if(installedModules[moduleId]) - /******/ return installedModules[moduleId].exports; +exports.__esModule = true; - /******/ // Create a new module (and put it into the cache) - /******/ var module = installedModules[moduleId] = { - /******/ exports: {}, - /******/ id: moduleId, - /******/ loaded: false - /******/ }; +var _setPrototypeOf = __webpack_require__(119); - /******/ // Execute the module function - /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - /******/ // Flag the module as loaded - /******/ module.loaded = true; +var _create = __webpack_require__(123); - /******/ // Return the exports of the module - /******/ return module.exports; - /******/ } +var _create2 = _interopRequireDefault(_create); +var _typeof2 = __webpack_require__(52); - /******/ // expose the modules object (__webpack_modules__) - /******/ __webpack_require__.m = modules; +var _typeof3 = _interopRequireDefault(_typeof2); - /******/ // expose the module cache - /******/ __webpack_require__.c = installedModules; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /******/ // __webpack_public_path__ - /******/ __webpack_require__.p = ""; +exports.default = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); + } - /******/ // Load entry module and return exports - /******/ return __webpack_require__(0); - /******/ }) - /************************************************************************/ - /******/ ([ - /* 0 */ - /***/ function(module, exports, __webpack_require__) { + subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; +}; - 'use strict'; +/***/ }), +/* 4 */ +/***/ (function(module, exports, __webpack_require__) { - exports.__esModule = true; - exports.utils = exports.Well = exports.Tooltip = exports.Thumbnail = exports.Tabs = exports.TabPane = exports.Table = exports.TabContent = exports.TabContainer = exports.Tab = exports.SplitButton = exports.SafeAnchor = exports.Row = exports.ResponsiveEmbed = exports.Radio = exports.ProgressBar = exports.Popover = exports.PanelGroup = exports.Panel = exports.Pagination = exports.Pager = exports.PageItem = exports.PageHeader = exports.OverlayTrigger = exports.Overlay = exports.NavItem = exports.NavDropdown = exports.NavbarBrand = exports.Navbar = exports.Nav = exports.ModalTitle = exports.ModalHeader = exports.ModalFooter = exports.ModalBody = exports.Modal = exports.MenuItem = exports.Media = exports.ListGroupItem = exports.ListGroup = exports.Label = exports.Jumbotron = exports.InputGroup = exports.Image = exports.HelpBlock = exports.Grid = exports.Glyphicon = exports.FormGroup = exports.FormControl = exports.Form = exports.Fade = exports.DropdownButton = exports.Dropdown = exports.Collapse = exports.Col = exports.ControlLabel = exports.Clearfix = exports.Checkbox = exports.CarouselItem = exports.Carousel = exports.ButtonToolbar = exports.ButtonGroup = exports.Button = exports.BreadcrumbItem = exports.Breadcrumb = exports.Badge = exports.Alert = exports.Accordion = undefined; +"use strict"; - var _Accordion2 = __webpack_require__(1); - var _Accordion3 = _interopRequireDefault(_Accordion2); +exports.__esModule = true; - var _Alert2 = __webpack_require__(98); +var _assign = __webpack_require__(66); - var _Alert3 = _interopRequireDefault(_Alert2); +var _assign2 = _interopRequireDefault(_assign); - var _Badge2 = __webpack_require__(102); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _Badge3 = _interopRequireDefault(_Badge2); +exports.default = _assign2.default || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - var _Breadcrumb2 = __webpack_require__(103); + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - var _Breadcrumb3 = _interopRequireDefault(_Breadcrumb2); + return target; +}; - var _BreadcrumbItem2 = __webpack_require__(104); +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { - var _BreadcrumbItem3 = _interopRequireDefault(_BreadcrumbItem2); +"use strict"; - var _Button2 = __webpack_require__(108); - var _Button3 = _interopRequireDefault(_Button2); +exports.__esModule = true; - var _ButtonGroup2 = __webpack_require__(109); +exports.default = function (obj, keys) { + var target = {}; - var _ButtonGroup3 = _interopRequireDefault(_ButtonGroup2); + for (var i in obj) { + if (keys.indexOf(i) >= 0) continue; + if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; + target[i] = obj[i]; + } - var _ButtonToolbar2 = __webpack_require__(111); + return target; +}; - var _ButtonToolbar3 = _interopRequireDefault(_ButtonToolbar2); +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { - var _Carousel2 = __webpack_require__(112); +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/* global define */ - var _Carousel3 = _interopRequireDefault(_Carousel2); +(function () { + 'use strict'; - var _CarouselItem2 = __webpack_require__(114); + var hasOwn = {}.hasOwnProperty; - var _CarouselItem3 = _interopRequireDefault(_CarouselItem2); + function classNames () { + var classes = []; - var _Checkbox2 = __webpack_require__(118); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; - var _Checkbox3 = _interopRequireDefault(_Checkbox2); + var argType = typeof arg; - var _Clearfix2 = __webpack_require__(120); - - var _Clearfix3 = _interopRequireDefault(_Clearfix2); - - var _ControlLabel2 = __webpack_require__(122); - - var _ControlLabel3 = _interopRequireDefault(_ControlLabel2); - - var _Col2 = __webpack_require__(123); - - var _Col3 = _interopRequireDefault(_Col2); - - var _Collapse2 = __webpack_require__(124); - - var _Collapse3 = _interopRequireDefault(_Collapse2); - - var _Dropdown2 = __webpack_require__(137); - - var _Dropdown3 = _interopRequireDefault(_Dropdown2); - - var _DropdownButton2 = __webpack_require__(163); - - var _DropdownButton3 = _interopRequireDefault(_DropdownButton2); - - var _Fade2 = __webpack_require__(165); - - var _Fade3 = _interopRequireDefault(_Fade2); - - var _Form2 = __webpack_require__(166); - - var _Form3 = _interopRequireDefault(_Form2); - - var _FormControl2 = __webpack_require__(167); - - var _FormControl3 = _interopRequireDefault(_FormControl2); - - var _FormGroup2 = __webpack_require__(170); - - var _FormGroup3 = _interopRequireDefault(_FormGroup2); - - var _Glyphicon2 = __webpack_require__(117); - - var _Glyphicon3 = _interopRequireDefault(_Glyphicon2); - - var _Grid2 = __webpack_require__(171); - - var _Grid3 = _interopRequireDefault(_Grid2); - - var _HelpBlock2 = __webpack_require__(172); - - var _HelpBlock3 = _interopRequireDefault(_HelpBlock2); - - var _Image2 = __webpack_require__(173); - - var _Image3 = _interopRequireDefault(_Image2); - - var _InputGroup2 = __webpack_require__(174); - - var _InputGroup3 = _interopRequireDefault(_InputGroup2); - - var _Jumbotron2 = __webpack_require__(177); - - var _Jumbotron3 = _interopRequireDefault(_Jumbotron2); - - var _Label2 = __webpack_require__(178); - - var _Label3 = _interopRequireDefault(_Label2); - - var _ListGroup2 = __webpack_require__(179); - - var _ListGroup3 = _interopRequireDefault(_ListGroup2); - - var _ListGroupItem2 = __webpack_require__(180); - - var _ListGroupItem3 = _interopRequireDefault(_ListGroupItem2); - - var _Media2 = __webpack_require__(181); - - var _Media3 = _interopRequireDefault(_Media2); - - var _MenuItem2 = __webpack_require__(188); - - var _MenuItem3 = _interopRequireDefault(_MenuItem2); - - var _Modal2 = __webpack_require__(189); - - var _Modal3 = _interopRequireDefault(_Modal2); - - var _ModalBody2 = __webpack_require__(207); - - var _ModalBody3 = _interopRequireDefault(_ModalBody2); - - var _ModalFooter2 = __webpack_require__(209); - - var _ModalFooter3 = _interopRequireDefault(_ModalFooter2); - - var _ModalHeader2 = __webpack_require__(210); - - var _ModalHeader3 = _interopRequireDefault(_ModalHeader2); - - var _ModalTitle2 = __webpack_require__(211); - - var _ModalTitle3 = _interopRequireDefault(_ModalTitle2); - - var _Nav2 = __webpack_require__(212); - - var _Nav3 = _interopRequireDefault(_Nav2); - - var _Navbar2 = __webpack_require__(213); - - var _Navbar3 = _interopRequireDefault(_Navbar2); - - var _NavbarBrand2 = __webpack_require__(214); - - var _NavbarBrand3 = _interopRequireDefault(_NavbarBrand2); - - var _NavDropdown2 = __webpack_require__(218); - - var _NavDropdown3 = _interopRequireDefault(_NavDropdown2); - - var _NavItem2 = __webpack_require__(219); - - var _NavItem3 = _interopRequireDefault(_NavItem2); - - var _Overlay2 = __webpack_require__(220); - - var _Overlay3 = _interopRequireDefault(_Overlay2); - - var _OverlayTrigger2 = __webpack_require__(229); - - var _OverlayTrigger3 = _interopRequireDefault(_OverlayTrigger2); - - var _PageHeader2 = __webpack_require__(230); - - var _PageHeader3 = _interopRequireDefault(_PageHeader2); - - var _PageItem2 = __webpack_require__(231); - - var _PageItem3 = _interopRequireDefault(_PageItem2); - - var _Pager2 = __webpack_require__(234); - - var _Pager3 = _interopRequireDefault(_Pager2); - - var _Pagination2 = __webpack_require__(235); - - var _Pagination3 = _interopRequireDefault(_Pagination2); - - var _Panel2 = __webpack_require__(237); - - var _Panel3 = _interopRequireDefault(_Panel2); - - var _PanelGroup2 = __webpack_require__(86); - - var _PanelGroup3 = _interopRequireDefault(_PanelGroup2); - - var _Popover2 = __webpack_require__(238); - - var _Popover3 = _interopRequireDefault(_Popover2); - - var _ProgressBar2 = __webpack_require__(239); - - var _ProgressBar3 = _interopRequireDefault(_ProgressBar2); - - var _Radio2 = __webpack_require__(240); - - var _Radio3 = _interopRequireDefault(_Radio2); - - var _ResponsiveEmbed2 = __webpack_require__(241); - - var _ResponsiveEmbed3 = _interopRequireDefault(_ResponsiveEmbed2); - - var _Row2 = __webpack_require__(242); - - var _Row3 = _interopRequireDefault(_Row2); - - var _SafeAnchor2 = __webpack_require__(105); - - var _SafeAnchor3 = _interopRequireDefault(_SafeAnchor2); - - var _SplitButton2 = __webpack_require__(243); - - var _SplitButton3 = _interopRequireDefault(_SplitButton2); - - var _Tab2 = __webpack_require__(245); - - var _Tab3 = _interopRequireDefault(_Tab2); - - var _TabContainer2 = __webpack_require__(246); - - var _TabContainer3 = _interopRequireDefault(_TabContainer2); - - var _TabContent2 = __webpack_require__(247); - - var _TabContent3 = _interopRequireDefault(_TabContent2); - - var _Table2 = __webpack_require__(249); - - var _Table3 = _interopRequireDefault(_Table2); - - var _TabPane2 = __webpack_require__(248); - - var _TabPane3 = _interopRequireDefault(_TabPane2); - - var _Tabs2 = __webpack_require__(250); - - var _Tabs3 = _interopRequireDefault(_Tabs2); - - var _Thumbnail2 = __webpack_require__(251); - - var _Thumbnail3 = _interopRequireDefault(_Thumbnail2); - - var _Tooltip2 = __webpack_require__(252); - - var _Tooltip3 = _interopRequireDefault(_Tooltip2); - - var _Well2 = __webpack_require__(253); - - var _Well3 = _interopRequireDefault(_Well2); - - var _utils2 = __webpack_require__(254); - - var _utils = _interopRequireWildcard(_utils2); - - 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)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - exports.Accordion = _Accordion3['default']; - exports.Alert = _Alert3['default']; - exports.Badge = _Badge3['default']; - exports.Breadcrumb = _Breadcrumb3['default']; - exports.BreadcrumbItem = _BreadcrumbItem3['default']; - exports.Button = _Button3['default']; - exports.ButtonGroup = _ButtonGroup3['default']; - exports.ButtonToolbar = _ButtonToolbar3['default']; - exports.Carousel = _Carousel3['default']; - exports.CarouselItem = _CarouselItem3['default']; - exports.Checkbox = _Checkbox3['default']; - exports.Clearfix = _Clearfix3['default']; - exports.ControlLabel = _ControlLabel3['default']; - exports.Col = _Col3['default']; - exports.Collapse = _Collapse3['default']; - exports.Dropdown = _Dropdown3['default']; - exports.DropdownButton = _DropdownButton3['default']; - exports.Fade = _Fade3['default']; - exports.Form = _Form3['default']; - exports.FormControl = _FormControl3['default']; - exports.FormGroup = _FormGroup3['default']; - exports.Glyphicon = _Glyphicon3['default']; - exports.Grid = _Grid3['default']; - exports.HelpBlock = _HelpBlock3['default']; - exports.Image = _Image3['default']; - exports.InputGroup = _InputGroup3['default']; - exports.Jumbotron = _Jumbotron3['default']; - exports.Label = _Label3['default']; - exports.ListGroup = _ListGroup3['default']; - exports.ListGroupItem = _ListGroupItem3['default']; - exports.Media = _Media3['default']; - exports.MenuItem = _MenuItem3['default']; - exports.Modal = _Modal3['default']; - exports.ModalBody = _ModalBody3['default']; - exports.ModalFooter = _ModalFooter3['default']; - exports.ModalHeader = _ModalHeader3['default']; - exports.ModalTitle = _ModalTitle3['default']; - exports.Nav = _Nav3['default']; - exports.Navbar = _Navbar3['default']; - exports.NavbarBrand = _NavbarBrand3['default']; - exports.NavDropdown = _NavDropdown3['default']; - exports.NavItem = _NavItem3['default']; - exports.Overlay = _Overlay3['default']; - exports.OverlayTrigger = _OverlayTrigger3['default']; - exports.PageHeader = _PageHeader3['default']; - exports.PageItem = _PageItem3['default']; - exports.Pager = _Pager3['default']; - exports.Pagination = _Pagination3['default']; - exports.Panel = _Panel3['default']; - exports.PanelGroup = _PanelGroup3['default']; - exports.Popover = _Popover3['default']; - exports.ProgressBar = _ProgressBar3['default']; - exports.Radio = _Radio3['default']; - exports.ResponsiveEmbed = _ResponsiveEmbed3['default']; - exports.Row = _Row3['default']; - exports.SafeAnchor = _SafeAnchor3['default']; - exports.SplitButton = _SplitButton3['default']; - exports.Tab = _Tab3['default']; - exports.TabContainer = _TabContainer3['default']; - exports.TabContent = _TabContent3['default']; - exports.Table = _Table3['default']; - exports.TabPane = _TabPane3['default']; - exports.Tabs = _Tabs3['default']; - exports.Thumbnail = _Thumbnail3['default']; - exports.Tooltip = _Tooltip3['default']; - exports.Well = _Well3['default']; - exports.utils = _utils; - - /***/ }, - /* 1 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _PanelGroup = __webpack_require__(86); - - var _PanelGroup2 = _interopRequireDefault(_PanelGroup); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var Accordion = function (_React$Component) { - (0, _inherits3['default'])(Accordion, _React$Component); - - function Accordion() { - (0, _classCallCheck3['default'])(this, Accordion); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Accordion.prototype.render = function render() { - return _react2['default'].createElement( - _PanelGroup2['default'], - (0, _extends3['default'])({}, this.props, { accordion: true }), - this.props.children - ); - }; - - return Accordion; - }(_react2['default'].Component); - - exports['default'] = Accordion; - module.exports = exports['default']; - - /***/ }, - /* 2 */ - /***/ function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _assign = __webpack_require__(3); - - var _assign2 = _interopRequireDefault(_assign); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = _assign2.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]; - } - } - } - - return target; - }; - - /***/ }, - /* 3 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(4), __esModule: true }; - - /***/ }, - /* 4 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - module.exports = __webpack_require__(8).Object.assign; - - /***/ }, - /* 5 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.3.1 Object.assign(target, source) - var $export = __webpack_require__(6); - - $export($export.S + $export.F, 'Object', {assign: __webpack_require__(21)}); - - /***/ }, - /* 6 */ - /***/ function(module, exports, __webpack_require__) { - - var global = __webpack_require__(7) - , core = __webpack_require__(8) - , ctx = __webpack_require__(9) - , hide = __webpack_require__(11) - , PROTOTYPE = 'prototype'; - - var $export = function(type, name, source){ - var IS_FORCED = type & $export.F - , IS_GLOBAL = type & $export.G - , IS_STATIC = type & $export.S - , IS_PROTO = type & $export.P - , IS_BIND = type & $export.B - , IS_WRAP = type & $export.W - , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) - , expProto = exports[PROTOTYPE] - , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] - , key, own, out; - if(IS_GLOBAL)source = name; - for(key in source){ - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if(own && key in exports)continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - 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); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - 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% - 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 - $export.F = 1; // forced - $export.G = 2; // global - $export.S = 4; // static - $export.P = 8; // proto - $export.B = 16; // bind - $export.W = 32; // wrap - $export.U = 64; // safe - $export.R = 128; // real proto method for `library` - module.exports = $export; - - /***/ }, - /* 7 */ - /***/ function(module, exports) { - - // 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 : Function('return this')(); - if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef - - /***/ }, - /* 8 */ - /***/ function(module, exports) { - - var core = module.exports = {version: '2.4.0'}; - if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef - - /***/ }, - /* 9 */ - /***/ function(module, exports, __webpack_require__) { - - // optional / simple context binding - var aFunction = __webpack_require__(10); - 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); - }; - } - return function(/* ...args */){ - return fn.apply(that, arguments); - }; - }; - - /***/ }, - /* 10 */ - /***/ function(module, exports) { - - module.exports = function(it){ - if(typeof it != 'function')throw TypeError(it + ' is not a function!'); - return it; - }; - - /***/ }, - /* 11 */ - /***/ function(module, exports, __webpack_require__) { - - var dP = __webpack_require__(12) - , createDesc = __webpack_require__(20); - module.exports = __webpack_require__(16) ? function(object, key, value){ - return dP.f(object, key, createDesc(1, value)); - } : function(object, key, value){ - object[key] = value; - return object; - }; - - /***/ }, - /* 12 */ - /***/ function(module, exports, __webpack_require__) { - - var anObject = __webpack_require__(13) - , IE8_DOM_DEFINE = __webpack_require__(15) - , toPrimitive = __webpack_require__(19) - , dP = Object.defineProperty; - - exports.f = __webpack_require__(16) ? 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; - }; - - /***/ }, - /* 13 */ - /***/ function(module, exports, __webpack_require__) { - - var isObject = __webpack_require__(14); - module.exports = function(it){ - if(!isObject(it))throw TypeError(it + ' is not an object!'); - return it; - }; - - /***/ }, - /* 14 */ - /***/ function(module, exports) { - - module.exports = function(it){ - return typeof it === 'object' ? it !== null : typeof it === 'function'; - }; - - /***/ }, - /* 15 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = !__webpack_require__(16) && !__webpack_require__(17)(function(){ - return Object.defineProperty(__webpack_require__(18)('div'), 'a', {get: function(){ return 7; }}).a != 7; - }); - - /***/ }, - /* 16 */ - /***/ function(module, exports, __webpack_require__) { - - // Thank's IE8 for his funny defineProperty - module.exports = !__webpack_require__(17)(function(){ - return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; - }); - - /***/ }, - /* 17 */ - /***/ function(module, exports) { - - module.exports = function(exec){ - try { - return !!exec(); - } catch(e){ - return true; - } - }; - - /***/ }, - /* 18 */ - /***/ function(module, exports, __webpack_require__) { - - var isObject = __webpack_require__(14) - , document = __webpack_require__(7).document - // in old IE typeof document.createElement is 'object' - , is = isObject(document) && isObject(document.createElement); - module.exports = function(it){ - return is ? document.createElement(it) : {}; - }; - - /***/ }, - /* 19 */ - /***/ function(module, exports, __webpack_require__) { - - // 7.1.1 ToPrimitive(input [, PreferredType]) - var isObject = __webpack_require__(14); - // instead of the ES6 spec version, we didn't implement @@toPrimitive case - // and the second argument - flag - preferred type is a string - 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"); - }; - - /***/ }, - /* 20 */ - /***/ function(module, exports) { - - module.exports = function(bitmap, value){ - return { - enumerable : !(bitmap & 1), - configurable: !(bitmap & 2), - writable : !(bitmap & 4), - value : value - }; - }; - - /***/ }, - /* 21 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - // 19.1.2.1 Object.assign(target, source, ...) - var getKeys = __webpack_require__(22) - , gOPS = __webpack_require__(37) - , pIE = __webpack_require__(38) - , toObject = __webpack_require__(39) - , IObject = __webpack_require__(26) - , $assign = Object.assign; - - // should work with symbols and should have deterministic property order (V8 bug) - module.exports = !$assign || __webpack_require__(17)(function(){ - var A = {} - , B = {} - , S = Symbol() - , K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function(k){ B[k] = k; }); - return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; - }) ? function assign(target, source){ // eslint-disable-line no-unused-vars - var T = toObject(target) - , aLen = arguments.length - , index = 1 - , getSymbols = gOPS.f - , isEnum = pIE.f; - while(aLen > index){ - var S = IObject(arguments[index++]) - , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S) - , length = keys.length - , j = 0 - , key; - while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key]; - } return T; - } : $assign; - - /***/ }, - /* 22 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.2.14 / 15.2.3.14 Object.keys(O) - var $keys = __webpack_require__(23) - , enumBugKeys = __webpack_require__(36); - - module.exports = Object.keys || function keys(O){ - return $keys(O, enumBugKeys); - }; - - /***/ }, - /* 23 */ - /***/ function(module, exports, __webpack_require__) { - - var has = __webpack_require__(24) - , toIObject = __webpack_require__(25) - , arrayIndexOf = __webpack_require__(29)(false) - , IE_PROTO = __webpack_require__(33)('IE_PROTO'); - - module.exports = function(object, names){ - var O = toIObject(object) - , i = 0 - , result = [] - , key; - for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); - // Don't enum bug & hidden keys - while(names.length > i)if(has(O, key = names[i++])){ - ~arrayIndexOf(result, key) || result.push(key); - } - return result; - }; - - /***/ }, - /* 24 */ - /***/ function(module, exports) { - - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function(it, key){ - return hasOwnProperty.call(it, key); - }; - - /***/ }, - /* 25 */ - /***/ function(module, exports, __webpack_require__) { - - // to indexed object, toObject with fallback for non-array-like ES3 strings - var IObject = __webpack_require__(26) - , defined = __webpack_require__(28); - module.exports = function(it){ - return IObject(defined(it)); - }; - - /***/ }, - /* 26 */ - /***/ function(module, exports, __webpack_require__) { - - // fallback for non-array-like ES3 and non-enumerable old V8 strings - var cof = __webpack_require__(27); - module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ - return cof(it) == 'String' ? it.split('') : Object(it); - }; - - /***/ }, - /* 27 */ - /***/ function(module, exports) { - - var toString = {}.toString; - - module.exports = function(it){ - return toString.call(it).slice(8, -1); - }; - - /***/ }, - /* 28 */ - /***/ function(module, exports) { - - // 7.2.1 RequireObjectCoercible(argument) - module.exports = function(it){ - if(it == undefined)throw TypeError("Can't call method on " + it); - return it; - }; - - /***/ }, - /* 29 */ - /***/ function(module, exports, __webpack_require__) { - - // false -> Array#indexOf - // true -> Array#includes - var toIObject = __webpack_require__(25) - , toLength = __webpack_require__(30) - , toIndex = __webpack_require__(32); - module.exports = function(IS_INCLUDES){ - return function($this, el, fromIndex){ - var O = toIObject($this) - , length = toLength(O.length) - , index = toIndex(fromIndex, length) - , value; - // Array#includes uses SameValueZero equality algorithm - if(IS_INCLUDES && el != el)while(length > index){ - value = O[index++]; - if(value != value)return true; - // Array#toIndex ignores holes, Array#includes - not - } else for(;length > index; index++)if(IS_INCLUDES || index in O){ - if(O[index] === el)return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; - }; - - /***/ }, - /* 30 */ - /***/ function(module, exports, __webpack_require__) { - - // 7.1.15 ToLength - var toInteger = __webpack_require__(31) - , min = Math.min; - module.exports = function(it){ - return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 - }; - - /***/ }, - /* 31 */ - /***/ function(module, exports) { - - // 7.1.4 ToInteger - var ceil = Math.ceil - , floor = Math.floor; - module.exports = function(it){ - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); - }; - - /***/ }, - /* 32 */ - /***/ function(module, exports, __webpack_require__) { - - var toInteger = __webpack_require__(31) - , max = Math.max - , min = Math.min; - module.exports = function(index, length){ - index = toInteger(index); - return index < 0 ? max(index + length, 0) : min(index, length); - }; - - /***/ }, - /* 33 */ - /***/ function(module, exports, __webpack_require__) { - - var shared = __webpack_require__(34)('keys') - , uid = __webpack_require__(35); - module.exports = function(key){ - return shared[key] || (shared[key] = uid(key)); - }; - - /***/ }, - /* 34 */ - /***/ function(module, exports, __webpack_require__) { - - var global = __webpack_require__(7) - , SHARED = '__core-js_shared__' - , store = global[SHARED] || (global[SHARED] = {}); - module.exports = function(key){ - return store[key] || (store[key] = {}); - }; - - /***/ }, - /* 35 */ - /***/ function(module, exports) { - - var id = 0 - , px = Math.random(); - module.exports = function(key){ - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); - }; - - /***/ }, - /* 36 */ - /***/ function(module, exports) { - - // IE 8- don't enum bug keys - module.exports = ( - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' - ).split(','); - - /***/ }, - /* 37 */ - /***/ function(module, exports) { - - exports.f = Object.getOwnPropertySymbols; - - /***/ }, - /* 38 */ - /***/ function(module, exports) { - - exports.f = {}.propertyIsEnumerable; - - /***/ }, - /* 39 */ - /***/ function(module, exports, __webpack_require__) { - - // 7.1.13 ToObject(argument) - var defined = __webpack_require__(28); - module.exports = function(it){ - return Object(defined(it)); - }; - - /***/ }, - /* 40 */ - /***/ function(module, exports) { - - "use strict"; - - exports.__esModule = true; - - exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; - - /***/ }, - /* 41 */ - /***/ function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _typeof2 = __webpack_require__(42); - - var _typeof3 = _interopRequireDefault(_typeof2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; - }; - - /***/ }, - /* 42 */ - /***/ function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _iterator = __webpack_require__(43); - - var _iterator2 = _interopRequireDefault(_iterator); - - var _symbol = __webpack_require__(63); - - var _symbol2 = _interopRequireDefault(_symbol); - - var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default ? "symbol" : typeof obj; }; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); - } : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); - }; - - /***/ }, - /* 43 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(44), __esModule: true }; - - /***/ }, - /* 44 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(45); - __webpack_require__(58); - module.exports = __webpack_require__(62).f('iterator'); - - /***/ }, - /* 45 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var $at = __webpack_require__(46)(true); - - // 21.1.3.27 String.prototype[@@iterator]() - __webpack_require__(47)(String, 'String', function(iterated){ - this._t = String(iterated); // target - this._i = 0; // next index - // 21.1.5.2.1 %StringIteratorPrototype%.next() - }, function(){ - var O = this._t - , index = this._i - , point; - if(index >= O.length)return {value: undefined, done: true}; - point = $at(O, index); - this._i += point.length; - return {value: point, done: false}; - }); - - /***/ }, - /* 46 */ - /***/ function(module, exports, __webpack_require__) { - - var toInteger = __webpack_require__(31) - , defined = __webpack_require__(28); - // true -> String#at - // false -> String#codePointAt - module.exports = function(TO_STRING){ - return function(that, pos){ - var s = String(defined(that)) - , i = toInteger(pos) - , l = s.length - , 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; - }; - }; - - /***/ }, - /* 47 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var LIBRARY = __webpack_require__(48) - , $export = __webpack_require__(6) - , redefine = __webpack_require__(49) - , hide = __webpack_require__(11) - , has = __webpack_require__(24) - , Iterators = __webpack_require__(50) - , $iterCreate = __webpack_require__(51) - , setToStringTag = __webpack_require__(55) - , getPrototypeOf = __webpack_require__(57) - , ITERATOR = __webpack_require__(56)('iterator') - , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` - , FF_ITERATOR = '@@iterator' - , KEYS = 'keys' - , VALUES = 'values'; - - var returnThis = function(){ return this; }; - - module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ - $iterCreate(Constructor, NAME, next); - var getMethod = function(kind){ - if(!BUGGY && kind in proto)return proto[kind]; - switch(kind){ - case KEYS: return function keys(){ return new Constructor(this, kind); }; - case VALUES: return function values(){ return new Constructor(this, kind); }; - } return function entries(){ return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator' - , DEF_VALUES = DEFAULT == VALUES - , VALUES_BUG = false - , proto = Base.prototype - , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] - , $default = $native || getMethod(DEFAULT) - , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined - , $anyNative = NAME == 'Array' ? proto.entries || $native : $native - , methods, key, IteratorPrototype; - // Fix native - if($anyNative){ - IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); - if(IteratorPrototype !== Object.prototype){ - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); - } - } - // fix Array#{values, @@iterator}.name in V8 / FF - if(DEF_VALUES && $native && $native.name !== VALUES){ - VALUES_BUG = true; - $default = function values(){ return $native.call(this); }; - } - // Define iterator - if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ - hide(proto, ITERATOR, $default); - } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if(DEFAULT){ - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if(FORCED)for(key in methods){ - if(!(key in proto))redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - } - return methods; - }; - - /***/ }, - /* 48 */ - /***/ function(module, exports) { - - module.exports = true; - - /***/ }, - /* 49 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = __webpack_require__(11); - - /***/ }, - /* 50 */ - /***/ function(module, exports) { - - module.exports = {}; - - /***/ }, - /* 51 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var create = __webpack_require__(52) - , descriptor = __webpack_require__(20) - , setToStringTag = __webpack_require__(55) - , IteratorPrototype = {}; - - // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() - __webpack_require__(11)(IteratorPrototype, __webpack_require__(56)('iterator'), function(){ return this; }); - - module.exports = function(Constructor, NAME, next){ - Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); - setToStringTag(Constructor, NAME + ' Iterator'); - }; - - /***/ }, - /* 52 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) - var anObject = __webpack_require__(13) - , dPs = __webpack_require__(53) - , enumBugKeys = __webpack_require__(36) - , IE_PROTO = __webpack_require__(33)('IE_PROTO') - , Empty = function(){ /* empty */ } - , PROTOTYPE = 'prototype'; - - // Create object with fake `null` prototype: use iframe Object with cleared prototype - var createDict = function(){ - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(18)('iframe') - , i = enumBugKeys.length - , lt = '<' - , gt = '>' - , iframeDocument; - iframe.style.display = 'none'; - __webpack_require__(54).appendChild(iframe); - 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); - }; - - - /***/ }, - /* 53 */ - /***/ function(module, exports, __webpack_require__) { - - var dP = __webpack_require__(12) - , anObject = __webpack_require__(13) - , getKeys = __webpack_require__(22); - - module.exports = __webpack_require__(16) ? Object.defineProperties : function defineProperties(O, Properties){ - anObject(O); - var keys = getKeys(Properties) - , length = keys.length - , i = 0 - , P; - while(length > i)dP.f(O, P = keys[i++], Properties[P]); - return O; - }; - - /***/ }, - /* 54 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = __webpack_require__(7).document && document.documentElement; - - /***/ }, - /* 55 */ - /***/ function(module, exports, __webpack_require__) { - - var def = __webpack_require__(12).f - , has = __webpack_require__(24) - , TAG = __webpack_require__(56)('toStringTag'); - - module.exports = function(it, tag, stat){ - if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); - }; - - /***/ }, - /* 56 */ - /***/ function(module, exports, __webpack_require__) { - - var store = __webpack_require__(34)('wks') - , uid = __webpack_require__(35) - , Symbol = __webpack_require__(7).Symbol - , USE_SYMBOL = typeof Symbol == 'function'; - - var $exports = module.exports = function(name){ - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); - }; - - $exports.store = store; - - /***/ }, - /* 57 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) - var has = __webpack_require__(24) - , toObject = __webpack_require__(39) - , IE_PROTO = __webpack_require__(33)('IE_PROTO') - , ObjectProto = Object.prototype; - - 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; - } return O instanceof Object ? ObjectProto : null; - }; - - /***/ }, - /* 58 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(59); - var global = __webpack_require__(7) - , hide = __webpack_require__(11) - , Iterators = __webpack_require__(50) - , TO_STRING_TAG = __webpack_require__(56)('toStringTag'); - - for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ - var NAME = collections[i] - , Collection = global[NAME] - , proto = Collection && Collection.prototype; - if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); - Iterators[NAME] = Iterators.Array; - } - - /***/ }, - /* 59 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var addToUnscopables = __webpack_require__(60) - , step = __webpack_require__(61) - , Iterators = __webpack_require__(50) - , toIObject = __webpack_require__(25); - - // 22.1.3.4 Array.prototype.entries() - // 22.1.3.13 Array.prototype.keys() - // 22.1.3.29 Array.prototype.values() - // 22.1.3.30 Array.prototype[@@iterator]() - module.exports = __webpack_require__(47)(Array, 'Array', function(iterated, kind){ - this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind - // 22.1.5.2.1 %ArrayIteratorPrototype%.next() - }, function(){ - var O = this._t - , kind = this._k - , index = this._i++; - if(!O || index >= O.length){ - this._t = undefined; - return step(1); - } - if(kind == 'keys' )return step(0, index); - if(kind == 'values')return step(0, O[index]); - return step(0, [index, O[index]]); - }, 'values'); - - // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) - Iterators.Arguments = Iterators.Array; - - addToUnscopables('keys'); - addToUnscopables('values'); - addToUnscopables('entries'); - - /***/ }, - /* 60 */ - /***/ function(module, exports) { - - module.exports = function(){ /* empty */ }; - - /***/ }, - /* 61 */ - /***/ function(module, exports) { - - module.exports = function(done, value){ - return {value: value, done: !!done}; - }; - - /***/ }, - /* 62 */ - /***/ function(module, exports, __webpack_require__) { - - exports.f = __webpack_require__(56); - - /***/ }, - /* 63 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(64), __esModule: true }; - - /***/ }, - /* 64 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(65); - __webpack_require__(74); - __webpack_require__(75); - __webpack_require__(76); - module.exports = __webpack_require__(8).Symbol; - - /***/ }, - /* 65 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - // ECMAScript 6 symbols shim - var global = __webpack_require__(7) - , has = __webpack_require__(24) - , DESCRIPTORS = __webpack_require__(16) - , $export = __webpack_require__(6) - , redefine = __webpack_require__(49) - , META = __webpack_require__(66).KEY - , $fails = __webpack_require__(17) - , shared = __webpack_require__(34) - , setToStringTag = __webpack_require__(55) - , uid = __webpack_require__(35) - , wks = __webpack_require__(56) - , wksExt = __webpack_require__(62) - , wksDefine = __webpack_require__(67) - , keyOf = __webpack_require__(68) - , enumKeys = __webpack_require__(69) - , isArray = __webpack_require__(70) - , anObject = __webpack_require__(13) - , toIObject = __webpack_require__(25) - , toPrimitive = __webpack_require__(19) - , createDesc = __webpack_require__(20) - , _create = __webpack_require__(52) - , gOPNExt = __webpack_require__(71) - , $GOPD = __webpack_require__(73) - , $DP = __webpack_require__(12) - , $keys = __webpack_require__(22) - , gOPD = $GOPD.f - , dP = $DP.f - , gOPN = gOPNExt.f - , $Symbol = global.Symbol - , $JSON = global.JSON - , _stringify = $JSON && $JSON.stringify - , PROTOTYPE = 'prototype' - , HIDDEN = wks('_hidden') - , TO_PRIMITIVE = wks('toPrimitive') - , isEnum = {}.propertyIsEnumerable - , SymbolRegistry = shared('symbol-registry') - , AllSymbols = shared('symbols') - , OPSymbols = shared('op-symbols') - , ObjectProto = Object[PROTOTYPE] - , USE_NATIVE = typeof $Symbol == 'function' - , QObject = global.QObject; - // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 - var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - - // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 - var setSymbolDesc = DESCRIPTORS && $fails(function(){ - return _create(dP({}, 'a', { - get: function(){ return dP(this, 'a', {value: 7}).a; } - })).a != 7; - }) ? function(it, key, D){ - var protoDesc = gOPD(ObjectProto, key); - if(protoDesc)delete ObjectProto[key]; - dP(it, key, D); - if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); - } : dP; - - var wrap = function(tag){ - var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); - sym._k = tag; - return sym; - }; - - var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ - return typeof it == 'symbol'; - } : function(it){ - return it instanceof $Symbol; - }; - - var $defineProperty = function defineProperty(it, key, D){ - if(it === ObjectProto)$defineProperty(OPSymbols, key, D); - anObject(it); - key = toPrimitive(key, true); - anObject(D); - if(has(AllSymbols, key)){ - if(!D.enumerable){ - if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); - it[HIDDEN][key] = true; - } else { - if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; - D = _create(D, {enumerable: createDesc(0, false)}); - } return setSymbolDesc(it, key, D); - } return dP(it, key, D); - }; - var $defineProperties = function defineProperties(it, P){ - anObject(it); - var keys = enumKeys(P = toIObject(P)) - , i = 0 - , l = keys.length - , key; - while(l > i)$defineProperty(it, key = keys[i++], P[key]); - return it; - }; - var $create = function create(it, P){ - return P === undefined ? _create(it) : $defineProperties(_create(it), P); - }; - var $propertyIsEnumerable = function propertyIsEnumerable(key){ - var E = isEnum.call(this, key = toPrimitive(key, true)); - if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; - return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; - }; - var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ - it = toIObject(it); - key = toPrimitive(key, true); - if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; - var D = gOPD(it, key); - if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; - return D; - }; - var $getOwnPropertyNames = function getOwnPropertyNames(it){ - var names = gOPN(toIObject(it)) - , result = [] - , i = 0 - , key; - while(names.length > i){ - if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); - } return result; - }; - var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ - var IS_OP = it === ObjectProto - , names = gOPN(IS_OP ? OPSymbols : toIObject(it)) - , result = [] - , i = 0 - , key; - while(names.length > i){ - if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); - } return result; - }; - - // 19.4.1.1 Symbol([description]) - if(!USE_NATIVE){ - $Symbol = function Symbol(){ - if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function(value){ - if(this === ObjectProto)$set.call(OPSymbols, value); - if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; - setSymbolDesc(this, tag, createDesc(1, value)); - }; - if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); - return wrap(tag); - }; - redefine($Symbol[PROTOTYPE], 'toString', function toString(){ - return this._k; - }); - - $GOPD.f = $getOwnPropertyDescriptor; - $DP.f = $defineProperty; - __webpack_require__(72).f = gOPNExt.f = $getOwnPropertyNames; - __webpack_require__(38).f = $propertyIsEnumerable; - __webpack_require__(37).f = $getOwnPropertySymbols; - - if(DESCRIPTORS && !__webpack_require__(48)){ - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); - } - - wksExt.f = function(name){ - return wrap(wks(name)); - } - } - - $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); - - for(var symbols = ( - // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' - ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); - - for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); - - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - // 19.4.2.1 Symbol.for(key) - 'for': function(key){ - return has(SymbolRegistry, key += '') - ? SymbolRegistry[key] - : SymbolRegistry[key] = $Symbol(key); - }, - // 19.4.2.5 Symbol.keyFor(sym) - keyFor: function keyFor(key){ - if(isSymbol(key))return keyOf(SymbolRegistry, key); - throw TypeError(key + ' is not a symbol!'); - }, - useSetter: function(){ setter = true; }, - useSimple: function(){ setter = false; } - }); - - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - // 19.1.2.2 Object.create(O [, Properties]) - create: $create, - // 19.1.2.4 Object.defineProperty(O, P, Attributes) - defineProperty: $defineProperty, - // 19.1.2.3 Object.defineProperties(O, Properties) - defineProperties: $defineProperties, - // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - // 19.1.2.7 Object.getOwnPropertyNames(O) - getOwnPropertyNames: $getOwnPropertyNames, - // 19.1.2.8 Object.getOwnPropertySymbols(O) - getOwnPropertySymbols: $getOwnPropertySymbols - }); - - // 24.3.2 JSON.stringify(value [, replacer [, space]]) - $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ - var S = $Symbol(); - // MS Edge converts symbol values to JSON as {} - // WebKit converts symbol values to JSON as null - // V8 throws on boxed symbols - return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; - })), 'JSON', { - stringify: function stringify(it){ - if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined - var args = [it] - , i = 1 - , replacer, $replacer; - while(arguments.length > i)args.push(arguments[i++]); - replacer = args[1]; - if(typeof replacer == 'function')$replacer = replacer; - if($replacer || !isArray(replacer))replacer = function(key, value){ - if($replacer)value = $replacer.call(this, key, value); - if(!isSymbol(value))return value; - }; - args[1] = replacer; - return _stringify.apply($JSON, args); - } - }); - - // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) - $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(11)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); - // 19.4.3.5 Symbol.prototype[@@toStringTag] - setToStringTag($Symbol, 'Symbol'); - // 20.2.1.9 Math[@@toStringTag] - setToStringTag(Math, 'Math', true); - // 24.3.3 JSON[@@toStringTag] - setToStringTag(global.JSON, 'JSON', true); - - /***/ }, - /* 66 */ - /***/ function(module, exports, __webpack_require__) { - - var META = __webpack_require__(35)('meta') - , isObject = __webpack_require__(14) - , has = __webpack_require__(24) - , setDesc = __webpack_require__(12).f - , id = 0; - var isExtensible = Object.isExtensible || function(){ - return true; - }; - var FREEZE = !__webpack_require__(17)(function(){ - return isExtensible(Object.preventExtensions({})); - }); - var setMeta = function(it){ - setDesc(it, META, {value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - }}); - }; - var fastKey = function(it, create){ - // return primitive with prefix - if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if(!has(it, META)){ - // can't set metadata to uncaught frozen object - if(!isExtensible(it))return 'F'; - // not necessary to add metadata - if(!create)return 'E'; - // add missing metadata - setMeta(it); - // return object ID - } return it[META].i; - }; - var getWeak = function(it, create){ - if(!has(it, META)){ - // can't set metadata to uncaught frozen object - if(!isExtensible(it))return true; - // not necessary to add metadata - if(!create)return false; - // add missing metadata - setMeta(it); - // return hash weak collections IDs - } return it[META].w; - }; - // add metadata on freeze-family methods calling - var onFreeze = function(it){ - if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); - return it; - }; - var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, - onFreeze: onFreeze - }; - - /***/ }, - /* 67 */ - /***/ function(module, exports, __webpack_require__) { - - var global = __webpack_require__(7) - , core = __webpack_require__(8) - , LIBRARY = __webpack_require__(48) - , wksExt = __webpack_require__(62) - , defineProperty = __webpack_require__(12).f; - module.exports = function(name){ - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); - }; - - /***/ }, - /* 68 */ - /***/ function(module, exports, __webpack_require__) { - - var getKeys = __webpack_require__(22) - , toIObject = __webpack_require__(25); - module.exports = function(object, el){ - var O = toIObject(object) - , keys = getKeys(O) - , length = keys.length - , index = 0 - , key; - while(length > index)if(O[key = keys[index++]] === el)return key; - }; - - /***/ }, - /* 69 */ - /***/ function(module, exports, __webpack_require__) { - - // all enumerable object keys, includes symbols - var getKeys = __webpack_require__(22) - , gOPS = __webpack_require__(37) - , pIE = __webpack_require__(38); - module.exports = function(it){ - var result = getKeys(it) - , getSymbols = gOPS.f; - if(getSymbols){ - var symbols = getSymbols(it) - , isEnum = pIE.f - , i = 0 - , key; - while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); - } return result; - }; - - /***/ }, - /* 70 */ - /***/ function(module, exports, __webpack_require__) { - - // 7.2.2 IsArray(argument) - var cof = __webpack_require__(27); - module.exports = Array.isArray || function isArray(arg){ - return cof(arg) == 'Array'; - }; - - /***/ }, - /* 71 */ - /***/ function(module, exports, __webpack_require__) { - - // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window - var toIObject = __webpack_require__(25) - , gOPN = __webpack_require__(72).f - , toString = {}.toString; - - var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; - - var getWindowNames = function(it){ - try { - return gOPN(it); - } catch(e){ - return windowNames.slice(); - } - }; - - module.exports.f = function getOwnPropertyNames(it){ - return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); - }; - - - /***/ }, - /* 72 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) - var $keys = __webpack_require__(23) - , hiddenKeys = __webpack_require__(36).concat('length', 'prototype'); - - exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ - return $keys(O, hiddenKeys); - }; - - /***/ }, - /* 73 */ - /***/ function(module, exports, __webpack_require__) { - - var pIE = __webpack_require__(38) - , createDesc = __webpack_require__(20) - , toIObject = __webpack_require__(25) - , toPrimitive = __webpack_require__(19) - , has = __webpack_require__(24) - , IE8_DOM_DEFINE = __webpack_require__(15) - , gOPD = Object.getOwnPropertyDescriptor; - - exports.f = __webpack_require__(16) ? gOPD : function getOwnPropertyDescriptor(O, P){ - O = toIObject(O); - P = toPrimitive(P, true); - if(IE8_DOM_DEFINE)try { - return gOPD(O, P); - } catch(e){ /* empty */ } - if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); - }; - - /***/ }, - /* 74 */ - /***/ function(module, exports) { - - - - /***/ }, - /* 75 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(67)('asyncIterator'); - - /***/ }, - /* 76 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(67)('observable'); - - /***/ }, - /* 77 */ - /***/ function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _setPrototypeOf = __webpack_require__(78); - - var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - - var _create = __webpack_require__(82); - - var _create2 = _interopRequireDefault(_create); - - var _typeof2 = __webpack_require__(42); - - var _typeof3 = _interopRequireDefault(_typeof2); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); - } - - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; - }; - - /***/ }, - /* 78 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(79), __esModule: true }; - - /***/ }, - /* 79 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(80); - module.exports = __webpack_require__(8).Object.setPrototypeOf; - - /***/ }, - /* 80 */ - /***/ function(module, exports, __webpack_require__) { - - // 19.1.3.19 Object.setPrototypeOf(O, proto) - var $export = __webpack_require__(6); - $export($export.S, 'Object', {setPrototypeOf: __webpack_require__(81).set}); - - /***/ }, - /* 81 */ - /***/ function(module, exports, __webpack_require__) { - - // Works with __proto__ only. Old v8 can't work with null proto objects. - /* eslint-disable no-proto */ - var isObject = __webpack_require__(14) - , anObject = __webpack_require__(13); - var check = function(O, proto){ - anObject(O); - if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!"); - }; - module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function(test, buggy, set){ - try { - set = __webpack_require__(9)(Function.call, __webpack_require__(73).f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch(e){ buggy = true; } - return function setPrototypeOf(O, proto){ - check(O, proto); - if(buggy)O.__proto__ = proto; - else set(O, proto); - return O; - }; - }({}, false) : undefined), - check: check - }; - - /***/ }, - /* 82 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(83), __esModule: true }; - - /***/ }, - /* 83 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(84); - var $Object = __webpack_require__(8).Object; - module.exports = function create(P, D){ - return $Object.create(P, D); - }; - - /***/ }, - /* 84 */ - /***/ function(module, exports, __webpack_require__) { - - var $export = __webpack_require__(6) - // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) - $export($export.S, 'Object', {create: __webpack_require__(52)}); - - /***/ }, - /* 85 */ - /***/ function(module, exports) { - - module.exports = __WEBPACK_EXTERNAL_MODULE_85__; - - /***/ }, - /* 86 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _assign = __webpack_require__(3); - - var _assign2 = _interopRequireDefault(_assign); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _bootstrapUtils = __webpack_require__(89); - - var _createChainedFunction = __webpack_require__(96); - - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - - var _ValidComponentChildren = __webpack_require__(97); - - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - accordion: _react2['default'].PropTypes.bool, - activeKey: _react2['default'].PropTypes.any, - defaultActiveKey: _react2['default'].PropTypes.any, - onSelect: _react2['default'].PropTypes.func, - role: _react2['default'].PropTypes.string - }; - - var defaultProps = { - accordion: false - }; - - // TODO: Use uncontrollable. - - var PanelGroup = function (_React$Component) { - (0, _inherits3['default'])(PanelGroup, _React$Component); - - function PanelGroup(props, context) { - (0, _classCallCheck3['default'])(this, PanelGroup); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleSelect = _this.handleSelect.bind(_this); - - _this.state = { - activeKey: props.defaultActiveKey - }; - return _this; - } - - PanelGroup.prototype.handleSelect = function handleSelect(key, e) { - e.preventDefault(); - - if (this.props.onSelect) { - this.props.onSelect(key, e); - } - - if (this.state.activeKey === key) { - key = null; - } - - this.setState({ activeKey: key }); - }; - - PanelGroup.prototype.render = function render() { - var _this2 = this; - - var _props = this.props; - var accordion = _props.accordion; - var propsActiveKey = _props.activeKey; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['accordion', 'activeKey', 'className', 'children']); - - var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['defaultActiveKey', 'onSelect']); - - var bsProps = _splitBsPropsAndOmit[0]; - var elementProps = _splitBsPropsAndOmit[1]; - - - var activeKey = void 0; - if (accordion) { - activeKey = propsActiveKey != null ? propsActiveKey : this.state.activeKey; - elementProps.role = elementProps.role || 'tablist'; - } - - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - - return _react2['default'].createElement( - 'div', - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - }), - _ValidComponentChildren2['default'].map(children, function (child) { - var childProps = { - bsStyle: child.props.bsStyle || bsProps.bsStyle - }; - - if (accordion) { - (0, _assign2['default'])(childProps, { - headerRole: 'tab', - panelRole: 'tabpanel', - collapsible: true, - expanded: child.props.eventKey === activeKey, - onSelect: (0, _createChainedFunction2['default'])(_this2.handleSelect, child.props.onSelect) - }); - } - - return (0, _react.cloneElement)(child, childProps); - }) - ); - }; - - return PanelGroup; - }(_react2['default'].Component); - - PanelGroup.propTypes = propTypes; - PanelGroup.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('panel-group', PanelGroup); - module.exports = exports['default']; - - /***/ }, - /* 87 */ - /***/ function(module, exports) { - - "use strict"; - - exports.__esModule = true; - - exports.default = function (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; - }; - - /***/ }, - /* 88 */ - /***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2016 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; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg)) { - classes.push(classNames.apply(null, arg)); - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if (typeof module !== 'undefined' && module.exports) { - 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 { - window.classNames = classNames; - } - }()); - - - /***/ }, - /* 89 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - exports._curry = exports.bsSizes = exports.bsStyles = exports.bsClass = undefined; - - var _entries = __webpack_require__(90); - - var _entries2 = _interopRequireDefault(_entries); - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - exports.prefix = prefix; - exports.getClassSet = getClassSet; - exports.splitBsProps = splitBsProps; - exports.splitBsPropsAndOmit = splitBsPropsAndOmit; - exports.addStyle = addStyle; - - var _invariant = __webpack_require__(94); - - var _invariant2 = _interopRequireDefault(_invariant); - - var _react = __webpack_require__(85); - - var _StyleConfig = __webpack_require__(95); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - function curry(fn) { - return function () { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var last = args[args.length - 1]; - if (typeof last === 'function') { - return fn.apply(undefined, args); - } - return function (Component) { - return fn.apply(undefined, args.concat([Component])); - }; - }; - } // TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. - - function prefix(props, variant) { - !(props.bsClass != null) ? true ? (0, _invariant2['default'])(false, 'A `bsClass` prop is required for this component') : (0, _invariant2['default'])(false) : void 0; - return props.bsClass + (variant ? '-' + variant : ''); - } - - var bsClass = exports.bsClass = curry(function (defaultClass, Component) { - var propTypes = Component.propTypes || (Component.propTypes = {}); - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - - propTypes.bsClass = _react.PropTypes.string; - defaultProps.bsClass = defaultClass; - - return Component; - }); - - var bsStyles = exports.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 = _react.PropTypes.oneOf(existing); - - // expose the values on the propType function for documentation - Component.STYLES = propType._values = existing; - - Component.propTypes = (0, _extends3['default'])({}, propTypes, { - bsStyle: propType - }); - - if (defaultStyle !== undefined) { - var defaultProps = Component.defaultProps || (Component.defaultProps = {}); - defaultProps.bsStyle = defaultStyle; - } - - return Component; - }); - - var bsSizes = exports.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 = _StyleConfig.SIZE_MAP[size]; - if (mappedSize && mappedSize !== size) { - values.push(mappedSize); - } - - values.push(size); - }); - - var propType = _react.PropTypes.oneOf(values); - propType._values = values; - - // expose the values on the propType function for documentation - Component.SIZES = existing; - - Component.propTypes = (0, _extends3['default'])({}, propTypes, { - bsSize: propType - }); - - if (defaultSize !== undefined) { - if (!Component.defaultProps) { - Component.defaultProps = {}; - } - Component.defaultProps.bsSize = defaultSize; - } - - return Component; - }); - - function getClassSet(props) { - var _classes; - - var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); - - if (props.bsSize) { - var bsSize = _StyleConfig.SIZE_MAP[props.bsSize] || props.bsSize; - classes[prefix(props, bsSize)] = true; - } - - if (props.bsStyle) { - classes[prefix(props, props.bsStyle)] = true; - } - - return classes; - } - - function getBsProps(props) { - return { - bsClass: props.bsClass, - bsSize: props.bsSize, - bsStyle: props.bsStyle, - bsRole: props.bsRole - }; - } - - function isBsProp(propName) { - return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; - } - - function splitBsProps(props) { - var elementProps = {}; - (0, _entries2['default'])(props).forEach(function (_ref) { - var propName = _ref[0]; - var propValue = _ref[1]; - - if (!isBsProp(propName)) { - elementProps[propName] = propValue; - } - }); - - return [getBsProps(props), elementProps]; - } - - function splitBsPropsAndOmit(props, omittedPropNames) { - var isOmittedProp = {}; - omittedPropNames.forEach(function (propName) { - isOmittedProp[propName] = true; - }); - - var elementProps = {}; - (0, _entries2['default'])(props).forEach(function (_ref2) { - var propName = _ref2[0]; - var propValue = _ref2[1]; - - if (!isBsProp(propName) && !isOmittedProp[propName]) { - elementProps[propName] = propValue; - } - }); - - 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 = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - styleVariant[_key2 - 1] = arguments[_key2]; - } - - bsStyles(styleVariant, Component); - } - - var _curry = exports._curry = curry; - - /***/ }, - /* 90 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(91), __esModule: true }; - - /***/ }, - /* 91 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(92); - module.exports = __webpack_require__(8).Object.entries; - - /***/ }, - /* 92 */ - /***/ function(module, exports, __webpack_require__) { - - // https://github.com/tc39/proposal-object-values-entries - var $export = __webpack_require__(6) - , $entries = __webpack_require__(93)(true); - - $export($export.S, 'Object', { - entries: function entries(it){ - return $entries(it); - } - }); - - /***/ }, - /* 93 */ - /***/ function(module, exports, __webpack_require__) { - - var getKeys = __webpack_require__(22) - , toIObject = __webpack_require__(25) - , isEnum = __webpack_require__(38).f; - module.exports = function(isEntries){ - return function(it){ - var O = toIObject(it) - , keys = getKeys(O) - , length = keys.length - , i = 0 - , result = [] - , key; - while(length > i)if(isEnum.call(O, key = keys[i++])){ - result.push(isEntries ? [key, O[key]] : O[key]); - } return result; - }; - }; - - /***/ }, - /* 94 */ - /***/ function(module, exports, __webpack_require__) { - - /** - * Copyright 2013-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. - */ - - 'use strict'; - - /** - * 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 invariant = function(condition, format, a, b, c, d, e, f) { - if (true) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - } - - if (!condition) { - var error; - 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 - throw error; - } - }; - - module.exports = invariant; - - - /***/ }, - /* 95 */ - /***/ function(module, exports) { - - 'use strict'; - - exports.__esModule = true; - var Size = exports.Size = { - LARGE: 'large', - SMALL: 'small', - XSMALL: 'xsmall' - }; - - var SIZE_MAP = exports.SIZE_MAP = { - large: 'lg', - medium: 'md', - small: 'sm', - xsmall: 'xs', - lg: 'lg', - md: 'md', - sm: 'sm', - xs: 'xs' - }; - - var DEVICE_SIZES = exports.DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; - - var State = exports.State = { - SUCCESS: 'success', - WARNING: 'warning', - DANGER: 'danger', - INFO: 'info' - }; - - var Style = exports.Style = { - DEFAULT: 'default', - PRIMARY: 'primary', - LINK: 'link', - INVERSE: 'inverse' - }; - - /***/ }, - /* 96 */ - /***/ function(module, exports) { - - 'use strict'; - - exports.__esModule = true; - /** - * 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 = 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 = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } - - exports['default'] = createChainedFunction; - module.exports = exports['default']; - - /***/ }, - /* 97 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /** - * 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 _react2['default'].Children.map(children, function (child) { - if (!_react2['default'].isValidElement(child)) { - return child; - } - - 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. - */ - // TODO: This module should be ElementChildren, and should use named exports. - - function forEach(children, func, context) { - var index = 0; - - _react2['default'].Children.forEach(children, function (child) { - if (!_react2['default'].isValidElement(child)) { - return; - } - - func.call(context, child, index++); - }); - } - - /** - * Count the number of "valid components" in the Children container. - * - * @param {?*} children Children tree container. - * @returns {number} - */ - function count(children) { - var result = 0; - - _react2['default'].Children.forEach(children, function (child) { - if (!_react2['default'].isValidElement(child)) { - 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 - */ - function filter(children, func, context) { - var index = 0; - var result = []; - - _react2['default'].Children.forEach(children, function (child) { - if (!_react2['default'].isValidElement(child)) { - return; - } - - if (func.call(context, child, index++)) { - result.push(child); - } - }); - - return result; - } - - function find(children, func, context) { - var index = 0; - var result = undefined; - - _react2['default'].Children.forEach(children, function (child) { - if (result) { - return; - } - if (!_react2['default'].isValidElement(child)) { - return; - } - - if (func.call(context, child, index++)) { - result = child; - } - }); - - return result; - } - - function every(children, func, context) { - var index = 0; - var result = true; - - _react2['default'].Children.forEach(children, function (child) { - if (!result) { - return; - } - if (!_react2['default'].isValidElement(child)) { - return; - } - - if (!func.call(context, child, index++)) { - result = false; - } - }); - - return result; - } - - function some(children, func, context) { - var index = 0; - var result = false; - - _react2['default'].Children.forEach(children, function (child) { - if (result) { - return; - } - if (!_react2['default'].isValidElement(child)) { - return; - } - - if (func.call(context, child, index++)) { - result = true; - } - }); - - return result; - } - - function toArray(children) { - var result = []; - - _react2['default'].Children.forEach(children, function (child) { - if (!_react2['default'].isValidElement(child)) { - return; - } - - result.push(child); - }); - - return result; - } - - exports['default'] = { - map: map, - forEach: forEach, - count: count, - find: find, - filter: filter, - every: every, - some: some, - toArray: toArray - }; - module.exports = exports['default']; - - /***/ }, - /* 98 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _values = __webpack_require__(99); - - var _values2 = _interopRequireDefault(_values); - - var _extends3 = __webpack_require__(2); - - var _extends4 = _interopRequireDefault(_extends3); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _bootstrapUtils = __webpack_require__(89); - - var _StyleConfig = __webpack_require__(95); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - onDismiss: _react2['default'].PropTypes.func, - closeLabel: _react2['default'].PropTypes.string - }; - - var defaultProps = { - closeLabel: 'Close alert' - }; - - var Alert = function (_React$Component) { - (0, _inherits3['default'])(Alert, _React$Component); - - function Alert() { - (0, _classCallCheck3['default'])(this, Alert); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Alert.prototype.renderDismissButton = function renderDismissButton(onDismiss) { - return _react2['default'].createElement( - 'button', - { - type: 'button', - className: 'close', - onClick: onDismiss, - 'aria-hidden': 'true', - tabIndex: '-1' - }, - _react2['default'].createElement( - 'span', - null, - '×' - ) - ); - }; - - Alert.prototype.renderSrOnlyDismissButton = function renderSrOnlyDismissButton(onDismiss, closeLabel) { - return _react2['default'].createElement( - 'button', - { - type: 'button', - className: 'close sr-only', - onClick: onDismiss - }, - closeLabel - ); - }; - - Alert.prototype.render = function render() { - var _extends2; - - var _props = this.props; - var onDismiss = _props.onDismiss; - var closeLabel = _props.closeLabel; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['onDismiss', 'closeLabel', 'className', 'children']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var dismissable = !!onDismiss; - var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'dismissable')] = dismissable, _extends2)); - - return _react2['default'].createElement( - 'div', - (0, _extends4['default'])({}, elementProps, { - role: 'alert', - className: (0, _classnames2['default'])(className, classes) - }), - dismissable && this.renderDismissButton(onDismiss), - children, - dismissable && this.renderSrOnlyDismissButton(onDismiss, closeLabel) - ); - }; - - return Alert; - }(_react2['default'].Component); - - Alert.propTypes = propTypes; - Alert.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsStyles)((0, _values2['default'])(_StyleConfig.State), _StyleConfig.State.INFO, (0, _bootstrapUtils.bsClass)('alert', Alert)); - module.exports = exports['default']; - - /***/ }, - /* 99 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(100), __esModule: true }; - - /***/ }, - /* 100 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(101); - module.exports = __webpack_require__(8).Object.values; - - /***/ }, - /* 101 */ - /***/ function(module, exports, __webpack_require__) { - - // https://github.com/tc39/proposal-object-values-entries - var $export = __webpack_require__(6) - , $values = __webpack_require__(93)(false); - - $export($export.S, 'Object', { - values: function values(it){ - return $values(it); - } - }); - - /***/ }, - /* 102 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - // TODO: `pullRight` doesn't belong here. There's no special handling here. - - var propTypes = { - pullRight: _react2['default'].PropTypes.bool - }; - - var defaultProps = { - pullRight: false - }; - - var Badge = function (_React$Component) { - (0, _inherits3['default'])(Badge, _React$Component); - - function Badge() { - (0, _classCallCheck3['default'])(this, Badge); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Badge.prototype.hasContent = function hasContent(children) { - var result = false; - - _react2['default'].Children.forEach(children, function (child) { - if (result) { - return; - } - - if (child || child === 0) { - result = true; - } - }); - - return result; - }; - - Badge.prototype.render = function render() { - var _props = this.props; - var pullRight = _props.pullRight; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['pullRight', 'className', 'children']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - 'pull-right': pullRight, - - // Hack for collapsing on IE8. - hidden: !this.hasContent(children) - }); - - return _react2['default'].createElement( - 'span', - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - }), - children - ); - }; - - return Badge; - }(_react2['default'].Component); - - Badge.propTypes = propTypes; - Badge.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('badge', Badge); - module.exports = exports['default']; - - /***/ }, - /* 103 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _BreadcrumbItem = __webpack_require__(104); - - var _BreadcrumbItem2 = _interopRequireDefault(_BreadcrumbItem); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var Breadcrumb = function (_React$Component) { - (0, _inherits3['default'])(Breadcrumb, _React$Component); - - function Breadcrumb() { - (0, _classCallCheck3['default'])(this, Breadcrumb); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Breadcrumb.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - - return _react2['default'].createElement('ol', (0, _extends3['default'])({}, elementProps, { - role: 'navigation', - 'aria-label': 'breadcrumbs', - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return Breadcrumb; - }(_react2['default'].Component); - - Breadcrumb.Item = _BreadcrumbItem2['default']; - - exports['default'] = (0, _bootstrapUtils.bsClass)('breadcrumb', Breadcrumb); - module.exports = exports['default']; - - /***/ }, - /* 104 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _SafeAnchor = __webpack_require__(105); - - var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - /** - * If set to true, renders `span` instead of `a` - */ - active: _react2['default'].PropTypes.bool, - /** - * `href` attribute for the inner `a` element - */ - href: _react2['default'].PropTypes.string, - /** - * `title` attribute for the inner `a` element - */ - title: _react2['default'].PropTypes.node, - /** - * `target` attribute for the inner `a` element - */ - target: _react2['default'].PropTypes.string - }; - - var defaultProps = { - active: false - }; - - var BreadcrumbItem = function (_React$Component) { - (0, _inherits3['default'])(BreadcrumbItem, _React$Component); - - function BreadcrumbItem() { - (0, _classCallCheck3['default'])(this, BreadcrumbItem); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - BreadcrumbItem.prototype.render = function render() { - var _props = this.props; - var active = _props.active; - var href = _props.href; - var title = _props.title; - var target = _props.target; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'href', 'title', 'target', 'className']); - - // Don't try to render these props on non-active . - - var linkProps = { href: href, title: title, target: target }; - - return _react2['default'].createElement( - 'li', - { className: (0, _classnames2['default'])(className, { active: active }) }, - active ? _react2['default'].createElement('span', props) : _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3['default'])({}, props, linkProps)) - ); - }; - - return BreadcrumbItem; - }(_react2['default'].Component); - - BreadcrumbItem.propTypes = propTypes; - BreadcrumbItem.defaultProps = defaultProps; - - exports['default'] = BreadcrumbItem; - module.exports = exports['default']; - - /***/ }, - /* 105 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _elementType = __webpack_require__(106); - - var _elementType2 = _interopRequireDefault(_elementType); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - href: _react2['default'].PropTypes.string, - onClick: _react2['default'].PropTypes.func, - disabled: _react2['default'].PropTypes.bool, - role: _react2['default'].PropTypes.string, - tabIndex: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.string]), - /** - * this is sort of silly but needed for Button - */ - componentClass: _elementType2['default'] - }; - - var defaultProps = { - componentClass: 'a' - }; - - 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 = function (_React$Component) { - (0, _inherits3['default'])(SafeAnchor, _React$Component); - - function SafeAnchor(props, context) { - (0, _classCallCheck3['default'])(this, SafeAnchor); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleClick = _this.handleClick.bind(_this); - return _this; - } - - SafeAnchor.prototype.handleClick = function handleClick(event) { - var _props = this.props; - var disabled = _props.disabled; - var href = _props.href; - var onClick = _props.onClick; - - - if (disabled || isTrivialHref(href)) { - event.preventDefault(); - } - - if (disabled) { - event.stopPropagation(); - return; - } - - if (onClick) { - onClick(event); - } - }; - - SafeAnchor.prototype.render = function render() { - var _props2 = this.props; - var Component = _props2.componentClass; - var disabled = _props2.disabled; - var props = (0, _objectWithoutProperties3['default'])(_props2, ['componentClass', 'disabled']); - - - 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 || ''; - } - - if (disabled) { - props.tabIndex = -1; - props.style = (0, _extends3['default'])({ pointerEvents: 'none' }, props.style); - } - - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, props, { - onClick: this.handleClick - })); - }; - - return SafeAnchor; - }(_react2['default'].Component); - - SafeAnchor.propTypes = propTypes; - SafeAnchor.defaultProps = defaultProps; - - exports['default'] = SafeAnchor; - module.exports = exports['default']; - - /***/ }, - /* 106 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - 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__(85); - - var _react2 = _interopRequireDefault(_react); - - var _createChainableTypeChecker = __webpack_require__(107); - - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - 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; - } - - exports.default = (0, _createChainableTypeChecker2.default)(elementType); - - /***/ }, - /* 107 */ - /***/ function(module, exports) { - - 'use strict'; - - 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. - - function createChainableTypeChecker(validate) { - function checkType(isRequired, props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] == null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); - } - - 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)); - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - /***/ }, - /* 108 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _values = __webpack_require__(99); - - var _values2 = _interopRequireDefault(_values); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _extends3 = __webpack_require__(2); - - var _extends4 = _interopRequireDefault(_extends3); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _elementType = __webpack_require__(106); - - var _elementType2 = _interopRequireDefault(_elementType); - - var _bootstrapUtils = __webpack_require__(89); - - var _StyleConfig = __webpack_require__(95); - - var _SafeAnchor = __webpack_require__(105); - - var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - active: _react2['default'].PropTypes.bool, - disabled: _react2['default'].PropTypes.bool, - block: _react2['default'].PropTypes.bool, - onClick: _react2['default'].PropTypes.func, - componentClass: _elementType2['default'], - href: _react2['default'].PropTypes.string, - /** - * Defines HTML button type attribute - * @defaultValue 'button' - */ - type: _react2['default'].PropTypes.oneOf(['button', 'reset', 'submit']) - }; - - var defaultProps = { - active: false, - block: false, - disabled: false - }; - - var Button = function (_React$Component) { - (0, _inherits3['default'])(Button, _React$Component); - - function Button() { - (0, _classCallCheck3['default'])(this, Button); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Button.prototype.renderAnchor = function renderAnchor(elementProps, className) { - return _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends4['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, elementProps.disabled && 'disabled') - })); - }; - - Button.prototype.renderButton = function renderButton(_ref, className) { - var componentClass = _ref.componentClass; - var elementProps = (0, _objectWithoutProperties3['default'])(_ref, ['componentClass']); - - var Component = componentClass || 'button'; - - return _react2['default'].createElement(Component, (0, _extends4['default'])({}, elementProps, { - type: elementProps.type || 'button', - className: className - })); - }; - - Button.prototype.render = function render() { - var _extends2; - - var _props = this.props; - var active = _props.active; - var block = _props.block; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'block', 'className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = { - active: active - }, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'block')] = block, _extends2)); - var fullClassName = (0, _classnames2['default'])(className, classes); - - if (elementProps.href) { - return this.renderAnchor(elementProps, fullClassName); - } - - return this.renderButton(elementProps, fullClassName); - }; - - return Button; - }(_react2['default'].Component); - - Button.propTypes = propTypes; - Button.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('btn', (0, _bootstrapUtils.bsSizes)([_StyleConfig.Size.LARGE, _StyleConfig.Size.SMALL, _StyleConfig.Size.XSMALL], (0, _bootstrapUtils.bsStyles)([].concat((0, _values2['default'])(_StyleConfig.State), [_StyleConfig.Style.DEFAULT, _StyleConfig.Style.PRIMARY, _StyleConfig.Style.LINK]), _StyleConfig.Style.DEFAULT, Button))); - module.exports = exports['default']; - - /***/ }, - /* 109 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends3 = __webpack_require__(2); - - var _extends4 = _interopRequireDefault(_extends3); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _all = __webpack_require__(110); - - var _all2 = _interopRequireDefault(_all); - - var _Button = __webpack_require__(108); - - var _Button2 = _interopRequireDefault(_Button); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - vertical: _react2['default'].PropTypes.bool, - justified: _react2['default'].PropTypes.bool, - - /** - * Display block buttons; only useful when used with the "vertical" prop. - * @type {bool} - */ - block: (0, _all2['default'])(_react2['default'].PropTypes.bool, function (_ref) { - var block = _ref.block; - var vertical = _ref.vertical; - return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null; - }) - }; - - var defaultProps = { - block: false, - justified: false, - vertical: false - }; - - var ButtonGroup = function (_React$Component) { - (0, _inherits3['default'])(ButtonGroup, _React$Component); - - function ButtonGroup() { - (0, _classCallCheck3['default'])(this, ButtonGroup); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - ButtonGroup.prototype.render = function render() { - var _extends2; - - var _props = this.props; - var block = _props.block; - var justified = _props.justified; - var vertical = _props.vertical; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['block', 'justified', 'vertical', 'className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils.prefix)(bsProps)] = !vertical, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'vertical')] = vertical, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'justified')] = justified, _extends2[(0, _bootstrapUtils.prefix)(_Button2['default'].defaultProps, 'block')] = block, _extends2)); - - return _react2['default'].createElement('div', (0, _extends4['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return ButtonGroup; - }(_react2['default'].Component); - - ButtonGroup.propTypes = propTypes; - ButtonGroup.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('btn-group', ButtonGroup); - module.exports = exports['default']; - - /***/ }, - /* 110 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - exports.default = all; - - var _createChainableTypeChecker = __webpack_require__(107); - - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - - 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]; - } - - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - var error = null; - - validators.forEach(function (validator) { - if (error != null) { - return; - } - - var result = validator.apply(undefined, args); - if (result != null) { - error = result; - } - }); - - return error; - } - - return (0, _createChainableTypeChecker2.default)(allPropTypes); - } - - /***/ }, - /* 111 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _Button = __webpack_require__(108); - - var _Button2 = _interopRequireDefault(_Button); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var ButtonToolbar = function (_React$Component) { - (0, _inherits3['default'])(ButtonToolbar, _React$Component); - - function ButtonToolbar() { - (0, _classCallCheck3['default'])(this, ButtonToolbar); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - ButtonToolbar.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - - return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { - role: 'toolbar', - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return ButtonToolbar; - }(_react2['default'].Component); - - exports['default'] = (0, _bootstrapUtils.bsClass)('btn-toolbar', (0, _bootstrapUtils.bsSizes)(_Button2['default'].SIZES, ButtonToolbar)); - module.exports = exports['default']; - - /***/ }, - /* 112 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _CarouselCaption = __webpack_require__(113); - - var _CarouselCaption2 = _interopRequireDefault(_CarouselCaption); - - var _CarouselItem = __webpack_require__(114); - - var _CarouselItem2 = _interopRequireDefault(_CarouselItem); - - var _Glyphicon = __webpack_require__(117); - - var _Glyphicon2 = _interopRequireDefault(_Glyphicon); - - var _SafeAnchor = __webpack_require__(105); - - var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); - - var _bootstrapUtils = __webpack_require__(89); - - var _ValidComponentChildren = __webpack_require__(97); - - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - // TODO: `slide` should be `animate`. - - // TODO: Use uncontrollable. - - var propTypes = { - slide: _react2['default'].PropTypes.bool, - indicators: _react2['default'].PropTypes.bool, - interval: _react2['default'].PropTypes.number, - controls: _react2['default'].PropTypes.bool, - pauseOnHover: _react2['default'].PropTypes.bool, - wrap: _react2['default'].PropTypes.bool, - /** - * Callback fired when the active item changes. - * - * ```js - * (eventKey: any) => any | (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: _react2['default'].PropTypes.func, - onSlideEnd: _react2['default'].PropTypes.func, - activeIndex: _react2['default'].PropTypes.number, - defaultActiveIndex: _react2['default'].PropTypes.number, - direction: _react2['default'].PropTypes.oneOf(['prev', 'next']), - prevIcon: _react2['default'].PropTypes.node, - nextIcon: _react2['default'].PropTypes.node - }; - - var defaultProps = { - slide: true, - interval: 5000, - pauseOnHover: true, - wrap: true, - indicators: true, - controls: true, - prevIcon: _react2['default'].createElement(_Glyphicon2['default'], { glyph: 'chevron-left' }), - nextIcon: _react2['default'].createElement(_Glyphicon2['default'], { glyph: 'chevron-right' }) - }; - - var Carousel = function (_React$Component) { - (0, _inherits3['default'])(Carousel, _React$Component); - - function Carousel(props, context) { - (0, _classCallCheck3['default'])(this, Carousel); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleMouseOver = _this.handleMouseOver.bind(_this); - _this.handleMouseOut = _this.handleMouseOut.bind(_this); - _this.handlePrev = _this.handlePrev.bind(_this); - _this.handleNext = _this.handleNext.bind(_this); - _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_this); - - var defaultActiveIndex = props.defaultActiveIndex; - - - _this.state = { - activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, - previousActiveIndex: null, - direction: null - }; - - _this.isUnmounted = false; - return _this; - } - - Carousel.prototype.componentWillReceiveProps = function 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) - }); - } - }; - - Carousel.prototype.componentDidMount = function componentDidMount() { - this.waitForNext(); - }; - - Carousel.prototype.componentWillUnmount = function componentWillUnmount() { - clearTimeout(this.timeout); - this.isUnmounted = true; - }; - - Carousel.prototype.handleMouseOver = function handleMouseOver() { - if (this.props.pauseOnHover) { - this.pause(); - } - }; - - Carousel.prototype.handleMouseOut = function handleMouseOut() { - if (this.isPaused) { - this.play(); - } - }; - - Carousel.prototype.handlePrev = function handlePrev(e) { - var index = this.getActiveIndex() - 1; - - if (index < 0) { - if (!this.props.wrap) { - return; - } - index = _ValidComponentChildren2['default'].count(this.props.children) - 1; - } - - this.select(index, e, 'prev'); - }; - - Carousel.prototype.handleNext = function handleNext(e) { - var index = this.getActiveIndex() + 1; - var count = _ValidComponentChildren2['default'].count(this.props.children); - - if (index > count - 1) { - if (!this.props.wrap) { - return; - } - index = 0; - } - - this.select(index, e, 'next'); - }; - - Carousel.prototype.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { - var _this2 = this; - - this.setState({ - previousActiveIndex: null, - direction: null - }, function () { - _this2.waitForNext(); - - if (_this2.props.onSlideEnd) { - _this2.props.onSlideEnd(); - } - }); - }; - - Carousel.prototype.getActiveIndex = function getActiveIndex() { - var activeIndexProp = this.props.activeIndex; - return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; - }; - - Carousel.prototype.getDirection = function getDirection(prevIndex, index) { - if (prevIndex === index) { - return null; - } - - return prevIndex > index ? 'prev' : 'next'; - }; - - Carousel.prototype.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.getActiveIndex(); - 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 }; - } - - onSelect(index, e); - } else { - onSelect(index); - } - } - - 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; - } - - this.setState({ - activeIndex: index, - previousActiveIndex: previousActiveIndex, - direction: direction - }); - } - }; - - Carousel.prototype.waitForNext = function waitForNext() { - var _props = this.props; - var slide = _props.slide; - var interval = _props.interval; - var activeIndexProp = _props.activeIndex; - - - if (!this.isPaused && slide && interval && activeIndexProp == null) { - this.timeout = setTimeout(this.handleNext, interval); - } - }; - - // This might be a public API. - - - Carousel.prototype.pause = function pause() { - this.isPaused = true; - clearTimeout(this.timeout); - }; - - // This might be a public API. - - - Carousel.prototype.play = function play() { - this.isPaused = false; - this.waitForNext(); - }; - - Carousel.prototype.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { - var _this3 = this; - - var indicators = []; - - _ValidComponentChildren2['default'].forEach(children, function (child, index) { - indicators.push(_react2['default'].createElement('li', { - key: index, - className: index === activeIndex ? 'active' : null, - onClick: function onClick(e) { - return _this3.select(index, e); - } - }), - - // Force whitespace between indicator elements. Bootstrap requires - // this for correct spacing of elements. - ' '); - }); - - return _react2['default'].createElement( - 'ol', - { className: (0, _bootstrapUtils.prefix)(bsProps, 'indicators') }, - indicators - ); - }; - - Carousel.prototype.renderControls = function renderControls(wrap, children, activeIndex, prevIcon, nextIcon, bsProps) { - var controlClassName = (0, _bootstrapUtils.prefix)(bsProps, 'control'); - var count = _ValidComponentChildren2['default'].count(children); - - return [(wrap || activeIndex !== 0) && _react2['default'].createElement( - _SafeAnchor2['default'], - { - key: 'prev', - className: (0, _classnames2['default'])(controlClassName, 'left'), - onClick: this.handlePrev - }, - prevIcon - ), (wrap || activeIndex !== count - 1) && _react2['default'].createElement( - _SafeAnchor2['default'], - { - key: 'next', - className: (0, _classnames2['default'])(controlClassName, 'right'), - onClick: this.handleNext - }, - nextIcon - )]; - }; - - Carousel.prototype.render = function render() { - var _this4 = this; - - var _props2 = this.props; - var slide = _props2.slide; - var indicators = _props2.indicators; - var controls = _props2.controls; - var wrap = _props2.wrap; - var prevIcon = _props2.prevIcon; - var nextIcon = _props2.nextIcon; - var className = _props2.className; - var children = _props2.children; - var props = (0, _objectWithoutProperties3['default'])(_props2, ['slide', 'indicators', 'controls', 'wrap', 'prevIcon', 'nextIcon', 'className', 'children']); - var _state = this.state; - var previousActiveIndex = _state.previousActiveIndex; - var direction = _state.direction; - - var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). - 'defaultActiveIndex', 'direction']); - - var bsProps = _splitBsPropsAndOmit[0]; - var elementProps = _splitBsPropsAndOmit[1]; - - - var activeIndex = this.getActiveIndex(); - - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - slide: slide - }); - - return _react2['default'].createElement( - 'div', - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes), - onMouseOver: this.handleMouseOver, - onMouseOut: this.handleMouseOut - }), - indicators && this.renderIndicators(children, activeIndex, bsProps), - _react2['default'].createElement( - 'div', - { className: (0, _bootstrapUtils.prefix)(bsProps, 'inner') }, - _ValidComponentChildren2['default'].map(children, function (child, index) { - var active = index === activeIndex; - var previousActive = slide && index === previousActiveIndex; - - return (0, _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, children, activeIndex, prevIcon, nextIcon, bsProps) - ); - }; - - return Carousel; - }(_react2['default'].Component); - - Carousel.propTypes = propTypes; - Carousel.defaultProps = defaultProps; - - Carousel.Caption = _CarouselCaption2['default']; - Carousel.Item = _CarouselItem2['default']; - - exports['default'] = (0, _bootstrapUtils.bsClass)('carousel', Carousel); - module.exports = exports['default']; - - /***/ }, - /* 113 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _elementType = __webpack_require__(106); - - var _elementType2 = _interopRequireDefault(_elementType); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - componentClass: _elementType2['default'] - }; - - var defaultProps = { - componentClass: 'div' - }; - - var CarouselCaption = function (_React$Component) { - (0, _inherits3['default'])(CarouselCaption, _React$Component); - - function CarouselCaption() { - (0, _classCallCheck3['default'])(this, CarouselCaption); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - CarouselCaption.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return CarouselCaption; - }(_react2['default'].Component); - - CarouselCaption.propTypes = propTypes; - CarouselCaption.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('carousel-caption', CarouselCaption); - module.exports = exports['default']; - - /***/ }, - /* 114 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _reactDom = __webpack_require__(115); - - var _reactDom2 = _interopRequireDefault(_reactDom); - - var _TransitionEvents = __webpack_require__(116); - - var _TransitionEvents2 = _interopRequireDefault(_TransitionEvents); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - // TODO: This should use a timeout instead of TransitionEvents, or else just - // not wait until transition end to trigger continuing animations. - - var propTypes = { - direction: _react2['default'].PropTypes.oneOf(['prev', 'next']), - onAnimateOutEnd: _react2['default'].PropTypes.func, - active: _react2['default'].PropTypes.bool, - animateIn: _react2['default'].PropTypes.bool, - animateOut: _react2['default'].PropTypes.bool, - index: _react2['default'].PropTypes.number - }; - - var defaultProps = { - active: false, - animateIn: false, - animateOut: false - }; - - var CarouselItem = function (_React$Component) { - (0, _inherits3['default'])(CarouselItem, _React$Component); - - function CarouselItem(props, context) { - (0, _classCallCheck3['default'])(this, CarouselItem); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); - - _this.state = { - direction: null - }; - - _this.isUnmounted = false; - return _this; - } - - CarouselItem.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.props.active !== nextProps.active) { - this.setState({ direction: null }); - } - }; - - CarouselItem.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var _this2 = this; - - var active = this.props.active; - - var prevActive = prevProps.active; - - if (!active && prevActive) { - _TransitionEvents2['default'].addEndEventListener(_reactDom2['default'].findDOMNode(this), this.handleAnimateOutEnd); - } - - if (active !== prevActive) { - setTimeout(function () { - return _this2.startAnimation(); - }, 20); - } - }; - - CarouselItem.prototype.componentWillUnmount = function componentWillUnmount() { - this.isUnmounted = true; - }; - - CarouselItem.prototype.handleAnimateOutEnd = function handleAnimateOutEnd() { - if (this.isUnmounted) { - return; - } - - if (this.props.onAnimateOutEnd) { - this.props.onAnimateOutEnd(this.props.index); - } - }; - - CarouselItem.prototype.startAnimation = function startAnimation() { - if (this.isUnmounted) { - return; - } - - this.setState({ - direction: this.props.direction === 'prev' ? 'right' : 'left' - }); - }; - - CarouselItem.prototype.render = function render() { - var _props = this.props; - var direction = _props.direction; - var active = _props.active; - var animateIn = _props.animateIn; - var animateOut = _props.animateOut; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['direction', 'active', 'animateIn', 'animateOut', 'className']); - - - delete props.onAnimateOutEnd; - delete props.index; - - var classes = { - item: true, - active: active && !animateIn || animateOut - }; - if (direction && active && animateIn) { - classes[direction] = true; - } - if (this.state.direction && (animateIn || animateOut)) { - classes[this.state.direction] = true; - } - - return _react2['default'].createElement('div', (0, _extends3['default'])({}, props, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return CarouselItem; - }(_react2['default'].Component); - - CarouselItem.propTypes = propTypes; - CarouselItem.defaultProps = defaultProps; - - exports['default'] = CarouselItem; - module.exports = exports['default']; - - /***/ }, - /* 115 */ - /***/ function(module, exports) { - - module.exports = __WEBPACK_EXTERNAL_MODULE_115__; - - /***/ }, - /* 116 */ - /***/ function(module, exports) { - - 'use strict'; - - exports.__esModule = true; - /** - * Copyright 2013-2014, Facebook, Inc. - * All rights reserved. - * - * This file contains a modified version of: - * https://github.com/facebook/react/blob/v0.12.0/src/addons/transitions/ReactTransitionEvents.js - * - * This source code is licensed under the BSD-style license found here: - * https://github.com/facebook/react/blob/v0.12.0/LICENSE - * An additional grant of patent rights can be found here: - * https://github.com/facebook/react/blob/v0.12.0/PATENTS - */ - - var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - - /** - * EVENT_NAME_MAP is used to determine which event fired when a - * transition/animation ends, based on the style property used to - * define that event. - */ - var EVENT_NAME_MAP = { - transitionend: { - 'transition': 'transitionend', - 'WebkitTransition': 'webkitTransitionEnd', - 'MozTransition': 'mozTransitionEnd', - 'OTransition': 'oTransitionEnd', - 'msTransition': 'MSTransitionEnd' - }, - - animationend: { - 'animation': 'animationend', - 'WebkitAnimation': 'webkitAnimationEnd', - 'MozAnimation': 'mozAnimationEnd', - 'OAnimation': 'oAnimationEnd', - 'msAnimation': 'MSAnimationEnd' - } - }; - - var endEvents = []; - - function detectEvents() { - var testEl = document.createElement('div'); - var style = testEl.style; - - // On some platforms, in particular some releases of Android 4.x, - // the un-prefixed "animation" and "transition" properties are defined on the - // style object but the events that fire will still be prefixed, so we need - // to check if the un-prefixed events are useable, and if not remove them - // from the map - if (!('AnimationEvent' in window)) { - delete EVENT_NAME_MAP.animationend.animation; - } - - if (!('TransitionEvent' in window)) { - delete EVENT_NAME_MAP.transitionend.transition; - } - - for (var baseEventName in EVENT_NAME_MAP) { - // eslint-disable-line guard-for-in - var baseEvents = EVENT_NAME_MAP[baseEventName]; - for (var styleName in baseEvents) { - if (styleName in style) { - endEvents.push(baseEvents[styleName]); - break; - } - } - } - } - - if (canUseDOM) { - detectEvents(); - } - - // We use the raw {add|remove}EventListener() call because EventListener - // does not know how to remove event listeners and we really should - // clean up. Also, these events are not triggered in older browsers - // so we should be A-OK here. - - function addEventListener(node, eventName, eventListener) { - node.addEventListener(eventName, eventListener, false); - } - - function removeEventListener(node, eventName, eventListener) { - node.removeEventListener(eventName, eventListener, false); - } - - var ReactTransitionEvents = { - addEndEventListener: function addEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - // If CSS transitions are not supported, trigger an "end animation" - // event immediately. - window.setTimeout(eventListener, 0); - return; - } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, - removeEndEventListener: function removeEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - return; - } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); - } - }; - - exports['default'] = ReactTransitionEvents; - module.exports = exports['default']; - - /***/ }, - /* 117 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends3 = __webpack_require__(2); - - var _extends4 = _interopRequireDefault(_extends3); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - /** - * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons - */ - glyph: _react2['default'].PropTypes.string.isRequired - }; - - var Glyphicon = function (_React$Component) { - (0, _inherits3['default'])(Glyphicon, _React$Component); - - function Glyphicon() { - (0, _classCallCheck3['default'])(this, Glyphicon); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Glyphicon.prototype.render = function render() { - var _extends2; - - var _props = this.props; - var glyph = _props.glyph; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['glyph', 'className']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, glyph)] = true, _extends2)); - - return _react2['default'].createElement('span', (0, _extends4['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - - return Glyphicon; - }(_react2['default'].Component); - - Glyphicon.propTypes = propTypes; - - exports['default'] = (0, _bootstrapUtils.bsClass)('glyphicon', Glyphicon); - module.exports = exports['default']; - - /***/ }, - /* 118 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _warning = __webpack_require__(119); - - var _warning2 = _interopRequireDefault(_warning); - - var _bootstrapUtils = __webpack_require__(89); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - inline: _react2['default'].PropTypes.bool, - disabled: _react2['default'].PropTypes.bool, - /** - * Only valid if `inline` is not set. - */ - validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error']), - /** - * Attaches a ref to the `` element. Only functions can be used here. - * - * ```js - * { this.input = ref; }} /> - * ``` - */ - inputRef: _react2['default'].PropTypes.func - }; - - var defaultProps = { - inline: false, - disabled: false - }; - - var Checkbox = function (_React$Component) { - (0, _inherits3['default'])(Checkbox, _React$Component); - - function Checkbox() { - (0, _classCallCheck3['default'])(this, Checkbox); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - - Checkbox.prototype.render = function render() { - var _props = this.props; - var inline = _props.inline; - var disabled = _props.disabled; - var validationState = _props.validationState; - var inputRef = _props.inputRef; - var className = _props.className; - var style = _props.style; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'children']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var input = _react2['default'].createElement('input', (0, _extends3['default'])({}, elementProps, { - ref: inputRef, - type: 'checkbox', - disabled: disabled - })); - - if (inline) { - var _classes2; - - var _classes = (_classes2 = {}, _classes2[(0, _bootstrapUtils.prefix)(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); - - // Use a warning here instead of in propTypes to get better-looking - // generated documentation. - true ? (0, _warning2['default'])(!validationState, '`validationState` is ignored on ``. To display ' + 'validation state on an inline checkbox, set `validationState` on a ' + 'parent `` or other element instead.') : void 0; - - return _react2['default'].createElement( - 'label', - { className: (0, _classnames2['default'])(className, _classes), style: style }, - input, - children - ); - } - - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - disabled: disabled - }); - if (validationState) { - classes['has-' + validationState] = true; - } - - return _react2['default'].createElement( - 'div', - { className: (0, _classnames2['default'])(className, classes), style: style }, - _react2['default'].createElement( - 'label', - null, - input, - children - ) - ); - }; - - return Checkbox; - }(_react2['default'].Component); - - Checkbox.propTypes = propTypes; - Checkbox.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('checkbox', Checkbox); - module.exports = exports['default']; - - /***/ }, - /* 119 */ - /***/ function(module, exports, __webpack_require__) { - - /** - * 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. - */ - - 'use strict'; - - /** - * 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() {}; - - if (true) { - 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 (format.length < 10 || (/^[s\W]*$/).test(format)) { - throw new Error( - 'The warning format should be able to uniquely identify this ' + - 'warning. Please, use a more descriptive format than: ' + format - ); - } - - if (!condition) { - var argIndex = 0; - var message = 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // 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) {} + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg)) { + classes.push(classNames.apply(null, arg)); + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); } - }; + } } + } + + return classes.join(' '); + } + + if (typeof module !== 'undefined' && module.exports) { + 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 { + window.classNames = classNames; + } +}()); + + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * 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 (undefined !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(126)(isValidElement, throwOnDirectAccess); +} else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(129)(); +} + + +/***/ }), +/* 8 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); - module.exports = warning; - - - /***/ }, - /* 120 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _elementType = __webpack_require__(106); - - var _elementType2 = _interopRequireDefault(_elementType); - - var _bootstrapUtils = __webpack_require__(89); - - var _capitalize = __webpack_require__(121); - - var _capitalize2 = _interopRequireDefault(_capitalize); - - var _StyleConfig = __webpack_require__(95); +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__(0); + +var _react2 = _interopRequireDefault(_react); + +var _createChainableTypeChecker = __webpack_require__(36); + +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var propTypes = { - componentClass: _elementType2['default'], +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); - /** - * Apply clearfix - * - * on Extra small devices Phones - * - * adds class `visible-xs-block` - */ - visibleXsBlock: _react2['default'].PropTypes.bool, - /** - * Apply clearfix - * - * on Small devices Tablets - * - * adds class `visible-sm-block` - */ - visibleSmBlock: _react2['default'].PropTypes.bool, - /** - * Apply clearfix - * - * on Medium devices Desktops - * - * adds class `visible-md-block` - */ - visibleMdBlock: _react2['default'].PropTypes.bool, - /** - * Apply clearfix - * - * on Large devices Desktops - * - * adds class `visible-lg-block` - */ - visibleLgBlock: _react2['default'].PropTypes.bool - }; + 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).'); + } - var defaultProps = { - componentClass: 'div' - }; + 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; +} - var Clearfix = function (_React$Component) { - (0, _inherits3['default'])(Clearfix, _React$Component); +exports.default = (0, _createChainableTypeChecker2.default)(elementType); +module.exports = exports['default']; - function Clearfix() { - (0, _classCallCheck3['default'])(this, Clearfix); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +/***/ }), +/* 9 */ +/***/ (function(module, exports) { - Clearfix.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); +module.exports = __WEBPACK_EXTERNAL_MODULE_9__; - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +/***/ }), +/* 10 */ +/***/ (function(module, exports, __webpack_require__) { - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; +"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() {}; + +if (undefined !== 'production') { + 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 (format.length < 10 || (/^[s\W]*$/).test(format)) { + throw new Error( + 'The warning format should be able to uniquely identify this ' + + 'warning. Please, use a more descriptive format than: ' + format + ); + } + + if (!condition) { + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // 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) {} + } + }; +} + +module.exports = warning; + + +/***/ }), +/* 11 */ +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.5.3' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), +/* 12 */ +/***/ (function(module, exports, __webpack_require__) { + +var store = __webpack_require__(48)('wks'); +var uid = __webpack_require__(34); +var Symbol = __webpack_require__(14).Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; + +var $exports = module.exports = function (name) { + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; + +$exports.store = store; + + +/***/ }), +/* 13 */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(14); +var core = __webpack_require__(11); +var ctx = __webpack_require__(42); +var hide = __webpack_require__(20); +var PROTOTYPE = 'prototype'; + +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 && key in exports) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + 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); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + 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% + 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 +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + + +/***/ }), +/* 14 */ +/***/ (function(module, exports) { + +// 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 + + +/***/ }), +/* 15 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); +module.exports = exports['default']; +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); +var anObject = __webpack_require__(21); +var IE8_DOM_DEFINE = __webpack_require__(67); +var toPrimitive = __webpack_require__(43); +var dP = Object.defineProperty; - _StyleConfig.DEVICE_SIZES.forEach(function (size) { - var propName = 'visible' + (0, _capitalize2['default'])(size) + 'Block'; - if (elementProps[propName]) { - classes['visible-' + size + '-block'] = true; - } +exports.f = __webpack_require__(23) ? 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; +}; - delete elementProps[propName]; - }); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; +/***/ }), +/* 17 */ +/***/ (function(module, exports) { - return Clearfix; - }(_react2['default'].Component); +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; - Clearfix.propTypes = propTypes; - Clearfix.defaultProps = defaultProps; - exports['default'] = (0, _bootstrapUtils.bsClass)('clearfix', Clearfix); - module.exports = exports['default']; +/***/ }), +/* 18 */ +/***/ (function(module, exports, __webpack_require__) { - /***/ }, - /* 121 */ - /***/ function(module, exports) { +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(70); +var defined = __webpack_require__(45); +module.exports = function (it) { + return IObject(defined(it)); +}; - "use strict"; - exports.__esModule = true; - exports["default"] = capitalize; - function capitalize(string) { - return "" + string.charAt(0).toUpperCase() + string.slice(1); - } - module.exports = exports["default"]; +/***/ }), +/* 19 */ +/***/ (function(module, exports, __webpack_require__) { - /***/ }, - /* 122 */ - /***/ function(module, exports, __webpack_require__) { +"use strict"; - 'use strict'; - exports.__esModule = true; +exports.__esModule = true; - var _extends2 = __webpack_require__(2); +var _createUncontrollable = __webpack_require__(130); - var _extends3 = _interopRequireDefault(_extends2); +var _createUncontrollable2 = _interopRequireDefault(_createUncontrollable); - var _objectWithoutProperties2 = __webpack_require__(87); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var mixin = { + shouldComponentUpdate: function shouldComponentUpdate() { + //let the forceUpdate trigger the update + return !this._notifying; + } +}; - var _classCallCheck2 = __webpack_require__(40); +function set(component, propName, handler, value, args) { + if (handler) { + component._notifying = true; + handler.call.apply(handler, [component, value].concat(args)); + component._notifying = false; + } - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + component._values[propName] = value; - var _possibleConstructorReturn2 = __webpack_require__(41); + if (!component.unmounted) component.forceUpdate(); +} - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +exports.default = (0, _createUncontrollable2.default)(mixin, set); +module.exports = exports['default']; - var _inherits2 = __webpack_require__(77); +/***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { - var _inherits3 = _interopRequireDefault(_inherits2); +var dP = __webpack_require__(16); +var createDesc = __webpack_require__(29); +module.exports = __webpack_require__(23) ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); +/***/ }), +/* 21 */ +/***/ (function(module, exports, __webpack_require__) { - var _react = __webpack_require__(85); +var isObject = __webpack_require__(22); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; - var _react2 = _interopRequireDefault(_react); - var _warning = __webpack_require__(119); +/***/ }), +/* 22 */ +/***/ (function(module, exports) { - var _warning2 = _interopRequireDefault(_warning); +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +/***/ }), +/* 23 */ +/***/ (function(module, exports, __webpack_require__) { - var propTypes = { - /** - * Uses `controlId` from `` if not explicitly specified. - */ - htmlFor: _react2['default'].PropTypes.string, - srOnly: _react2['default'].PropTypes.bool - }; +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__(28)(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); - var defaultProps = { - srOnly: false - }; - var contextTypes = { - $bs_formGroup: _react2['default'].PropTypes.object - }; +/***/ }), +/* 24 */ +/***/ (function(module, exports, __webpack_require__) { - var ControlLabel = function (_React$Component) { - (0, _inherits3['default'])(ControlLabel, _React$Component); +module.exports = { "default": __webpack_require__(134), __esModule: true }; - function ControlLabel() { - (0, _classCallCheck3['default'])(this, ControlLabel); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +/***/ }), +/* 25 */ +/***/ (function(module, exports, __webpack_require__) { - ControlLabel.prototype.render = function render() { - var formGroup = this.context.$bs_formGroup; - var controlId = formGroup && formGroup.controlId; +"use strict"; - var _props = this.props; - var _props$htmlFor = _props.htmlFor; - var htmlFor = _props$htmlFor === undefined ? controlId : _props$htmlFor; - var srOnly = _props.srOnly; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['htmlFor', 'srOnly', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = ownerDocument; +function ownerDocument(node) { + return node && node.ownerDocument || document; +} +module.exports = exports["default"]; - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; +/***/ }), +/* 26 */ +/***/ (function(module, exports, __webpack_require__) { +"use strict"; - true ? (0, _warning2['default'])(controlId == null || htmlFor === controlId, '`controlId` is ignored on `` when `htmlFor` is specified.') : void 0; - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - 'sr-only': srOnly - }); +Object.defineProperty(exports, "__esModule", { + value: true +}); - return _react2['default'].createElement('label', (0, _extends3['default'])({}, elementProps, { - htmlFor: htmlFor, - className: (0, _classnames2['default'])(className, classes) - })); - }; +var _inDOM = __webpack_require__(15); - return ControlLabel; - }(_react2['default'].Component); +var _inDOM2 = _interopRequireDefault(_inDOM); - ControlLabel.propTypes = propTypes; - ControlLabel.defaultProps = defaultProps; - ControlLabel.contextTypes = contextTypes; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - exports['default'] = (0, _bootstrapUtils.bsClass)('control-label', ControlLabel); - module.exports = exports['default']; +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; +}(); - /***/ }, - /* 123 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - exports.__esModule = true; - - var _extends2 = __webpack_require__(2); - - var _extends3 = _interopRequireDefault(_extends2); - - var _objectWithoutProperties2 = __webpack_require__(87); - - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - - var _classCallCheck2 = __webpack_require__(40); - - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - - var _possibleConstructorReturn2 = __webpack_require__(41); - - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - - var _inherits2 = __webpack_require__(77); - - var _inherits3 = _interopRequireDefault(_inherits2); - - var _classnames = __webpack_require__(88); - - var _classnames2 = _interopRequireDefault(_classnames); - - var _react = __webpack_require__(85); - - var _react2 = _interopRequireDefault(_react); - - var _elementType = __webpack_require__(106); - - var _elementType2 = _interopRequireDefault(_elementType); - - var _bootstrapUtils = __webpack_require__(89); - - var _StyleConfig = __webpack_require__(95); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var propTypes = { - componentClass: _elementType2['default'], - - /** - * The number of columns you wish to span - * - * for Extra small devices Phones (<768px) - * - * class-prefix `col-xs-` - */ - xs: _react2['default'].PropTypes.number, - /** - * The number of columns you wish to span - * - * for Small devices Tablets (≥768px) - * - * class-prefix `col-sm-` - */ - sm: _react2['default'].PropTypes.number, - /** - * The number of columns you wish to span - * - * for Medium devices Desktops (≥992px) - * - * class-prefix `col-md-` - */ - md: _react2['default'].PropTypes.number, - /** - * The number of columns you wish to span - * - * for Large devices Desktops (≥1200px) - * - * class-prefix `col-lg-` - */ - lg: _react2['default'].PropTypes.number, - /** - * Hide column - * - * on Extra small devices Phones - * - * adds class `hidden-xs` - */ - xsHidden: _react2['default'].PropTypes.bool, - /** - * Hide column - * - * on Small devices Tablets - * - * adds class `hidden-sm` - */ - smHidden: _react2['default'].PropTypes.bool, - /** - * Hide column - * - * on Medium devices Desktops - * - * adds class `hidden-md` - */ - mdHidden: _react2['default'].PropTypes.bool, - /** - * Hide column - * - * on Large devices Desktops - * - * adds class `hidden-lg` - */ - lgHidden: _react2['default'].PropTypes.bool, - /** - * Move columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-offset-` - */ - xsOffset: _react2['default'].PropTypes.number, - /** - * Move columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-offset-` - */ - smOffset: _react2['default'].PropTypes.number, - /** - * Move columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-offset-` - */ - mdOffset: _react2['default'].PropTypes.number, - /** - * Move columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-offset-` - */ - lgOffset: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the right - * - * for Extra small devices Phones - * - * class-prefix `col-xs-push-` - */ - xsPush: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the right - * - * for Small devices Tablets - * - * class-prefix `col-sm-push-` - */ - smPush: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the right - * - * for Medium devices Desktops - * - * class-prefix `col-md-push-` - */ - mdPush: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the right - * - * for Large devices Desktops - * - * class-prefix `col-lg-push-` - */ - lgPush: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the left - * - * for Extra small devices Phones - * - * class-prefix `col-xs-pull-` - */ - xsPull: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the left - * - * for Small devices Tablets - * - * class-prefix `col-sm-pull-` - */ - smPull: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the left - * - * for Medium devices Desktops - * - * class-prefix `col-md-pull-` - */ - mdPull: _react2['default'].PropTypes.number, - /** - * Change the order of grid columns to the left - * - * for Large devices Desktops - * - * class-prefix `col-lg-pull-` - */ - lgPull: _react2['default'].PropTypes.number - }; - - var defaultProps = { - componentClass: 'div' - }; - - var Col = function (_React$Component) { - (0, _inherits3['default'])(Col, _React$Component); - - function Col() { - (0, _classCallCheck3['default'])(this, Col); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +function fallback(context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); - Col.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); + return false; +} +module.exports = exports['default']; - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +/***/ }), +/* 27 */ +/***/ (function(module, exports, __webpack_require__) { - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; +"use strict"; - var classes = []; +exports.__esModule = true; - _StyleConfig.DEVICE_SIZES.forEach(function (size) { - function popProp(propSuffix, modifier) { - var propName = '' + size + propSuffix; - var propValue = elementProps[propName]; +exports.default = function (componentOrElement) { + return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement)); +}; - if (propValue != null) { - classes.push((0, _bootstrapUtils.prefix)(bsProps, '' + size + modifier + '-' + propValue)); - } +var _reactDom = __webpack_require__(9); - delete elementProps[propName]; - } +var _reactDom2 = _interopRequireDefault(_reactDom); - popProp('', ''); - popProp('Offset', '-offset'); - popProp('Push', '-push'); - popProp('Pull', '-pull'); +var _ownerDocument = __webpack_require__(25); - var hiddenPropName = size + 'Hidden'; - if (elementProps[hiddenPropName]) { - classes.push('hidden-' + size); - } - delete elementProps[hiddenPropName]; - }); +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return Col; - }(_react2['default'].Component); +module.exports = exports['default']; - Col.propTypes = propTypes; - Col.defaultProps = defaultProps; +/***/ }), +/* 28 */ +/***/ (function(module, exports) { - exports['default'] = (0, _bootstrapUtils.bsClass)('col', Col); - module.exports = exports['default']; +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; - /***/ }, - /* 124 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; +/***/ }), +/* 29 */ +/***/ (function(module, exports) { - exports.__esModule = true; +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); +/***/ }), +/* 30 */ +/***/ (function(module, exports, __webpack_require__) { - var _objectWithoutProperties2 = __webpack_require__(87); +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__(69); +var enumBugKeys = __webpack_require__(49); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); +/***/ }), +/* 31 */ +/***/ (function(module, exports) { - var _possibleConstructorReturn2 = __webpack_require__(41); +exports.f = {}.propertyIsEnumerable; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); +/***/ }), +/* 32 */ +/***/ (function(module, exports) { - var _inherits3 = _interopRequireDefault(_inherits2); +module.exports = {}; - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); +/***/ }), +/* 33 */ +/***/ (function(module, exports, __webpack_require__) { - var _style = __webpack_require__(125); +"use strict"; - var _style2 = _interopRequireDefault(_style); - var _react = __webpack_require__(85); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = style; - var _react2 = _interopRequireDefault(_react); +var _camelizeStyle = __webpack_require__(80); - var _Transition = __webpack_require__(133); +var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); - var _Transition2 = _interopRequireDefault(_Transition); +var _hyphenateStyle = __webpack_require__(139); - var _capitalize = __webpack_require__(121); +var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); - var _capitalize2 = _interopRequireDefault(_capitalize); +var _getComputedStyle2 = __webpack_require__(141); + +var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); + +var _removeStyle = __webpack_require__(142); + +var _removeStyle2 = _interopRequireDefault(_removeStyle); + +var _properties = __webpack_require__(61); + +var _isTransform = __webpack_require__(143); + +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; - var _createChainedFunction = __webpack_require__(96); + 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; + } + } - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); + 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 + ';'; + } + }); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + if (transforms) { + css += _properties.transform + ': ' + transforms + ';'; + } - var MARGINS = { - height: ['marginTop', 'marginBottom'], - width: ['marginLeft', 'marginRight'] - }; + node.style.cssText += ';' + css; +} +module.exports = exports['default']; - // 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 - } +/***/ }), +/* 34 */ +/***/ (function(module, exports) { - function getDimensionValue(dimension, elem) { - var value = elem['offset' + (0, _capitalize2['default'])(dimension)]; - var margins = MARGINS[dimension]; +var id = 0; +var px = Math.random(); +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); +}; - return value + parseInt((0, _style2['default'])(elem, margins[0]), 10) + parseInt((0, _style2['default'])(elem, margins[1]), 10); - } - var propTypes = { - /** - * Show the component; triggers the expand or collapse animation - */ - 'in': _react2['default'].PropTypes.bool, - - /** - * Unmount the component (remove it from the DOM) when it is collapsed - */ - unmountOnExit: _react2['default'].PropTypes.bool, - - /** - * Run the expand animation when the component mounts, if it is initially - * shown - */ - transitionAppear: _react2['default'].PropTypes.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: _react2['default'].PropTypes.number, - - /** - * Callback fired before the component expands - */ - onEnter: _react2['default'].PropTypes.func, - /** - * Callback fired after the component starts to expand - */ - onEntering: _react2['default'].PropTypes.func, - /** - * Callback fired after the component has expanded - */ - onEntered: _react2['default'].PropTypes.func, - /** - * Callback fired before the component collapses - */ - onExit: _react2['default'].PropTypes.func, - /** - * Callback fired after the component starts to collapse - */ - onExiting: _react2['default'].PropTypes.func, - /** - * Callback fired after the component has collapsed - */ - onExited: _react2['default'].PropTypes.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: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.oneOf(['height', 'width']), _react2['default'].PropTypes.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: _react2['default'].PropTypes.func, - - /** - * ARIA role of collapsible element - */ - role: _react2['default'].PropTypes.string - }; - - var defaultProps = { - 'in': false, - timeout: 300, - unmountOnExit: false, - transitionAppear: false, - - dimension: 'height', - getDimensionValue: getDimensionValue - }; - - var Collapse = function (_React$Component) { - (0, _inherits3['default'])(Collapse, _React$Component); - - function Collapse(props, context) { - (0, _classCallCheck3['default'])(this, Collapse); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleEnter = _this.handleEnter.bind(_this); - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleEntered = _this.handleEntered.bind(_this); - _this.handleExit = _this.handleExit.bind(_this); - _this.handleExiting = _this.handleExiting.bind(_this); - return _this; - } +/***/ }), +/* 35 */ +/***/ (function(module, exports, __webpack_require__) { - /* -- Expanding -- */ +"use strict"; +/** + * Copyright 2013-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. + */ - Collapse.prototype.handleEnter = function handleEnter(elem) { - var dimension = this._dimension(); - elem.style[dimension] = '0'; - }; - Collapse.prototype.handleEntering = function handleEntering(elem) { - var dimension = this._dimension(); - elem.style[dimension] = this._getScrollDimensionValue(elem, dimension); - }; +/** + * 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. + */ - Collapse.prototype.handleEntered = function handleEntered(elem) { - var dimension = this._dimension(); - elem.style[dimension] = null; - }; +var invariant = function(condition, format, a, b, c, d, e, f) { + if (undefined !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } - /* -- Collapsing -- */ + if (!condition) { + var error; + 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 + throw error; + } +}; + +module.exports = invariant; + + +/***/ }), +/* 36 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +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. - Collapse.prototype.handleExit = function handleExit(elem) { - var dimension = this._dimension(); - elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px'; - }; +function createChainableTypeChecker(validate) { + function checkType(isRequired, props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - Collapse.prototype.handleExiting = function handleExiting(elem) { - var dimension = this._dimension(); + if (props[propName] == null) { + if (isRequired) { + return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); + } - triggerBrowserReflow(elem); - elem.style[dimension] = '0'; - }; + return null; + } - Collapse.prototype._dimension = function _dimension() { - return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; - }; + for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { + args[_key - 6] = arguments[_key]; + } - // for testing + return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); + } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { - return elem['scroll' + (0, _capitalize2['default'])(dimension)] + 'px'; - }; + return chainedCheckType; +} +module.exports = exports['default']; - Collapse.prototype.render = function render() { - var _props = this.props; - var onEnter = _props.onEnter; - var onEntering = _props.onEntering; - var onEntered = _props.onEntered; - var onExit = _props.onExit; - var onExiting = _props.onExiting; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']); +/***/ }), +/* 37 */ +/***/ (function(module, exports, __webpack_require__) { +"use strict"; - delete props.dimension; - delete props.getDimensionValue; - var handleEnter = (0, _createChainedFunction2['default'])(this.handleEnter, onEnter); - var handleEntering = (0, _createChainedFunction2['default'])(this.handleEntering, onEntering); - var handleEntered = (0, _createChainedFunction2['default'])(this.handleEntered, onEntered); - var handleExit = (0, _createChainedFunction2['default'])(this.handleExit, onExit); - var handleExiting = (0, _createChainedFunction2['default'])(this.handleExiting, onExiting); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = all; - var classes = { - width: this._dimension() === 'width' - }; +var _createChainableTypeChecker = __webpack_require__(36); - return _react2['default'].createElement(_Transition2['default'], (0, _extends3['default'])({}, props, { - 'aria-expanded': props.role ? props['in'] : null, - className: (0, _classnames2['default'])(className, classes), - exitedClassName: 'collapse', - exitingClassName: 'collapsing', - enteredClassName: 'collapse in', - enteringClassName: 'collapsing', - onEnter: handleEnter, - onEntering: handleEntering, - onEntered: handleEntered, - onExit: handleExit, - onExiting: handleExiting - })); - }; +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - return Collapse; - }(_react2['default'].Component); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - Collapse.propTypes = propTypes; - Collapse.defaultProps = defaultProps; +function all() { + for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { + validators[_key] = arguments[_key]; + } - exports['default'] = Collapse; - module.exports = exports['default']; + function allPropTypes() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } - /***/ }, - /* 125 */ - /***/ function(module, exports, __webpack_require__) { + var error = null; - 'use strict'; + validators.forEach(function (validator) { + if (error != null) { + return; + } - var camelize = __webpack_require__(126), - hyphenate = __webpack_require__(128), - _getComputedStyle = __webpack_require__(130), - removeStyle = __webpack_require__(132); + var result = validator.apply(undefined, args); + if (result != null) { + error = result; + } + }); - var has = Object.prototype.hasOwnProperty; + return error; + } - module.exports = function style(node, property, value) { - var css = '', - props = property; + return (0, _createChainableTypeChecker2.default)(allPropTypes); +} +module.exports = exports['default']; - if (typeof property === 'string') { +/***/ }), +/* 38 */ +/***/ (function(module, exports, __webpack_require__) { - if (value === undefined) return node.style[camelize(property)] || _getComputedStyle(node).getPropertyValue(hyphenate(property));else (props = {})[property] = value; - } +"use strict"; - for (var key in props) if (has.call(props, key)) { - !props[key] && props[key] !== 0 ? removeStyle(node, hyphenate(key)) : css += hyphenate(key) + ':' + props[key] + ';'; - } - node.style.cssText += ';' + css; - }; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isRequiredForA11y; +function isRequiredForA11y(validator) { + return function validate(props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; - /***/ }, - /* 126 */ - /***/ function(module, exports, __webpack_require__) { + 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.'); + } - /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js - */ + for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; + } - 'use strict'; - var camelize = __webpack_require__(127); - var msPattern = /^-ms-/; + return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); + }; +} +module.exports = exports['default']; - module.exports = function camelizeStyleName(string) { - return camelize(string.replace(msPattern, 'ms-')); - }; +/***/ }), +/* 39 */ +/***/ (function(module, exports, __webpack_require__) { - /***/ }, - /* 127 */ - /***/ function(module, exports) { +"use strict"; - "use strict"; - var rHyphen = /-(.)/g; +Object.defineProperty(exports, "__esModule", { + value: true +}); - module.exports = function camelize(string) { - return string.replace(rHyphen, function (_, chr) { - return chr.toUpperCase(); - }); - }; +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; }; - /***/ }, - /* 128 */ - /***/ function(module, exports, __webpack_require__) { +var _react = __webpack_require__(0); - /** - * Copyright 2013-2014, Facebook, Inc. - * All rights reserved. - * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js - */ +var _react2 = _interopRequireDefault(_react); - "use strict"; +var _createChainableTypeChecker = __webpack_require__(36); - var hyphenate = __webpack_require__(129); - var msPattern = /^ms-/; +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - module.exports = function hyphenateStyleName(string) { - return hyphenate(string).replace(msPattern, "-ms-"); - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /***/ }, - /* 129 */ - /***/ function(module, exports) { +function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); - 'use strict'; + 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.'); + } - var rUpper = /([A-Z])/g; + 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.'); + } - module.exports = function hyphenate(string) { - return string.replace(rUpper, '-$1').toLowerCase(); - }; + return null; +} - /***/ }, - /* 130 */ - /***/ function(module, exports, __webpack_require__) { +exports.default = (0, _createChainableTypeChecker2.default)(validate); +module.exports = exports['default']; - 'use strict'; +/***/ }), +/* 40 */ +/***/ (function(module, exports, __webpack_require__) { - var babelHelpers = __webpack_require__(131); +"use strict"; - var _utilCamelizeStyle = __webpack_require__(126); - var _utilCamelizeStyle2 = babelHelpers.interopRequireDefault(_utilCamelizeStyle); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWindow; +function getWindow(node) { + return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; +} +module.exports = exports["default"]; + +/***/ }), +/* 41 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = getContainer; + +var _reactDom = __webpack_require__(9); + +var _reactDom2 = _interopRequireDefault(_reactDom); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function getContainer(container, defaultContainer) { + container = typeof container === 'function' ? container() : container; + return _reactDom2.default.findDOMNode(container) || defaultContainer; +} +module.exports = exports['default']; + +/***/ }), +/* 42 */ +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__(94); +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); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; - var rposition = /^(top|right|bottom|left)$/; - var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; - module.exports = function _getComputedStyle(node) { - if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); - var doc = node.ownerDocument; +/***/ }), +/* 43 */ +/***/ (function(module, exports, __webpack_require__) { - 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; +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__(22); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +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"); +}; - prop = (0, _utilCamelizeStyle2['default'])(prop); - if (prop == 'float') prop = 'styleFloat'; +/***/ }), +/* 44 */ +/***/ (function(module, exports) { - var current = node.currentStyle[prop] || null; +var toString = {}.toString; - if (current == null && style && style[prop]) current = style[prop]; +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; - 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; +/***/ }), +/* 45 */ +/***/ (function(module, exports) { - style.left = prop === 'fontSize' ? '1em' : current; - current = style.pixelLeft + 'px'; +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; +}; - // Revert the changed values - style.left = left; - if (rsLeft) runStyle.left = rsLeft; - } - return current; - } - }; - }; - - /***/ }, - /* 131 */ - /***/ function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) { - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof exports === "object") { - factory(exports); - } else { - factory(root.babelHelpers = {}); - } - })(this, function (global) { - var babelHelpers = global; +/***/ }), +/* 46 */ +/***/ (function(module, exports) { - babelHelpers.interopRequireDefault = function (obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; - }; +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); +}; - babelHelpers._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]; - } - } - } +/***/ }), +/* 47 */ +/***/ (function(module, exports, __webpack_require__) { - return target; - }; - }) +var shared = __webpack_require__(48)('keys'); +var uid = __webpack_require__(34); +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); +}; - /***/ }, - /* 132 */ - /***/ function(module, exports) { - 'use strict'; +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(14); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); +module.exports = function (key) { + return store[key] || (store[key] = {}); +}; + + +/***/ }), +/* 49 */ +/***/ (function(module, exports) { + +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); + + +/***/ }), +/* 50 */ +/***/ (function(module, exports) { - module.exports = function removeStyle(node, key) { - return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); - }; +exports.f = Object.getOwnPropertySymbols; - /***/ }, - /* 133 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(45); +module.exports = function (it) { + return Object(defined(it)); +}; - 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]; } } } return target; }; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { - var _react = __webpack_require__(85); +"use strict"; - var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(115); +exports.__esModule = true; - var _reactDom2 = _interopRequireDefault(_reactDom); +var _iterator = __webpack_require__(98); - var _properties = __webpack_require__(134); +var _iterator2 = _interopRequireDefault(_iterator); - var _properties2 = _interopRequireDefault(_properties); +var _symbol = __webpack_require__(109); - var _on = __webpack_require__(136); +var _symbol2 = _interopRequireDefault(_symbol); - var _on2 = _interopRequireDefault(_on); +var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - var _classnames = __webpack_require__(88); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _classnames2 = _interopRequireDefault(_classnames); +exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); +} : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); +}; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ }), +/* 53 */ +/***/ (function(module, exports) { - 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; } +module.exports = true; - 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; } +/***/ }), +/* 54 */ +/***/ (function(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); } 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; } +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__(21); +var dPs = __webpack_require__(102); +var enumBugKeys = __webpack_require__(49); +var IE_PROTO = __webpack_require__(47)('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; - var transitionEndEvent = _properties2.default.end; +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(68)('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__(103).appendChild(iframe); + 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); +}; + + +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + +var def = __webpack_require__(16).f; +var has = __webpack_require__(17); +var TAG = __webpack_require__(12)('toStringTag'); + +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); +}; + + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { + +exports.f = __webpack_require__(12); + + +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(14); +var core = __webpack_require__(11); +var LIBRARY = __webpack_require__(53); +var wksExt = __webpack_require__(56); +var defineProperty = __webpack_require__(16).f; +module.exports = function (name) { + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); +}; + + +/***/ }), +/* 58 */ +/***/ (function(module, 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. + * + * + */ + +function makeEmptyFunction(arg) { + return function () { + return arg; + }; +} + +/** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ +var emptyFunction = function emptyFunction() {}; + +emptyFunction.thatReturns = makeEmptyFunction; +emptyFunction.thatReturnsFalse = makeEmptyFunction(false); +emptyFunction.thatReturnsTrue = makeEmptyFunction(true); +emptyFunction.thatReturnsNull = makeEmptyFunction(null); +emptyFunction.thatReturnsThis = function () { + return this; +}; +emptyFunction.thatReturnsArgument = function (arg) { + return arg; +}; + +module.exports = emptyFunction; + +/***/ }), +/* 59 */ +/***/ (function(module, 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. + * + */ + + + +/** + * 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 validateFormat = function validateFormat(format) {}; + +if (undefined !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; +} + +function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + 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 + throw error; + } +} + +module.exports = invariant; + +/***/ }), +/* 60 */ +/***/ (function(module, 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. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 61 */ +/***/ (function(module, 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 _inDOM = __webpack_require__(15); + +var _inDOM2 = _interopRequireDefault(_inDOM); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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(); + + 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'; +} + +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 +}; + + +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 = ''; + + for (var i = 0; i < vendors.length; i++) { + var vendor = vendors[i]; + + if (vendor + 'TransitionProperty' in style) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = vendorMap[vendor]('TransitionEnd'); + animationEnd = vendorMap[vendor]('AnimationEnd'); + break; + } + } + + if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; + + if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; + + style = null; + + return { animationEnd: animationEnd, transitionEnd: transitionEnd, prefix: prefix }; +} + +/***/ }), +/* 62 */ +/***/ (function(module, exports) { + +// Source: http://jsfiddle.net/vWx8V/ +// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes + +/** + * Conenience method returns corresponding value for given keyName or keyCode. + * + * @param {Mixed} keyCode {Number} or keyName {String} + * @return {Mixed} + * @api public + */ + +exports = module.exports = function(searchInput) { + // Keyboard Events + if (searchInput && 'object' === typeof searchInput) { + var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode + if (hasKeyCode) searchInput = hasKeyCode + } + + // Numbers + if ('number' === typeof searchInput) return names[searchInput] + + // Everything else (cast to string) + var search = String(searchInput) + + // check codes + var foundNamedKey = codes[search.toLowerCase()] + if (foundNamedKey) return foundNamedKey + + // check aliases + var foundNamedKey = aliases[search.toLowerCase()] + if (foundNamedKey) return foundNamedKey + + // weird character? + if (search.length === 1) return search.charCodeAt(0) + + return undefined +} + +/** + * Get by name + * + * exports.code['enter'] // => 13 + */ + +var codes = exports.code = exports.codes = { + 'backspace': 8, + 'tab': 9, + 'enter': 13, + 'shift': 16, + 'ctrl': 17, + 'alt': 18, + 'pause/break': 19, + 'caps lock': 20, + 'esc': 27, + 'space': 32, + 'page up': 33, + 'page down': 34, + 'end': 35, + 'home': 36, + 'left': 37, + 'up': 38, + 'right': 39, + 'down': 40, + 'insert': 45, + 'delete': 46, + 'command': 91, + 'left command': 91, + 'right command': 93, + 'numpad *': 106, + 'numpad +': 107, + 'numpad -': 109, + 'numpad .': 110, + 'numpad /': 111, + 'num lock': 144, + 'scroll lock': 145, + 'my computer': 182, + 'my calculator': 183, + ';': 186, + '=': 187, + ',': 188, + '-': 189, + '.': 190, + '/': 191, + '`': 192, + '[': 219, + '\\': 220, + ']': 221, + "'": 222 +} + +// Helper aliases + +var aliases = exports.aliases = { + 'windows': 91, + '⇧': 16, + '⌥': 18, + '⌃': 17, + '⌘': 91, + 'ctl': 17, + 'control': 17, + 'option': 18, + 'pause': 19, + 'break': 19, + 'caps': 20, + 'return': 13, + 'escape': 27, + 'spc': 32, + 'pgup': 33, + 'pgdn': 34, + 'ins': 45, + 'del': 46, + 'cmd': 91 +} + + +/*! + * Programatically add the following + */ + +// lower case chars +for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32 + +// numbers +for (var i = 48; i < 58; i++) codes[i - 48] = i + +// function keys +for (i = 1; i < 13; i++) codes['f'+i] = i + 111 + +// numpad keys +for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96 + +/** + * Get by code + * + * exports.name[13] // => 'Enter' + */ + +var names = exports.names = exports.title = {} // title for backward compat + +// Create reverse mapping +for (i in codes) names[codes[i]] = i + +// Add aliases +for (var alias in aliases) { + codes[alias] = aliases[alias] +} + + +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); - var UNMOUNTED = exports.UNMOUNTED = 0; - var EXITED = exports.EXITED = 1; - var ENTERING = exports.ENTERING = 2; - var ENTERED = exports.ENTERED = 3; - var EXITING = exports.EXITING = 4; +var _inDOM = __webpack_require__(15); - /** - * The Transition component lets you define and run css transitions with a simple declarative api. - * It works similar to React's own [CSSTransitionGroup](http://facebook.github.io/react/docs/animation.html#high-level-api-reactcsstransitiongroup) - * but is specifically optimized for transitioning a single child "in" or "out". - * - * You don't even need to use class based css transitions if you don't want to (but it is easiest). - * The extensive set of lifecyle callbacks means you have control over - * the transitioning now at each step of the way. - */ +var _inDOM2 = _interopRequireDefault(_inDOM); - var Transition = function (_React$Component) { - _inherits(Transition, _React$Component); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function Transition(props, context) { - _classCallCheck(this, Transition); +var on = function on() {}; +if (_inDOM2.default) { + on = function () { - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Transition).call(this, props, context)); + 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); + }); + }; + }(); +} - var initialStatus = void 0; - if (props.in) { - // Start enter transition in componentDidMount. - initialStatus = props.transitionAppear ? EXITED : ENTERED; - } else { - initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED; - } - _this.state = { status: initialStatus }; +exports.default = on; +module.exports = exports['default']; - _this.nextCallback = null; - return _this; - } +/***/ }), +/* 64 */ +/***/ (function(module, exports, __webpack_require__) { - _createClass(Transition, [{ - key: 'componentDidMount', - value: function componentDidMount() { - if (this.props.transitionAppear && this.props.in) { - this.performEnter(this.props); - } - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - if (nextProps.in && this.props.unmountOnExit) { - if (this.state.status === UNMOUNTED) { - // Start enter transition in componentDidUpdate. - this.setState({ status: EXITED }); - } - } else { - this._needsUpdate = true; - } - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - var status = this.state.status; - - if (this.props.unmountOnExit && status === EXITED) { - // EXITED is always a transitional state to either ENTERING or UNMOUNTED - // when using unmountOnExit. - if (this.props.in) { - this.performEnter(this.props); - } else { - this.setState({ status: UNMOUNTED }); - } - - return; - } - - // guard ensures we are only responding to prop changes - if (this._needsUpdate) { - this._needsUpdate = false; - - if (this.props.in) { - if (status === EXITING) { - this.performEnter(this.props); - } else if (status === EXITED) { - this.performEnter(this.props); - } - // Otherwise we're already entering or entered. - } else { - if (status === ENTERING || status === ENTERED) { - this.performExit(this.props); - } - // Otherwise we're already exited or exiting. - } - } - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.cancelNextCallback(); - } - }, { - key: 'performEnter', - value: function performEnter(props) { - var _this2 = this; - - this.cancelNextCallback(); - var node = _reactDom2.default.findDOMNode(this); - - // Not this.props, because we might be about to receive new props. - props.onEnter(node); - - this.safeSetState({ status: ENTERING }, function () { - _this2.props.onEntering(node); - - _this2.onTransitionEnd(node, function () { - _this2.safeSetState({ status: ENTERED }, function () { - _this2.props.onEntered(node); - }); - }); - }); - } - }, { - key: 'performExit', - value: function performExit(props) { - var _this3 = this; - - this.cancelNextCallback(); - var node = _reactDom2.default.findDOMNode(this); - - // Not this.props, because we might be about to receive new props. - props.onExit(node); - - this.safeSetState({ status: EXITING }, function () { - _this3.props.onExiting(node); - - _this3.onTransitionEnd(node, function () { - _this3.safeSetState({ status: EXITED }, function () { - _this3.props.onExited(node); - }); - }); - }); - } - }, { - key: 'cancelNextCallback', - value: function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; - } - } - }, { - key: 'safeSetState', - value: 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. - this.setState(nextState, this.setNextCallback(callback)); - } - }, { - key: 'setNextCallback', - value: function setNextCallback(callback) { - var _this4 = this; +"use strict"; - var active = true; - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; +Object.defineProperty(exports, "__esModule", { + value: true +}); - callback(event); - } - }; +var _inDOM = __webpack_require__(15); - this.nextCallback.cancel = function () { - active = false; - }; +var _inDOM2 = _interopRequireDefault(_inDOM); - return this.nextCallback; - } - }, { - key: 'onTransitionEnd', - value: function onTransitionEnd(node, handler) { - this.setNextCallback(handler); - - if (node) { - (0, _on2.default)(node, transitionEndEvent, this.nextCallback); - setTimeout(this.nextCallback, this.props.timeout); - } else { - setTimeout(this.nextCallback, 0); - } - } - }, { - key: 'render', - value: function render() { - var status = this.state.status; - if (status === UNMOUNTED) { - return null; - } - - var _props = this.props; - var children = _props.children; - var className = _props.className; - - var childProps = _objectWithoutProperties(_props, ['children', 'className']); - - Object.keys(Transition.propTypes).forEach(function (key) { - return delete childProps[key]; - }); - - var transitionClassName = void 0; - if (status === EXITED) { - transitionClassName = this.props.exitedClassName; - } else if (status === ENTERING) { - transitionClassName = this.props.enteringClassName; - } else if (status === ENTERED) { - transitionClassName = this.props.enteredClassName; - } else if (status === EXITING) { - transitionClassName = this.props.exitingClassName; - } - - var child = _react2.default.Children.only(children); - return _react2.default.cloneElement(child, _extends({}, childProps, { - className: (0, _classnames2.default)(child.props.className, className, transitionClassName) - })); - } - }]); - - return Transition; - }(_react2.default.Component); - - Transition.propTypes = { - /** - * Show the component; triggers the enter or exit animation - */ - in: _react2.default.PropTypes.bool, - - /** - * Unmount the component (remove it from the DOM) when it is not shown - */ - unmountOnExit: _react2.default.PropTypes.bool, - - /** - * Run the enter animation when the component mounts, if it is initially - * shown - */ - transitionAppear: _react2.default.PropTypes.bool, - - /** - * A Timeout for the animation, in milliseconds, to ensure that a node doesn't - * transition indefinately if the browser transitionEnd events are - * canceled or interrupted. - * - * By default this is set to a high number (5 seconds) as a failsafe. You should consider - * setting this to the duration of your animation (or a bit above it). - */ - timeout: _react2.default.PropTypes.number, - - /** - * CSS class or classes applied when the component is exited - */ - exitedClassName: _react2.default.PropTypes.string, - /** - * CSS class or classes applied while the component is exiting - */ - exitingClassName: _react2.default.PropTypes.string, - /** - * CSS class or classes applied when the component is entered - */ - enteredClassName: _react2.default.PropTypes.string, - /** - * CSS class or classes applied while the component is entering - */ - enteringClassName: _react2.default.PropTypes.string, - - /** - * Callback fired before the "entering" classes are applied - */ - onEnter: _react2.default.PropTypes.func, - /** - * Callback fired after the "entering" classes are applied - */ - onEntering: _react2.default.PropTypes.func, - /** - * Callback fired after the "enter" classes are applied - */ - onEntered: _react2.default.PropTypes.func, - /** - * Callback fired before the "exiting" classes are applied - */ - onExit: _react2.default.PropTypes.func, - /** - * Callback fired after the "exiting" classes are applied - */ - onExiting: _react2.default.PropTypes.func, - /** - * Callback fired after the "exited" classes are applied - */ - onExited: _react2.default.PropTypes.func - }; - - // Name the function so it is clearer in the documentation - function noop() {} - - Transition.displayName = 'Transition'; - - Transition.defaultProps = { - in: false, - unmountOnExit: false, - transitionAppear: false, - - timeout: 5000, - - onEnter: noop, - onEntering: noop, - onEntered: noop, - - onExit: noop, - onExiting: noop, - onExited: noop - }; - - exports.default = Transition; - - /***/ }, - /* 134 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var canUseDOM = __webpack_require__(135); - - var has = Object.prototype.hasOwnProperty, - transform = 'transform', - transition = {}, - transitionTiming, - transitionDuration, - transitionProperty, - transitionDelay; - - if (canUseDOM) { - transition = getTransitionProperties(); - - transform = transition.prefix + transform; - - transitionProperty = transition.prefix + 'transition-property'; - transitionDuration = transition.prefix + 'transition-duration'; - transitionDelay = transition.prefix + 'transition-delay'; - transitionTiming = transition.prefix + 'transition-timing-function'; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = { - transform: transform, - end: transition.end, - property: transitionProperty, - timing: transitionTiming, - delay: transitionDelay, - duration: transitionDuration - }; - - function getTransitionProperties() { - var endEvent, - prefix = '', - transitions = { - O: 'otransitionend', - Moz: 'transitionend', - Webkit: 'webkitTransitionEnd', - ms: 'MSTransitionEnd' - }; - - var element = document.createElement('div'); - - for (var vendor in transitions) if (has.call(transitions, vendor)) { - if (element.style[vendor + 'TransitionProperty'] !== undefined) { - prefix = '-' + vendor.toLowerCase() + '-'; - endEvent = transitions[vendor]; - break; - } - } +var off = function off() {}; +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); + }; + }(); +} - if (!endEvent && element.style.transitionProperty !== undefined) endEvent = 'transitionend'; +exports.default = off; +module.exports = exports['default']; - return { end: endEvent, prefix: prefix }; - } +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { - /***/ }, - /* 135 */ - /***/ function(module, exports) { +"use strict"; - 'use strict'; - module.exports = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - /***/ }, - /* 136 */ - /***/ function(module, exports, __webpack_require__) { +exports.__esModule = true; - 'use strict'; - var canUseDOM = __webpack_require__(135); - var on = function on() {}; +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; }; - if (canUseDOM) { - on = (function () { +var _react = __webpack_require__(0); - 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, handler); - }; - })(); - } +var _react2 = _interopRequireDefault(_react); - module.exports = on; +var _createChainableTypeChecker = __webpack_require__(174); - /***/ }, - /* 137 */ - /***/ function(module, exports, __webpack_require__) { +var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - 'use strict'; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - exports.__esModule = true; +function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); - var _objectWithoutProperties2 = __webpack_require__(87); + 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).'); + } - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + 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).'); + } - var _extends2 = __webpack_require__(2); + return null; +} - var _extends3 = _interopRequireDefault(_extends2); +exports.default = (0, _createChainableTypeChecker2.default)(elementType); - var _classCallCheck2 = __webpack_require__(40); +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); +module.exports = { "default": __webpack_require__(92), __esModule: true }; - var _possibleConstructorReturn2 = __webpack_require__(41); +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +module.exports = !__webpack_require__(23) && !__webpack_require__(28)(function () { + return Object.defineProperty(__webpack_require__(68)('div'), 'a', { get: function () { return 7; } }).a != 7; +}); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__(22); +var document = __webpack_require__(14).document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { + +var has = __webpack_require__(17); +var toIObject = __webpack_require__(18); +var arrayIndexOf = __webpack_require__(96)(false); +var IE_PROTO = __webpack_require__(47)('IE_PROTO'); + +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; +}; + + +/***/ }), +/* 70 */ +/***/ (function(module, exports, __webpack_require__) { + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__(44); +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; + + +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.15 ToLength +var toInteger = __webpack_require__(46); +var min = Math.min; +module.exports = function (it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 +}; + + +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $at = __webpack_require__(100)(true); + +// 21.1.3.27 String.prototype[@@iterator]() +__webpack_require__(73)(String, 'String', function (iterated) { + this._t = String(iterated); // target + 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 _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var LIBRARY = __webpack_require__(53); +var $export = __webpack_require__(13); +var redefine = __webpack_require__(74); +var hide = __webpack_require__(20); +var has = __webpack_require__(17); +var Iterators = __webpack_require__(32); +var $iterCreate = __webpack_require__(101); +var setToStringTag = __webpack_require__(55); +var getPrototypeOf = __webpack_require__(104); +var ITERATOR = __webpack_require__(12)('iterator'); +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` +var FF_ITERATOR = '@@iterator'; +var KEYS = 'keys'; +var VALUES = 'values'; + +var returnThis = function () { return this; }; + +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { + $iterCreate(Constructor, NAME, next); + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = (!BUGGY && $native) || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); + } + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { return $native.call(this); }; + } + // Define iterator + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries + }; + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); + } + return methods; +}; + + +/***/ }), +/* 74 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(20); + + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) +var $keys = __webpack_require__(69); +var hiddenKeys = __webpack_require__(49).concat('length', 'prototype'); + +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); +}; + + +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { + +var pIE = __webpack_require__(31); +var createDesc = __webpack_require__(29); +var toIObject = __webpack_require__(18); +var toPrimitive = __webpack_require__(43); +var has = __webpack_require__(17); +var IE8_DOM_DEFINE = __webpack_require__(67); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__(23) ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); +}; + + +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { + +"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. + * + */ + + + +var emptyFunction = __webpack_require__(58); + +/** + * 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 = emptyFunction; + +if (undefined !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + 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) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; +} + +module.exports = warning; + +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = { "default": __webpack_require__(132), __esModule: true }; + +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { + +var getKeys = __webpack_require__(30); +var toIObject = __webpack_require__(18); +var isEnum = __webpack_require__(31).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; + }; +}; + + +/***/ }), +/* 80 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = camelizeStyleName; + +var _camelize = __webpack_require__(138); + +var _camelize2 = _interopRequireDefault(_camelize); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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']; + +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; + +var _propTypes = __webpack_require__(7); + +var PropTypes = _interopRequireWildcard(_propTypes); + +var _react = __webpack_require__(0); + +var _react2 = _interopRequireDefault(_react); + +var _reactDom = __webpack_require__(9); + +var _reactDom2 = _interopRequireDefault(_reactDom); + +var _PropTypes = __webpack_require__(144); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + +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; } + +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; } + +var UNMOUNTED = exports.UNMOUNTED = 'unmounted'; +var EXITED = exports.EXITED = 'exited'; +var ENTERING = exports.ENTERING = 'entering'; +var ENTERED = exports.ENTERED = 'entered'; +var EXITING = exports.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. + * + * 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`) when finally switches to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`. + */ + +var Transition = function (_React$Component) { + _inherits(Transition, _React$Component); + + function Transition(props, context) { + _classCallCheck(this, Transition); + + 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 + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + + var initialStatus = void 0; + _this.nextStatus = null; + + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.nextStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } + } + + _this.state = { status: initialStatus }; + + _this.nextCallback = null; + return _this; + } + + Transition.prototype.getChildContext = function getChildContext() { + return { transitionGroup: null }; // allows for nested Transitions + }; + + Transition.prototype.componentDidMount = function componentDidMount() { + this.updateStatus(true); + }; + + Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var _ref = this.pendingState || this.state, + status = _ref.status; + + if (nextProps.in) { + if (status === UNMOUNTED) { + this.setState({ status: EXITED }); + } + if (status !== ENTERING && status !== ENTERED) { + this.nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + this.nextStatus = EXITING; + } + } + }; + + Transition.prototype.componentDidUpdate = function componentDidUpdate() { + this.updateStatus(); + }; + + Transition.prototype.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; + + Transition.prototype.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + + var exit = void 0, + enter = void 0, + appear = void 0; + + exit = enter = appear = timeout; + + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; + appear = timeout.appear; + } + return { exit: exit, enter: enter, appear: appear }; + }; + + Transition.prototype.updateStatus = function updateStatus() { + var mounting = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + + var nextStatus = this.nextStatus; + + if (nextStatus !== null) { + this.nextStatus = null; + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); + var node = _reactDom2.default.findDOMNode(this); + + if (nextStatus === ENTERING) { + this.performEnter(node, mounting); + } else { + this.performExit(node); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ status: UNMOUNTED }); + } + }; + + Transition.prototype.performEnter = function performEnter(node, mounting) { + var _this2 = this; + + 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; + } + + this.props.onEnter(node, appearing); + + this.safeSetState({ status: ENTERING }, function () { + _this2.props.onEntering(node, appearing); + + // FIXME: appear timeout? + _this2.onTransitionEnd(node, timeouts.enter, function () { + _this2.safeSetState({ status: ENTERED }, function () { + _this2.props.onEntered(node, appearing); + }); + }); + }); + }; + + Transition.prototype.performExit = function performExit(node) { + var _this3 = this; + + 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; + } + 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) { + var _this4 = this; + + // We need to track pending updates for instances where a cWRP fires quickly + // after cDM and before the state flushes, which would double trigger a + // transition + this.pendingState = nextState; + + // 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, function () { + _this4.pendingState = null; + callback(); + }); + }; + + Transition.prototype.setNextCallback = function setNextCallback(callback) { + var _this5 = this; + + var active = true; + + this.nextCallback = function (event) { + if (active) { + active = false; + _this5.nextCallback = null; + + callback(event); + } + }; + + this.nextCallback.cancel = function () { + active = false; + }; + + return this.nextCallback; + }; + + Transition.prototype.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { + this.setNextCallback(handler); + + if (node) { + if (this.props.addEndListener) { + this.props.addEndListener(node, this.nextCallback); + } + if (timeout != null) { + setTimeout(this.nextCallback, timeout); + } + } else { + setTimeout(this.nextCallback, 0); + } + }; + + Transition.prototype.render = function render() { + var status = this.state.status; + if (status === UNMOUNTED) { + return null; + } + + var _props = this.props, + children = _props.children, + childProps = _objectWithoutProperties(_props, ['children']); + // filter props for Transtition + + + 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; + + if (typeof children === 'function') { + return children(status, childProps); + } + + var child = _react2.default.Children.only(children); + return _react2.default.cloneElement(child, childProps); + }; + + return Transition; +}(_react2.default.Component); + +Transition.contextTypes = { + transitionGroup: PropTypes.object +}; +Transition.childContextTypes = { + transitionGroup: function transitionGroup() {} +}; + + +Transition.propTypes = undefined !== "production" ? { + /** + * A `function` child can be used instead of a React element. + * This function is called with the current transition status + * ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can used + * to apply context specific props to a component. + * + * ```jsx + * + * {(status) => ( + * + * )} + * + * ``` + */ + children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired, + + /** + * Show the component; triggers the enter or exit states + */ + in: PropTypes.bool, + + /** + * By default the child component is mounted immediately along with + * the parent `Transition` component. If you want to "lazy mount" the component on the + * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay + * mounted, even on "exited", unless you also specify `unmountOnExit`. + */ + mountOnEnter: PropTypes.bool, + + /** + * By default the child component stays mounted after it reaches the `'exited'` state. + * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. + */ + unmountOnExit: PropTypes.bool, + + /** + * Normally a component is not transitioned if it is shown when the `` component mounts. + * If you want to transition on the first mount set `appear` to `true`, and the + * component will transition in as soon as the `` mounts. + * + * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition. + */ + appear: PropTypes.bool, + + /** + * Enable or disable enter transitions. + */ + enter: PropTypes.bool, + + /** + * Enable or disable exit transitions. + */ + exit: PropTypes.bool, + + /** + * The duration of the transition, in milliseconds. + * Required unless `addEventListener` is provided + * + * You may specify a single timeout for all transitions like: `timeout={500}`, + * or individually like: + * + * ```jsx + * timeout={{ + * enter: 300, + * exit: 500, + * }} + * ``` + * + * @type {number | { enter?: number, exit?: number }} + */ + timeout: function timeout(props) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var pt = _PropTypes.timeoutsShape; + if (!props.addEndListener) pt = pt.isRequired; + return pt.apply(undefined, [props].concat(args)); + }, + + /** + * Add a custom transition end trigger. Called with the transitioning + * DOM node and a `done` callback. Allows for more fine grained transition end + * logic. **Note:** Timeouts are still used as a fallback if provided. + * + * ```jsx + * addEndListener={(node, done) => { + * // use the css transitionend event to mark the finish of a transition + * node.addEventListener('transitionend', done, false); + * }} + * ``` + */ + addEndListener: PropTypes.func, + + /** + * Callback fired before the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEnter: PropTypes.func, + + /** + * Callback fired after the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) + */ + onEntering: PropTypes.func, + + /** + * Callback fired after the "entered" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEntered: PropTypes.func, + + /** + * Callback fired before the "exiting" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExit: PropTypes.func, + + /** + * Callback fired after the "exiting" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExiting: PropTypes.func, + + /** + * Callback fired after the "exited" status is applied. + * + * @type Function(node: HtmlElement) -> void + */ + onExited: PropTypes.func +} : {}; + +// Name the function so it is clearer in the documentation +function noop() {} + +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.default = Transition; + +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = activeElement; - var _activeElement = __webpack_require__(138); +var _ownerDocument = __webpack_require__(25); - var _activeElement2 = _interopRequireDefault(_activeElement); +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _contains = __webpack_require__(140); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _contains2 = _interopRequireDefault(_contains); +function activeElement() { + var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); - var _keycode = __webpack_require__(141); + try { + return doc.activeElement; + } catch (e) {/* ie throws if no active element */} +} +module.exports = exports['default']; - var _keycode2 = _interopRequireDefault(_keycode); +/***/ }), +/* 83 */ +/***/ (function(module, exports, __webpack_require__) { - var _react = __webpack_require__(85); +"use strict"; - var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(115); +exports.__esModule = true; - var _reactDom2 = _interopRequireDefault(_reactDom); +var _contains = __webpack_require__(26); - var _all = __webpack_require__(110); +var _contains2 = _interopRequireDefault(_contains); - var _all2 = _interopRequireDefault(_all); +var _propTypes = __webpack_require__(7); - var _elementType = __webpack_require__(106); +var _propTypes2 = _interopRequireDefault(_propTypes); - var _elementType2 = _interopRequireDefault(_elementType); +var _react = __webpack_require__(0); - var _isRequiredForA11y = __webpack_require__(142); +var _react2 = _interopRequireDefault(_react); - var _isRequiredForA11y2 = _interopRequireDefault(_isRequiredForA11y); +var _reactDom = __webpack_require__(9); - var _uncontrollable = __webpack_require__(143); +var _reactDom2 = _interopRequireDefault(_reactDom); - var _uncontrollable2 = _interopRequireDefault(_uncontrollable); +var _addEventListener = __webpack_require__(84); - var _warning = __webpack_require__(119); +var _addEventListener2 = _interopRequireDefault(_addEventListener); - var _warning2 = _interopRequireDefault(_warning); +var _ownerDocument = __webpack_require__(27); - var _ButtonGroup = __webpack_require__(109); +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _ButtonGroup2 = _interopRequireDefault(_ButtonGroup); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _DropdownMenu = __webpack_require__(146); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var _DropdownMenu2 = _interopRequireDefault(_DropdownMenu); +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; } - var _DropdownToggle = __webpack_require__(161); +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; } - var _DropdownToggle2 = _interopRequireDefault(_DropdownToggle); +var escapeKeyCode = 27; - var _bootstrapUtils = __webpack_require__(89); +function isLeftClickEvent(event) { + return event.button === 0; +} - var _createChainedFunction = __webpack_require__(96); +function isModifiedEvent(event) { + return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); +} - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); +/** + * 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. + */ - var _PropTypes = __webpack_require__(162); +var RootCloseWrapper = function (_React$Component) { + _inherits(RootCloseWrapper, _React$Component); - var _ValidComponentChildren = __webpack_require__(97); + function RootCloseWrapper(props, context) { + _classCallCheck(this, RootCloseWrapper); - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + _this.addEventListeners = function () { + var event = _this.props.event; - var TOGGLE_ROLE = _DropdownToggle2['default'].defaultProps.bsRole; - var MENU_ROLE = _DropdownMenu2['default'].defaultProps.bsRole; + var doc = (0, _ownerDocument2.default)(_this); - var propTypes = { - /** - * The menu will open above the dropdown button, instead of below it. - */ - dropup: _react2['default'].PropTypes.bool, + // 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. + _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true); - /** - * An html id attribute, necessary for assistive technologies, such as screen readers. - * @type {string|number} - * @required - */ - id: (0, _isRequiredForA11y2['default'])(_react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.string, _react2['default'].PropTypes.number])), + _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse); - componentClass: _elementType2['default'], + _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp); + }; - /** - * The children of a Dropdown may be a `` or a ``. - * @type {node} - */ - children: (0, _all2['default'])((0, _PropTypes.requiredRoles)(TOGGLE_ROLE, MENU_ROLE), (0, _PropTypes.exclusiveRoles)(MENU_ROLE)), + _this.removeEventListeners = function () { + if (_this.documentMouseCaptureListener) { + _this.documentMouseCaptureListener.remove(); + } - /** - * Whether or not component is disabled. - */ - disabled: _react2['default'].PropTypes.bool, + if (_this.documentMouseListener) { + _this.documentMouseListener.remove(); + } - /** - * Align the menu to the right side of the Dropdown toggle - */ - pullRight: _react2['default'].PropTypes.bool, + if (_this.documentKeyupListener) { + _this.documentKeyupListener.remove(); + } + }; - /** - * Whether or not the Dropdown is visible. - * - * @controllable onToggle - */ - open: _react2['default'].PropTypes.bool, + _this.handleMouseCapture = function (e) { + _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target); + }; - /** - * A callback fired when the Dropdown closes. - */ - onClose: _react2['default'].PropTypes.func, + _this.handleMouse = function (e) { + if (!_this.preventMouseRootClose && _this.props.onRootClose) { + _this.props.onRootClose(e); + } + }; - /** - * A callback fired when the Dropdown wishes to change visibility. Called with the requested - * `open` value. - * - * ```js - * function(Boolean isOpen) {} - * ``` - * @controllable open - */ - onToggle: _react2['default'].PropTypes.func, + _this.handleKeyUp = function (e) { + if (e.keyCode === escapeKeyCode && _this.props.onRootClose) { + _this.props.onRootClose(e); + } + }; - /** - * A callback fired when a menu item is selected. - * - * ```js - * (eventKey: any, event: Object) => any - * ``` - */ - onSelect: _react2['default'].PropTypes.func, + _this.preventMouseRootClose = false; + return _this; + } - /** - * If `'menuitem'`, causes the dropdown to behave like a menu item rather than - * a menu button. - */ - role: _react2['default'].PropTypes.string - }; + RootCloseWrapper.prototype.componentDidMount = function componentDidMount() { + if (!this.props.disabled) { + this.addEventListeners(); + } + }; - var defaultProps = { - componentClass: _ButtonGroup2['default'] - }; + RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + if (!this.props.disabled && prevProps.disabled) { + this.addEventListeners(); + } else if (this.props.disabled && !prevProps.disabled) { + this.removeEventListeners(); + } + }; - var Dropdown = function (_React$Component) { - (0, _inherits3['default'])(Dropdown, _React$Component); + RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() { + if (!this.props.disabled) { + this.removeEventListeners(); + } + }; - function Dropdown(props, context) { - (0, _classCallCheck3['default'])(this, Dropdown); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleClick = _this.handleClick.bind(_this); - _this.handleKeyDown = _this.handleKeyDown.bind(_this); - _this.handleClose = _this.handleClose.bind(_this); - - _this._focusInDropdown = false; - _this.lastOpenEventType = null; - return _this; - } + RootCloseWrapper.prototype.render = function render() { + return this.props.children; + }; - Dropdown.prototype.componentDidMount = function componentDidMount() { - this.focusNextOnOpen(); - }; + return RootCloseWrapper; +}(_react2.default.Component); - Dropdown.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { - if (!nextProps.open && this.props.open) { - this._focusInDropdown = (0, _contains2['default'])(_reactDom2['default'].findDOMNode(this.menu), (0, _activeElement2['default'])(document)); - } - }; +RootCloseWrapper.displayName = 'RootCloseWrapper'; - Dropdown.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - var open = this.props.open; +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, + /** + * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`. + */ + disabled: _propTypes2.default.bool, + /** + * Choose which document mouse event to bind to. + */ + event: _propTypes2.default.oneOf(['click', 'mousedown']) +}; - var prevOpen = prevProps.open; +RootCloseWrapper.defaultProps = { + event: 'click' +}; - if (open && !prevOpen) { - this.focusNextOnOpen(); - } +exports.default = RootCloseWrapper; +module.exports = exports['default']; - if (!open && prevOpen) { - // if focus hasn't already moved from the menu lets return it - // to the toggle - if (this._focusInDropdown) { - this._focusInDropdown = false; - this.focus(); - } - } - }; +/***/ }), +/* 84 */ +/***/ (function(module, exports, __webpack_require__) { - Dropdown.prototype.handleClick = function handleClick() { - if (this.props.disabled) { - return; - } +"use strict"; - this.toggleOpen('click'); - }; - Dropdown.prototype.handleKeyDown = function handleKeyDown(event) { - if (this.props.disabled) { - return; - } +exports.__esModule = true; + +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); + } + }; +}; - switch (event.keyCode) { - case _keycode2['default'].codes.down: - if (!this.props.open) { - this.toggleOpen('keydown'); - } else if (this.menu.focusNext) { - this.menu.focusNext(); - } - event.preventDefault(); - break; - case _keycode2['default'].codes.esc: - case _keycode2['default'].codes.tab: - this.handleClose(event); - break; - default: - } - }; +var _on = __webpack_require__(63); + +var _on2 = _interopRequireDefault(_on); - Dropdown.prototype.toggleOpen = function toggleOpen(eventType) { - var open = !this.props.open; +var _off = __webpack_require__(64); - if (open) { - this.lastOpenEventType = eventType; - } +var _off2 = _interopRequireDefault(_off); - if (this.props.onToggle) { - this.props.onToggle(open); - } - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - Dropdown.prototype.handleClose = function handleClose() { - if (!this.props.open) { - return; - } +module.exports = exports['default']; - this.toggleOpen(null); - }; +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { - Dropdown.prototype.focusNextOnOpen = function focusNextOnOpen() { - var menu = this.menu; +"use strict"; - if (!menu.focusNext) { - return; - } - if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { - menu.focusNext(); - } - }; +Object.defineProperty(exports, "__esModule", { + value: true +}); - Dropdown.prototype.focus = function focus() { - var toggle = _reactDom2['default'].findDOMNode(this.toggle); +exports.default = function (recalc) { + if (!size && size !== 0 || recalc) { + if (_inDOM2.default) { + var scrollDiv = document.createElement('div'); - if (toggle && toggle.focus) { - toggle.focus(); - } - }; + scrollDiv.style.position = 'absolute'; + scrollDiv.style.top = '-9999px'; + scrollDiv.style.width = '50px'; + scrollDiv.style.height = '50px'; + scrollDiv.style.overflow = 'scroll'; - Dropdown.prototype.renderToggle = function renderToggle(child, props) { - var _this2 = this; + document.body.appendChild(scrollDiv); + size = scrollDiv.offsetWidth - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + } + } - var ref = function ref(c) { - _this2.toggle = c; - }; + return size; +}; - if (typeof child.ref === 'string') { - true ? (0, _warning2['default'])(false, 'String refs are not supported on `` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; - } else { - ref = (0, _createChainedFunction2['default'])(child.ref, ref); - } +var _inDOM = __webpack_require__(15); - return (0, _react.cloneElement)(child, (0, _extends3['default'])({}, props, { - ref: ref, - bsClass: (0, _bootstrapUtils.prefix)(props, 'toggle'), - onClick: (0, _createChainedFunction2['default'])(child.props.onClick, this.handleClick), - onKeyDown: (0, _createChainedFunction2['default'])(child.props.onKeyDown, this.handleKeyDown) - })); - }; - - Dropdown.prototype.renderMenu = function renderMenu(child, _ref) { - var _this3 = this; - - var id = _ref.id; - var onClose = _ref.onClose; - var onSelect = _ref.onSelect; - var props = (0, _objectWithoutProperties3['default'])(_ref, ['id', 'onClose', 'onSelect']); - - var ref = function ref(c) { - _this3.menu = c; - }; - - if (typeof child.ref === 'string') { - true ? (0, _warning2['default'])(false, 'String refs are not supported on `` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; - } else { - ref = (0, _createChainedFunction2['default'])(child.ref, ref); - } +var _inDOM2 = _interopRequireDefault(_inDOM); - return (0, _react.cloneElement)(child, (0, _extends3['default'])({}, props, { - ref: ref, - labelledBy: id, - bsClass: (0, _bootstrapUtils.prefix)(props, 'menu'), - onClose: (0, _createChainedFunction2['default'])(child.props.onClose, onClose, this.handleClose), - onSelect: (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect, this.handleClose) - })); - }; - - Dropdown.prototype.render = function render() { - var _classes, - _this4 = this; - - var _props = this.props; - var Component = _props.componentClass; - var id = _props.id; - var dropup = _props.dropup; - var disabled = _props.disabled; - var pullRight = _props.pullRight; - var open = _props.open; - var onClose = _props.onClose; - var onSelect = _props.onSelect; - var role = _props.role; - var bsClass = _props.bsClass; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'id', 'dropup', 'disabled', 'pullRight', 'open', 'onClose', 'onSelect', 'role', 'bsClass', 'className', 'children']); - - - delete props.onToggle; - - var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); - - if (dropup) { - classes[bsClass] = false; - classes.dropup = true; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // This intentionally forwards bsSize and bsStyle (if set) to the - // underlying component, to allow it to render size and style variants. +var size = void 0; - return _react2['default'].createElement( - Component, - (0, _extends3['default'])({}, props, { - className: (0, _classnames2['default'])(className, classes) - }), - _ValidComponentChildren2['default'].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, onClose: onClose, onSelect: onSelect - }); - default: - return child; - } - }) - ); - }; +module.exports = exports['default']; - return Dropdown; - }(_react2['default'].Component); +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { - Dropdown.propTypes = propTypes; - Dropdown.defaultProps = defaultProps; +"use strict"; - (0, _bootstrapUtils.bsClass)('dropdown', Dropdown); - var UncontrolledDropdown = (0, _uncontrollable2['default'])(Dropdown, { open: 'onToggle' }); +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"]; - UncontrolledDropdown.Toggle = _DropdownToggle2['default']; - UncontrolledDropdown.Menu = _DropdownMenu2['default']; +/***/ }), +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { - exports['default'] = UncontrolledDropdown; - module.exports = exports['default']; +"use strict"; - /***/ }, - /* 138 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; +exports.__esModule = true; +exports.default = isOverflowing; - var babelHelpers = __webpack_require__(131); +var _isWindow = __webpack_require__(40); - exports.__esModule = true; +var _isWindow2 = _interopRequireDefault(_isWindow); - /** - * document.activeElement - */ - exports['default'] = activeElement; +var _ownerDocument = __webpack_require__(25); - var _ownerDocument = __webpack_require__(139); +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _ownerDocument2 = babelHelpers.interopRequireDefault(_ownerDocument); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function activeElement() { - var doc = arguments[0] === undefined ? document : arguments[0]; +function isBody(node) { + return node && node.tagName.toLowerCase() === 'body'; +} - try { - return doc.activeElement; - } catch (e) {} - } +function bodyIsOverflowing(node) { + var doc = (0, _ownerDocument2.default)(node); + var win = (0, _isWindow2.default)(doc); + var fullWidth = win.innerWidth; - module.exports = exports['default']; + // Support: ie8, no innerWidth + if (!fullWidth) { + var documentElementRect = doc.documentElement.getBoundingClientRect(); + fullWidth = documentElementRect.right - Math.abs(documentElementRect.left); + } - /***/ }, - /* 139 */ - /***/ function(module, exports) { + return doc.body.clientWidth < fullWidth; +} - "use strict"; +function isOverflowing(container) { + var win = (0, _isWindow2.default)(container); - exports.__esModule = true; - exports["default"] = ownerDocument; + return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight; +} +module.exports = exports['default']; - function ownerDocument(node) { - return node && node.ownerDocument || document; - } +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { - module.exports = exports["default"]; - - /***/ }, - /* 140 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var canUseDOM = __webpack_require__(135); - - var contains = (function () { - var root = canUseDOM && document.documentElement; - - return root && root.contains ? function (context, node) { - return context.contains(node); - } : root && root.compareDocumentPosition ? function (context, node) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } : function (context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); - - return false; - }; - })(); - - module.exports = contains; - - /***/ }, - /* 141 */ - /***/ function(module, exports) { - - // Source: http://jsfiddle.net/vWx8V/ - // http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes - - /** - * Conenience method returns corresponding value for given keyName or keyCode. - * - * @param {Mixed} keyCode {Number} or keyName {String} - * @return {Mixed} - * @api public - */ - - exports = module.exports = function(searchInput) { - // Keyboard Events - if (searchInput && 'object' === typeof searchInput) { - var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode - if (hasKeyCode) searchInput = hasKeyCode - } +"use strict"; - // Numbers - if ('number' === typeof searchInput) return names[searchInput] - // Everything else (cast to string) - var search = String(searchInput) +exports.__esModule = true; - // check codes - var foundNamedKey = codes[search.toLowerCase()] - if (foundNamedKey) return foundNamedKey +var _propTypes = __webpack_require__(7); - // check aliases - var foundNamedKey = aliases[search.toLowerCase()] - if (foundNamedKey) return foundNamedKey +var _propTypes2 = _interopRequireDefault(_propTypes); - // weird character? - if (search.length === 1) return search.charCodeAt(0) +var _componentOrElement = __webpack_require__(39); - return undefined - } +var _componentOrElement2 = _interopRequireDefault(_componentOrElement); - /** - * Get by name - * - * exports.code['enter'] // => 13 - */ - - var codes = exports.code = exports.codes = { - 'backspace': 8, - 'tab': 9, - 'enter': 13, - 'shift': 16, - 'ctrl': 17, - 'alt': 18, - 'pause/break': 19, - 'caps lock': 20, - 'esc': 27, - 'space': 32, - 'page up': 33, - 'page down': 34, - 'end': 35, - 'home': 36, - 'left': 37, - 'up': 38, - 'right': 39, - 'down': 40, - 'insert': 45, - 'delete': 46, - 'command': 91, - 'left command': 91, - 'right command': 93, - 'numpad *': 106, - 'numpad +': 107, - 'numpad -': 109, - 'numpad .': 110, - 'numpad /': 111, - 'num lock': 144, - 'scroll lock': 145, - 'my computer': 182, - 'my calculator': 183, - ';': 186, - '=': 187, - ',': 188, - '-': 189, - '.': 190, - '/': 191, - '`': 192, - '[': 219, - '\\': 220, - ']': 221, - "'": 222 - } +var _react = __webpack_require__(0); - // Helper aliases - - var aliases = exports.aliases = { - 'windows': 91, - '⇧': 16, - '⌥': 18, - '⌃': 17, - '⌘': 91, - 'ctl': 17, - 'control': 17, - 'option': 18, - 'pause': 19, - 'break': 19, - 'caps': 20, - 'return': 13, - 'escape': 27, - 'spc': 32, - 'pgup': 33, - 'pgdn': 34, - 'ins': 45, - 'del': 46, - 'cmd': 91 - } +var _react2 = _interopRequireDefault(_react); +var _reactDom = __webpack_require__(9); - /*! - * Programatically add the following - */ +var _reactDom2 = _interopRequireDefault(_reactDom); - // lower case chars - for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32 +var _getContainer = __webpack_require__(41); - // numbers - for (var i = 48; i < 58; i++) codes[i - 48] = i +var _getContainer2 = _interopRequireDefault(_getContainer); - // function keys - for (i = 1; i < 13; i++) codes['f'+i] = i + 111 +var _ownerDocument = __webpack_require__(27); - // numpad keys - for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96 +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - /** - * Get by code - * - * exports.name[13] // => 'Enter' - */ +var _LegacyPortal = __webpack_require__(165); - var names = exports.names = exports.title = {} // title for backward compat +var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal); - // Create reverse mapping - for (i in codes) names[codes[i]] = i +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - // Add aliases - for (var alias in aliases) { - codes[alias] = aliases[alias] - } +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; } - /***/ }, - /* 142 */ - /***/ function(module, exports) { +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; } - 'use strict'; +/** + * 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); - exports.__esModule = true; - exports.default = isRequiredForA11y; - function isRequiredForA11y(validator) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; + function Portal() { + var _temp, _this, _ret; - 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.'); - } + _classCallCheck(this, Portal); - for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - args[_key - 5] = arguments[_key]; - } + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); - }; - } + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.setContainer = function () { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props; - /***/ }, - /* 143 */ - /***/ function(module, exports, __webpack_require__) { + _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body); + }, _this.getMountNode = function () { + return _this._portalContainerNode; + }, _temp), _possibleConstructorReturn(_this, _ret); + } - 'use strict'; + Portal.prototype.componentDidMount = function componentDidMount() { + this.setContainer(); + this.forceUpdate(this.props.onRendered); + }; - exports.__esModule = true; + Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps.container !== this.props.container) { + this.setContainer(nextProps); + } + }; - var _createUncontrollable = __webpack_require__(144); + Portal.prototype.componentWillUnmount = function componentWillUnmount() { + this._portalContainerNode = null; + }; - var _createUncontrollable2 = _interopRequireDefault(_createUncontrollable); + Portal.prototype.render = function render() { + return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null; + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return Portal; +}(_react2.default.Component); - var mixin = { - shouldComponentUpdate: function shouldComponentUpdate() { - //let the forceUpdate trigger the update - return !this._notifying; - } - }; +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]), - function set(component, propName, handler, value, args) { - if (handler) { - component._notifying = true; - handler.call.apply(handler, [component, value].concat(args)); - component._notifying = false; - } + onRendered: _propTypes2.default.func +}; +exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default; +module.exports = exports['default']; - component._values[propName] = value; +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { - if (component.isMounted()) component.forceUpdate(); - } +"use strict"; - exports.default = (0, _createUncontrollable2.default)([mixin], set); - module.exports = exports['default']; - /***/ }, - /* 144 */ - /***/ function(module, exports, __webpack_require__) { +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = offset; - 'use strict'; +var _contains = __webpack_require__(26); - exports.__esModule = true; +var _contains2 = _interopRequireDefault(_contains); - 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]; } } } return target; }; +var _isWindow = __webpack_require__(40); - exports.default = createUncontrollable; +var _isWindow2 = _interopRequireDefault(_isWindow); - var _react = __webpack_require__(85); +var _ownerDocument = __webpack_require__(25); - var _react2 = _interopRequireDefault(_react); +var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _invariant = __webpack_require__(94); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _invariant2 = _interopRequireDefault(_invariant); +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 }; - var _utils = __webpack_require__(145); + if (!doc) return; - var utils = _interopRequireWildcard(_utils); + // Make sure it's not a disconnected DOM node + if (!(0, _contains2.default)(docElem, node)) return box; - 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)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // IE8 getBoundingClientRect doesn't support width & height + 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 + }; - function createUncontrollable(mixins, set) { + return box; +} +module.exports = exports['default']; - return uncontrollable; +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { - function uncontrollable(Component, controlledValues) { - var methods = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2]; +"use strict"; - var displayName = Component.displayName || Component.name || 'Component', - basePropTypes = utils.getType(Component).propTypes, - isCompositeComponent = utils.isReactComponent(Component), - controlledProps = Object.keys(controlledValues), - propTypes; - var OMIT_PROPS = ['valueLink', 'checkedLink'].concat(controlledProps.map(utils.defaultKey)); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = scrollTop; + +var _isWindow = __webpack_require__(40); + +var _isWindow2 = _interopRequireDefault(_isWindow); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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; +} +module.exports = exports['default']; + +/***/ }), +/* 91 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); +var bootstrapUtils_namespaceObject = {}; +__webpack_require__.d(bootstrapUtils_namespaceObject, "prefix", function() { return prefix; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "bsClass", function() { return bootstrapUtils_bsClass; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "bsStyles", function() { return bsStyles; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "bsSizes", function() { return bsSizes; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "getClassSet", function() { return getClassSet; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "splitBsProps", function() { return splitBsProps; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "splitBsPropsAndOmit", function() { return splitBsPropsAndOmit; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "addStyle", function() { return addStyle; }); +__webpack_require__.d(bootstrapUtils_namespaceObject, "_curry", function() { return _curry; }); +var utils_namespaceObject = {}; +__webpack_require__.d(utils_namespaceObject, "bootstrapUtils", function() { return bootstrapUtils_namespaceObject; }); +__webpack_require__.d(utils_namespaceObject, "createChainedFunction", function() { return utils_createChainedFunction; }); +__webpack_require__.d(utils_namespaceObject, "ValidComponentChildren", function() { return ValidComponentChildren; }); + +// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js +var helpers_extends = __webpack_require__(4); +var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends); + +// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/classCallCheck.js +var classCallCheck = __webpack_require__(1); +var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck); + +// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(2); +var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn); + +// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/inherits.js +var inherits = __webpack_require__(3); +var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits); + +// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} +var external___root___React___commonjs2___react___commonjs___react___amd___react__ = __webpack_require__(0); +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/helpers/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(5); +var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(6); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: ./node_modules/prop-types/index.js +var prop_types = __webpack_require__(7); +var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); + +// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js +var uncontrollable = __webpack_require__(19); +var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable); + +// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/entries.js +var entries = __webpack_require__(78); +var entries_default = /*#__PURE__*/__webpack_require__.n(entries); + +// EXTERNAL MODULE: ./node_modules/invariant/browser.js +var browser = __webpack_require__(35); +var browser_default = /*#__PURE__*/__webpack_require__.n(browser); + +// CONCATENATED MODULE: ./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' +}; +// CONCATENATED MODULE: ./src/utils/bootstrapUtils.js + + +// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. + + + + + + +function curry(fn) { + return function () { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + var last = args[args.length - 1]; + if (typeof last === 'function') { + return fn.apply(undefined, args); + } + return function (Component) { + return fn.apply(undefined, args.concat([Component])); + }; + }; +} - propTypes = utils.uncontrolledPropTypes(controlledValues, basePropTypes, displayName); +function prefix(props, variant) { + var bsClass = (props.bsClass || '').trim(); + !(bsClass != null) ? undefined !== 'production' ? browser_default()(false, 'A `bsClass` prop is required for this component') : browser_default()(false) : void 0; + return bsClass + (variant ? '-' + variant : ''); +} + +var bootstrapUtils_bsClass = curry(function (defaultClass, Component) { + var propTypes = Component.propTypes || (Component.propTypes = {}); + var defaultProps = Component.defaultProps || (Component.defaultProps = {}); + + propTypes.bsClass = prop_types_default.a.string; + defaultProps.bsClass = defaultClass; - (0, _invariant2.default)(isCompositeComponent || !methods.length, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')); - methods = utils.transform(methods, function (obj, method) { - obj[method] = function () { - var _refs$inner; + return Component; +}); - return (_refs$inner = this.refs.inner)[method].apply(_refs$inner, arguments); - }; - }, {}); +var bsStyles = curry(function (styles, defaultStyle, Component) { + if (typeof defaultStyle !== 'string') { + Component = defaultStyle; + defaultStyle = undefined; + } - var component = _react2.default.createClass(_extends({ + var existing = Component.STYLES || []; + var propTypes = Component.propTypes || {}; - displayName: 'Uncontrolled(' + displayName + ')', + styles.forEach(function (style) { + if (existing.indexOf(style) === -1) { + existing.push(style); + } + }); - mixins: mixins, + var propType = prop_types_default.a.oneOf(existing); - propTypes: propTypes + // expose the values on the propType function for documentation + Component.STYLES = existing; + propType._values = existing; - }, methods, { - componentWillMount: function componentWillMount() { - var _this = this; + Component.propTypes = extends_default()({}, propTypes, { + bsStyle: propType + }); - var props = this.props; + if (defaultStyle !== undefined) { + var defaultProps = Component.defaultProps || (Component.defaultProps = {}); + defaultProps.bsStyle = defaultStyle; + } - this._values = {}; + return Component; +}); - controlledProps.forEach(function (key) { - _this._values[key] = props[utils.defaultKey(key)]; - }); - }, +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]; + if (mappedSize && mappedSize !== size) { + values.push(mappedSize); + } + + values.push(size); + }); + + var propType = prop_types_default.a.oneOf(values); + propType._values = values; + + // expose the values on the propType function for documentation + Component.SIZES = existing; + + Component.propTypes = extends_default()({}, propTypes, { + bsSize: propType + }); + + if (defaultSize !== undefined) { + if (!Component.defaultProps) { + Component.defaultProps = {}; + } + Component.defaultProps.bsSize = defaultSize; + } + + return Component; +}); +function getClassSet(props) { + var _classes; + + var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); + + if (props.bsSize) { + var bsSize = SIZE_MAP[props.bsSize] || props.bsSize; + classes[prefix(props, bsSize)] = true; + } + + if (props.bsStyle) { + classes[prefix(props, props.bsStyle)] = true; + } + + return classes; +} + +function getBsProps(props) { + return { + bsClass: props.bsClass, + bsSize: props.bsSize, + bsStyle: props.bsStyle, + bsRole: props.bsRole + }; +} + +function isBsProp(propName) { + return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; +} + +function splitBsProps(props) { + var elementProps = {}; + entries_default()(props).forEach(function (_ref) { + var propName = _ref[0], + propValue = _ref[1]; + + if (!isBsProp(propName)) { + elementProps[propName] = propValue; + } + }); + + 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]; + + if (!isBsProp(propName) && !isOmittedProp[propName]) { + elementProps[propName] = propValue; + } + }); + + 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 = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + styleVariant[_key2 - 1] = arguments[_key2]; + } + + bsStyles(styleVariant, Component); +} + +var _curry = curry; +// CONCATENATED MODULE: ./src/utils/ValidComponentChildren.js +// TODO: This module should be ElementChildren, and should use named exports. + + + +/** + * 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.a.Children.map(children, function (child) { + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return child; + } + + 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. + */ +function forEach(children, func, context) { + var index = 0; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + func.call(context, child, index++); + }); +} + +/** + * Count the number of "valid components" in the Children container. + * + * @param {?*} children Children tree container. + * @returns {number} + */ +function ValidComponentChildren_count(children) { + var result = 0; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + 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 + */ +function filter(children, func, context) { + var index = 0; + var result = []; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + if (func.call(context, child, index++)) { + result.push(child); + } + }); + + return result; +} + +function find(children, func, context) { + var index = 0; + var result = void 0; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (result) { + return; + } + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + if (func.call(context, child, index++)) { + result = child; + } + }); + + return result; +} + +function every(children, func, context) { + var index = 0; + var result = true; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (!result) { + return; + } + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + if (!func.call(context, child, index++)) { + result = false; + } + }); + + return result; +} + +function some(children, func, context) { + var index = 0; + var result = false; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (result) { + return; + } + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + if (func.call(context, child, index++)) { + result = true; + } + }); + + return result; +} + +function toArray(children) { + var result = []; + + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (!external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(child)) { + return; + } + + result.push(child); + }); + + return result; +} + +/* harmony default export */ var ValidComponentChildren = ({ + map: map, + forEach: forEach, + count: ValidComponentChildren_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__(36); +var createChainableTypeChecker_default = /*#__PURE__*/__webpack_require__.n(createChainableTypeChecker); - /** - * If a prop switches from controlled to Uncontrolled - * reset its value to the defaultValue - */ - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - var _this2 = this; +// CONCATENATED MODULE: ./src/utils/PropTypes.js - var props = this.props; - controlledProps.forEach(function (key) { - if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { - _this2._values[key] = nextProps[utils.defaultKey(key)]; - } - }); - }, - render: function render() { - var _this3 = this; - var newProps = {}, - props = omitProps(this.props); - utils.each(controlledValues, function (handle, propName) { - var linkPropName = utils.getLinkName(propName), - prop = _this3.props[propName]; - if (linkPropName && !isProp(_this3.props, propName) && isProp(_this3.props, linkPropName)) { - prop = _this3.props[linkPropName].value; - } +var idPropType = prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]); - newProps[propName] = prop !== undefined ? prop : _this3._values[propName]; +function generatedId(name) { + return function (props) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } - newProps[handle] = setAndNotify.bind(_this3, propName); - }); + var error = null; - newProps = _extends({}, props, newProps, { - ref: isCompositeComponent ? 'inner' : null - }); + if (!props.generateChildId) { + error = idPropType.apply(undefined, [props].concat(args)); - return _react2.default.createElement(Component, newProps); - } - })); + 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')); + } + } + return error; + }; +} - component.ControlledComponent = Component; +function requiredRoles() { + for (var _len2 = arguments.length, roles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + roles[_key2] = arguments[_key2]; + } - /** - * useful when wrapping a Component and you want to control - * everything - */ - component.deferControlTo = function (newComponent) { - var additions = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; - var nextMethods = arguments[2]; + return createChainableTypeChecker_default()(function (props, propName, component) { + var missing = void 0; - return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); - }; + roles.every(function (role) { + if (!ValidComponentChildren.some(props.children, function (child) { + return child.props.bsRole === role; + })) { + missing = role; + return false; + } - return component; + return true; + }); - function setAndNotify(propName, value) { - var linkName = utils.getLinkName(propName), - handler = this.props[controlledValues[propName]]; + 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(', '))); + } - if (linkName && isProp(this.props, linkName) && !handler) { - handler = this.props[linkName].requestChange; - } + return null; + }); +} - for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } +function exclusiveRoles() { + for (var _len3 = arguments.length, roles = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + roles[_key3] = arguments[_key3]; + } - set(this, propName, handler, value, args); - } + return createChainableTypeChecker_default()(function (props, propName, component) { + var duplicate = void 0; - function isProp(props, prop) { - return props[prop] !== undefined; - } + roles.every(function (role) { + var childrenWithRole = ValidComponentChildren.filter(props.children, function (child) { + return child.props.bsRole === role; + }); - function omitProps(props) { - var result = {}; + if (childrenWithRole.length > 1) { + duplicate = role; + return false; + } - utils.each(props, function (value, key) { - if (OMIT_PROPS.indexOf(key) === -1) result[key] = value; - }); + return true; + }); - return result; - } - } - } - module.exports = exports['default']; + if (duplicate) { + return new Error('(children) ' + component + ' - Duplicate children detected of bsRole: ' + (duplicate + '. Only one child each allowed with the following ') + ('bsRoles: ' + roles.join(', '))); + } - /***/ }, - /* 145 */ - /***/ function(module, exports, __webpack_require__) { + return null; + }); +} +// CONCATENATED MODULE: ./src/PanelGroup.js - 'use strict'; - exports.__esModule = true; - exports.version = undefined; - exports.customPropType = customPropType; - exports.uncontrolledPropTypes = uncontrolledPropTypes; - exports.getType = getType; - exports.getValue = getValue; - exports.getLinkName = getLinkName; - exports.defaultKey = defaultKey; - exports.chain = chain; - exports.transform = transform; - exports.each = each; - exports.isReactComponent = isReactComponent; - exports.has = has; - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _invariant = __webpack_require__(94); - var _invariant2 = _interopRequireDefault(_invariant); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function customPropType(handler, propType, name) { - return function (props, propName, wrappedName) { - if (props[propName] !== undefined) { - if (!props[handler]) { - return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); - } - for (var _len = arguments.length, args = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { - args[_key - 3] = arguments[_key]; - } - return propType && propType.apply(undefined, [props, propName, name].concat(args)); - } - }; - } - function uncontrolledPropTypes(controlledValues, basePropTypes, displayName) { - var propTypes = {}; - if (("development") !== 'production' && basePropTypes) { - transform(controlledValues, function (obj, handler, prop) { - var type = basePropTypes[prop]; +var PanelGroup_propTypes = { + accordion: prop_types_default.a.bool, + /** + * 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.a.any, + + /** + * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey` + * + * @controllable activeKey + */ + onSelect: prop_types_default.a.func, + + /** + * An HTML role attribute + */ + role: prop_types_default.a.string, + + /** + * 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.a.func, + + /** + * HTML id attribute, required if no `generateChildId` prop + * is specified. + */ + id: generatedId('PanelGroup') +}; + +var PanelGroup_defaultProps = { + accordion: false +}; - (0, _invariant2.default)(typeof handler === 'string' && handler.trim().length, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop); +var childContextTypes = { + $bs_panelGroup: prop_types_default.a.shape({ + getId: prop_types_default.a.func, + headerRole: prop_types_default.a.string, + panelRole: prop_types_default.a.string, + activeKey: prop_types_default.a.any, + onToggle: prop_types_default.a.func + }) +}; - obj[prop] = customPropType(handler, type, displayName); +var PanelGroup_PanelGroup = function (_React$Component) { + inherits_default()(PanelGroup, _React$Component); - if (type !== undefined) obj[defaultKey(prop)] = type; - }, propTypes); - } + function PanelGroup() { + var _temp, _this, _ret; - return propTypes; - } + classCallCheck_default()(this, PanelGroup); - var version = exports.version = _react2.default.version.split('.').map(parseFloat); + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - function getType(component) { - if (version[0] >= 15 || version[0] === 0 && version[1] >= 13) return component; + return _ret = (_temp = (_this = possibleConstructorReturn_default()(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); + } + }, _temp), possibleConstructorReturn_default()(_this, _ret); + } - return component.type; - } + PanelGroup.prototype.getChildContext = function getChildContext() { + var _props = this.props, + activeKey = _props.activeKey, + accordion = _props.accordion, + generateChildId = _props.generateChildId, + id = _props.id; - function getValue(props, name) { - var linkPropName = getLinkName(name); + var getId = null; - if (linkPropName && !isProp(props, name) && isProp(props, linkPropName)) return props[linkPropName].value; + if (accordion) { + getId = generateChildId || function (key, type) { + return id ? id + '-' + type + '-' + key : null; + }; + } - return props[name]; - } + return { + $bs_panelGroup: extends_default()({ + getId: getId, + headerRole: 'tab', + panelRole: 'tabpanel' + }, accordion && { + activeKey: activeKey, + onToggle: this.handleSelect + }) + }; + }; + + PanelGroup.prototype.render = function render() { + var _props2 = this.props, + accordion = _props2.accordion, + className = _props2.className, + children = _props2.children, + props = objectWithoutProperties_default()(_props2, ['accordion', 'className', 'children']); + + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + + if (accordion) { + elementProps.role = elementProps.role || 'tablist'; + } + + var classes = getClassSet(bsProps); + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + ValidComponentChildren.map(children, function (child) { + return Object(external___root___React___commonjs2___react___commonjs___react___amd___react__["cloneElement"])(child, { + bsStyle: child.props.bsStyle || bsProps.bsStyle + }); + }) + ); + }; - function isProp(props, prop) { - return props[prop] !== undefined; - } + return PanelGroup; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function getLinkName(name) { - return name === 'value' ? 'valueLink' : name === 'checked' ? 'checkedLink' : null; - } +PanelGroup_PanelGroup.propTypes = PanelGroup_propTypes; +PanelGroup_PanelGroup.defaultProps = PanelGroup_defaultProps; +PanelGroup_PanelGroup.childContextTypes = childContextTypes; - function defaultKey(key) { - return 'default' + key.charAt(0).toUpperCase() + key.substr(1); - } +/* harmony default export */ var src_PanelGroup = (uncontrollable_default()(bootstrapUtils_bsClass('panel-group', PanelGroup_PanelGroup), { + activeKey: 'onSelect' +})); +// CONCATENATED MODULE: ./src/Accordion.js - function chain(thisArg, a, b) { - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - a && a.call.apply(a, [thisArg].concat(args)); - b && b.call.apply(b, [thisArg].concat(args)); - }; - } - function transform(obj, cb, seed) { - each(obj, cb.bind(null, seed = seed || (Array.isArray(obj) ? [] : {}))); - return seed; - } - function each(obj, cb, thisArg) { - if (Array.isArray(obj)) return obj.forEach(cb, thisArg); - for (var key in obj) { - if (has(obj, key)) cb.call(thisArg, obj[key], key, obj); - } - } - /** - * 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. - */ - function isReactComponent(component) { - return !!(component && component.prototype && component.prototype.isReactComponent); - } - function has(o, k) { - return o ? Object.prototype.hasOwnProperty.call(o, k) : false; - } - /***/ }, - /* 146 */ - /***/ function(module, exports, __webpack_require__) { +var Accordion_Accordion = function (_React$Component) { + inherits_default()(Accordion, _React$Component); - 'use strict'; + function Accordion() { + classCallCheck_default()(this, Accordion); - exports.__esModule = true; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _extends3 = __webpack_require__(2); + Accordion.prototype.render = function render() { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + src_PanelGroup, + extends_default()({}, this.props, { accordion: true }), + this.props.children + ); + }; - var _extends4 = _interopRequireDefault(_extends3); + return Accordion; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _objectWithoutProperties2 = __webpack_require__(87); +/* harmony default export */ var src_Accordion = (Accordion_Accordion); +// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/values.js +var object_values = __webpack_require__(24); +var values_default = /*#__PURE__*/__webpack_require__.n(object_values); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +// CONCATENATED MODULE: ./src/CloseButton.js - var _from = __webpack_require__(147); - var _from2 = _interopRequireDefault(_from); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +var CloseButton_propTypes = { + label: prop_types_default.a.string.isRequired, + onClick: prop_types_default.a.func +}; - var _inherits2 = __webpack_require__(77); +var CloseButton_defaultProps = { + label: 'Close' +}; - var _inherits3 = _interopRequireDefault(_inherits2); +var CloseButton_CloseButton = function (_React$Component) { + inherits_default()(CloseButton, _React$Component); - var _classnames = __webpack_require__(88); + function CloseButton() { + classCallCheck_default()(this, CloseButton); - var _classnames2 = _interopRequireDefault(_classnames); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _keycode = __webpack_require__(141); + CloseButton.prototype.render = function render() { + var _props = this.props, + label = _props.label, + onClick = _props.onClick; - var _keycode2 = _interopRequireDefault(_keycode); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'button', + { type: 'button', className: 'close', onClick: onClick }, + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + { 'aria-hidden': 'true' }, + '\xD7' + ), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + { className: 'sr-only' }, + label + ) + ); + }; - var _react = __webpack_require__(85); + return CloseButton; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _react2 = _interopRequireDefault(_react); +CloseButton_CloseButton.propTypes = CloseButton_propTypes; +CloseButton_CloseButton.defaultProps = CloseButton_defaultProps; - var _reactDom = __webpack_require__(115); +/* harmony default export */ var src_CloseButton = (CloseButton_CloseButton); +// CONCATENATED MODULE: ./src/Alert.js - var _reactDom2 = _interopRequireDefault(_reactDom); - var _RootCloseWrapper = __webpack_require__(156); - var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper); - var _bootstrapUtils = __webpack_require__(89); - var _createChainedFunction = __webpack_require__(96); - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - var _ValidComponentChildren = __webpack_require__(97); - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - open: _react2['default'].PropTypes.bool, - pullRight: _react2['default'].PropTypes.bool, - onClose: _react2['default'].PropTypes.func, - labelledBy: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.string, _react2['default'].PropTypes.number]), - onSelect: _react2['default'].PropTypes.func - }; - var defaultProps = { - bsRole: 'menu', - pullRight: false - }; - var DropdownMenu = function (_React$Component) { - (0, _inherits3['default'])(DropdownMenu, _React$Component); - function DropdownMenu(props) { - (0, _classCallCheck3['default'])(this, DropdownMenu); - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); +var Alert_propTypes = { + onDismiss: prop_types_default.a.func, + closeLabel: prop_types_default.a.string +}; - _this.handleKeyDown = _this.handleKeyDown.bind(_this); - return _this; - } +var Alert_defaultProps = { + closeLabel: 'Close alert' +}; - DropdownMenu.prototype.handleKeyDown = function handleKeyDown(event) { - switch (event.keyCode) { - case _keycode2['default'].codes.down: - this.focusNext(); - event.preventDefault(); - break; - case _keycode2['default'].codes.up: - this.focusPrevious(); - event.preventDefault(); - break; - case _keycode2['default'].codes.esc: - case _keycode2['default'].codes.tab: - this.props.onClose(event); - break; - default: - } - }; +var Alert_Alert = function (_React$Component) { + inherits_default()(Alert, _React$Component); - DropdownMenu.prototype.getItemsAndActiveIndex = function getItemsAndActiveIndex() { - var items = this.getFocusableMenuItems(); - var activeIndex = items.indexOf(document.activeElement); + function Alert() { + classCallCheck_default()(this, Alert); - return { items: items, activeIndex: activeIndex }; - }; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - DropdownMenu.prototype.getFocusableMenuItems = function getFocusableMenuItems() { - var node = _reactDom2['default'].findDOMNode(this); - if (!node) { - return []; - } + Alert.prototype.render = function render() { + var _extends2; - return (0, _from2['default'])(node.querySelectorAll('[tabIndex="-1"]')); - }; + var _props = this.props, + onDismiss = _props.onDismiss, + closeLabel = _props.closeLabel, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['onDismiss', 'closeLabel', 'className', 'children']); - DropdownMenu.prototype.focusNext = function focusNext() { - var _getItemsAndActiveInd = this.getItemsAndActiveIndex(); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var items = _getItemsAndActiveInd.items; - var activeIndex = _getItemsAndActiveInd.activeIndex; + var dismissable = !!onDismiss; + var classes = extends_default()({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2)); - if (items.length === 0) { - return; - } + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { + role: 'alert', + className: classnames_default()(className, classes) + }), + dismissable && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_CloseButton, { onClick: onDismiss, label: closeLabel }), + children + ); + }; - var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; - items[nextIndex].focus(); - }; + return Alert; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - DropdownMenu.prototype.focusPrevious = function focusPrevious() { - var _getItemsAndActiveInd2 = this.getItemsAndActiveIndex(); +Alert_Alert.propTypes = Alert_propTypes; +Alert_Alert.defaultProps = Alert_defaultProps; - var items = _getItemsAndActiveInd2.items; - var activeIndex = _getItemsAndActiveInd2.activeIndex; +/* harmony default export */ var src_Alert = (bsStyles(values_default()(State), State.INFO, bootstrapUtils_bsClass('alert', Alert_Alert))); +// CONCATENATED MODULE: ./src/Badge.js - if (items.length === 0) { - return; - } - var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; - items[prevIndex].focus(); - }; - - DropdownMenu.prototype.render = function render() { - var _extends2, - _this2 = this; - - var _props = this.props; - var open = _props.open; - var pullRight = _props.pullRight; - var onClose = _props.onClose; - var labelledBy = _props.labelledBy; - var onSelect = _props.onSelect; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['open', 'pullRight', 'onClose', 'labelledBy', 'onSelect', 'className', 'children']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends4['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), (_extends2 = {}, _extends2[(0, _bootstrapUtils.prefix)(bsProps, 'right')] = pullRight, _extends2)); - - var list = _react2['default'].createElement( - 'ul', - (0, _extends4['default'])({}, elementProps, { - role: 'menu', - className: (0, _classnames2['default'])(className, classes), - 'aria-labelledby': labelledBy - }), - _ValidComponentChildren2['default'].map(children, function (child) { - return _react2['default'].cloneElement(child, { - onKeyDown: (0, _createChainedFunction2['default'])(child.props.onKeyDown, _this2.handleKeyDown), - onSelect: (0, _createChainedFunction2['default'])(child.props.onSelect, onSelect) - }); - }) - ); - - if (open) { - return _react2['default'].createElement( - _RootCloseWrapper2['default'], - { noWrap: true, onRootClose: onClose }, - list - ); - } - return list; - }; - - return DropdownMenu; - }(_react2['default'].Component); - - DropdownMenu.propTypes = propTypes; - DropdownMenu.defaultProps = defaultProps; - - exports['default'] = (0, _bootstrapUtils.bsClass)('dropdown-menu', DropdownMenu); - module.exports = exports['default']; - - /***/ }, - /* 147 */ - /***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(148), __esModule: true }; - - /***/ }, - /* 148 */ - /***/ function(module, exports, __webpack_require__) { - - __webpack_require__(45); - __webpack_require__(149); - module.exports = __webpack_require__(8).Array.from; - - /***/ }, - /* 149 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var ctx = __webpack_require__(9) - , $export = __webpack_require__(6) - , toObject = __webpack_require__(39) - , call = __webpack_require__(150) - , isArrayIter = __webpack_require__(151) - , toLength = __webpack_require__(30) - , createProperty = __webpack_require__(152) - , getIterFn = __webpack_require__(153); - - $export($export.S + $export.F * !__webpack_require__(155)(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) - , C = typeof this == 'function' ? this : Array - , aLen = arguments.length - , mapfn = aLen > 1 ? arguments[1] : undefined - , mapping = mapfn !== undefined - , index = 0 - , iterFn = getIterFn(O) - , 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 - 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); - for(result = new C(length); length > index; index++){ - createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); - } - } - result.length = index; - return result; - } - }); - - - /***/ }, - /* 150 */ - /***/ function(module, exports, __webpack_require__) { - - // call something on iterator step with safe closing on error - var anObject = __webpack_require__(13); - 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; - } - }; - - /***/ }, - /* 151 */ - /***/ function(module, exports, __webpack_require__) { - - // check on default Array iterator - var Iterators = __webpack_require__(50) - , ITERATOR = __webpack_require__(56)('iterator') - , ArrayProto = Array.prototype; - - module.exports = function(it){ - return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); - }; - - /***/ }, - /* 152 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var $defineProperty = __webpack_require__(12) - , createDesc = __webpack_require__(20); - - module.exports = function(object, index, value){ - if(index in object)$defineProperty.f(object, index, createDesc(0, value)); - else object[index] = value; - }; - - /***/ }, - /* 153 */ - /***/ function(module, exports, __webpack_require__) { - var classof = __webpack_require__(154) - , ITERATOR = __webpack_require__(56)('iterator') - , Iterators = __webpack_require__(50); - module.exports = __webpack_require__(8).getIteratorMethod = function(it){ - if(it != undefined)return it[ITERATOR] - || it['@@iterator'] - || Iterators[classof(it)]; - }; - /***/ }, - /* 154 */ - /***/ function(module, exports, __webpack_require__) { - // getting tag from 19.1.3.6 Object.prototype.toString() - var cof = __webpack_require__(27) - , TAG = __webpack_require__(56)('toStringTag') - // ES3 wrong here - , ARG = cof(function(){ return arguments; }()) == 'Arguments'; - // fallback for IE11 Script Access Denied error - var tryGet = function(it, key){ - try { - return it[key]; - } catch(e){ /* empty */ } - }; - module.exports = function(it){ - var O, T, B; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T - // builtinTag case - : ARG ? cof(O) - // ES3 arguments fallback - : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; - }; - /***/ }, - /* 155 */ - /***/ function(module, exports, __webpack_require__) { - var ITERATOR = __webpack_require__(56)('iterator') - , SAFE_CLOSING = false; - try { - var riter = [7][ITERATOR](); - riter['return'] = function(){ SAFE_CLOSING = true; }; - Array.from(riter, function(){ throw 2; }); - } catch(e){ /* empty */ } +// TODO: `pullRight` doesn't belong here. There's no special handling here. - module.exports = function(exec, skipClosing){ - if(!skipClosing && !SAFE_CLOSING)return false; - var safe = false; - try { - var arr = [7] - , iter = arr[ITERATOR](); - iter.next = function(){ return {done: safe = true}; }; - arr[ITERATOR] = function(){ return iter; }; - exec(arr); - } catch(e){ /* empty */ } - return safe; - }; +var Badge_propTypes = { + pullRight: prop_types_default.a.bool +}; - /***/ }, - /* 156 */ - /***/ function(module, exports, __webpack_require__) { +var Badge_defaultProps = { + pullRight: false +}; - 'use strict'; +var Badge_Badge = function (_React$Component) { + inherits_default()(Badge, _React$Component); - Object.defineProperty(exports, "__esModule", { - value: true - }); + function Badge() { + classCallCheck_default()(this, Badge); - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _react = __webpack_require__(85); + Badge.prototype.hasContent = function hasContent(children) { + var result = false; - var _react2 = _interopRequireDefault(_react); + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (result) { + return; + } - var _reactDom = __webpack_require__(115); + if (child || child === 0) { + result = true; + } + }); - var _reactDom2 = _interopRequireDefault(_reactDom); + return result; + }; - var _addEventListener = __webpack_require__(157); + Badge.prototype.render = function render() { + var _props = this.props, + pullRight = _props.pullRight, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['pullRight', 'className', 'children']); - var _addEventListener2 = _interopRequireDefault(_addEventListener); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _createChainedFunction = __webpack_require__(159); + var classes = extends_default()({}, getClassSet(bsProps), { + 'pull-right': pullRight, - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); - var _ownerDocument = __webpack_require__(160); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + children + ); + }; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + return Badge; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +Badge_Badge.propTypes = Badge_propTypes; +Badge_Badge.defaultProps = Badge_defaultProps; - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +/* harmony default export */ var src_Badge = (bootstrapUtils_bsClass('badge', Badge_Badge)); +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js +var elementType = __webpack_require__(8); +var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +// CONCATENATED MODULE: ./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 = Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } - 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; } + 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.'); + } - 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; } + if (acc === null) { + return f; + } - // TODO: Consider using an ES6 symbol here, once we use babel-runtime. - var CLICK_WAS_INSIDE = '__click_was_inside'; + return function chainedFunction() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + acc.apply(this, args); + f.apply(this, args); + }; + }, null); +} + +/* harmony default export */ var utils_createChainedFunction = (createChainedFunction); +// CONCATENATED MODULE: ./src/SafeAnchor.js + + + + + + + + + + + +var SafeAnchor_propTypes = { + href: prop_types_default.a.string, + onClick: prop_types_default.a.func, + onKeyDown: prop_types_default.a.func, + disabled: prop_types_default.a.bool, + role: prop_types_default.a.string, + tabIndex: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]), + /** + * this is sort of silly but needed for Button + */ + componentClass: elementType_default.a +}; - var counter = 0; +var SafeAnchor_defaultProps = { + componentClass: 'a' +}; - function isLeftClickEvent(event) { - return event.button === 0; - } +function isTrivialHref(href) { + return !href || href.trim() === '#'; +} - function isModifiedEvent(event) { - return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); - } +/** + * 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. + */ - function getSuppressRootClose() { - var id = CLICK_WAS_INSIDE + '_' + counter++; - return { - id: id, - suppressRootClose: function suppressRootClose(event) { - // Tag the native event to prevent the root close logic on document click. - // This seems safer than using event.nativeEvent.stopImmediatePropagation(), - // which is only supported in IE >= 9. - event.nativeEvent[id] = true; - } - }; - } +var SafeAnchor_SafeAnchor = function (_React$Component) { + inherits_default()(SafeAnchor, _React$Component); - var RootCloseWrapper = function (_React$Component) { - _inherits(RootCloseWrapper, _React$Component); + function SafeAnchor(props, context) { + classCallCheck_default()(this, SafeAnchor); - function RootCloseWrapper(props) { - _classCallCheck(this, RootCloseWrapper); + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); - var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(RootCloseWrapper).call(this, props)); + _this.handleClick = _this.handleClick.bind(_this); + _this.handleKeyDown = _this.handleKeyDown.bind(_this); + return _this; + } - _this.handleDocumentMouse = _this.handleDocumentMouse.bind(_this); - _this.handleDocumentKeyUp = _this.handleDocumentKeyUp.bind(_this); + SafeAnchor.prototype.handleClick = function handleClick(event) { + var _props = this.props, + disabled = _props.disabled, + href = _props.href, + onClick = _props.onClick; - var _getSuppressRootClose = getSuppressRootClose(); - var id = _getSuppressRootClose.id; - var suppressRootClose = _getSuppressRootClose.suppressRootClose; + if (disabled || isTrivialHref(href)) { + event.preventDefault(); + } + if (disabled) { + event.stopPropagation(); + return; + } - _this._suppressRootId = id; + if (onClick) { + onClick(event); + } + }; - _this._suppressRootCloseHandler = suppressRootClose; - return _this; - } + SafeAnchor.prototype.handleKeyDown = function handleKeyDown(event) { + if (event.key === ' ') { + event.preventDefault(); + this.handleClick(event); + } + }; - _createClass(RootCloseWrapper, [{ - key: 'bindRootCloseHandlers', - value: function bindRootCloseHandlers() { - var doc = (0, _ownerDocument2.default)(this); + SafeAnchor.prototype.render = function render() { + var _props2 = this.props, + Component = _props2.componentClass, + disabled = _props2.disabled, + onKeyDown = _props2.onKeyDown, + props = objectWithoutProperties_default()(_props2, ['componentClass', 'disabled', 'onKeyDown']); - this._onDocumentMouseListener = (0, _addEventListener2.default)(doc, this.props.event, this.handleDocumentMouse); + 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 || '#'; + } - this._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', this.handleDocumentKeyUp); - } - }, { - key: 'handleDocumentMouse', - value: function handleDocumentMouse(e) { - // This is now the native event. - if (e[this._suppressRootId]) { - return; - } - - if (this.props.disabled || isModifiedEvent(e) || !isLeftClickEvent(e)) { - return; - } - - this.props.onRootClose && this.props.onRootClose(); - } - }, { - key: 'handleDocumentKeyUp', - value: function handleDocumentKeyUp(e) { - if (e.keyCode === 27 && this.props.onRootClose) { - this.props.onRootClose(); - } - } - }, { - key: 'unbindRootCloseHandlers', - value: function unbindRootCloseHandlers() { - if (this._onDocumentMouseListener) { - this._onDocumentMouseListener.remove(); - } - - if (this._onDocumentKeyupListener) { - this._onDocumentKeyupListener.remove(); - } - } - }, { - key: 'componentDidMount', - value: function componentDidMount() { - this.bindRootCloseHandlers(); - } - }, { - key: 'render', - value: function render() { - var _props = this.props; - var event = _props.event; - var noWrap = _props.noWrap; - var children = _props.children; - - var child = _react2.default.Children.only(children); - - var handlerName = event == 'click' ? 'onClick' : 'onMouseDown'; - - if (noWrap) { - return _react2.default.cloneElement(child, _defineProperty({}, handlerName, (0, _createChainedFunction2.default)(this._suppressRootCloseHandler, child.props[handlerName]))); - } - - // Wrap the child in a new element, so the child won't have to handle - // potentially combining multiple onClick listeners. - return _react2.default.createElement( - 'div', - _defineProperty({}, handlerName, this._suppressRootCloseHandler), - child - ); - } - }, { - key: 'getWrappedDOMNode', - value: function getWrappedDOMNode() { - // We can't use a ref to identify the wrapped child, since we might be - // stealing the ref from the owner, but we know exactly the DOM structure - // that will be rendered, so we can just do this to get the child's DOM - // node for doing size calculations in OverlayMixin. - var node = _reactDom2.default.findDOMNode(this); - return this.props.noWrap ? node : node.firstChild; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindRootCloseHandlers(); - } - }]); - - return RootCloseWrapper; - }(_react2.default.Component); - - exports.default = RootCloseWrapper; - - - RootCloseWrapper.displayName = 'RootCloseWrapper'; - - RootCloseWrapper.propTypes = { - onRootClose: _react2.default.PropTypes.func, - - /** - * Disable the the RootCloseWrapper, preventing it from triggering - * `onRootClose`. - */ - disabled: _react2.default.PropTypes.bool, - /** - * Passes the suppress click handler directly to the child component instead - * of placing it on a wrapping div. Only use when you can be sure the child - * properly handle the click event. - */ - noWrap: _react2.default.PropTypes.bool, - /** - * Choose which document mouse event to bind to - */ - event: _react2.default.PropTypes.oneOf(['click', 'mousedown']) - }; - - RootCloseWrapper.defaultProps = { - event: 'click' - }; - module.exports = exports['default']; - - /***/ }, - /* 157 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - exports.default = function (node, event, handler) { - (0, _on2.default)(node, event, handler); - return { - remove: function remove() { - (0, _off2.default)(node, event, handler); - } - }; - }; + if (disabled) { + props.tabIndex = -1; + props.style = extends_default()({ pointerEvents: 'none' }, props.style); + } - var _on = __webpack_require__(136); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, props, { + onClick: this.handleClick, + onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown) + })); + }; - var _on2 = _interopRequireDefault(_on); + return SafeAnchor; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _off = __webpack_require__(158); +SafeAnchor_SafeAnchor.propTypes = SafeAnchor_propTypes; +SafeAnchor_SafeAnchor.defaultProps = SafeAnchor_defaultProps; - var _off2 = _interopRequireDefault(_off); +/* harmony default export */ var src_SafeAnchor = (SafeAnchor_SafeAnchor); +// CONCATENATED MODULE: ./src/BreadcrumbItem.js - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - module.exports = exports['default']; - /***/ }, - /* 158 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - var canUseDOM = __webpack_require__(135); - var off = function off() {}; - if (canUseDOM) { - 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); - }; - })(); - } - module.exports = off; - - /***/ }, - /* 159 */ - /***/ function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - /** - * 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 = 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 = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } +var BreadcrumbItem_propTypes = { + /** + * If set to true, renders `span` instead of `a` + */ + active: prop_types_default.a.bool, + /** + * `href` attribute for the inner `a` element + */ + href: prop_types_default.a.string, + /** + * `title` attribute for the inner `a` element + */ + title: prop_types_default.a.node, + /** + * `target` attribute for the inner `a` element + */ + target: prop_types_default.a.string +}; - acc.apply(this, args); - f.apply(this, args); - }; - }, null); - } +var BreadcrumbItem_defaultProps = { + active: false +}; - exports.default = createChainedFunction; - module.exports = exports['default']; +var BreadcrumbItem_BreadcrumbItem = function (_React$Component) { + inherits_default()(BreadcrumbItem, _React$Component); - /***/ }, - /* 160 */ - /***/ function(module, exports, __webpack_require__) { + function BreadcrumbItem() { + classCallCheck_default()(this, BreadcrumbItem); - 'use strict'; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + BreadcrumbItem.prototype.render = function render() { + var _props = this.props, + active = _props.active, + href = _props.href, + title = _props.title, + target = _props.target, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['active', 'href', 'title', 'target', 'className']); - exports.default = function (componentOrElement) { - return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement)); - }; + // Don't try to render these props on non-active . - var _reactDom = __webpack_require__(115); - var _reactDom2 = _interopRequireDefault(_reactDom); + var linkProps = { href: href, title: title, target: target }; - var _ownerDocument = __webpack_require__(139); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'li', + { className: classnames_default()(className, { active: active }) }, + active ? external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', props) : external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_SafeAnchor, extends_default()({}, props, linkProps)) + ); + }; - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + return BreadcrumbItem; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +BreadcrumbItem_BreadcrumbItem.propTypes = BreadcrumbItem_propTypes; +BreadcrumbItem_BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps; - module.exports = exports['default']; +/* harmony default export */ var src_BreadcrumbItem = (BreadcrumbItem_BreadcrumbItem); +// CONCATENATED MODULE: ./src/Breadcrumb.js - /***/ }, - /* 161 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +var Breadcrumb_Breadcrumb = function (_React$Component) { + inherits_default()(Breadcrumb, _React$Component); - var _inherits2 = __webpack_require__(77); + function Breadcrumb() { + classCallCheck_default()(this, Breadcrumb); - var _inherits3 = _interopRequireDefault(_inherits2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _react = __webpack_require__(85); + Breadcrumb.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - var _react2 = _interopRequireDefault(_react); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classnames = __webpack_require__(88); + var classes = getClassSet(bsProps); - var _classnames2 = _interopRequireDefault(_classnames); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('ol', extends_default()({}, elementProps, { + role: 'navigation', + 'aria-label': 'breadcrumbs', + className: classnames_default()(className, classes) + })); + }; - var _Button = __webpack_require__(108); + return Breadcrumb; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _Button2 = _interopRequireDefault(_Button); +Breadcrumb_Breadcrumb.Item = src_BreadcrumbItem; - var _SafeAnchor = __webpack_require__(105); +/* harmony default export */ var src_Breadcrumb = (bootstrapUtils_bsClass('breadcrumb', Breadcrumb_Breadcrumb)); +// CONCATENATED MODULE: ./src/Button.js - var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - noCaret: _react2['default'].PropTypes.bool, - open: _react2['default'].PropTypes.bool, - title: _react2['default'].PropTypes.string, - useAnchor: _react2['default'].PropTypes.bool - }; - var defaultProps = { - open: false, - useAnchor: false, - bsRole: 'toggle' - }; - var DropdownToggle = function (_React$Component) { - (0, _inherits3['default'])(DropdownToggle, _React$Component); - function DropdownToggle() { - (0, _classCallCheck3['default'])(this, DropdownToggle); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - DropdownToggle.prototype.render = function render() { - var _props = this.props; - var noCaret = _props.noCaret; - var open = _props.open; - var useAnchor = _props.useAnchor; - var bsClass = _props.bsClass; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['noCaret', 'open', 'useAnchor', 'bsClass', 'className', 'children']); - delete props.bsRole; - var Component = useAnchor ? _SafeAnchor2['default'] : _Button2['default']; - 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 _react2['default'].createElement( - Component, - (0, _extends3['default'])({}, props, { - role: 'button', - className: (0, _classnames2['default'])(className, bsClass), - 'aria-haspopup': true, - 'aria-expanded': open - }), - children || props.title, - useCaret && ' ', - useCaret && _react2['default'].createElement('span', { className: 'caret' }) - ); - }; - return DropdownToggle; - }(_react2['default'].Component); - DropdownToggle.propTypes = propTypes; - DropdownToggle.defaultProps = defaultProps; +var Button_propTypes = { + active: prop_types_default.a.bool, + disabled: prop_types_default.a.bool, + block: prop_types_default.a.bool, + onClick: prop_types_default.a.func, + componentClass: elementType_default.a, + href: prop_types_default.a.string, + /** + * Defines HTML button type attribute + * @defaultValue 'button' + */ + type: prop_types_default.a.oneOf(['button', 'reset', 'submit']) +}; - exports['default'] = (0, _bootstrapUtils.bsClass)('dropdown-toggle', DropdownToggle); - module.exports = exports['default']; +var Button_defaultProps = { + active: false, + block: false, + disabled: false +}; - /***/ }, - /* 162 */ - /***/ function(module, exports, __webpack_require__) { +var Button_Button = function (_React$Component) { + inherits_default()(Button, _React$Component); - 'use strict'; + function Button() { + classCallCheck_default()(this, Button); - exports.__esModule = true; - exports.requiredRoles = requiredRoles; - exports.exclusiveRoles = exclusiveRoles; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _createChainableTypeChecker = __webpack_require__(107); + Button.prototype.renderAnchor = function renderAnchor(elementProps, className) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_SafeAnchor, extends_default()({}, elementProps, { + className: classnames_default()(className, elementProps.disabled && 'disabled') + })); + }; - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + Button.prototype.renderButton = function renderButton(_ref, className) { + var componentClass = _ref.componentClass, + elementProps = objectWithoutProperties_default()(_ref, ['componentClass']); - var _ValidComponentChildren = __webpack_require__(97); + var Component = componentClass || 'button'; - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { + type: elementProps.type || 'button', + className: className + })); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + Button.prototype.render = function render() { + var _extends2; - function requiredRoles() { - for (var _len = arguments.length, roles = Array(_len), _key = 0; _key < _len; _key++) { - roles[_key] = arguments[_key]; - } + var _props = this.props, + active = _props.active, + block = _props.block, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['active', 'block', 'className']); - return (0, _createChainableTypeChecker2['default'])(function (props, propName, component) { - var missing = void 0; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - roles.every(function (role) { - if (!_ValidComponentChildren2['default'].some(props.children, function (child) { - return child.props.bsRole === role; - })) { - missing = role; - return false; - } + var classes = extends_default()({}, getClassSet(bsProps), (_extends2 = { + active: active + }, _extends2[prefix(bsProps, 'block')] = block, _extends2)); + var fullClassName = classnames_default()(className, classes); - return true; - }); + if (elementProps.href) { + return this.renderAnchor(elementProps, fullClassName); + } - 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 this.renderButton(elementProps, fullClassName); + }; - return null; - }); - } + return Button; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function exclusiveRoles() { - for (var _len2 = arguments.length, roles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - roles[_key2] = arguments[_key2]; - } +Button_Button.propTypes = Button_propTypes; +Button_Button.defaultProps = Button_defaultProps; - return (0, _createChainableTypeChecker2['default'])(function (props, propName, component) { - var duplicate = void 0; +/* harmony default export */ var src_Button = (bootstrapUtils_bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles([].concat(values_default()(State), [Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button_Button)))); +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js +var lib_all = __webpack_require__(37); +var all_default = /*#__PURE__*/__webpack_require__.n(lib_all); - roles.every(function (role) { - var childrenWithRole = _ValidComponentChildren2['default'].filter(props.children, function (child) { - return child.props.bsRole === role; - }); +// CONCATENATED MODULE: ./src/ButtonGroup.js - 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; - }); - } - /***/ }, - /* 163 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +var ButtonGroup_propTypes = { + vertical: prop_types_default.a.bool, + justified: prop_types_default.a.bool, - var _inherits2 = __webpack_require__(77); + /** + * Display block buttons; only useful when used with the "vertical" prop. + * @type {bool} + */ + block: all_default()(prop_types_default.a.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 _inherits3 = _interopRequireDefault(_inherits2); +var ButtonGroup_defaultProps = { + block: false, + justified: false, + vertical: false +}; - var _extends2 = __webpack_require__(2); +var ButtonGroup_ButtonGroup = function (_React$Component) { + inherits_default()(ButtonGroup, _React$Component); - var _extends3 = _interopRequireDefault(_extends2); + function ButtonGroup() { + classCallCheck_default()(this, ButtonGroup); - var _react = __webpack_require__(85); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _react2 = _interopRequireDefault(_react); + ButtonGroup.prototype.render = function render() { + var _extends2; - var _Dropdown = __webpack_require__(137); + var _props = this.props, + block = _props.block, + justified = _props.justified, + vertical = _props.vertical, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['block', 'justified', 'vertical', 'className']); - var _Dropdown2 = _interopRequireDefault(_Dropdown); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _splitComponentProps2 = __webpack_require__(164); + var classes = extends_default()({}, 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)); - var _splitComponentProps3 = _interopRequireDefault(_splitComponentProps2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('div', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return ButtonGroup; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var propTypes = (0, _extends3['default'])({}, _Dropdown2['default'].propTypes, { +ButtonGroup_ButtonGroup.propTypes = ButtonGroup_propTypes; +ButtonGroup_ButtonGroup.defaultProps = ButtonGroup_defaultProps; - // Toggle props. - bsStyle: _react2['default'].PropTypes.string, - bsSize: _react2['default'].PropTypes.string, - title: _react2['default'].PropTypes.node.isRequired, - noCaret: _react2['default'].PropTypes.bool, +/* harmony default export */ var src_ButtonGroup = (bootstrapUtils_bsClass('btn-group', ButtonGroup_ButtonGroup)); +// CONCATENATED MODULE: ./src/ButtonToolbar.js - // Override generated docs from . - /** - * @private - */ - children: _react2['default'].PropTypes.node - }); - var DropdownButton = function (_React$Component) { - (0, _inherits3['default'])(DropdownButton, _React$Component); - function DropdownButton() { - (0, _classCallCheck3['default'])(this, DropdownButton); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - DropdownButton.prototype.render = function render() { - var _props = this.props; - var bsSize = _props.bsSize; - var bsStyle = _props.bsStyle; - var title = _props.title; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['bsSize', 'bsStyle', 'title', 'children']); - var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Dropdown2['default'].ControlledComponent); - var dropdownProps = _splitComponentProps[0]; - var toggleProps = _splitComponentProps[1]; - return _react2['default'].createElement( - _Dropdown2['default'], - (0, _extends3['default'])({}, dropdownProps, { - bsSize: bsSize, - bsStyle: bsStyle - }), - _react2['default'].createElement( - _Dropdown2['default'].Toggle, - (0, _extends3['default'])({}, toggleProps, { - bsSize: bsSize, - bsStyle: bsStyle - }), - title - ), - _react2['default'].createElement( - _Dropdown2['default'].Menu, - null, - children - ) - ); - }; - return DropdownButton; - }(_react2['default'].Component); - DropdownButton.propTypes = propTypes; +var ButtonToolbar_ButtonToolbar = function (_React$Component) { + inherits_default()(ButtonToolbar, _React$Component); - exports['default'] = DropdownButton; - module.exports = exports['default']; + function ButtonToolbar() { + classCallCheck_default()(this, ButtonToolbar); - /***/ }, - /* 164 */ - /***/ function(module, exports, __webpack_require__) { + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - "use strict"; + ButtonToolbar.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - exports.__esModule = true; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _entries = __webpack_require__(90); + var classes = getClassSet(bsProps); - var _entries2 = _interopRequireDefault(_entries); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('div', extends_default()({}, elementProps, { + role: 'toolbar', + className: classnames_default()(className, classes) + })); + }; - exports["default"] = splitComponentProps; + return ButtonToolbar; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +/* harmony default export */ var src_ButtonToolbar = (bootstrapUtils_bsClass('btn-toolbar', ButtonToolbar_ButtonToolbar)); +// CONCATENATED MODULE: ./src/CarouselCaption.js - function splitComponentProps(props, Component) { - var componentPropTypes = Component.propTypes; - var parentProps = {}; - var childProps = {}; - (0, _entries2["default"])(props).forEach(function (_ref) { - var propName = _ref[0]; - var propValue = _ref[1]; - if (componentPropTypes[propName]) { - parentProps[propName] = propValue; - } else { - childProps[propName] = propValue; - } - }); - return [parentProps, childProps]; - } - module.exports = exports["default"]; - /***/ }, - /* 165 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _classCallCheck2 = __webpack_require__(40); +var CarouselCaption_propTypes = { + componentClass: elementType_default.a +}; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); +var CarouselCaption_defaultProps = { + componentClass: 'div' +}; - var _possibleConstructorReturn2 = __webpack_require__(41); +var CarouselCaption_CarouselCaption = function (_React$Component) { + inherits_default()(CarouselCaption, _React$Component); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + function CarouselCaption() { + classCallCheck_default()(this, CarouselCaption); - var _inherits2 = __webpack_require__(77); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _inherits3 = _interopRequireDefault(_inherits2); + CarouselCaption.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - var _classnames = __webpack_require__(88); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classnames2 = _interopRequireDefault(_classnames); + var classes = getClassSet(bsProps); - var _react = __webpack_require__(85); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _react2 = _interopRequireDefault(_react); + return CarouselCaption; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _Transition = __webpack_require__(133); +CarouselCaption_CarouselCaption.propTypes = CarouselCaption_propTypes; +CarouselCaption_CarouselCaption.defaultProps = CarouselCaption_defaultProps; - var _Transition2 = _interopRequireDefault(_Transition); +/* harmony default export */ var src_CarouselCaption = (bootstrapUtils_bsClass('carousel-caption', CarouselCaption_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__(9); +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__); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js +var dom_helpers_transition = __webpack_require__(136); +var transition_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_transition); - var propTypes = { - /** - * Show the component; triggers the fade in or fade out animation - */ - 'in': _react2['default'].PropTypes.bool, +// CONCATENATED MODULE: ./src/CarouselItem.js - /** - * Unmount the component (remove it from the DOM) when it is faded out - */ - unmountOnExit: _react2['default'].PropTypes.bool, - /** - * Run the fade in animation when the component mounts, if it is initially - * shown - */ - transitionAppear: _react2['default'].PropTypes.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: _react2['default'].PropTypes.number, - /** - * Callback fired before the component fades in - */ - onEnter: _react2['default'].PropTypes.func, - /** - * Callback fired after the component starts to fade in - */ - onEntering: _react2['default'].PropTypes.func, - /** - * Callback fired after the has component faded in - */ - onEntered: _react2['default'].PropTypes.func, - /** - * Callback fired before the component fades out - */ - onExit: _react2['default'].PropTypes.func, - /** - * Callback fired after the component starts to fade out - */ - onExiting: _react2['default'].PropTypes.func, - /** - * Callback fired after the component has faded out - */ - onExited: _react2['default'].PropTypes.func - }; - var defaultProps = { - 'in': false, - timeout: 300, - unmountOnExit: false, - transitionAppear: false - }; - var Fade = function (_React$Component) { - (0, _inherits3['default'])(Fade, _React$Component); - function Fade() { - (0, _classCallCheck3['default'])(this, Fade); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - Fade.prototype.render = function render() { - return _react2['default'].createElement(_Transition2['default'], (0, _extends3['default'])({}, this.props, { - className: (0, _classnames2['default'])(this.props.className, 'fade'), - enteredClassName: 'in', - enteringClassName: 'in' - })); - }; - return Fade; - }(_react2['default'].Component); - Fade.propTypes = propTypes; - Fade.defaultProps = defaultProps; - exports['default'] = Fade; - module.exports = exports['default']; +var CarouselItem_propTypes = { + direction: prop_types_default.a.oneOf(['prev', 'next']), + onAnimateOutEnd: prop_types_default.a.func, + active: prop_types_default.a.bool, + animateIn: prop_types_default.a.bool, + animateOut: prop_types_default.a.bool, + index: prop_types_default.a.number +}; - /***/ }, - /* 166 */ - /***/ function(module, exports, __webpack_require__) { +var CarouselItem_defaultProps = { + active: false, + animateIn: false, + animateOut: false +}; - 'use strict'; +var CarouselItem_CarouselItem = function (_React$Component) { + inherits_default()(CarouselItem, _React$Component); - exports.__esModule = true; + function CarouselItem(props, context) { + classCallCheck_default()(this, CarouselItem); - var _extends2 = __webpack_require__(2); + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); - var _extends3 = _interopRequireDefault(_extends2); + _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); - var _objectWithoutProperties2 = __webpack_require__(87); + _this.state = { + direction: null + }; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + _this.isUnmounted = false; + return _this; + } - var _classCallCheck2 = __webpack_require__(40); + CarouselItem.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (this.props.active !== nextProps.active) { + this.setState({ direction: null }); + } + }; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + CarouselItem.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var _this2 = this; - var _possibleConstructorReturn2 = __webpack_require__(41); + var active = this.props.active; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var prevActive = prevProps.active; - var _inherits2 = __webpack_require__(77); + if (!active && prevActive) { + transition_default.a.end(external___root___ReactDOM___commonjs2___react_dom___commonjs___react_dom___amd___react_dom___default.a.findDOMNode(this), this.handleAnimateOutEnd); + } - var _inherits3 = _interopRequireDefault(_inherits2); + if (active !== prevActive) { + setTimeout(function () { + return _this2.startAnimation(); + }, 20); + } + }; - var _classnames = __webpack_require__(88); + CarouselItem.prototype.componentWillUnmount = function componentWillUnmount() { + this.isUnmounted = true; + }; - var _classnames2 = _interopRequireDefault(_classnames); + CarouselItem.prototype.handleAnimateOutEnd = function handleAnimateOutEnd() { + if (this.isUnmounted) { + return; + } - var _react = __webpack_require__(85); + if (this.props.onAnimateOutEnd) { + this.props.onAnimateOutEnd(this.props.index); + } + }; - var _react2 = _interopRequireDefault(_react); + CarouselItem.prototype.startAnimation = function startAnimation() { + if (this.isUnmounted) { + return; + } - var _elementType = __webpack_require__(106); + this.setState({ + direction: this.props.direction === 'prev' ? 'right' : 'left' + }); + }; - var _elementType2 = _interopRequireDefault(_elementType); + CarouselItem.prototype.render = function render() { + var _props = this.props, + direction = _props.direction, + active = _props.active, + animateIn = _props.animateIn, + animateOut = _props.animateOut, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['direction', 'active', 'animateIn', 'animateOut', 'className']); - var _bootstrapUtils = __webpack_require__(89); + delete props.onAnimateOutEnd; + delete props.index; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var classes = { + item: true, + active: active && !animateIn || animateOut + }; + if (direction && active && animateIn) { + classes[direction] = true; + } + if (this.state.direction && (animateIn || animateOut)) { + classes[this.state.direction] = true; + } - var propTypes = { - horizontal: _react2['default'].PropTypes.bool, - inline: _react2['default'].PropTypes.bool, - componentClass: _elementType2['default'] - }; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('div', extends_default()({}, props, { className: classnames_default()(className, classes) })); + }; - var defaultProps = { - horizontal: false, - inline: false, - componentClass: 'form' - }; + return CarouselItem; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var Form = function (_React$Component) { - (0, _inherits3['default'])(Form, _React$Component); +CarouselItem_CarouselItem.propTypes = CarouselItem_propTypes; +CarouselItem_CarouselItem.defaultProps = CarouselItem_defaultProps; - function Form() { - (0, _classCallCheck3['default'])(this, Form); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +/* harmony default export */ var src_CarouselItem = (CarouselItem_CarouselItem); +// CONCATENATED MODULE: ./src/Glyphicon.js - Form.prototype.render = function render() { - var _props = this.props; - var horizontal = _props.horizontal; - var inline = _props.inline; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['horizontal', 'inline', 'componentClass', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = []; - if (horizontal) { - classes.push((0, _bootstrapUtils.prefix)(bsProps, 'horizontal')); - } - if (inline) { - classes.push((0, _bootstrapUtils.prefix)(bsProps, 'inline')); - } - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return Form; - }(_react2['default'].Component); - Form.propTypes = propTypes; - Form.defaultProps = defaultProps; - exports['default'] = (0, _bootstrapUtils.bsClass)('form', Form); - module.exports = exports['default']; - /***/ }, - /* 167 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; +var Glyphicon_propTypes = { + /** + * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons + */ + glyph: prop_types_default.a.string.isRequired +}; - exports.__esModule = true; +var Glyphicon_Glyphicon = function (_React$Component) { + inherits_default()(Glyphicon, _React$Component); - var _extends2 = __webpack_require__(2); + function Glyphicon() { + classCallCheck_default()(this, Glyphicon); - var _extends3 = _interopRequireDefault(_extends2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _objectWithoutProperties2 = __webpack_require__(87); + Glyphicon.prototype.render = function render() { + var _extends2; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _props = this.props, + glyph = _props.glyph, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['glyph', 'className']); - var _classCallCheck2 = __webpack_require__(40); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + var classes = extends_default()({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2)); - var _possibleConstructorReturn2 = __webpack_require__(41); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + return Glyphicon; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _inherits2 = __webpack_require__(77); +Glyphicon_Glyphicon.propTypes = Glyphicon_propTypes; - var _inherits3 = _interopRequireDefault(_inherits2); +/* harmony default export */ var src_Glyphicon = (bootstrapUtils_bsClass('glyphicon', Glyphicon_Glyphicon)); +// CONCATENATED MODULE: ./src/Carousel.js - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _elementType = __webpack_require__(106); - var _elementType2 = _interopRequireDefault(_elementType); - var _warning = __webpack_require__(119); - var _warning2 = _interopRequireDefault(_warning); - var _FormControlFeedback = __webpack_require__(168); - var _FormControlFeedback2 = _interopRequireDefault(_FormControlFeedback); - var _FormControlStatic = __webpack_require__(169); - var _FormControlStatic2 = _interopRequireDefault(_FormControlStatic); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - componentClass: _elementType2['default'], - /** - * Only relevant if `componentClass` is `'input'`. - */ - type: _react2['default'].PropTypes.string, - /** - * Uses `controlId` from `` if not explicitly specified. - */ - id: _react2['default'].PropTypes.string - }; - var defaultProps = { - componentClass: 'input' - }; +// TODO: `slide` should be `animate`. - var contextTypes = { - $bs_formGroup: _react2['default'].PropTypes.object - }; +// TODO: Use uncontrollable. - var FormControl = function (_React$Component) { - (0, _inherits3['default'])(FormControl, _React$Component); +var Carousel_propTypes = { + slide: prop_types_default.a.bool, + indicators: prop_types_default.a.bool, + /** + * The amount of time to delay between automatically cycling an item. + * If `null`, carousel will not automatically cycle. + */ + interval: prop_types_default.a.number, + controls: prop_types_default.a.bool, + pauseOnHover: prop_types_default.a.bool, + wrap: prop_types_default.a.bool, + /** + * 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.a.func, + onSlideEnd: prop_types_default.a.func, + activeIndex: prop_types_default.a.number, + defaultActiveIndex: prop_types_default.a.number, + direction: prop_types_default.a.oneOf(['prev', 'next']), + prevIcon: prop_types_default.a.node, + /** + * 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.a.string, + nextIcon: prop_types_default.a.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.a.string +}; - function FormControl() { - (0, _classCallCheck3['default'])(this, FormControl); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +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.a.createElement(src_Glyphicon, { glyph: 'chevron-left' }), + prevLabel: 'Previous', + nextIcon: external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_Glyphicon, { glyph: 'chevron-right' }), + nextLabel: 'Next' +}; - FormControl.prototype.render = function render() { - var formGroup = this.context.$bs_formGroup; - var controlId = formGroup && formGroup.controlId; +var Carousel_Carousel = function (_React$Component) { + inherits_default()(Carousel, _React$Component); - var _props = this.props; - var Component = _props.componentClass; - var type = _props.type; - var _props$id = _props.id; - var id = _props$id === undefined ? controlId : _props$id; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'type', 'id', 'className']); + function Carousel(props, context) { + classCallCheck_default()(this, Carousel); + + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + _this.handleMouseOver = _this.handleMouseOver.bind(_this); + _this.handleMouseOut = _this.handleMouseOut.bind(_this); + _this.handlePrev = _this.handlePrev.bind(_this); + _this.handleNext = _this.handleNext.bind(_this); + _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_this); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + var defaultActiveIndex = props.defaultActiveIndex; + + + _this.state = { + activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, + previousActiveIndex: null, + direction: null + }; + + _this.isUnmounted = false; + return _this; + } + + Carousel.prototype.componentDidMount = function componentDidMount() { + this.waitForNext(); + }; + + Carousel.prototype.componentWillReceiveProps = function 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 + }); + } + }; + + Carousel.prototype.componentWillUnmount = function componentWillUnmount() { + clearTimeout(this.timeout); + this.isUnmounted = true; + }; + + Carousel.prototype.getActiveIndex = function getActiveIndex() { + var activeIndexProp = this.props.activeIndex; + return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; + }; + + Carousel.prototype.getDirection = function getDirection(prevIndex, index) { + if (prevIndex === index) { + return null; + } + + return prevIndex > index ? 'prev' : 'next'; + }; + + Carousel.prototype.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { + var _this2 = this; + + this.setState({ + previousActiveIndex: null, + direction: null + }, function () { + _this2.waitForNext(); + + if (_this2.props.onSlideEnd) { + _this2.props.onSlideEnd(); + } + }); + }; + + Carousel.prototype.handleMouseOut = function handleMouseOut() { + if (this.isPaused) { + this.play(); + } + }; + + Carousel.prototype.handleMouseOver = function handleMouseOver() { + if (this.props.pauseOnHover) { + this.pause(); + } + }; + + Carousel.prototype.handleNext = function handleNext(e) { + var index = this.getActiveIndex() + 1; + var count = ValidComponentChildren.count(this.props.children); + + if (index > count - 1) { + if (!this.props.wrap) { + return; + } + index = 0; + } + + this.select(index, e, 'next'); + }; + + Carousel.prototype.handlePrev = function handlePrev(e) { + var index = this.getActiveIndex() - 1; + + if (index < 0) { + if (!this.props.wrap) { + return; + } + index = ValidComponentChildren.count(this.props.children) - 1; + } + + this.select(index, e, 'prev'); + }; + + // This might be a public API. + + + Carousel.prototype.pause = function pause() { + this.isPaused = true; + clearTimeout(this.timeout); + }; + + // This might be a public API. + + + Carousel.prototype.play = function play() { + this.isPaused = false; + this.waitForNext(); + }; + + Carousel.prototype.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 }; + } + + onSelect(index, e); + } else { + onSelect(index); + } + } + + 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; + } + + this.setState({ + activeIndex: index, + previousActiveIndex: previousActiveIndex, + direction: direction + }); + } + }; + + Carousel.prototype.waitForNext = function waitForNext() { + var _props = this.props, + slide = _props.slide, + interval = _props.interval, + activeIndexProp = _props.activeIndex; + + + if (!this.isPaused && slide && interval && activeIndexProp == null) { + this.timeout = setTimeout(this.handleNext, interval); + } + }; + + Carousel.prototype.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.a.createElement( + src_SafeAnchor, + { + key: 'prev', + className: classnames_default()(controlClassName, 'left'), + onClick: this.handlePrev + }, + prevIcon, + prevLabel && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + { className: 'sr-only' }, + prevLabel + ) + ), (wrap || activeIndex !== count - 1) && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + src_SafeAnchor, + { + key: 'next', + className: classnames_default()(controlClassName, 'right'), + onClick: this.handleNext + }, + nextIcon, + nextLabel && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + { className: 'sr-only' }, + nextLabel + ) + )]; + }; + + Carousel.prototype.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { + var _this3 = this; + + var indicators = []; + + ValidComponentChildren.forEach(children, function (child, index) { + indicators.push(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('li', { + key: index, + className: index === activeIndex ? 'active' : null, + onClick: function onClick(e) { + return _this3.select(index, e); + } + }), + + // Force whitespace between indicator elements. Bootstrap requires + // this for correct spacing of elements. + ' '); + }); + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'ol', + { className: prefix(bsProps, 'indicators') }, + indicators + ); + }; + + Carousel.prototype.render = function render() { + var _this4 = this; + + var _props2 = this.props, + slide = _props2.slide, + indicators = _props2.indicators, + controls = _props2.controls, + wrap = _props2.wrap, + prevIcon = _props2.prevIcon, + prevLabel = _props2.prevLabel, + nextIcon = _props2.nextIcon, + nextLabel = _props2.nextLabel, + className = _props2.className, + children = _props2.children, + props = objectWithoutProperties_default()(_props2, ['slide', 'indicators', 'controls', 'wrap', 'prevIcon', 'prevLabel', 'nextIcon', 'nextLabel', 'className', 'children']); + + var _state = this.state, + previousActiveIndex = _state.previousActiveIndex, + direction = _state.direction; + + 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_default()({}, getClassSet(bsProps), { + slide: slide + }); + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { + className: classnames_default()(className, classes), + onMouseOver: this.handleMouseOver, + onMouseOut: this.handleMouseOut + }), + indicators && this.renderIndicators(children, activeIndex, bsProps), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + { className: prefix(bsProps, 'inner') }, + ValidComponentChildren.map(children, function (child, index) { + var active = index === activeIndex; + var previousActive = slide && index === previousActiveIndex; + + return Object(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; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +Carousel_Carousel.propTypes = Carousel_propTypes; +Carousel_Carousel.defaultProps = Carousel_defaultProps; + +Carousel_Carousel.Caption = src_CarouselCaption; +Carousel_Carousel.Item = src_CarouselItem; + +/* harmony default export */ var src_Carousel = (bootstrapUtils_bsClass('carousel', Carousel_Carousel)); +// EXTERNAL MODULE: ./node_modules/warning/browser.js +var warning_browser = __webpack_require__(10); +var warning_browser_default = /*#__PURE__*/__webpack_require__.n(warning_browser); + +// CONCATENATED MODULE: ./src/Checkbox.js + + + + + +/* eslint-disable jsx-a11y/label-has-for */ + + + + + + + + +var Checkbox_propTypes = { + inline: prop_types_default.a.bool, + disabled: prop_types_default.a.bool, + title: prop_types_default.a.string, + /** + * Only valid if `inline` is not set. + */ + validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]), + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: prop_types_default.a.func +}; +var Checkbox_defaultProps = { + inline: false, + disabled: false, + title: '' +}; - true ? (0, _warning2['default'])(controlId == null || id === controlId, '`controlId` is ignored on `` when `id` is specified.') : void 0; +var Checkbox_Checkbox = function (_React$Component) { + inherits_default()(Checkbox, _React$Component); - // input[type="file"] should not have .form-control. - var classes = void 0; - if (type !== 'file') { - classes = (0, _bootstrapUtils.getClassSet)(bsProps); - } + function Checkbox() { + classCallCheck_default()(this, Checkbox); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - type: type, - id: id, - className: (0, _classnames2['default'])(className, classes) - })); - }; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - return FormControl; - }(_react2['default'].Component); + Checkbox.prototype.render = function render() { + var _props = this.props, + inline = _props.inline, + disabled = _props.disabled, + validationState = _props.validationState, + inputRef = _props.inputRef, + className = _props.className, + style = _props.style, + title = _props.title, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'title', 'children']); - FormControl.propTypes = propTypes; - FormControl.defaultProps = defaultProps; - FormControl.contextTypes = contextTypes; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; + + var input = external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('input', extends_default()({}, elementProps, { + ref: inputRef, + type: 'checkbox', + disabled: disabled + })); + + if (inline) { + var _classes2; - FormControl.Feedback = _FormControlFeedback2['default']; - FormControl.Static = _FormControlStatic2['default']; + var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); - exports['default'] = (0, _bootstrapUtils.bsClass)('form-control', FormControl); - module.exports = exports['default']; + // Use a warning here instead of in propTypes to get better-looking + // generated documentation. + undefined !== 'production' ? warning_browser_default()(!validationState, '`validationState` is ignored on ``. To display ' + 'validation state on an inline checkbox, set `validationState` on a ' + 'parent `` or other element instead.') : void 0; - /***/ }, - /* 168 */ - /***/ function(module, exports, __webpack_require__) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'label', + { + className: classnames_default()(className, _classes), + style: style, + title: title + }, + input, + children + ); + } - 'use strict'; + var classes = extends_default()({}, getClassSet(bsProps), { + disabled: disabled + }); + if (validationState) { + classes['has-' + validationState] = true; + } + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + { className: classnames_default()(className, classes), style: style }, + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'label', + { title: title }, + input, + children + ) + ); + }; + + return Checkbox; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +Checkbox_Checkbox.propTypes = Checkbox_propTypes; +Checkbox_Checkbox.defaultProps = Checkbox_defaultProps; + +/* harmony default export */ var src_Checkbox = (bootstrapUtils_bsClass('checkbox', Checkbox_Checkbox)); +// CONCATENATED MODULE: ./src/utils/capitalize.js +function capitalize(string) { + return "" + string.charAt(0).toUpperCase() + string.slice(1); +} +// CONCATENATED MODULE: ./src/Clearfix.js - exports.__esModule = true; - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); +var Clearfix_propTypes = { + componentClass: elementType_default.a, - var _react2 = _interopRequireDefault(_react); + /** + * Apply clearfix + * + * on Extra small devices Phones + * + * adds class `visible-xs-block` + */ + visibleXsBlock: prop_types_default.a.bool, + /** + * Apply clearfix + * + * on Small devices Tablets + * + * adds class `visible-sm-block` + */ + visibleSmBlock: prop_types_default.a.bool, + /** + * Apply clearfix + * + * on Medium devices Desktops + * + * adds class `visible-md-block` + */ + visibleMdBlock: prop_types_default.a.bool, + /** + * Apply clearfix + * + * on Large devices Desktops + * + * adds class `visible-lg-block` + */ + visibleLgBlock: prop_types_default.a.bool +}; - var _Glyphicon = __webpack_require__(117); +var Clearfix_defaultProps = { + componentClass: 'div' +}; - var _Glyphicon2 = _interopRequireDefault(_Glyphicon); +var Clearfix_Clearfix = function (_React$Component) { + inherits_default()(Clearfix, _React$Component); - var _bootstrapUtils = __webpack_require__(89); + function Clearfix() { + classCallCheck_default()(this, Clearfix); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var defaultProps = { - bsRole: 'feedback' - }; + Clearfix.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - var contextTypes = { - $bs_formGroup: _react2['default'].PropTypes.object - }; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var FormControlFeedback = function (_React$Component) { - (0, _inherits3['default'])(FormControlFeedback, _React$Component); + var classes = getClassSet(bsProps); - function FormControlFeedback() { - (0, _classCallCheck3['default'])(this, FormControlFeedback); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + DEVICE_SIZES.forEach(function (size) { + var propName = 'visible' + capitalize(size) + 'Block'; + if (elementProps[propName]) { + classes['visible-' + size + '-block'] = true; + } - FormControlFeedback.prototype.getGlyph = function getGlyph(validationState) { - switch (validationState) { - case 'success': - return 'ok'; - case 'warning': - return 'warning-sign'; - case 'error': - return 'remove'; - default: - return null; - } - }; + delete elementProps[propName]; + }); - FormControlFeedback.prototype.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.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - return _react2['default'].createElement(_Glyphicon2['default'], (0, _extends3['default'])({}, elementProps, { - glyph: glyph, - className: (0, _classnames2['default'])(className, classes) - })); - }; + return Clearfix; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - FormControlFeedback.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); +Clearfix_Clearfix.propTypes = Clearfix_propTypes; +Clearfix_Clearfix.defaultProps = Clearfix_defaultProps; - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +/* harmony default export */ var src_Clearfix = (bootstrapUtils_bsClass('clearfix', Clearfix_Clearfix)); +// CONCATENATED MODULE: ./src/ControlLabel.js - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - if (!children) { - return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps); - } - var child = _react2['default'].Children.only(children); - return _react2['default'].cloneElement(child, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(child.props.className, className, classes) - })); - }; - return FormControlFeedback; - }(_react2['default'].Component); - FormControlFeedback.defaultProps = defaultProps; - FormControlFeedback.contextTypes = contextTypes; - exports['default'] = (0, _bootstrapUtils.bsClass)('form-control-feedback', FormControlFeedback); - module.exports = exports['default']; - /***/ }, - /* 169 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); +var ControlLabel_propTypes = { + /** + * Uses `controlId` from `` if not explicitly specified. + */ + htmlFor: prop_types_default.a.string, + srOnly: prop_types_default.a.bool +}; - var _extends3 = _interopRequireDefault(_extends2); +var ControlLabel_defaultProps = { + srOnly: false +}; - var _objectWithoutProperties2 = __webpack_require__(87); +var contextTypes = { + $bs_formGroup: prop_types_default.a.object +}; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var ControlLabel_ControlLabel = function (_React$Component) { + inherits_default()(ControlLabel, _React$Component); - var _classCallCheck2 = __webpack_require__(40); + function ControlLabel() { + classCallCheck_default()(this, ControlLabel); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _possibleConstructorReturn2 = __webpack_require__(41); + ControlLabel.prototype.render = function render() { + var formGroup = this.context.$bs_formGroup; + var controlId = formGroup && formGroup.controlId; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var _props = this.props, + _props$htmlFor = _props.htmlFor, + htmlFor = _props$htmlFor === undefined ? controlId : _props$htmlFor, + srOnly = _props.srOnly, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['htmlFor', 'srOnly', 'className']); - var _inherits2 = __webpack_require__(77); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _inherits3 = _interopRequireDefault(_inherits2); + undefined !== 'production' ? warning_browser_default()(controlId == null || htmlFor === controlId, '`controlId` is ignored on `` when `htmlFor` is specified.') : void 0; - var _classnames = __webpack_require__(88); + var classes = extends_default()({}, getClassSet(bsProps), { + 'sr-only': srOnly + }); - var _classnames2 = _interopRequireDefault(_classnames); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('label', extends_default()({}, elementProps, { + htmlFor: htmlFor, + className: classnames_default()(className, classes) + })); + }; - var _react = __webpack_require__(85); + return ControlLabel; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +ControlLabel_ControlLabel.propTypes = ControlLabel_propTypes; +ControlLabel_ControlLabel.defaultProps = ControlLabel_defaultProps; +ControlLabel_ControlLabel.contextTypes = contextTypes; + +/* harmony default export */ var src_ControlLabel = (bootstrapUtils_bsClass('control-label', ControlLabel_ControlLabel)); +// CONCATENATED MODULE: ./src/Col.js + + + + + + + + + + + + + +var Col_propTypes = { + componentClass: elementType_default.a, + + /** + * The number of columns you wish to span + * + * for Extra small devices Phones (<768px) + * + * class-prefix `col-xs-` + */ + xs: prop_types_default.a.number, + /** + * The number of columns you wish to span + * + * for Small devices Tablets (≥768px) + * + * class-prefix `col-sm-` + */ + sm: prop_types_default.a.number, + /** + * The number of columns you wish to span + * + * for Medium devices Desktops (≥992px) + * + * class-prefix `col-md-` + */ + md: prop_types_default.a.number, + /** + * The number of columns you wish to span + * + * for Large devices Desktops (≥1200px) + * + * class-prefix `col-lg-` + */ + lg: prop_types_default.a.number, + /** + * Hide column + * + * on Extra small devices Phones + * + * adds class `hidden-xs` + */ + xsHidden: prop_types_default.a.bool, + /** + * Hide column + * + * on Small devices Tablets + * + * adds class `hidden-sm` + */ + smHidden: prop_types_default.a.bool, + /** + * Hide column + * + * on Medium devices Desktops + * + * adds class `hidden-md` + */ + mdHidden: prop_types_default.a.bool, + /** + * Hide column + * + * on Large devices Desktops + * + * adds class `hidden-lg` + */ + lgHidden: prop_types_default.a.bool, + /** + * Move columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-offset-` + */ + xsOffset: prop_types_default.a.number, + /** + * Move columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-offset-` + */ + smOffset: prop_types_default.a.number, + /** + * Move columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-offset-` + */ + mdOffset: prop_types_default.a.number, + /** + * Move columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-offset-` + */ + lgOffset: prop_types_default.a.number, + /** + * Change the order of grid columns to the right + * + * for Extra small devices Phones + * + * class-prefix `col-xs-push-` + */ + xsPush: prop_types_default.a.number, + /** + * Change the order of grid columns to the right + * + * for Small devices Tablets + * + * class-prefix `col-sm-push-` + */ + smPush: prop_types_default.a.number, + /** + * Change the order of grid columns to the right + * + * for Medium devices Desktops + * + * class-prefix `col-md-push-` + */ + mdPush: prop_types_default.a.number, + /** + * Change the order of grid columns to the right + * + * for Large devices Desktops + * + * class-prefix `col-lg-push-` + */ + lgPush: prop_types_default.a.number, + /** + * Change the order of grid columns to the left + * + * for Extra small devices Phones + * + * class-prefix `col-xs-pull-` + */ + xsPull: prop_types_default.a.number, + /** + * Change the order of grid columns to the left + * + * for Small devices Tablets + * + * class-prefix `col-sm-pull-` + */ + smPull: prop_types_default.a.number, + /** + * Change the order of grid columns to the left + * + * for Medium devices Desktops + * + * class-prefix `col-md-pull-` + */ + mdPull: prop_types_default.a.number, + /** + * Change the order of grid columns to the left + * + * for Large devices Desktops + * + * class-prefix `col-lg-pull-` + */ + lgPull: prop_types_default.a.number +}; + +var Col_defaultProps = { + componentClass: 'div' +}; + +var Col_Col = function (_React$Component) { + inherits_default()(Col, _React$Component); + + function Col() { + classCallCheck_default()(this, Col); + + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } + + Col.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_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]; + } + + 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.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; + + return Col; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +Col_Col.propTypes = Col_propTypes; +Col_Col.defaultProps = Col_defaultProps; + +/* harmony default export */ var src_Col = (bootstrapUtils_bsClass('col', Col_Col)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js +var dom_helpers_style = __webpack_require__(33); +var style_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_style); + +// EXTERNAL MODULE: ./node_modules/react-transition-group/Transition.js +var react_transition_group_Transition = __webpack_require__(81); +var Transition_default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition); + +// CONCATENATED MODULE: ./src/Collapse.js + + + + + + +var _collapseStyles; + + + + + + + + + + +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 +} - var _react2 = _interopRequireDefault(_react); +function getDimensionValue(dimension, elem) { + var value = elem['offset' + capitalize(dimension)]; + var margins = MARGINS[dimension]; - var _elementType = __webpack_require__(106); + return value + parseInt(style_default()(elem, margins[0]), 10) + parseInt(style_default()(elem, margins[1]), 10); +} - var _elementType2 = _interopRequireDefault(_elementType); +var collapseStyles = (_collapseStyles = {}, _collapseStyles[react_transition_group_Transition["EXITED"]] = 'collapse', _collapseStyles[react_transition_group_Transition["EXITING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition["ENTERING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition["ENTERED"]] = 'collapse in', _collapseStyles); - var _bootstrapUtils = __webpack_require__(89); +var Collapse_propTypes = { + /** + * Show the component; triggers the expand or collapse animation + */ + in: prop_types_default.a.bool, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: prop_types_default.a.bool, + + /** + * Unmount the component (remove it from the DOM) when it is collapsed + */ + unmountOnExit: prop_types_default.a.bool, + + /** + * Run the expand animation when the component mounts, if it is initially + * shown + */ + appear: prop_types_default.a.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.a.number, - var propTypes = { - componentClass: _elementType2['default'] - }; + /** + * Callback fired before the component expands + */ + onEnter: prop_types_default.a.func, + /** + * Callback fired after the component starts to expand + */ + onEntering: prop_types_default.a.func, + /** + * Callback fired after the component has expanded + */ + onEntered: prop_types_default.a.func, + /** + * Callback fired before the component collapses + */ + onExit: prop_types_default.a.func, + /** + * Callback fired after the component starts to collapse + */ + onExiting: prop_types_default.a.func, + /** + * Callback fired after the component has collapsed + */ + onExited: prop_types_default.a.func, - var defaultProps = { - componentClass: 'p' - }; + /** + * 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.a.oneOfType([prop_types_default.a.oneOf(['height', 'width']), prop_types_default.a.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.a.func, + + /** + * ARIA role of collapsible element + */ + role: prop_types_default.a.string +}; + +var Collapse_defaultProps = { + in: false, + timeout: 300, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + + dimension: 'height', + getDimensionValue: getDimensionValue +}; + +var Collapse_Collapse = function (_React$Component) { + inherits_default()(Collapse, _React$Component); + + function Collapse() { + var _temp, _this, _ret; + + classCallCheck_default()(this, Collapse); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _ret = (_temp = (_this = possibleConstructorReturn_default()(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(); + 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'; + }, _temp), possibleConstructorReturn_default()(_this, _ret); + } + + Collapse.prototype.getDimension = function getDimension() { + return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; + }; + + // for testing - var FormControlStatic = function (_React$Component) { - (0, _inherits3['default'])(FormControlStatic, _React$Component); - function FormControlStatic() { - (0, _classCallCheck3['default'])(this, FormControlStatic); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { + return elem['scroll' + capitalize(dimension)] + 'px'; + }; - FormControlStatic.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); + /* -- Expanding -- */ + + + /* -- Collapsing -- */ - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + Collapse.prototype.render = function render() { + var _this2 = this; + var _props = this.props, + onEnter = _props.onEnter, + onEntering = _props.onEntering, + onEntered = _props.onEntered, + onExit = _props.onExit, + onExiting = _props.onExiting, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className', 'children']); - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); + delete props.dimension; + delete props.getDimensionValue; - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; + 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 FormControlStatic; - }(_react2['default'].Component); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Transition_default.a, + extends_default()({}, props, { + 'aria-expanded': props.role ? props.in : null, + onEnter: handleEnter, + onEntering: handleEntering, + onEntered: handleEntered, + onExit: handleExit, + onExiting: handleExiting + }), + function (state, innerProps) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.cloneElement(children, extends_default()({}, innerProps, { + className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width') + })); + } + ); + }; - FormControlStatic.propTypes = propTypes; - FormControlStatic.defaultProps = defaultProps; + return Collapse; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - exports['default'] = (0, _bootstrapUtils.bsClass)('form-control-static', FormControlStatic); - module.exports = exports['default']; +Collapse_Collapse.propTypes = Collapse_propTypes; +Collapse_Collapse.defaultProps = Collapse_defaultProps; - /***/ }, - /* 170 */ - /***/ function(module, exports, __webpack_require__) { +/* harmony default export */ var src_Collapse = (Collapse_Collapse); +// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js +var activeElement = __webpack_require__(82); +var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement); - 'use strict'; +// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js +var contains = __webpack_require__(26); +var contains_default = /*#__PURE__*/__webpack_require__.n(contains); - exports.__esModule = true; +// EXTERNAL MODULE: ./node_modules/keycode/index.js +var keycode = __webpack_require__(62); +var keycode_default = /*#__PURE__*/__webpack_require__.n(keycode); - var _extends2 = __webpack_require__(2); +// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js +var isRequiredForA11y = __webpack_require__(38); +var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y); - var _extends3 = _interopRequireDefault(_extends2); +// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/array/from.js +var from = __webpack_require__(145); +var from_default = /*#__PURE__*/__webpack_require__.n(from); - var _objectWithoutProperties2 = __webpack_require__(87); +// EXTERNAL MODULE: ./node_modules/react-overlays/lib/RootCloseWrapper.js +var RootCloseWrapper = __webpack_require__(83); +var RootCloseWrapper_default = /*#__PURE__*/__webpack_require__.n(RootCloseWrapper); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +// CONCATENATED MODULE: ./src/DropdownMenu.js - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - var _StyleConfig = __webpack_require__(95); - var _ValidComponentChildren = __webpack_require__(97); - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - /** - * Sets `id` on `` and `htmlFor` on ``. - */ - controlId: _react2['default'].PropTypes.string, - validationState: _react2['default'].PropTypes.oneOf(['success', 'warning', 'error']) - }; - var childContextTypes = { - $bs_formGroup: _react2['default'].PropTypes.object.isRequired - }; +var DropdownMenu_propTypes = { + open: prop_types_default.a.bool, + pullRight: prop_types_default.a.bool, + onClose: prop_types_default.a.func, + labelledBy: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]), + onSelect: prop_types_default.a.func, + rootCloseEvent: prop_types_default.a.oneOf(['click', 'mousedown']) +}; - var FormGroup = function (_React$Component) { - (0, _inherits3['default'])(FormGroup, _React$Component); +var DropdownMenu_defaultProps = { + bsRole: 'menu', + pullRight: false +}; - function FormGroup() { - (0, _classCallCheck3['default'])(this, FormGroup); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +var DropdownMenu_DropdownMenu = function (_React$Component) { + inherits_default()(DropdownMenu, _React$Component); - FormGroup.prototype.getChildContext = function getChildContext() { - var _props = this.props; - var controlId = _props.controlId; - var validationState = _props.validationState; + function DropdownMenu(props) { + classCallCheck_default()(this, DropdownMenu); + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props)); - return { - $bs_formGroup: { - controlId: controlId, - validationState: validationState - } - }; - }; + _this.handleRootClose = _this.handleRootClose.bind(_this); + _this.handleKeyDown = _this.handleKeyDown.bind(_this); + return _this; + } - FormGroup.prototype.hasFeedback = function hasFeedback(children) { - var _this2 = this; + DropdownMenu.prototype.getFocusableMenuItems = function getFocusableMenuItems() { + var node = external___root___ReactDOM___commonjs2___react_dom___commonjs___react_dom___amd___react_dom___default.a.findDOMNode(this); + if (!node) { + return []; + } + + return from_default()(node.querySelectorAll('[tabIndex="-1"]')); + }; + + DropdownMenu.prototype.getItemsAndActiveIndex = function getItemsAndActiveIndex() { + var items = this.getFocusableMenuItems(); + var activeIndex = items.indexOf(document.activeElement); - return _ValidComponentChildren2['default'].some(children, function (child) { - return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children); - }); - }; + return { items: items, activeIndex: activeIndex }; + }; - FormGroup.prototype.render = function render() { - var _props2 = this.props; - var validationState = _props2.validationState; - var className = _props2.className; - var children = _props2.children; - var props = (0, _objectWithoutProperties3['default'])(_props2, ['validationState', 'className', 'children']); + DropdownMenu.prototype.focusNext = function focusNext() { + var _getItemsAndActiveInd = this.getItemsAndActiveIndex(), + items = _getItemsAndActiveInd.items, + activeIndex = _getItemsAndActiveInd.activeIndex; - var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['controlId']); + if (items.length === 0) { + return; + } - var bsProps = _splitBsPropsAndOmit[0]; - var elementProps = _splitBsPropsAndOmit[1]; + var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; + items[nextIndex].focus(); + }; + DropdownMenu.prototype.focusPrevious = function focusPrevious() { + var _getItemsAndActiveInd2 = this.getItemsAndActiveIndex(), + items = _getItemsAndActiveInd2.items, + activeIndex = _getItemsAndActiveInd2.activeIndex; - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - 'has-feedback': this.hasFeedback(children) - }); - if (validationState) { - classes['has-' + validationState] = true; - } + if (items.length === 0) { + return; + } - return _react2['default'].createElement( - 'div', - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - }), - children - ); - }; + var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; + items[prevIndex].focus(); + }; - return FormGroup; - }(_react2['default'].Component); + DropdownMenu.prototype.handleKeyDown = function handleKeyDown(event) { + switch (event.keyCode) { + case keycode_default.a.codes.down: + this.focusNext(); + event.preventDefault(); + break; + case keycode_default.a.codes.up: + this.focusPrevious(); + event.preventDefault(); + break; + case keycode_default.a.codes.esc: + case keycode_default.a.codes.tab: + this.props.onClose(event, { source: 'keydown' }); + break; + default: + } + }; - FormGroup.propTypes = propTypes; - FormGroup.childContextTypes = childContextTypes; + DropdownMenu.prototype.handleRootClose = function handleRootClose(event) { + this.props.onClose(event, { source: 'rootClose' }); + }; - exports['default'] = (0, _bootstrapUtils.bsClass)('form-group', (0, _bootstrapUtils.bsSizes)([_StyleConfig.Size.LARGE, _StyleConfig.Size.SMALL], FormGroup)); - module.exports = exports['default']; + DropdownMenu.prototype.render = function render() { + var _extends2, + _this2 = this; - /***/ }, - /* 171 */ - /***/ function(module, exports, __webpack_require__) { + var _props = this.props, + open = _props.open, + pullRight = _props.pullRight, + labelledBy = _props.labelledBy, + onSelect = _props.onSelect, + className = _props.className, + rootCloseEvent = _props.rootCloseEvent, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['open', 'pullRight', 'labelledBy', 'onSelect', 'className', 'rootCloseEvent', 'children']); + + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + + var classes = extends_default()({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2)); + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + RootCloseWrapper_default.a, + { + disabled: !open, + onRootClose: this.handleRootClose, + event: rootCloseEvent + }, + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'ul', + extends_default()({}, elementProps, { + role: 'menu', + className: classnames_default()(className, classes), + 'aria-labelledby': labelledBy + }), + ValidComponentChildren.map(children, function (child) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.cloneElement(child, { + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown), + onSelect: utils_createChainedFunction(child.props.onSelect, onSelect) + }); + }) + ) + ); + }; - 'use strict'; + return DropdownMenu; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - exports.__esModule = true; +DropdownMenu_DropdownMenu.propTypes = DropdownMenu_propTypes; +DropdownMenu_DropdownMenu.defaultProps = DropdownMenu_defaultProps; - var _extends2 = __webpack_require__(2); +/* harmony default export */ var src_DropdownMenu = (bootstrapUtils_bsClass('dropdown-menu', DropdownMenu_DropdownMenu)); +// CONCATENATED MODULE: ./src/DropdownToggle.js - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); +var DropdownToggle_propTypes = { + noCaret: prop_types_default.a.bool, + open: prop_types_default.a.bool, + title: prop_types_default.a.string, + useAnchor: prop_types_default.a.bool +}; - var _elementType = __webpack_require__(106); +var DropdownToggle_defaultProps = { + open: false, + useAnchor: false, + bsRole: 'toggle' +}; - var _elementType2 = _interopRequireDefault(_elementType); +var DropdownToggle_DropdownToggle = function (_React$Component) { + inherits_default()(DropdownToggle, _React$Component); - var _bootstrapUtils = __webpack_require__(89); + function DropdownToggle() { + classCallCheck_default()(this, DropdownToggle); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var propTypes = { - /** - * Turn any fixed-width grid layout into a full-width layout by this property. - * - * Adds `container-fluid` class. - */ - fluid: _react2['default'].PropTypes.bool, - /** - * You can use a custom element for this component - */ - componentClass: _elementType2['default'] - }; + DropdownToggle.prototype.render = function render() { + var _props = this.props, + noCaret = _props.noCaret, + open = _props.open, + useAnchor = _props.useAnchor, + bsClass = _props.bsClass, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['noCaret', 'open', 'useAnchor', 'bsClass', 'className', 'children']); - var defaultProps = { - componentClass: 'div', - fluid: false - }; + delete props.bsRole; - var Grid = function (_React$Component) { - (0, _inherits3['default'])(Grid, _React$Component); + var Component = useAnchor ? src_SafeAnchor : src_Button; + var useCaret = !noCaret; - function Grid() { - (0, _classCallCheck3['default'])(this, Grid); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + // This intentionally forwards bsSize and bsStyle (if set) to the + // underlying component, to allow it to render size and style variants. - Grid.prototype.render = function render() { - var _props = this.props; - var fluid = _props.fluid; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['fluid', 'componentClass', 'className']); + // FIXME: Should this really fall back to `title` as children? - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Component, + extends_default()({}, props, { + role: 'button', + className: classnames_default()(className, bsClass), + 'aria-haspopup': true, + 'aria-expanded': open + }), + children || props.title, + useCaret && ' ', + useCaret && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', { className: 'caret' }) + ); + }; - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + return DropdownToggle; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); +DropdownToggle_DropdownToggle.propTypes = DropdownToggle_propTypes; +DropdownToggle_DropdownToggle.defaultProps = DropdownToggle_defaultProps; - var classes = (0, _bootstrapUtils.prefix)(bsProps, fluid && 'fluid'); +/* harmony default export */ var src_DropdownToggle = (bootstrapUtils_bsClass('dropdown-toggle', DropdownToggle_DropdownToggle)); +// CONCATENATED MODULE: ./src/Dropdown.js - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return Grid; - }(_react2['default'].Component); - Grid.propTypes = propTypes; - Grid.defaultProps = defaultProps; - exports['default'] = (0, _bootstrapUtils.bsClass)('container', Grid); - module.exports = exports['default']; - /***/ }, - /* 172 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var HelpBlock = function (_React$Component) { - (0, _inherits3['default'])(HelpBlock, _React$Component); - function HelpBlock() { - (0, _classCallCheck3['default'])(this, HelpBlock); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - HelpBlock.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); +var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole; +var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole; - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +var Dropdown_propTypes = { + /** + * The menu will open above the dropdown button, instead of below it. + */ + dropup: prop_types_default.a.bool, - var bsProps = _splitBsProps[0]; - var 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.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])), + componentClass: elementType_default.a, - var classes = (0, _bootstrapUtils.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)), - return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; + /** + * Whether or not component is disabled. + */ + disabled: prop_types_default.a.bool, - return HelpBlock; - }(_react2['default'].Component); + /** + * Align the menu to the right side of the Dropdown toggle + */ + pullRight: prop_types_default.a.bool, - exports['default'] = (0, _bootstrapUtils.bsClass)('help-block', HelpBlock); - module.exports = exports['default']; + /** + * Whether or not the Dropdown is visible. + * + * @controllable onToggle + */ + open: prop_types_default.a.bool, - /***/ }, - /* 173 */ - /***/ function(module, exports, __webpack_require__) { + defaultOpen: prop_types_default.a.bool, - 'use strict'; + /** + * 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.a.func, - exports.__esModule = true; + /** + * A callback fired when a menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` + */ + onSelect: prop_types_default.a.func, - var _extends2 = __webpack_require__(2); + /** + * If `'menuitem'`, causes the dropdown to behave like a menu item rather than + * a menu button. + */ + role: prop_types_default.a.string, - var _extends3 = _interopRequireDefault(_extends2); + /** + * 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.a.oneOf(['click', 'mousedown']), - var _objectWithoutProperties2 = __webpack_require__(87); + /** + * @private + */ + onMouseEnter: prop_types_default.a.func, + /** + * @private + */ + onMouseLeave: prop_types_default.a.func +}; + +var Dropdown_defaultProps = { + componentClass: src_ButtonGroup +}; + +var Dropdown_Dropdown = function (_React$Component) { + inherits_default()(Dropdown, _React$Component); + + function Dropdown(props, context) { + classCallCheck_default()(this, Dropdown); + + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); + + _this.handleClick = _this.handleClick.bind(_this); + _this.handleKeyDown = _this.handleKeyDown.bind(_this); + _this.handleClose = _this.handleClose.bind(_this); + + _this._focusInDropdown = false; + _this.lastOpenEventType = null; + return _this; + } + + Dropdown.prototype.componentDidMount = function componentDidMount() { + this.focusNextOnOpen(); + }; + + Dropdown.prototype.componentWillUpdate = function 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.a.findDOMNode(this.menu), activeElement_default()(document)); + } + }; + + Dropdown.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + var open = this.props.open; + + var prevOpen = prevProps.open; + + 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(); + } + } + }; + + Dropdown.prototype.focus = function focus() { + var toggle = external___root___ReactDOM___commonjs2___react_dom___commonjs___react_dom___amd___react_dom___default.a.findDOMNode(this.toggle); + + if (toggle && toggle.focus) { + toggle.focus(); + } + }; + + Dropdown.prototype.focusNextOnOpen = function focusNextOnOpen() { + var menu = this.menu; + + if (!menu.focusNext) { + return; + } + + if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { + menu.focusNext(); + } + }; + + Dropdown.prototype.handleClick = function handleClick(event) { + if (this.props.disabled) { + return; + } + + this.toggleOpen(event, { source: 'click' }); + }; + + Dropdown.prototype.handleClose = function handleClose(event, eventDetails) { + if (!this.props.open) { + return; + } + + this.toggleOpen(event, eventDetails); + }; + + Dropdown.prototype.handleKeyDown = function handleKeyDown(event) { + if (this.props.disabled) { + return; + } + + switch (event.keyCode) { + case keycode_default.a.codes.down: + if (!this.props.open) { + this.toggleOpen(event, { source: 'keydown' }); + } else if (this.menu.focusNext) { + this.menu.focusNext(); + } + event.preventDefault(); + break; + case keycode_default.a.codes.esc: + case keycode_default.a.codes.tab: + this.handleClose(event, { source: 'keydown' }); + break; + default: + } + }; + + Dropdown.prototype.toggleOpen = function toggleOpen(event, eventDetails) { + var open = !this.props.open; + + if (open) { + this.lastOpenEventType = eventDetails.source; + } + + if (this.props.onToggle) { + this.props.onToggle(open, event, eventDetails); + } + }; + + Dropdown.prototype.renderMenu = function renderMenu(child, _ref) { + var _this2 = this; + + var id = _ref.id, + onSelect = _ref.onSelect, + rootCloseEvent = _ref.rootCloseEvent, + props = objectWithoutProperties_default()(_ref, ['id', 'onSelect', 'rootCloseEvent']); + + var ref = function ref(c) { + _this2.menu = c; + }; + + if (typeof child.ref === 'string') { + undefined !== 'production' ? warning_browser_default()(false, 'String refs are not supported on `` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; + } else { + ref = utils_createChainedFunction(child.ref, ref); + } + + return Object(external___root___React___commonjs2___react___commonjs___react___amd___react__["cloneElement"])(child, extends_default()({}, 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 + })); + }; + + Dropdown.prototype.renderToggle = function renderToggle(child, props) { + var _this3 = this; + + var ref = function ref(c) { + _this3.toggle = c; + }; + + if (typeof child.ref === 'string') { + undefined !== 'production' ? warning_browser_default()(false, 'String refs are not supported on `` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; + } else { + ref = utils_createChainedFunction(child.ref, ref); + } + + return Object(external___root___React___commonjs2___react___commonjs___react___amd___react__["cloneElement"])(child, extends_default()({}, props, { + ref: ref, + bsClass: prefix(props, 'toggle'), + onClick: utils_createChainedFunction(child.props.onClick, this.handleClick), + onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown) + })); + }; + + Dropdown.prototype.render = function render() { + var _classes, + _this4 = this; + + var _props = this.props, + Component = _props.componentClass, + id = _props.id, + dropup = _props.dropup, + disabled = _props.disabled, + pullRight = _props.pullRight, + open = _props.open, + onSelect = _props.onSelect, + role = _props.role, + bsClass = _props.bsClass, + className = _props.className, + rootCloseEvent = _props.rootCloseEvent, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['componentClass', 'id', 'dropup', 'disabled', 'pullRight', 'open', 'onSelect', 'role', 'bsClass', 'className', 'rootCloseEvent', 'children']); + + delete props.onToggle; + + 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. + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Component, + extends_default()({}, props, { className: classnames_default()(className, classes) }), + 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; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +Dropdown_Dropdown.propTypes = Dropdown_propTypes; +Dropdown_Dropdown.defaultProps = Dropdown_defaultProps; + +bootstrapUtils_bsClass('dropdown', Dropdown_Dropdown); + +var UncontrolledDropdown = uncontrollable_default()(Dropdown_Dropdown, { open: 'onToggle' }); + +UncontrolledDropdown.Toggle = src_DropdownToggle; +UncontrolledDropdown.Menu = src_DropdownMenu; + +/* harmony default export */ var src_Dropdown = (UncontrolledDropdown); +// CONCATENATED MODULE: ./src/utils/splitComponentProps.js + +function splitComponentProps(props, Component) { + var componentPropTypes = Component.propTypes; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var parentProps = {}; + var childProps = {}; - var _classCallCheck2 = __webpack_require__(40); + entries_default()(props).forEach(function (_ref) { + var propName = _ref[0], + propValue = _ref[1]; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + if (componentPropTypes[propName]) { + parentProps[propName] = propValue; + } else { + childProps[propName] = propValue; + } + }); + + return [parentProps, childProps]; +} +// CONCATENATED MODULE: ./src/DropdownButton.js - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - /** - * Sets image as responsive image - */ - responsive: _react2['default'].PropTypes.bool, +var DropdownButton_propTypes = extends_default()({}, src_Dropdown.propTypes, { - /** - * Sets image shape as rounded - */ - rounded: _react2['default'].PropTypes.bool, + // Toggle props. + bsStyle: prop_types_default.a.string, + bsSize: prop_types_default.a.string, + title: prop_types_default.a.node.isRequired, + noCaret: prop_types_default.a.bool, - /** - * Sets image shape as circle - */ - circle: _react2['default'].PropTypes.bool, + // Override generated docs from . + /** + * @private + */ + children: prop_types_default.a.node +}); - /** - * Sets image shape as thumbnail - */ - thumbnail: _react2['default'].PropTypes.bool - }; +var DropdownButton_DropdownButton = function (_React$Component) { + inherits_default()(DropdownButton, _React$Component); - var defaultProps = { - responsive: false, - rounded: false, - circle: false, - thumbnail: false - }; + function DropdownButton() { + classCallCheck_default()(this, DropdownButton); - var Image = function (_React$Component) { - (0, _inherits3['default'])(Image, _React$Component); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } + + DropdownButton.prototype.render = function render() { + var _props = this.props, + bsSize = _props.bsSize, + bsStyle = _props.bsStyle, + title = _props.title, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['bsSize', 'bsStyle', 'title', 'children']); + + var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent), + dropdownProps = _splitComponentProps[0], + toggleProps = _splitComponentProps[1]; + + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + src_Dropdown, + extends_default()({}, dropdownProps, { bsSize: bsSize, bsStyle: bsStyle }), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + src_Dropdown.Toggle, + extends_default()({}, toggleProps, { bsSize: bsSize, bsStyle: bsStyle }), + title + ), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + src_Dropdown.Menu, + null, + children + ) + ); + }; + + return DropdownButton; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +DropdownButton_DropdownButton.propTypes = DropdownButton_propTypes; + +/* harmony default export */ var src_DropdownButton = (DropdownButton_DropdownButton); +// CONCATENATED MODULE: ./src/Fade.js + + + + + + +var _fadeStyles; + + + + + + +var Fade_propTypes = { + /** + * Show the component; triggers the fade in or fade out animation + */ + in: prop_types_default.a.bool, - function Image() { - (0, _classCallCheck3['default'])(this, Image); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + /** + * Wait until the first "enter" transition to mount the component (add it to the DOM) + */ + mountOnEnter: prop_types_default.a.bool, - Image.prototype.render = function render() { - var _classes; + /** + * Unmount the component (remove it from the DOM) when it is faded out + */ + unmountOnExit: prop_types_default.a.bool, - var _props = this.props; - var responsive = _props.responsive; - var rounded = _props.rounded; - var circle = _props.circle; - var thumbnail = _props.thumbnail; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['responsive', 'rounded', 'circle', 'thumbnail', 'className']); + /** + * Run the fade in animation when the component mounts, if it is initially + * shown + */ + appear: prop_types_default.a.bool, - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + /** + * 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.a.number, - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + /** + * Callback fired before the component fades in + */ + onEnter: prop_types_default.a.func, + /** + * Callback fired after the component starts to fade in + */ + onEntering: prop_types_default.a.func, + /** + * Callback fired after the has component faded in + */ + onEntered: prop_types_default.a.func, + /** + * Callback fired before the component fades out + */ + onExit: prop_types_default.a.func, + /** + * Callback fired after the component starts to fade out + */ + onExiting: prop_types_default.a.func, + /** + * Callback fired after the component has faded out + */ + onExited: prop_types_default.a.func +}; +var Fade_defaultProps = { + in: false, + timeout: 300, + mountOnEnter: false, + unmountOnExit: false, + appear: false +}; - var classes = (_classes = {}, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'responsive')] = responsive, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'rounded')] = rounded, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'circle')] = circle, _classes[(0, _bootstrapUtils.prefix)(bsProps, 'thumbnail')] = thumbnail, _classes); +var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition["ENTERING"]] = 'in', _fadeStyles[react_transition_group_Transition["ENTERED"]] = 'in', _fadeStyles); - return _react2['default'].createElement('img', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; +var Fade_Fade = function (_React$Component) { + inherits_default()(Fade, _React$Component); - return Image; - }(_react2['default'].Component); + function Fade() { + classCallCheck_default()(this, Fade); - Image.propTypes = propTypes; - Image.defaultProps = defaultProps; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - exports['default'] = (0, _bootstrapUtils.bsClass)('img', Image); - module.exports = exports['default']; + Fade.prototype.render = function render() { + var _props = this.props, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['className', 'children']); - /***/ }, - /* 174 */ - /***/ function(module, exports, __webpack_require__) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Transition_default.a, + props, + function (status, innerProps) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.cloneElement(children, extends_default()({}, innerProps, { + className: classnames_default()('fade', className, children.props.className, fadeStyles[status]) + })); + } + ); + }; - 'use strict'; + return Fade; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - exports.__esModule = true; +Fade_Fade.propTypes = Fade_propTypes; +Fade_Fade.defaultProps = Fade_defaultProps; - var _extends2 = __webpack_require__(2); +/* harmony default export */ var src_Fade = (Fade_Fade); +// CONCATENATED MODULE: ./src/Form.js - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); +var Form_propTypes = { + horizontal: prop_types_default.a.bool, + inline: prop_types_default.a.bool, + componentClass: elementType_default.a +}; - var _react2 = _interopRequireDefault(_react); +var Form_defaultProps = { + horizontal: false, + inline: false, + componentClass: 'form' +}; - var _InputGroupAddon = __webpack_require__(175); +var Form_Form = function (_React$Component) { + inherits_default()(Form, _React$Component); - var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon); + function Form() { + classCallCheck_default()(this, Form); - var _InputGroupButton = __webpack_require__(176); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton); + Form.prototype.render = function render() { + var _props = this.props, + horizontal = _props.horizontal, + inline = _props.inline, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['horizontal', 'inline', 'componentClass', 'className']); - var _bootstrapUtils = __webpack_require__(89); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _StyleConfig = __webpack_require__(95); + var classes = []; + if (horizontal) { + classes.push(prefix(bsProps, 'horizontal')); + } + if (inline) { + classes.push(prefix(bsProps, 'inline')); + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var InputGroup = function (_React$Component) { - (0, _inherits3['default'])(InputGroup, _React$Component); + return Form; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - function InputGroup() { - (0, _classCallCheck3['default'])(this, InputGroup); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +Form_Form.propTypes = Form_propTypes; +Form_Form.defaultProps = Form_defaultProps; - InputGroup.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); +/* harmony default export */ var src_Form = (bootstrapUtils_bsClass('form', Form_Form)); +// CONCATENATED MODULE: ./src/FormControlFeedback.js - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return InputGroup; - }(_react2['default'].Component); - InputGroup.Addon = _InputGroupAddon2['default']; - InputGroup.Button = _InputGroupButton2['default']; - exports['default'] = (0, _bootstrapUtils.bsClass)('input-group', (0, _bootstrapUtils.bsSizes)([_StyleConfig.Size.LARGE, _StyleConfig.Size.SMALL], InputGroup)); - module.exports = exports['default']; - /***/ }, - /* 175 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); +var FormControlFeedback_defaultProps = { + bsRole: 'feedback' +}; - var _extends3 = _interopRequireDefault(_extends2); +var FormControlFeedback_contextTypes = { + $bs_formGroup: prop_types_default.a.object +}; - var _objectWithoutProperties2 = __webpack_require__(87); +var FormControlFeedback_FormControlFeedback = function (_React$Component) { + inherits_default()(FormControlFeedback, _React$Component); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + function FormControlFeedback() { + classCallCheck_default()(this, FormControlFeedback); - var _classCallCheck2 = __webpack_require__(40); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + FormControlFeedback.prototype.getGlyph = function getGlyph(validationState) { + switch (validationState) { + case 'success': + return 'ok'; + case 'warning': + return 'warning-sign'; + case 'error': + return 'remove'; + default: + return null; + } + }; - var _possibleConstructorReturn2 = __webpack_require__(41); + FormControlFeedback.prototype.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) { + var glyph = this.getGlyph(formGroup && formGroup.validationState); + if (!glyph) { + return null; + } - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_Glyphicon, extends_default()({}, elementProps, { + glyph: glyph, + className: classnames_default()(className, classes) + })); + }; - var _inherits2 = __webpack_require__(77); + FormControlFeedback.prototype.render = function render() { + var _props = this.props, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['className', 'children']); - var _inherits3 = _interopRequireDefault(_inherits2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classnames = __webpack_require__(88); + var classes = getClassSet(bsProps); - var _classnames2 = _interopRequireDefault(_classnames); + if (!children) { + return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps); + } - var _react = __webpack_require__(85); + var child = external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.only(children); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.cloneElement(child, extends_default()({}, elementProps, { + className: classnames_default()(child.props.className, className, classes) + })); + }; - var _react2 = _interopRequireDefault(_react); + return FormControlFeedback; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _bootstrapUtils = __webpack_require__(89); +FormControlFeedback_FormControlFeedback.defaultProps = FormControlFeedback_defaultProps; +FormControlFeedback_FormControlFeedback.contextTypes = FormControlFeedback_contextTypes; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +/* harmony default export */ var src_FormControlFeedback = (bootstrapUtils_bsClass('form-control-feedback', FormControlFeedback_FormControlFeedback)); +// CONCATENATED MODULE: ./src/FormControlStatic.js - var InputGroupAddon = function (_React$Component) { - (0, _inherits3['default'])(InputGroupAddon, _React$Component); - function InputGroupAddon() { - (0, _classCallCheck3['default'])(this, InputGroupAddon); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - InputGroupAddon.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return InputGroupAddon; - }(_react2['default'].Component); - exports['default'] = (0, _bootstrapUtils.bsClass)('input-group-addon', InputGroupAddon); - module.exports = exports['default']; - /***/ }, - /* 176 */ - /***/ function(module, exports, __webpack_require__) { +var FormControlStatic_propTypes = { + componentClass: elementType_default.a +}; - 'use strict'; +var FormControlStatic_defaultProps = { + componentClass: 'p' +}; - exports.__esModule = true; +var FormControlStatic_FormControlStatic = function (_React$Component) { + inherits_default()(FormControlStatic, _React$Component); - var _extends2 = __webpack_require__(2); + function FormControlStatic() { + classCallCheck_default()(this, FormControlStatic); - var _extends3 = _interopRequireDefault(_extends2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _objectWithoutProperties2 = __webpack_require__(87); + FormControlStatic.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classCallCheck2 = __webpack_require__(40); + var classes = getClassSet(bsProps); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _possibleConstructorReturn2 = __webpack_require__(41); + return FormControlStatic; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +FormControlStatic_FormControlStatic.propTypes = FormControlStatic_propTypes; +FormControlStatic_FormControlStatic.defaultProps = FormControlStatic_defaultProps; - var _inherits2 = __webpack_require__(77); +/* harmony default export */ var src_FormControlStatic = (bootstrapUtils_bsClass('form-control-static', FormControlStatic_FormControlStatic)); +// CONCATENATED MODULE: ./src/FormControl.js - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var InputGroupButton = function (_React$Component) { - (0, _inherits3['default'])(InputGroupButton, _React$Component); - function InputGroupButton() { - (0, _classCallCheck3['default'])(this, InputGroupButton); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - InputGroupButton.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement('span', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return InputGroupButton; - }(_react2['default'].Component); +var FormControl_propTypes = { + componentClass: elementType_default.a, + /** + * Only relevant if `componentClass` is `'input'`. + */ + type: prop_types_default.a.string, + /** + * Uses `controlId` from `` if not explicitly specified. + */ + id: prop_types_default.a.string, + /** + * Attaches a ref to the `` element. Only functions can be used here. + * + * ```js + * { this.input = ref; }} /> + * ``` + */ + inputRef: prop_types_default.a.func +}; - exports['default'] = (0, _bootstrapUtils.bsClass)('input-group-btn', InputGroupButton); - module.exports = exports['default']; +var FormControl_defaultProps = { + componentClass: 'input' +}; - /***/ }, - /* 177 */ - /***/ function(module, exports, __webpack_require__) { +var FormControl_contextTypes = { + $bs_formGroup: prop_types_default.a.object +}; - 'use strict'; +var FormControl_FormControl = function (_React$Component) { + inherits_default()(FormControl, _React$Component); - exports.__esModule = true; + function FormControl() { + classCallCheck_default()(this, FormControl); - var _extends2 = __webpack_require__(2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _extends3 = _interopRequireDefault(_extends2); + FormControl.prototype.render = function render() { + var formGroup = this.context.$bs_formGroup; + var controlId = formGroup && formGroup.controlId; - var _objectWithoutProperties2 = __webpack_require__(87); + var _props = this.props, + Component = _props.componentClass, + type = _props.type, + _props$id = _props.id, + id = _props$id === undefined ? controlId : _props$id, + inputRef = _props.inputRef, + className = _props.className, + bsSize = _props.bsSize, + props = objectWithoutProperties_default()(_props, ['componentClass', 'type', 'id', 'inputRef', 'className', 'bsSize']); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classCallCheck2 = __webpack_require__(40); + undefined !== 'production' ? warning_browser_default()(controlId == null || id === controlId, '`controlId` is ignored on `` when `id` is specified.') : void 0; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + // input[type="file"] should not have .form-control. + var classes = void 0; + if (type !== 'file') { + classes = getClassSet(bsProps); + } - var _possibleConstructorReturn2 = __webpack_require__(41); + // 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; + } - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { + type: type, + id: id, + ref: inputRef, + className: classnames_default()(className, classes) + })); + }; - var _inherits2 = __webpack_require__(77); + return FormControl; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _inherits3 = _interopRequireDefault(_inherits2); +FormControl_FormControl.propTypes = FormControl_propTypes; +FormControl_FormControl.defaultProps = FormControl_defaultProps; +FormControl_FormControl.contextTypes = FormControl_contextTypes; - var _react = __webpack_require__(85); +FormControl_FormControl.Feedback = src_FormControlFeedback; +FormControl_FormControl.Static = src_FormControlStatic; - var _react2 = _interopRequireDefault(_react); +/* harmony default export */ var src_FormControl = (bootstrapUtils_bsClass('form-control', bsSizes([Size.SMALL, Size.LARGE], FormControl_FormControl))); +// CONCATENATED MODULE: ./src/FormGroup.js - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _elementType = __webpack_require__(106); - var _elementType2 = _interopRequireDefault(_elementType); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - componentClass: _elementType2['default'] - }; - var defaultProps = { - componentClass: 'div' - }; - var Jumbotron = function (_React$Component) { - (0, _inherits3['default'])(Jumbotron, _React$Component); - function Jumbotron() { - (0, _classCallCheck3['default'])(this, Jumbotron); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - Jumbotron.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; +var FormGroup_propTypes = { + /** + * Sets `id` on `` and `htmlFor` on ``. + */ + controlId: prop_types_default.a.string, + validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]) +}; +var FormGroup_childContextTypes = { + $bs_formGroup: prop_types_default.a.object.isRequired +}; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); +var FormGroup_FormGroup = function (_React$Component) { + inherits_default()(FormGroup, _React$Component); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; + function FormGroup() { + classCallCheck_default()(this, FormGroup); - return Jumbotron; - }(_react2['default'].Component); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - Jumbotron.propTypes = propTypes; - Jumbotron.defaultProps = defaultProps; + FormGroup.prototype.getChildContext = function getChildContext() { + var _props = this.props, + controlId = _props.controlId, + validationState = _props.validationState; - exports['default'] = (0, _bootstrapUtils.bsClass)('jumbotron', Jumbotron); - module.exports = exports['default']; - /***/ }, - /* 178 */ - /***/ function(module, exports, __webpack_require__) { + return { + $bs_formGroup: { + controlId: controlId, + validationState: validationState + } + }; + }; - 'use strict'; + FormGroup.prototype.hasFeedback = function hasFeedback(children) { + var _this2 = this; - exports.__esModule = true; + return ValidComponentChildren.some(children, function (child) { + return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children); + }); + }; - var _values = __webpack_require__(99); + FormGroup.prototype.render = function render() { + var _props2 = this.props, + validationState = _props2.validationState, + className = _props2.className, + children = _props2.children, + props = objectWithoutProperties_default()(_props2, ['validationState', 'className', 'children']); - var _values2 = _interopRequireDefault(_values); + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['controlId']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; - var _extends2 = __webpack_require__(2); + var classes = extends_default()({}, getClassSet(bsProps), { + 'has-feedback': this.hasFeedback(children) + }); + if (validationState) { + classes['has-' + validationState] = true; + } - var _extends3 = _interopRequireDefault(_extends2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + children + ); + }; - var _objectWithoutProperties2 = __webpack_require__(87); + return FormGroup; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +FormGroup_FormGroup.propTypes = FormGroup_propTypes; +FormGroup_FormGroup.childContextTypes = FormGroup_childContextTypes; - var _classCallCheck2 = __webpack_require__(40); +/* harmony default export */ var src_FormGroup = (bootstrapUtils_bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup_FormGroup))); +// CONCATENATED MODULE: ./src/Grid.js - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - var _StyleConfig = __webpack_require__(95); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +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.a.bool, + /** + * You can use a custom element for this component + */ + componentClass: elementType_default.a +}; - var Label = function (_React$Component) { - (0, _inherits3['default'])(Label, _React$Component); +var Grid_defaultProps = { + componentClass: 'div', + fluid: false +}; - function Label() { - (0, _classCallCheck3['default'])(this, Label); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +var Grid_Grid = function (_React$Component) { + inherits_default()(Grid, _React$Component); - Label.prototype.hasContent = function hasContent(children) { - var result = false; + function Grid() { + classCallCheck_default()(this, Grid); - _react2['default'].Children.forEach(children, function (child) { - if (result) { - return; - } + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - if (child || child === 0) { - result = true; - } - }); + Grid.prototype.render = function render() { + var _props = this.props, + fluid = _props.fluid, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['fluid', 'componentClass', 'className']); - return result; - }; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - Label.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className', 'children']); + var classes = prefix(bsProps, fluid && 'fluid'); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + return Grid; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); +Grid_Grid.propTypes = Grid_propTypes; +Grid_Grid.defaultProps = Grid_defaultProps; - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { +/* harmony default export */ var src_Grid = (bootstrapUtils_bsClass('container', Grid_Grid)); +// CONCATENATED MODULE: ./src/HelpBlock.js - // Hack for collapsing on IE8. - hidden: !this.hasContent(children) - }); - return _react2['default'].createElement( - 'span', - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - }), - children - ); - }; - return Label; - }(_react2['default'].Component); - exports['default'] = (0, _bootstrapUtils.bsClass)('label', (0, _bootstrapUtils.bsStyles)([].concat((0, _values2['default'])(_StyleConfig.State), [_StyleConfig.Style.DEFAULT, _StyleConfig.Style.PRIMARY]), _StyleConfig.Style.DEFAULT, Label)); - module.exports = exports['default']; - /***/ }, - /* 179 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); +var HelpBlock_HelpBlock = function (_React$Component) { + inherits_default()(HelpBlock, _React$Component); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + function HelpBlock() { + classCallCheck_default()(this, HelpBlock); - var _classCallCheck2 = __webpack_require__(40); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + HelpBlock.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - var _possibleConstructorReturn2 = __webpack_require__(41); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var classes = getClassSet(bsProps); - var _inherits2 = __webpack_require__(77); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _inherits3 = _interopRequireDefault(_inherits2); + return HelpBlock; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _classnames = __webpack_require__(88); +/* harmony default export */ var src_HelpBlock = (bootstrapUtils_bsClass('help-block', HelpBlock_HelpBlock)); +// CONCATENATED MODULE: ./src/Image.js - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _elementType = __webpack_require__(106); - var _elementType2 = _interopRequireDefault(_elementType); - var _ListGroupItem = __webpack_require__(180); - var _ListGroupItem2 = _interopRequireDefault(_ListGroupItem); - var _bootstrapUtils = __webpack_require__(89); - var _ValidComponentChildren = __webpack_require__(97); - var _ValidComponentChildren2 = _interopRequireDefault(_ValidComponentChildren); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var Image_propTypes = { + /** + * Sets image as responsive image + */ + responsive: prop_types_default.a.bool, - var 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: _elementType2['default'] - }; + /** + * Sets image shape as rounded + */ + rounded: prop_types_default.a.bool, - function getDefaultComponent(children) { - if (!children) { - // FIXME: This is the old behavior. Is this right? - return 'div'; - } + /** + * Sets image shape as circle + */ + circle: prop_types_default.a.bool, - if (_ValidComponentChildren2['default'].some(children, function (child) { - return child.type !== _ListGroupItem2['default'] || child.props.href || child.props.onClick; - })) { - return 'div'; - } + /** + * Sets image shape as thumbnail + */ + thumbnail: prop_types_default.a.bool +}; - return 'ul'; - } +var Image_defaultProps = { + responsive: false, + rounded: false, + circle: false, + thumbnail: false +}; - var ListGroup = function (_React$Component) { - (0, _inherits3['default'])(ListGroup, _React$Component); +var Image_Image = function (_React$Component) { + inherits_default()(Image, _React$Component); - function ListGroup() { - (0, _classCallCheck3['default'])(this, ListGroup); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + function Image() { + classCallCheck_default()(this, Image); - ListGroup.prototype.render = function render() { - var _props = this.props; - var children = _props.children; - var _props$componentClass = _props.componentClass; - var Component = _props$componentClass === undefined ? getDefaultComponent(children) : _props$componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['children', 'componentClass', 'className']); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + Image.prototype.render = function render() { + var _classes; - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + var _props = this.props, + responsive = _props.responsive, + rounded = _props.rounded, + circle = _props.circle, + thumbnail = _props.thumbnail, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['responsive', 'rounded', 'circle', 'thumbnail', 'className']); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); + var classes = (_classes = {}, _classes[prefix(bsProps, 'responsive')] = responsive, _classes[prefix(bsProps, 'rounded')] = rounded, _classes[prefix(bsProps, 'circle')] = circle, _classes[prefix(bsProps, 'thumbnail')] = thumbnail, _classes); - var useListItem = Component === 'ul' && _ValidComponentChildren2['default'].every(children, function (child) { - return child.type === _ListGroupItem2['default']; - }); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('img', extends_default()({}, elementProps, { + className: classnames_default()(className, classes) + })); + }; - return _react2['default'].createElement( - Component, - (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - }), - useListItem ? _ValidComponentChildren2['default'].map(children, function (child) { - return (0, _react.cloneElement)(child, { listItem: true }); - }) : children - ); - }; + return Image; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - return ListGroup; - }(_react2['default'].Component); +Image_Image.propTypes = Image_propTypes; +Image_Image.defaultProps = Image_defaultProps; - ListGroup.propTypes = propTypes; +/* harmony default export */ var src_Image = (bootstrapUtils_bsClass('img', Image_Image)); +// CONCATENATED MODULE: ./src/InputGroupAddon.js - exports['default'] = (0, _bootstrapUtils.bsClass)('list-group', ListGroup); - module.exports = exports['default']; - /***/ }, - /* 180 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _values = __webpack_require__(99); - var _values2 = _interopRequireDefault(_values); - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var InputGroupAddon_InputGroupAddon = function (_React$Component) { + inherits_default()(InputGroupAddon, _React$Component); - var _classCallCheck2 = __webpack_require__(40); + function InputGroupAddon() { + classCallCheck_default()(this, InputGroupAddon); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _possibleConstructorReturn2 = __webpack_require__(41); + InputGroupAddon.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _inherits2 = __webpack_require__(77); + var classes = getClassSet(bsProps); - var _inherits3 = _interopRequireDefault(_inherits2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _classnames = __webpack_require__(88); + return InputGroupAddon; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _classnames2 = _interopRequireDefault(_classnames); +/* harmony default export */ var src_InputGroupAddon = (bootstrapUtils_bsClass('input-group-addon', InputGroupAddon_InputGroupAddon)); +// CONCATENATED MODULE: ./src/InputGroupButton.js - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _bootstrapUtils = __webpack_require__(89); - var _StyleConfig = __webpack_require__(95); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - active: _react2['default'].PropTypes.any, - disabled: _react2['default'].PropTypes.any, - header: _react2['default'].PropTypes.node, - listItem: _react2['default'].PropTypes.bool, - onClick: _react2['default'].PropTypes.func, - href: _react2['default'].PropTypes.string, - type: _react2['default'].PropTypes.string - }; - var defaultProps = { - listItem: false - }; - var ListGroupItem = function (_React$Component) { - (0, _inherits3['default'])(ListGroupItem, _React$Component); - function ListGroupItem() { - (0, _classCallCheck3['default'])(this, ListGroupItem); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - ListGroupItem.prototype.renderHeader = function renderHeader(header, headingClassName) { - if (_react2['default'].isValidElement(header)) { - return (0, _react.cloneElement)(header, { - className: (0, _classnames2['default'])(header.props.className, headingClassName) - }); - } +var InputGroupButton_InputGroupButton = function (_React$Component) { + inherits_default()(InputGroupButton, _React$Component); - return _react2['default'].createElement( - 'h4', - { className: headingClassName }, - header - ); - }; - - ListGroupItem.prototype.render = function render() { - var _props = this.props; - var active = _props.active; - var disabled = _props.disabled; - var className = _props.className; - var header = _props.header; - var listItem = _props.listItem; - var children = _props.children; - var props = (0, _objectWithoutProperties3['default'])(_props, ['active', 'disabled', 'className', 'header', 'listItem', 'children']); - - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - - - var classes = (0, _extends3['default'])({}, (0, _bootstrapUtils.getClassSet)(bsProps), { - active: active, - disabled: disabled - }); - - var Component = void 0; - - if (elementProps.href) { - Component = 'a'; - } else if (elementProps.onClick) { - Component = 'button'; - elementProps.type = elementProps.type || 'button'; - } else if (listItem) { - Component = 'li'; - } else { - Component = 'span'; - } + function InputGroupButton() { + classCallCheck_default()(this, InputGroupButton); - elementProps.className = (0, _classnames2['default'])(className, classes); - - // TODO: Deprecate `header` prop. - if (header) { - return _react2['default'].createElement( - Component, - elementProps, - this.renderHeader(header, (0, _bootstrapUtils.prefix)(bsProps, 'heading')), - _react2['default'].createElement( - 'p', - { className: (0, _bootstrapUtils.prefix)(bsProps, 'text') }, - children - ) - ); - } + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - return _react2['default'].createElement( - Component, - elementProps, - children - ); - }; + InputGroupButton.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - return ListGroupItem; - }(_react2['default'].Component); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - ListGroupItem.propTypes = propTypes; - ListGroupItem.defaultProps = defaultProps; + var classes = getClassSet(bsProps); - exports['default'] = (0, _bootstrapUtils.bsClass)('list-group-item', (0, _bootstrapUtils.bsStyles)((0, _values2['default'])(_StyleConfig.State), ListGroupItem)); - module.exports = exports['default']; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - /***/ }, - /* 181 */ - /***/ function(module, exports, __webpack_require__) { + return InputGroupButton; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - 'use strict'; +/* harmony default export */ var src_InputGroupButton = (bootstrapUtils_bsClass('input-group-btn', InputGroupButton_InputGroupButton)); +// CONCATENATED MODULE: ./src/InputGroup.js - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); +var InputGroup_InputGroup = function (_React$Component) { + inherits_default()(InputGroup, _React$Component); - var _react = __webpack_require__(85); + function InputGroup() { + classCallCheck_default()(this, InputGroup); - var _react2 = _interopRequireDefault(_react); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _elementType = __webpack_require__(106); + InputGroup.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - var _elementType2 = _interopRequireDefault(_elementType); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _MediaBody = __webpack_require__(182); + var classes = getClassSet(bsProps); - var _MediaBody2 = _interopRequireDefault(_MediaBody); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('span', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _MediaHeading = __webpack_require__(183); + return InputGroup; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _MediaHeading2 = _interopRequireDefault(_MediaHeading); +InputGroup_InputGroup.Addon = src_InputGroupAddon; +InputGroup_InputGroup.Button = src_InputGroupButton; - var _MediaLeft = __webpack_require__(184); +/* harmony default export */ var src_InputGroup = (bootstrapUtils_bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup_InputGroup))); +// CONCATENATED MODULE: ./src/Jumbotron.js - var _MediaLeft2 = _interopRequireDefault(_MediaLeft); - var _MediaList = __webpack_require__(185); - var _MediaList2 = _interopRequireDefault(_MediaList); - var _MediaListItem = __webpack_require__(186); - var _MediaListItem2 = _interopRequireDefault(_MediaListItem); - var _MediaRight = __webpack_require__(187); - var _MediaRight2 = _interopRequireDefault(_MediaRight); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - componentClass: _elementType2['default'] - }; - var defaultProps = { - componentClass: 'div' - }; +var Jumbotron_propTypes = { + componentClass: elementType_default.a +}; - var Media = function (_React$Component) { - (0, _inherits3['default'])(Media, _React$Component); +var Jumbotron_defaultProps = { + componentClass: 'div' +}; - function Media() { - (0, _classCallCheck3['default'])(this, Media); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +var Jumbotron_Jumbotron = function (_React$Component) { + inherits_default()(Jumbotron, _React$Component); - Media.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); + function Jumbotron() { + classCallCheck_default()(this, Jumbotron); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + Jumbotron.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); + var classes = getClassSet(bsProps); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - return Media; - }(_react2['default'].Component); + return Jumbotron; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - Media.propTypes = propTypes; - Media.defaultProps = defaultProps; +Jumbotron_Jumbotron.propTypes = Jumbotron_propTypes; +Jumbotron_Jumbotron.defaultProps = Jumbotron_defaultProps; - Media.Heading = _MediaHeading2['default']; - Media.Body = _MediaBody2['default']; - Media.Left = _MediaLeft2['default']; - Media.Right = _MediaRight2['default']; - Media.List = _MediaList2['default']; - Media.ListItem = _MediaListItem2['default']; +/* harmony default export */ var src_Jumbotron = (bootstrapUtils_bsClass('jumbotron', Jumbotron_Jumbotron)); +// CONCATENATED MODULE: ./src/Label.js - exports['default'] = (0, _bootstrapUtils.bsClass)('media', Media); - module.exports = exports['default']; - /***/ }, - /* 182 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +var Label_Label = function (_React$Component) { + inherits_default()(Label, _React$Component); - var _inherits2 = __webpack_require__(77); + function Label() { + classCallCheck_default()(this, Label); - var _inherits3 = _interopRequireDefault(_inherits2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _classnames = __webpack_require__(88); + Label.prototype.hasContent = function hasContent(children) { + var result = false; - var _classnames2 = _interopRequireDefault(_classnames); + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Children.forEach(children, function (child) { + if (result) { + return; + } - var _react = __webpack_require__(85); + if (child || child === 0) { + result = true; + } + }); - var _react2 = _interopRequireDefault(_react); + return result; + }; - var _elementType = __webpack_require__(106); + Label.prototype.render = function render() { + var _props = this.props, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['className', 'children']); - var _elementType2 = _interopRequireDefault(_elementType); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _bootstrapUtils = __webpack_require__(89); + var classes = extends_default()({}, getClassSet(bsProps), { - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + // Hack for collapsing on IE8. + hidden: !this.hasContent(children) + }); - var propTypes = { - componentClass: _elementType2['default'] - }; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'span', + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + children + ); + }; - var defaultProps = { - componentClass: 'div' - }; + return Label; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var MediaBody = function (_React$Component) { - (0, _inherits3['default'])(MediaBody, _React$Component); +/* harmony default export */ var src_Label = (bootstrapUtils_bsClass('label', bsStyles([].concat(values_default()(State), [Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Label_Label))); +// CONCATENATED MODULE: ./src/ListGroupItem.js - function MediaBody() { - (0, _classCallCheck3['default'])(this, MediaBody); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - MediaBody.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return MediaBody; - }(_react2['default'].Component); - MediaBody.propTypes = propTypes; - MediaBody.defaultProps = defaultProps; - exports['default'] = (0, _bootstrapUtils.bsClass)('media-body', MediaBody); - module.exports = exports['default']; - /***/ }, - /* 183 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; +var ListGroupItem_propTypes = { + active: prop_types_default.a.any, + disabled: prop_types_default.a.any, + header: prop_types_default.a.node, + listItem: prop_types_default.a.bool, + onClick: prop_types_default.a.func, + href: prop_types_default.a.string, + type: prop_types_default.a.string +}; - var _extends2 = __webpack_require__(2); +var ListGroupItem_defaultProps = { + listItem: false +}; - var _extends3 = _interopRequireDefault(_extends2); +var ListGroupItem_ListGroupItem = function (_React$Component) { + inherits_default()(ListGroupItem, _React$Component); - var _objectWithoutProperties2 = __webpack_require__(87); + function ListGroupItem() { + classCallCheck_default()(this, ListGroupItem); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _classCallCheck2 = __webpack_require__(40); + ListGroupItem.prototype.renderHeader = function renderHeader(header, headingClassName) { + if (external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.isValidElement(header)) { + return Object(external___root___React___commonjs2___react___commonjs___react___amd___react__["cloneElement"])(header, { + className: classnames_default()(header.props.className, headingClassName) + }); + } - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'h4', + { className: headingClassName }, + header + ); + }; - var _possibleConstructorReturn2 = __webpack_require__(41); + ListGroupItem.prototype.render = function render() { + var _props = this.props, + active = _props.active, + disabled = _props.disabled, + className = _props.className, + header = _props.header, + listItem = _props.listItem, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['active', 'disabled', 'className', 'header', 'listItem', 'children']); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _inherits2 = __webpack_require__(77); + var classes = extends_default()({}, getClassSet(bsProps), { + active: active, + disabled: disabled + }); - var _inherits3 = _interopRequireDefault(_inherits2); + var Component = void 0; - var _classnames = __webpack_require__(88); + if (elementProps.href) { + Component = 'a'; + } else if (elementProps.onClick) { + Component = 'button'; + elementProps.type = elementProps.type || 'button'; + } else if (listItem) { + Component = 'li'; + } else { + Component = 'span'; + } - var _classnames2 = _interopRequireDefault(_classnames); + elementProps.className = classnames_default()(className, classes); - var _react = __webpack_require__(85); + // TODO: Deprecate `header` prop. + if (header) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Component, + elementProps, + this.renderHeader(header, prefix(bsProps, 'heading')), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'p', + { className: prefix(bsProps, 'text') }, + children + ) + ); + } - var _react2 = _interopRequireDefault(_react); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Component, + elementProps, + children + ); + }; - var _elementType = __webpack_require__(106); + return ListGroupItem; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _elementType2 = _interopRequireDefault(_elementType); +ListGroupItem_ListGroupItem.propTypes = ListGroupItem_propTypes; +ListGroupItem_ListGroupItem.defaultProps = ListGroupItem_defaultProps; - var _bootstrapUtils = __webpack_require__(89); +/* harmony default export */ var src_ListGroupItem = (bootstrapUtils_bsClass('list-group-item', bsStyles(values_default()(State), ListGroupItem_ListGroupItem))); +// CONCATENATED MODULE: ./src/ListGroup.js - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - componentClass: _elementType2['default'] - }; - var defaultProps = { - componentClass: 'h4' - }; - var MediaHeading = function (_React$Component) { - (0, _inherits3['default'])(MediaHeading, _React$Component); - function MediaHeading() { - (0, _classCallCheck3['default'])(this, MediaHeading); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - MediaHeading.prototype.render = function render() { - var _props = this.props; - var Component = _props.componentClass; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['componentClass', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement(Component, (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return MediaHeading; - }(_react2['default'].Component); - MediaHeading.propTypes = propTypes; - MediaHeading.defaultProps = defaultProps; +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.a +}; - exports['default'] = (0, _bootstrapUtils.bsClass)('media-heading', MediaHeading); - module.exports = exports['default']; +function getDefaultComponent(children) { + if (!children) { + // FIXME: This is the old behavior. Is this right? + return 'div'; + } - /***/ }, - /* 184 */ - /***/ function(module, exports, __webpack_require__) { + if (ValidComponentChildren.some(children, function (child) { + return child.type !== src_ListGroupItem || child.props.href || child.props.onClick; + })) { + return 'div'; + } - 'use strict'; + return 'ul'; +} - exports.__esModule = true; +var ListGroup_ListGroup = function (_React$Component) { + inherits_default()(ListGroup, _React$Component); - var _extends2 = __webpack_require__(2); + function ListGroup() { + classCallCheck_default()(this, ListGroup); - var _extends3 = _interopRequireDefault(_extends2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _objectWithoutProperties2 = __webpack_require__(87); + ListGroup.prototype.render = function render() { + var _props = this.props, + children = _props.children, + _props$componentClass = _props.componentClass, + Component = _props$componentClass === undefined ? getDefaultComponent(children) : _props$componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['children', 'componentClass', 'className']); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _classCallCheck2 = __webpack_require__(40); + var classes = getClassSet(bsProps); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + var useListItem = Component === 'ul' && ValidComponentChildren.every(children, function (child) { + return child.type === src_ListGroupItem; + }); - var _possibleConstructorReturn2 = __webpack_require__(41); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Component, + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + useListItem ? ValidComponentChildren.map(children, function (child) { + return Object(external___root___React___commonjs2___react___commonjs___react___amd___react__["cloneElement"])(child, { listItem: true }); + }) : children + ); + }; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + return ListGroup; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _inherits2 = __webpack_require__(77); +ListGroup_ListGroup.propTypes = ListGroup_propTypes; - var _inherits3 = _interopRequireDefault(_inherits2); +/* harmony default export */ var src_ListGroup = (bootstrapUtils_bsClass('list-group', ListGroup_ListGroup)); +// CONCATENATED MODULE: ./src/MediaBody.js - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _Media = __webpack_require__(181); - var _Media2 = _interopRequireDefault(_Media); - var _bootstrapUtils = __webpack_require__(89); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - /** - * Align the media to the top, middle, or bottom of the media object. - */ - align: _react2['default'].PropTypes.oneOf(['top', 'middle', 'bottom']) - }; - var MediaLeft = function (_React$Component) { - (0, _inherits3['default'])(MediaLeft, _React$Component); - function MediaLeft() { - (0, _classCallCheck3['default'])(this, MediaLeft); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } - MediaLeft.prototype.render = function render() { - var _props = this.props; - var align = _props.align; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['align', 'className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); +var MediaBody_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default.a.oneOf(['top', 'middle', 'bottom']), - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + componentClass: elementType_default.a +}; +var MediaBody_defaultProps = { + componentClass: 'div' +}; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); +var MediaBody_MediaBody = function (_React$Component) { + inherits_default()(MediaBody, _React$Component); - if (align) { - // The class is e.g. `media-top`, not `media-left-top`. - classes[(0, _bootstrapUtils.prefix)(_Media2['default'].defaultProps, align)] = true; - } + function MediaBody() { + classCallCheck_default()(this, MediaBody); - return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - return MediaLeft; - }(_react2['default'].Component); + MediaBody.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + align = _props.align, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'align', 'className']); - MediaLeft.propTypes = propTypes; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - exports['default'] = (0, _bootstrapUtils.bsClass)('media-left', MediaLeft); - module.exports = exports['default']; + var classes = getClassSet(bsProps); - /***/ }, - /* 185 */ - /***/ function(module, exports, __webpack_require__) { + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - 'use strict'; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - exports.__esModule = true; + return MediaBody; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _extends2 = __webpack_require__(2); +MediaBody_MediaBody.propTypes = MediaBody_propTypes; +MediaBody_MediaBody.defaultProps = MediaBody_defaultProps; - var _extends3 = _interopRequireDefault(_extends2); +/* harmony default export */ var src_MediaBody = (bootstrapUtils_bsClass('media-body', MediaBody_MediaBody)); +// CONCATENATED MODULE: ./src/MediaHeading.js - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); +var MediaHeading_propTypes = { + componentClass: elementType_default.a +}; - var _react2 = _interopRequireDefault(_react); +var MediaHeading_defaultProps = { + componentClass: 'h4' +}; - var _bootstrapUtils = __webpack_require__(89); +var MediaHeading_MediaHeading = function (_React$Component) { + inherits_default()(MediaHeading, _React$Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + function MediaHeading() { + classCallCheck_default()(this, MediaHeading); - var MediaList = function (_React$Component) { - (0, _inherits3['default'])(MediaList, _React$Component); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - function MediaList() { - (0, _classCallCheck3['default'])(this, MediaList); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + MediaHeading.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - MediaList.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + var classes = getClassSet(bsProps); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; + return MediaHeading; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); +MediaHeading_MediaHeading.propTypes = MediaHeading_propTypes; +MediaHeading_MediaHeading.defaultProps = MediaHeading_defaultProps; - return _react2['default'].createElement('ul', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; +/* harmony default export */ var src_MediaHeading = (bootstrapUtils_bsClass('media-heading', MediaHeading_MediaHeading)); +// CONCATENATED MODULE: ./src/MediaLeft.js - return MediaList; - }(_react2['default'].Component); - exports['default'] = (0, _bootstrapUtils.bsClass)('media-list', MediaList); - module.exports = exports['default']; - /***/ }, - /* 186 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); +var MediaLeft_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default.a.oneOf(['top', 'middle', 'bottom']) +}; - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); +var MediaLeft_MediaLeft = function (_React$Component) { + inherits_default()(MediaLeft, _React$Component); - var _inherits2 = __webpack_require__(77); + function MediaLeft() { + classCallCheck_default()(this, MediaLeft); - var _inherits3 = _interopRequireDefault(_inherits2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _classnames = __webpack_require__(88); + MediaLeft.prototype.render = function render() { + var _props = this.props, + align = _props.align, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['align', 'className']); - var _classnames2 = _interopRequireDefault(_classnames); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _react = __webpack_require__(85); + var classes = getClassSet(bsProps); - var _react2 = _interopRequireDefault(_react); + if (align) { + // The class is e.g. `media-top`, not `media-left-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - var _bootstrapUtils = __webpack_require__(89); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('div', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + return MediaLeft; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var MediaListItem = function (_React$Component) { - (0, _inherits3['default'])(MediaListItem, _React$Component); +MediaLeft_MediaLeft.propTypes = MediaLeft_propTypes; - function MediaListItem() { - (0, _classCallCheck3['default'])(this, MediaListItem); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } +/* harmony default export */ var src_MediaLeft = (bootstrapUtils_bsClass('media-left', MediaLeft_MediaLeft)); +// CONCATENATED MODULE: ./src/MediaList.js - MediaListItem.prototype.render = function render() { - var _props = this.props; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['className']); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return MediaListItem; - }(_react2['default'].Component); - exports['default'] = (0, _bootstrapUtils.bsClass)('media', MediaListItem); - module.exports = exports['default']; - /***/ }, - /* 187 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; +var MediaList_MediaList = function (_React$Component) { + inherits_default()(MediaList, _React$Component); - exports.__esModule = true; + function MediaList() { + classCallCheck_default()(this, MediaList); - var _extends2 = __webpack_require__(2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _extends3 = _interopRequireDefault(_extends2); + MediaList.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - var _objectWithoutProperties2 = __webpack_require__(87); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); + var classes = getClassSet(bsProps); - var _classCallCheck2 = __webpack_require__(40); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('ul', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return MediaList; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _possibleConstructorReturn2 = __webpack_require__(41); +/* harmony default export */ var src_MediaList = (bootstrapUtils_bsClass('media-list', MediaList_MediaList)); +// CONCATENATED MODULE: ./src/MediaListItem.js - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _classnames = __webpack_require__(88); - var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _Media = __webpack_require__(181); - var _Media2 = _interopRequireDefault(_Media); - var _bootstrapUtils = __webpack_require__(89); +var MediaListItem_MediaListItem = function (_React$Component) { + inherits_default()(MediaListItem, _React$Component); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + function MediaListItem() { + classCallCheck_default()(this, MediaListItem); - var propTypes = { - /** - * Align the media to the top, middle, or bottom of the media object. - */ - align: _react2['default'].PropTypes.oneOf(['top', 'middle', 'bottom']) - }; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var MediaRight = function (_React$Component) { - (0, _inherits3['default'])(MediaRight, _React$Component); + MediaListItem.prototype.render = function render() { + var _props = this.props, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['className']); - function MediaRight() { - (0, _classCallCheck3['default'])(this, MediaRight); - return (0, _possibleConstructorReturn3['default'])(this, _React$Component.apply(this, arguments)); - } + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - MediaRight.prototype.render = function render() { - var _props = this.props; - var align = _props.align; - var className = _props.className; - var props = (0, _objectWithoutProperties3['default'])(_props, ['align', 'className']); + var classes = getClassSet(bsProps); - var _splitBsProps = (0, _bootstrapUtils.splitBsProps)(props); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('li', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var bsProps = _splitBsProps[0]; - var elementProps = _splitBsProps[1]; + return MediaListItem; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); +/* harmony default export */ var src_MediaListItem = (bootstrapUtils_bsClass('media', MediaListItem_MediaListItem)); +// CONCATENATED MODULE: ./src/MediaRight.js - var classes = (0, _bootstrapUtils.getClassSet)(bsProps); - if (align) { - // The class is e.g. `media-top`, not `media-right-top`. - classes[(0, _bootstrapUtils.prefix)(_Media2['default'].defaultProps, align)] = true; - } - return _react2['default'].createElement('div', (0, _extends3['default'])({}, elementProps, { - className: (0, _classnames2['default'])(className, classes) - })); - }; - return MediaRight; - }(_react2['default'].Component); - MediaRight.propTypes = propTypes; - exports['default'] = (0, _bootstrapUtils.bsClass)('media-right', MediaRight); - module.exports = exports['default']; - /***/ }, - /* 188 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _extends2 = __webpack_require__(2); - var _extends3 = _interopRequireDefault(_extends2); - var _objectWithoutProperties2 = __webpack_require__(87); +var MediaRight_propTypes = { + /** + * Align the media to the top, middle, or bottom of the media object. + */ + align: prop_types_default.a.oneOf(['top', 'middle', 'bottom']) +}; - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); +var MediaRight_MediaRight = function (_React$Component) { + inherits_default()(MediaRight, _React$Component); - var _classCallCheck2 = __webpack_require__(40); + function MediaRight() { + classCallCheck_default()(this, MediaRight); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _possibleConstructorReturn2 = __webpack_require__(41); + MediaRight.prototype.render = function render() { + var _props = this.props, + align = _props.align, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['align', 'className']); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _inherits2 = __webpack_require__(77); + var classes = getClassSet(bsProps); - var _inherits3 = _interopRequireDefault(_inherits2); + if (align) { + // The class is e.g. `media-top`, not `media-right-top`. + classes[prefix(src_Media.defaultProps, align)] = true; + } - var _classnames = __webpack_require__(88); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('div', extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _classnames2 = _interopRequireDefault(_classnames); + return MediaRight; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _react = __webpack_require__(85); +MediaRight_MediaRight.propTypes = MediaRight_propTypes; - var _react2 = _interopRequireDefault(_react); +/* harmony default export */ var src_MediaRight = (bootstrapUtils_bsClass('media-right', MediaRight_MediaRight)); +// CONCATENATED MODULE: ./src/Media.js - var _all = __webpack_require__(110); - var _all2 = _interopRequireDefault(_all); - var _SafeAnchor = __webpack_require__(105); - var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); - var _bootstrapUtils = __webpack_require__(89); - var _createChainedFunction = __webpack_require__(96); - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - var propTypes = { - /** - * Highlight the menu item as active. - */ - active: _react2['default'].PropTypes.bool, - /** - * Disable the menu item, making it unselectable. - */ - disabled: _react2['default'].PropTypes.bool, - /** - * Styles the menu item as a horizontal rule, providing visual separation between - * groups of menu items. - */ - divider: (0, _all2['default'])(_react2['default'].PropTypes.bool, function (_ref) { - var divider = _ref.divider; - var children = _ref.children; - return divider && children ? new Error('Children will not be rendered for dividers') : null; - }), - /** - * Value passed to the `onSelect` handler, useful for identifying the selected menu item. - */ - eventKey: _react2['default'].PropTypes.any, - /** - * Styles the menu item as a header label, useful for describing a group of menu items. - */ - header: _react2['default'].PropTypes.bool, - /** - * HTML `href` attribute corresponding to `a.href`. - */ - href: _react2['default'].PropTypes.string, - /** - * Callback fired when the menu item is clicked. - */ - onClick: _react2['default'].PropTypes.func, - /** - * Callback fired when the menu item is selected. - * - * ```js - * (eventKey: any, event: Object) => any - * ``` - */ - onSelect: _react2['default'].PropTypes.func - }; - var defaultProps = { - divider: false, - disabled: false, - header: false - }; +var Media_propTypes = { + componentClass: elementType_default.a +}; - var MenuItem = function (_React$Component) { - (0, _inherits3['default'])(MenuItem, _React$Component); +var Media_defaultProps = { + componentClass: 'div' +}; - function MenuItem(props, context) { - (0, _classCallCheck3['default'])(this, MenuItem); +var Media_Media = function (_React$Component) { + inherits_default()(Media, _React$Component); - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); + function Media() { + classCallCheck_default()(this, Media); - _this.handleClick = _this.handleClick.bind(_this); - return _this; - } + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - MenuItem.prototype.handleClick = function handleClick(event) { - var _props = this.props; - var href = _props.href; - var disabled = _props.disabled; - var onSelect = _props.onSelect; - var eventKey = _props.eventKey; + Media.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - if (!href || disabled) { - event.preventDefault(); - } + var classes = getClassSet(bsProps); - if (disabled) { - return; - } + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - if (onSelect) { - onSelect(eventKey, event); - } - }; - - MenuItem.prototype.render = function render() { - var _props2 = this.props; - var active = _props2.active; - var disabled = _props2.disabled; - var divider = _props2.divider; - var header = _props2.header; - var onClick = _props2.onClick; - var className = _props2.className; - var style = _props2.style; - var props = (0, _objectWithoutProperties3['default'])(_props2, ['active', 'disabled', 'divider', 'header', 'onClick', 'className', 'style']); - - var _splitBsPropsAndOmit = (0, _bootstrapUtils.splitBsPropsAndOmit)(props, ['eventKey', 'onSelect']); - - var bsProps = _splitBsPropsAndOmit[0]; - var elementProps = _splitBsPropsAndOmit[1]; - - - if (divider) { - // Forcibly blank out the children; separators shouldn't render any. - elementProps.children = undefined; - - return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { - role: 'separator', - className: (0, _classnames2['default'])(className, 'divider'), - style: style - })); - } + return Media; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - if (header) { - return _react2['default'].createElement('li', (0, _extends3['default'])({}, elementProps, { - role: 'heading', - className: (0, _classnames2['default'])(className, (0, _bootstrapUtils.prefix)(bsProps, 'header')), - style: style - })); - } +Media_Media.propTypes = Media_propTypes; +Media_Media.defaultProps = Media_defaultProps; - return _react2['default'].createElement( - 'li', - { - role: 'presentation', - className: (0, _classnames2['default'])(className, { active: active, disabled: disabled }), - style: style - }, - _react2['default'].createElement(_SafeAnchor2['default'], (0, _extends3['default'])({}, elementProps, { - role: 'menuitem', - tabIndex: '-1', - onClick: (0, _createChainedFunction2['default'])(onClick, this.handleClick) - })) - ); - }; +Media_Media.Heading = src_MediaHeading; +Media_Media.Body = src_MediaBody; +Media_Media.Left = src_MediaLeft; +Media_Media.Right = src_MediaRight; +Media_Media.List = src_MediaList; +Media_Media.ListItem = src_MediaListItem; - return MenuItem; - }(_react2['default'].Component); +/* harmony default export */ var src_Media = (bootstrapUtils_bsClass('media', Media_Media)); +// CONCATENATED MODULE: ./src/MenuItem.js - MenuItem.propTypes = propTypes; - MenuItem.defaultProps = defaultProps; - exports['default'] = (0, _bootstrapUtils.bsClass)('dropdown', MenuItem); - module.exports = exports['default']; - /***/ }, - /* 189 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = true; - var _objectWithoutProperties2 = __webpack_require__(87); - var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); - var _classCallCheck2 = __webpack_require__(40); - var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); - var _possibleConstructorReturn2 = __webpack_require__(41); - var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); - var _inherits2 = __webpack_require__(77); - var _inherits3 = _interopRequireDefault(_inherits2); - var _extends2 = __webpack_require__(2); +var MenuItem_propTypes = { + /** + * Highlight the menu item as active. + */ + active: prop_types_default.a.bool, - var _extends3 = _interopRequireDefault(_extends2); + /** + * Disable the menu item, making it unselectable. + */ + disabled: prop_types_default.a.bool, - var _classnames = __webpack_require__(88); + /** + * Styles the menu item as a horizontal rule, providing visual separation between + * groups of menu items. + */ + divider: all_default()(prop_types_default.a.bool, function (_ref) { + var divider = _ref.divider, + children = _ref.children; + return divider && children ? new Error('Children will not be rendered for dividers') : null; + }), - var _classnames2 = _interopRequireDefault(_classnames); + /** + * Value passed to the `onSelect` handler, useful for identifying the selected menu item. + */ + eventKey: prop_types_default.a.any, - var _events = __webpack_require__(190); + /** + * Styles the menu item as a header label, useful for describing a group of menu items. + */ + header: prop_types_default.a.bool, - var _events2 = _interopRequireDefault(_events); + /** + * HTML `href` attribute corresponding to `a.href`. + */ + href: prop_types_default.a.string, - var _ownerDocument = __webpack_require__(139); + /** + * Callback fired when the menu item is clicked. + */ + onClick: prop_types_default.a.func, - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + /** + * Callback fired when the menu item is selected. + * + * ```js + * (eventKey: any, event: Object) => any + * ``` + */ + onSelect: prop_types_default.a.func +}; - var _inDOM = __webpack_require__(135); +var MenuItem_defaultProps = { + divider: false, + disabled: false, + header: false +}; + +var MenuItem_MenuItem = function (_React$Component) { + inherits_default()(MenuItem, _React$Component); - var _inDOM2 = _interopRequireDefault(_inDOM); + function MenuItem(props, context) { + classCallCheck_default()(this, MenuItem); - var _scrollbarSize = __webpack_require__(193); + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); - var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); + _this.handleClick = _this.handleClick.bind(_this); + return _this; + } + + MenuItem.prototype.handleClick = function handleClick(event) { + var _props = this.props, + href = _props.href, + disabled = _props.disabled, + onSelect = _props.onSelect, + eventKey = _props.eventKey; - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); + if (!href || disabled) { + event.preventDefault(); + } - var _reactDom = __webpack_require__(115); + if (disabled) { + return; + } - var _reactDom2 = _interopRequireDefault(_reactDom); + if (onSelect) { + onSelect(eventKey, event); + } + }; - var _Modal = __webpack_require__(194); + MenuItem.prototype.render = function render() { + var _props2 = this.props, + active = _props2.active, + disabled = _props2.disabled, + divider = _props2.divider, + header = _props2.header, + onClick = _props2.onClick, + className = _props2.className, + style = _props2.style, + props = objectWithoutProperties_default()(_props2, ['active', 'disabled', 'divider', 'header', 'onClick', 'className', 'style']); + + var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['eventKey', 'onSelect']), + bsProps = _splitBsPropsAndOmit[0], + elementProps = _splitBsPropsAndOmit[1]; + + 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.a.createElement('li', extends_default()({}, elementProps, { + role: 'separator', + className: classnames_default()(className, 'divider'), + style: style + })); + } - var _Modal2 = _interopRequireDefault(_Modal); + if (header) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement('li', extends_default()({}, elementProps, { + role: 'heading', + className: classnames_default()(className, prefix(bsProps, 'header')), + style: style + })); + } - var _isOverflowing = __webpack_require__(203); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'li', + { + role: 'presentation', + className: classnames_default()(className, { active: active, disabled: disabled }), + style: style + }, + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_SafeAnchor, extends_default()({}, elementProps, { + role: 'menuitem', + tabIndex: '-1', + onClick: utils_createChainedFunction(onClick, this.handleClick) + })) + ); + }; - var _isOverflowing2 = _interopRequireDefault(_isOverflowing); + return MenuItem; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _elementType = __webpack_require__(106); +MenuItem_MenuItem.propTypes = MenuItem_propTypes; +MenuItem_MenuItem.defaultProps = MenuItem_defaultProps; - var _elementType2 = _interopRequireDefault(_elementType); +/* harmony default export */ var src_MenuItem = (bootstrapUtils_bsClass('dropdown', MenuItem_MenuItem)); +// EXTERNAL MODULE: ./node_modules/dom-helpers/events/index.js +var events = __webpack_require__(154); +var events_default = /*#__PURE__*/__webpack_require__.n(events); - var _Fade = __webpack_require__(165); +// EXTERNAL MODULE: ./node_modules/dom-helpers/ownerDocument.js +var ownerDocument = __webpack_require__(25); +var ownerDocument_default = /*#__PURE__*/__webpack_require__.n(ownerDocument); - var _Fade2 = _interopRequireDefault(_Fade); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/inDOM.js +var inDOM = __webpack_require__(15); +var inDOM_default = /*#__PURE__*/__webpack_require__.n(inDOM); - var _ModalBody = __webpack_require__(207); +// EXTERNAL MODULE: ./node_modules/dom-helpers/util/scrollbarSize.js +var scrollbarSize = __webpack_require__(85); +var scrollbarSize_default = /*#__PURE__*/__webpack_require__.n(scrollbarSize); - var _ModalBody2 = _interopRequireDefault(_ModalBody); +// EXTERNAL MODULE: ./node_modules/react-overlays/lib/Modal.js +var lib_Modal = __webpack_require__(158); +var Modal_default = /*#__PURE__*/__webpack_require__.n(lib_Modal); - var _ModalDialog = __webpack_require__(208); +// EXTERNAL MODULE: ./node_modules/react-overlays/lib/utils/isOverflowing.js +var isOverflowing = __webpack_require__(87); +var isOverflowing_default = /*#__PURE__*/__webpack_require__.n(isOverflowing); - var _ModalDialog2 = _interopRequireDefault(_ModalDialog); +// CONCATENATED MODULE: ./src/ModalBody.js - var _ModalFooter = __webpack_require__(209); - var _ModalFooter2 = _interopRequireDefault(_ModalFooter); - var _ModalHeader = __webpack_require__(210); - var _ModalHeader2 = _interopRequireDefault(_ModalHeader); - var _ModalTitle = __webpack_require__(211); - var _ModalTitle2 = _interopRequireDefault(_ModalTitle); - var _bootstrapUtils = __webpack_require__(89); - var _createChainedFunction = __webpack_require__(96); - var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); - var _splitComponentProps2 = __webpack_require__(164); - var _splitComponentProps3 = _interopRequireDefault(_splitComponentProps2); +var ModalBody_propTypes = { + componentClass: elementType_default.a +}; - var _StyleConfig = __webpack_require__(95); +var ModalBody_defaultProps = { + componentClass: 'div' +}; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } +var ModalBody_ModalBody = function (_React$Component) { + inherits_default()(ModalBody, _React$Component); - var propTypes = (0, _extends3['default'])({}, _Modal2['default'].propTypes, _ModalDialog2['default'].propTypes, { + function ModalBody() { + classCallCheck_default()(this, ModalBody); - /** - * Include a backdrop component. Specify 'static' for a backdrop that doesn't - * trigger an "onHide" when clicked. - */ - backdrop: _react2['default'].PropTypes.oneOf(['static', true, false]), + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - /** - * Close the modal when escape key is pressed - */ - keyboard: _react2['default'].PropTypes.bool, + ModalBody.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - /** - * Open and close the Modal with a slide and fade animation. - */ - animation: _react2['default'].PropTypes.bool, + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - /** - * A Component type that provides the modal content Markup. This is a useful - * prop when you want to use your own styles and markup to create a custom - * modal component. - */ - dialogComponentClass: _elementType2['default'], + var classes = getClassSet(bsProps); - /** - * When `true` The modal will automatically shift focus to itself when it - * opens, and replace it to the last focused element when it closes. - * Generally this should never be set to false as it makes the Modal less - * accessible to assistive technologies, like screen-readers. - */ - autoFocus: _react2['default'].PropTypes.bool, + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - /** - * When `true` The modal will prevent focus from leaving the Modal while - * open. Consider leaving the default value here, as it is necessary to make - * the Modal work well with assistive technologies, such as screen readers. - */ - enforceFocus: _react2['default'].PropTypes.bool, + return ModalBody; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - /** - * When `true` The modal will show itself. - */ - show: _react2['default'].PropTypes.bool, +ModalBody_ModalBody.propTypes = ModalBody_propTypes; +ModalBody_ModalBody.defaultProps = ModalBody_defaultProps; - /** - * A callback fired when the header closeButton or non-static backdrop is - * clicked. Required if either are specified. - */ - onHide: _react2['default'].PropTypes.func, +/* harmony default export */ var src_ModalBody = (bootstrapUtils_bsClass('modal-body', ModalBody_ModalBody)); +// CONCATENATED MODULE: ./src/ModalDialog.js - /** - * Callback fired before the Modal transitions in - */ - onEnter: _react2['default'].PropTypes.func, - /** - * Callback fired as the Modal begins to transition in - */ - onEntering: _react2['default'].PropTypes.func, - /** - * Callback fired after the Modal finishes transitioning in - */ - onEntered: _react2['default'].PropTypes.func, - /** - * Callback fired right before the Modal transitions out - */ - onExit: _react2['default'].PropTypes.func, - /** - * Callback fired as the Modal begins to transition out - */ - onExiting: _react2['default'].PropTypes.func, - /** - * Callback fired after the Modal finishes transitioning out - */ - onExited: _react2['default'].PropTypes.func, - - /** - * @private - */ - container: _Modal2['default'].propTypes.container - }); - - var defaultProps = (0, _extends3['default'])({}, _Modal2['default'].defaultProps, { - animation: true, - dialogComponentClass: _ModalDialog2['default'] - }); - - var childContextTypes = { - $bs_modal: _react2['default'].PropTypes.shape({ - onHide: _react2['default'].PropTypes.func - }) - }; - - var Modal = function (_React$Component) { - (0, _inherits3['default'])(Modal, _React$Component); - - function Modal(props, context) { - (0, _classCallCheck3['default'])(this, Modal); - - var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props, context)); - - _this.handleEntering = _this.handleEntering.bind(_this); - _this.handleExited = _this.handleExited.bind(_this); - _this.handleWindowResize = _this.handleWindowResize.bind(_this); - _this.handleDialogClick = _this.handleDialogClick.bind(_this); - - _this.state = { - style: {} - }; - return _this; - } - Modal.prototype.getChildContext = function getChildContext() { - return { - $bs_modal: { - onHide: this.props.onHide - } - }; - }; - - Modal.prototype.componentWillUnmount = function componentWillUnmount() { - // Clean up the listener if we need to. - this.handleExited(); - }; - - Modal.prototype.handleEntering = function handleEntering() { - // FIXME: This should work even when animation is disabled. - _events2['default'].on(window, 'resize', this.handleWindowResize); - this.updateStyle(); - }; - - Modal.prototype.handleExited = function handleExited() { - // FIXME: This should work even when animation is disabled. - _events2['default'].off(window, 'resize', this.handleWindowResize); - }; - - Modal.prototype.handleWindowResize = function handleWindowResize() { - this.updateStyle(); - }; - - Modal.prototype.handleDialogClick = function handleDialogClick(e) { - if (e.target !== e.currentTarget) { - return; - } - this.props.onHide(); - }; - Modal.prototype.updateStyle = function updateStyle() { - if (!_inDOM2['default']) { - return; - } - var dialogNode = this._modal.getDialogElement(); - var dialogHeight = dialogNode.scrollHeight; - - var document = (0, _ownerDocument2['default'])(dialogNode); - var bodyIsOverflowing = (0, _isOverflowing2['default'])(_reactDom2['default'].findDOMNode(this.props.container || document.body)); - var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; - - this.setState({ - style: { - paddingRight: bodyIsOverflowing && !modalIsOverflowing ? (0, _scrollbarSize2['default'])() : undefined, - paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? (0, _scrollbarSize2['default'])() : undefined - } - }); - }; - - Modal.prototype.render = function render() { - var _this2 = this; - - var _props = this.props; - var backdrop = _props.backdrop; - var animation = _props.animation; - var show = _props.show; - var Dialog = _props.dialogComponentClass; - var className = _props.className; - var style = _props.style; - var children = _props.children; - var onEntering = _props.onEntering; - var onExited = _props.onExited; - var props = (0, _objectWithoutProperties3['default'])(_props, ['backdrop', 'animation', 'show', 'dialogComponentClass', 'className', 'style', 'children', 'onEntering', 'onExited']); - - var _splitComponentProps = (0, _splitComponentProps3['default'])(props, _Modal2['default']); - - var baseModalProps = _splitComponentProps[0]; - var dialogProps = _splitComponentProps[1]; - - - var inClassName = show && !animation && 'in'; - - return _react2['default'].createElement( - _Modal2['default'], - (0, _extends3['default'])({}, baseModalProps, { - ref: function ref(c) { - _this2._modal = c; - }, - show: show, - onEntering: (0, _createChainedFunction2['default'])(onEntering, this.handleEntering), - onExited: (0, _createChainedFunction2['default'])(onExited, this.handleExited), - backdrop: backdrop, - backdropClassName: (0, _classnames2['default'])((0, _bootstrapUtils.prefix)(props, 'backdrop'), inClassName), - containerClassName: (0, _bootstrapUtils.prefix)(props, 'open'), - transition: animation ? _Fade2['default'] : undefined, - dialogTransitionTimeout: Modal.TRANSITION_DURATION, - backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION - }), - _react2['default'].createElement( - Dialog, - (0, _extends3['default'])({}, dialogProps, { - style: (0, _extends3['default'])({}, this.state.style, style), - className: (0, _classnames2['default'])(className, inClassName), - onClick: backdrop === true ? this.handleDialogClick : null - }), - children - ) - ); - }; - - return Modal; - }(_react2['default'].Component); - - Modal.propTypes = propTypes; - Modal.defaultProps = defaultProps; - Modal.childContextTypes = childContextTypes; - - Modal.Body = _ModalBody2['default']; - Modal.Header = _ModalHeader2['default']; - Modal.Title = _ModalTitle2['default']; - Modal.Footer = _ModalFooter2['default']; - - Modal.Dialog = _ModalDialog2['default']; - - Modal.TRANSITION_DURATION = 300; - Modal.BACKDROP_TRANSITION_DURATION = 150; - - exports['default'] = (0, _bootstrapUtils.bsClass)('modal', (0, _bootstrapUtils.bsSizes)([_StyleConfig.Size.LARGE, _StyleConfig.Size.SMALL], Modal)); - module.exports = exports['default']; - - /***/ }, - /* 190 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var on = __webpack_require__(136), - off = __webpack_require__(158), - filter = __webpack_require__(191); - - module.exports = { on: on, off: off, filter: filter }; - - /***/ }, - /* 191 */ - /***/ function(module, exports, __webpack_require__) { - - 'use strict'; - - var contains = __webpack_require__(140), - qsa = __webpack_require__(192); - - module.exports = function (selector, handler) { - return function (e) { - var top = e.currentTarget, - target = e.target, - matches = qsa(top, selector); - - if (matches.some(function (match) { - return contains(match, target); - })) handler.call(this, e); - }; - }; - - /***/ }, - /* 192 */ - /***/ function(module, exports) { - - 'use strict'; - // Zepto.js - // (c) 2010-2015 Thomas Fuchs - // Zepto.js may be freely distributed under the MIT license. - var simpleSelectorRE = /^[\w-]*$/, - toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); - - module.exports = 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)); - } +var ModalDialog_propTypes = { + /** + * A css class to apply to the Modal dialog DOM node. + */ + dialogClassName: prop_types_default.a.string +}; - return toArray(element.querySelectorAll(selector)); - }; +var ModalDialog_ModalDialog = function (_React$Component) { + inherits_default()(ModalDialog, _React$Component); - /***/ }, - /* 193 */ - /***/ function(module, exports, __webpack_require__) { + function ModalDialog() { + classCallCheck_default()(this, ModalDialog); - 'use strict'; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var canUseDOM = __webpack_require__(135); + ModalDialog.prototype.render = function render() { + var _extends2; - var size; + var _props = this.props, + dialogClassName = _props.dialogClassName, + className = _props.className, + style = _props.style, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['dialogClassName', 'className', 'style', 'children']); - module.exports = function (recalc) { - if (!size || recalc) { - if (canUseDOM) { - var scrollDiv = document.createElement('div'); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - scrollDiv.style.position = 'absolute'; - scrollDiv.style.top = '-9999px'; - scrollDiv.style.width = '50px'; - scrollDiv.style.height = '50px'; - scrollDiv.style.overflow = 'scroll'; + var bsClassName = prefix(bsProps); - document.body.appendChild(scrollDiv); - size = scrollDiv.offsetWidth - scrollDiv.clientWidth; - document.body.removeChild(scrollDiv); - } - } + var modalStyle = extends_default()({ display: 'block' }, style); - return size; - }; + var dialogClasses = extends_default()({}, getClassSet(bsProps), (_extends2 = {}, _extends2[bsClassName] = false, _extends2[prefix(bsProps, 'dialog')] = true, _extends2)); - /***/ }, - /* 194 */ - /***/ function(module, exports, __webpack_require__) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { + tabIndex: '-1', + role: 'dialog', + style: modalStyle, + className: classnames_default()(className, bsClassName) + }), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + { className: classnames_default()(dialogClassName, dialogClasses) }, + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + { className: prefix(bsProps, 'content'), role: 'document' }, + children + ) + ) + ); + }; - 'use strict'; + return ModalDialog; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - Object.defineProperty(exports, "__esModule", { - value: true - }); +ModalDialog_ModalDialog.propTypes = ModalDialog_propTypes; - 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]; } } } return target; }; /*eslint-disable react/prop-types */ +/* harmony default export */ var src_ModalDialog = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], ModalDialog_ModalDialog))); +// CONCATENATED MODULE: ./src/ModalFooter.js - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _warning = __webpack_require__(119); - var _warning2 = _interopRequireDefault(_warning); - var _componentOrElement = __webpack_require__(195); - var _componentOrElement2 = _interopRequireDefault(_componentOrElement); - var _elementType = __webpack_require__(106); - var _elementType2 = _interopRequireDefault(_elementType); - var _Portal = __webpack_require__(196); - var _Portal2 = _interopRequireDefault(_Portal); +var ModalFooter_propTypes = { + componentClass: elementType_default.a +}; - var _ModalManager = __webpack_require__(198); +var ModalFooter_defaultProps = { + componentClass: 'div' +}; - var _ModalManager2 = _interopRequireDefault(_ModalManager); +var ModalFooter_ModalFooter = function (_React$Component) { + inherits_default()(ModalFooter, _React$Component); - var _ownerDocument = __webpack_require__(160); + function ModalFooter() { + classCallCheck_default()(this, ModalFooter); - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - var _addEventListener = __webpack_require__(157); + ModalFooter.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - var _addEventListener2 = _interopRequireDefault(_addEventListener); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - var _addFocusListener = __webpack_require__(206); + var classes = getClassSet(bsProps); - var _addFocusListener2 = _interopRequireDefault(_addFocusListener); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _inDOM = __webpack_require__(135); + return ModalFooter; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _inDOM2 = _interopRequireDefault(_inDOM); +ModalFooter_ModalFooter.propTypes = ModalFooter_propTypes; +ModalFooter_ModalFooter.defaultProps = ModalFooter_defaultProps; - var _activeElement = __webpack_require__(138); +/* harmony default export */ var src_ModalFooter = (bootstrapUtils_bsClass('modal-footer', ModalFooter_ModalFooter)); +// CONCATENATED MODULE: ./src/ModalHeader.js - var _activeElement2 = _interopRequireDefault(_activeElement); - var _contains = __webpack_require__(140); - var _contains2 = _interopRequireDefault(_contains); - var _getContainer = __webpack_require__(197); - var _getContainer2 = _interopRequireDefault(_getContainer); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - 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 Modal = _react2.default.createClass({ - displayName: 'Modal', - propTypes: _extends({}, _Portal2.default.propTypes, { - /** - * Set the visibility of the Modal - */ - show: _react2.default.PropTypes.bool, - /** - * 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: _react2.default.PropTypes.oneOfType([_componentOrElement2.default, _react2.default.PropTypes.func]), - /** - * A callback fired when the Modal is opening. - */ - onShow: _react2.default.PropTypes.func, +// TODO: `aria-label` should be `closeLabel`. - /** - * 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: _react2.default.PropTypes.func, - - /** - * Include a backdrop component. - */ - backdrop: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.bool, _react2.default.PropTypes.oneOf(['static'])]), - - /** - * A callback fired when the escape key, if specified in `keyboard`, is pressed. - */ - onEscapeKeyUp: _react2.default.PropTypes.func, - - /** - * A callback fired when the backdrop, if specified, is clicked. - */ - onBackdropClick: _react2.default.PropTypes.func, - - /** - * A style object for the backdrop component. - */ - backdropStyle: _react2.default.PropTypes.object, - - /** - * A css class or classes for the backdrop component. - */ - backdropClassName: _react2.default.PropTypes.string, - - /** - * A css class or set of classes applied to the modal container when the modal is open, - * and removed when it is closed. - */ - containerClassName: _react2.default.PropTypes.string, - - /** - * Close the modal when escape key is pressed - */ - keyboard: _react2.default.PropTypes.bool, - - /** - * A `` component to use for the dialog and backdrop components. - */ - transition: _elementType2.default, - - /** - * The `timeout` of the dialog transition if specified. This number is used to ensure that - * transition callbacks are always fired, even if browser transition events are canceled. - * - * See the Transition `timeout` prop for more infomation. - */ - dialogTransitionTimeout: _react2.default.PropTypes.number, - - /** - * The `timeout` of the backdrop transition if specified. This number is used to - * ensure that transition callbacks are always fired, even if browser transition events are canceled. - * - * See the Transition `timeout` prop for more infomation. - */ - backdropTransitionTimeout: _react2.default.PropTypes.number, - - /** - * 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: _react2.default.PropTypes.bool, - - /** - * 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: _react2.default.PropTypes.bool, - - /** - * Callback fired before the Modal transitions in - */ - onEnter: _react2.default.PropTypes.func, - - /** - * Callback fired as the Modal begins to transition in - */ - onEntering: _react2.default.PropTypes.func, - - /** - * Callback fired after the Modal finishes transitioning in - */ - onEntered: _react2.default.PropTypes.func, - - /** - * Callback fired right before the Modal transitions out - */ - onExit: _react2.default.PropTypes.func, - - /** - * Callback fired as the Modal begins to transition out - */ - onExiting: _react2.default.PropTypes.func, - - /** - * Callback fired after the Modal finishes transitioning out - */ - onExited: _react2.default.PropTypes.func - - }), - - getDefaultProps: function getDefaultProps() { - var noop = function noop() {}; - - return { - show: false, - backdrop: true, - keyboard: true, - autoFocus: true, - enforceFocus: true, - onHide: noop - }; - }, - getInitialState: function getInitialState() { - return { exited: !this.props.show }; - }, - render: function render() { - var _props = this.props; - var show = _props.show; - var container = _props.container; - var children = _props.children; - var Transition = _props.transition; - var backdrop = _props.backdrop; - var dialogTransitionTimeout = _props.dialogTransitionTimeout; - var className = _props.className; - var style = _props.style; - var onExit = _props.onExit; - var onExiting = _props.onExiting; - var onEnter = _props.onEnter; - var onEntering = _props.onEntering; - var onEntered = _props.onEntered; - - - var dialog = _react2.default.Children.only(children); - - var mountModal = show || Transition && !this.state.exited; - if (!mountModal) { - return null; - } +var ModalHeader_propTypes = { + /** + * Provides an accessible label for the close + * button. It is used for Assistive Technology when the label text is not + * readable. + */ + closeLabel: prop_types_default.a.string, - var _dialog$props = dialog.props; - var role = _dialog$props.role; - var tabIndex = _dialog$props.tabIndex; + /** + * Specify whether the Component should contain a close button + */ + closeButton: prop_types_default.a.bool, + /** + * A Callback fired when the close button is clicked. If used directly inside + * a Modal component, the onHide will automatically be propagated up to the + * parent Modal `onHide`. + */ + onHide: prop_types_default.a.func +}; - if (role === undefined || tabIndex === undefined) { - dialog = (0, _react.cloneElement)(dialog, { - role: role === undefined ? 'document' : role, - tabIndex: tabIndex == null ? '-1' : tabIndex - }); - } +var ModalHeader_defaultProps = { + closeLabel: 'Close', + closeButton: false +}; - if (Transition) { - dialog = _react2.default.createElement( - Transition, - { - transitionAppear: true, - unmountOnExit: true, - 'in': show, - timeout: dialogTransitionTimeout, - onExit: onExit, - onExiting: onExiting, - onExited: this.handleHidden, - onEnter: onEnter, - onEntering: onEntering, - onEntered: onEntered - }, - dialog - ); - } +var ModalHeader_contextTypes = { + $bs_modal: prop_types_default.a.shape({ + onHide: prop_types_default.a.func + }) +}; - return _react2.default.createElement( - _Portal2.default, - { - ref: this.setMountNode, - container: container - }, - _react2.default.createElement( - 'div', - { - ref: 'modal', - role: role || 'dialog', - style: style, - className: className - }, - backdrop && this.renderBackdrop(), - dialog - ) - ); - }, - renderBackdrop: function renderBackdrop() { - var _props2 = this.props; - var Transition = _props2.transition; - var backdropTransitionTimeout = _props2.backdropTransitionTimeout; - - - var backdrop = _react2.default.createElement('div', { ref: 'backdrop', - style: this.props.backdropStyle, - className: this.props.backdropClassName, - onClick: this.handleBackdropClick - }); - - if (Transition) { - backdrop = _react2.default.createElement( - Transition, - { transitionAppear: true, - 'in': this.props.show, - timeout: backdropTransitionTimeout - }, - backdrop - ); - } +var ModalHeader_ModalHeader = function (_React$Component) { + inherits_default()(ModalHeader, _React$Component); - return backdrop; - }, - componentWillReceiveProps: function 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 }); - } - }, - componentWillUpdate: function componentWillUpdate(nextProps) { - if (!this.props.show && nextProps.show) { - this.checkForFocus(); - } - }, - componentDidMount: function componentDidMount() { - if (this.props.show) { - this.onShow(); - } - }, - componentDidUpdate: function componentDidUpdate(prevProps) { - var transition = this.props.transition; + function ModalHeader() { + classCallCheck_default()(this, ModalHeader); + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - if (prevProps.show && !this.props.show && !transition) { - // Otherwise handleHidden will call this. - this.onHide(); - } else if (!prevProps.show && this.props.show) { - this.onShow(); - } - }, - componentWillUnmount: function componentWillUnmount() { - var _props3 = this.props; - var show = _props3.show; - var transition = _props3.transition; + ModalHeader.prototype.render = function render() { + var _props = this.props, + closeLabel = _props.closeLabel, + closeButton = _props.closeButton, + onHide = _props.onHide, + className = _props.className, + children = _props.children, + props = objectWithoutProperties_default()(_props, ['closeLabel', 'closeButton', 'onHide', 'className', 'children']); + var modal = this.context.$bs_modal; - if (show || transition && !this.state.exited) { - this.onHide(); - } - }, - onShow: function onShow() { - var doc = (0, _ownerDocument2.default)(this); - var container = (0, _getContainer2.default)(this.props.container, doc.body); + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - modalManager.add(this, container, this.props.containerClassName); + var classes = getClassSet(bsProps); - this._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', this.handleDocumentKeyUp); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + 'div', + extends_default()({}, elementProps, { className: classnames_default()(className, classes) }), + closeButton && external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_CloseButton, { + label: closeLabel, + onClick: utils_createChainedFunction(modal && modal.onHide, onHide) + }), + children + ); + }; - this._onFocusinListener = (0, _addFocusListener2.default)(this.enforceFocus); + return ModalHeader; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - this.focus(); +ModalHeader_ModalHeader.propTypes = ModalHeader_propTypes; +ModalHeader_ModalHeader.defaultProps = ModalHeader_defaultProps; +ModalHeader_ModalHeader.contextTypes = ModalHeader_contextTypes; - if (this.props.onShow) { - this.props.onShow(); - } - }, - onHide: function onHide() { - modalManager.remove(this); +/* harmony default export */ var src_ModalHeader = (bootstrapUtils_bsClass('modal-header', ModalHeader_ModalHeader)); +// CONCATENATED MODULE: ./src/ModalTitle.js - this._onDocumentKeyupListener.remove(); - this._onFocusinListener.remove(); - this.restoreLastFocus(); - }, - setMountNode: function setMountNode(ref) { - this.mountNode = ref ? ref.getMountNode() : ref; - }, - handleHidden: function handleHidden() { - this.setState({ exited: true }); - this.onHide(); - if (this.props.onExited) { - var _props4; - (_props4 = this.props).onExited.apply(_props4, arguments); - } - }, - handleBackdropClick: function handleBackdropClick(e) { - if (e.target !== e.currentTarget) { - return; - } - if (this.props.onBackdropClick) { - this.props.onBackdropClick(e); - } - if (this.props.backdrop === true) { - this.props.onHide(); - } - }, - handleDocumentKeyUp: function handleDocumentKeyUp(e) { - if (this.props.keyboard && e.keyCode === 27 && this.isTopModal()) { - if (this.props.onEscapeKeyUp) { - this.props.onEscapeKeyUp(e); - } - this.props.onHide(); - } - }, - checkForFocus: function checkForFocus() { - if (_inDOM2.default) { - this.lastFocus = (0, _activeElement2.default)(); - } - }, - focus: function focus() { - var autoFocus = this.props.autoFocus; - var modalContent = this.getDialogElement(); - var current = (0, _activeElement2.default)((0, _ownerDocument2.default)(this)); - var focusInModal = current && (0, _contains2.default)(modalContent, current); - - if (modalContent && autoFocus && !focusInModal) { - this.lastFocus = current; - - if (!modalContent.hasAttribute('tabIndex')) { - modalContent.setAttribute('tabIndex', -1); - (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".'); - } - - modalContent.focus(); - } - }, - 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; - } - }, - enforceFocus: function enforceFocus() { - var enforceFocus = this.props.enforceFocus; - if (!enforceFocus || !this.isMounted() || !this.isTopModal()) { - return; - } - var active = (0, _activeElement2.default)((0, _ownerDocument2.default)(this)); - var modal = this.getDialogElement(); - if (modal && modal !== active && !(0, _contains2.default)(modal, active)) { - modal.focus(); - } - }, +var ModalTitle_propTypes = { + componentClass: elementType_default.a +}; +var ModalTitle_defaultProps = { + componentClass: 'h4' +}; - //instead of a ref, which might conflict with one the parent applied. - getDialogElement: function getDialogElement() { - var node = this.refs.modal; - return node && node.lastChild; - }, - isTopModal: function isTopModal() { - return modalManager.isTopModal(this); - } - }); +var ModalTitle_ModalTitle = function (_React$Component) { + inherits_default()(ModalTitle, _React$Component); - Modal.manager = modalManager; + function ModalTitle() { + classCallCheck_default()(this, ModalTitle); - exports.default = Modal; - module.exports = exports['default']; + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } - /***/ }, - /* 195 */ - /***/ function(module, exports, __webpack_require__) { + ModalTitle.prototype.render = function render() { + var _props = this.props, + Component = _props.componentClass, + className = _props.className, + props = objectWithoutProperties_default()(_props, ['componentClass', 'className']); - 'use strict'; + var _splitBsProps = splitBsProps(props), + bsProps = _splitBsProps[0], + elementProps = _splitBsProps[1]; - exports.__esModule = true; + var classes = getClassSet(bsProps); - 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; }; + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(Component, extends_default()({}, elementProps, { className: classnames_default()(className, classes) })); + }; - var _react = __webpack_require__(85); + return ModalTitle; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); - var _react2 = _interopRequireDefault(_react); +ModalTitle_ModalTitle.propTypes = ModalTitle_propTypes; +ModalTitle_ModalTitle.defaultProps = ModalTitle_defaultProps; - var _createChainableTypeChecker = __webpack_require__(107); +/* harmony default export */ var src_ModalTitle = (bootstrapUtils_bsClass('modal-title', ModalTitle_ModalTitle)); +// CONCATENATED MODULE: ./src/Modal.js - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function validate(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 a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.'); - } - 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.'); - } - return null; - } - exports.default = (0, _createChainableTypeChecker2.default)(validate); - /***/ }, - /* 196 */ - /***/ function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _react = __webpack_require__(85); - var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(115); - var _reactDom2 = _interopRequireDefault(_reactDom); - var _componentOrElement = __webpack_require__(195); - var _componentOrElement2 = _interopRequireDefault(_componentOrElement); - var _ownerDocument = __webpack_require__(160); - var _ownerDocument2 = _interopRequireDefault(_ownerDocument); - var _getContainer = __webpack_require__(197); - var _getContainer2 = _interopRequireDefault(_getContainer); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /** - * 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 = _react2.default.createClass({ - displayName: 'Portal', - propTypes: { - /** - * A Node, Component instance, or function that returns either. The `container` will have the Portal children - * appended to it. - */ - container: _react2.default.PropTypes.oneOfType([_componentOrElement2.default, _react2.default.PropTypes.func]) - }, - componentDidMount: function componentDidMount() { - this._renderOverlay(); - }, - componentDidUpdate: function componentDidUpdate() { - this._renderOverlay(); - }, - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - if (this._overlayTarget && nextProps.container !== this.props.container) { - this._portalContainerNode.removeChild(this._overlayTarget); - this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body); - this._portalContainerNode.appendChild(this._overlayTarget); - } - }, - componentWillUnmount: function componentWillUnmount() { - this._unrenderOverlay(); - this._unmountOverlayTarget(); - }, - _mountOverlayTarget: function _mountOverlayTarget() { - if (!this._overlayTarget) { - this._overlayTarget = document.createElement('div'); - this._portalContainerNode = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body); - this._portalContainerNode.appendChild(this._overlayTarget); - } - }, - _unmountOverlayTarget: function _unmountOverlayTarget() { - if (this._overlayTarget) { - this._portalContainerNode.removeChild(this._overlayTarget); - this._overlayTarget = null; - } - this._portalContainerNode = null; - }, - _renderOverlay: function _renderOverlay() { - - var overlay = !this.props.children ? null : _react2.default.Children.only(this.props.children); - - // Save reference for future access. - if (overlay !== null) { - this._mountOverlayTarget(); - this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(this, overlay, this._overlayTarget); - } else { - // Unrender if the component is null for transitions to null - this._unrenderOverlay(); - this._unmountOverlayTarget(); - } - }, - _unrenderOverlay: function _unrenderOverlay() { - if (this._overlayTarget) { - _reactDom2.default.unmountComponentAtNode(this._overlayTarget); - this._overlayInstance = null; - } - }, - render: function render() { - return null; - }, - getMountNode: function getMountNode() { - return this._overlayTarget; - }, - getOverlayDOMNode: function getOverlayDOMNode() { - if (!this.isMounted()) { - throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.'); - } - if (this._overlayInstance) { - if (this._overlayInstance.getWrappedDOMNode) { - return this._overlayInstance.getWrappedDOMNode(); - } else { - return _reactDom2.default.findDOMNode(this._overlayInstance); - } - } - return null; - } - }); - exports.default = Portal; - module.exports = exports['default']; +var Modal_propTypes = extends_default()({}, Modal_default.a.propTypes, src_ModalDialog.propTypes, { - /***/ }, - /* 197 */ - /***/ function(module, exports, __webpack_require__) { + /** + * Include a backdrop component. Specify 'static' for a backdrop that doesn't + * trigger an "onHide" when clicked. + */ + backdrop: prop_types_default.a.oneOf(['static', true, false]), - 'use strict'; + /** + * Add an optional extra class name to .modal-backdrop + * It could end up looking like class="modal-backdrop foo-modal-backdrop in". + */ + backdropClassName: prop_types_default.a.string, - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getContainer; + /** + * Close the modal when escape key is pressed + */ + keyboard: prop_types_default.a.bool, - var _reactDom = __webpack_require__(115); + /** + * Open and close the Modal with a slide and fade animation. + */ + animation: prop_types_default.a.bool, - var _reactDom2 = _interopRequireDefault(_reactDom); + /** + * A Component type that provides the modal content Markup. This is a useful + * prop when you want to use your own styles and markup to create a custom + * modal component. + */ + dialogComponentClass: elementType_default.a, - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + /** + * When `true` The modal will automatically shift focus to itself when it + * opens, and replace it to the last focused element when it closes. + * Generally this should never be set to false as it makes the Modal less + * accessible to assistive technologies, like screen-readers. + */ + autoFocus: prop_types_default.a.bool, - function getContainer(container, defaultContainer) { - container = typeof container === 'function' ? container() : container; - return _reactDom2.default.findDOMNode(container) || defaultContainer; - } - module.exports = exports['default']; + /** + * When `true` The modal will prevent focus from leaving the Modal while + * open. Consider leaving the default value here, as it is necessary to make + * the Modal work well with assistive technologies, such as screen readers. + */ + enforceFocus: prop_types_default.a.bool, - /***/ }, - /* 198 */ - /***/ function(module, exports, __webpack_require__) { + /** + * When `true` The modal will restore focus to previously focused element once + * modal is hidden + */ + restoreFocus: prop_types_default.a.bool, - 'use strict'; + /** + * When `true` The modal will show itself. + */ + show: prop_types_default.a.bool, - Object.defineProperty(exports, "__esModule", { - value: true - }); + /** + * A callback fired when the header closeButton or non-static backdrop is + * clicked. Required if either are specified. + */ + onHide: prop_types_default.a.func, - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + /** + * Callback fired before the Modal transitions in + */ + onEnter: prop_types_default.a.func, - var _style = __webpack_require__(125); + /** + * Callback fired as the Modal begins to transition in + */ + onEntering: prop_types_default.a.func, - var _style2 = _interopRequireDefault(_style); + /** + * Callback fired after the Modal finishes transitioning in + */ + onEntered: prop_types_default.a.func, - var _class = __webpack_require__(199); + /** + * Callback fired right before the Modal transitions out + */ + onExit: prop_types_default.a.func, - var _class2 = _interopRequireDefault(_class); + /** + * Callback fired as the Modal begins to transition out + */ + onExiting: prop_types_default.a.func, - var _scrollbarSize = __webpack_require__(193); + /** + * Callback fired after the Modal finishes transitioning out + */ + onExited: prop_types_default.a.func, + + /** + * @private + */ + container: Modal_default.a.propTypes.container +}); - var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); +var Modal_defaultProps = extends_default()({}, Modal_default.a.defaultProps, { + animation: true, + dialogComponentClass: src_ModalDialog +}); - var _isOverflowing = __webpack_require__(203); +var Modal_childContextTypes = { + $bs_modal: prop_types_default.a.shape({ + onHide: prop_types_default.a.func + }) +}; + +/* eslint-disable no-use-before-define, react/no-multi-comp */ +function DialogTransition(props) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_Fade, extends_default()({}, props, { timeout: Modal_Modal.TRANSITION_DURATION })); +} + +function BackdropTransition(props) { + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement(src_Fade, extends_default()({}, props, { timeout: Modal_Modal.BACKDROP_TRANSITION_DURATION })); +} + +/* eslint-enable no-use-before-define */ + +var Modal_Modal = function (_React$Component) { + inherits_default()(Modal, _React$Component); + + function Modal(props, context) { + classCallCheck_default()(this, Modal); + + var _this = possibleConstructorReturn_default()(this, _React$Component.call(this, props, context)); + + _this.handleEntering = _this.handleEntering.bind(_this); + _this.handleExited = _this.handleExited.bind(_this); + _this.handleWindowResize = _this.handleWindowResize.bind(_this); + _this.handleDialogClick = _this.handleDialogClick.bind(_this); + _this.setModalRef = _this.setModalRef.bind(_this); + + _this.state = { + style: {} + }; + return _this; + } + + Modal.prototype.getChildContext = function getChildContext() { + return { + $bs_modal: { + onHide: this.props.onHide + } + }; + }; + + Modal.prototype.componentWillUnmount = function componentWillUnmount() { + // Clean up the listener if we need to. + this.handleExited(); + }; + + Modal.prototype.setModalRef = function setModalRef(ref) { + this._modal = ref; + }; + + Modal.prototype.handleDialogClick = function handleDialogClick(e) { + if (e.target !== e.currentTarget) { + return; + } + + this.props.onHide(); + }; + + Modal.prototype.handleEntering = function handleEntering() { + // FIXME: This should work even when animation is disabled. + events_default.a.on(window, 'resize', this.handleWindowResize); + this.updateStyle(); + }; + + Modal.prototype.handleExited = function handleExited() { + // FIXME: This should work even when animation is disabled. + events_default.a.off(window, 'resize', this.handleWindowResize); + }; - var _isOverflowing2 = _interopRequireDefault(_isOverflowing); + Modal.prototype.handleWindowResize = function handleWindowResize() { + this.updateStyle(); + }; - var _manageAriaHidden = __webpack_require__(205); + Modal.prototype.updateStyle = function updateStyle() { + if (!inDOM_default.a) { + return; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var dialogNode = this._modal.getDialogElement(); + var dialogHeight = dialogNode.scrollHeight; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var document = ownerDocument_default()(dialogNode); + var bodyIsOverflowing = isOverflowing_default()(external___root___ReactDOM___commonjs2___react_dom___commonjs___react_dom___amd___react_dom___default.a.findDOMNode(this.props.container || document.body)); + var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; - function findIndexOf(arr, cb) { - var idx = -1; - arr.some(function (d, i) { - if (cb(d, i)) { - idx = i; - return true; - } - }); - return idx; - } + this.setState({ + style: { + paddingRight: bodyIsOverflowing && !modalIsOverflowing ? scrollbarSize_default()() : undefined, + paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? scrollbarSize_default()() : undefined + } + }); + }; - function findContainer(data, modal) { - return findIndexOf(data, function (d) { - return d.modals.indexOf(modal) !== -1; - }); - } + Modal.prototype.render = function render() { + var _props = this.props, + backdrop = _props.backdrop, + backdropClassName = _props.backdropClassName, + animation = _props.animation, + show = _props.show, + Dialog = _props.dialogComponentClass, + className = _props.className, + style = _props.style, + children = _props.children, + onEntering = _props.onEntering, + onExited = _props.onExited, + props = objectWithoutProperties_default()(_props, ['backdrop', 'backdropClassName', 'animation', 'show', 'dialogComponentClass', 'className', 'style', 'children', 'onEntering', 'onExited']); - /** - * Proper state managment for containers and the modals in those containers. - * - * @internal Used by the Modal to ensure proper styling of containers. - */ + var _splitComponentProps = splitComponentProps(props, Modal_default.a), + baseModalProps = _splitComponentProps[0], + dialogProps = _splitComponentProps[1]; - var ModalManager = function () { - function ModalManager() { - var hideSiblingNodes = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; + var inClassName = show && !animation && 'in'; - _classCallCheck(this, ModalManager); + return external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Modal_default.a, + extends_default()({}, baseModalProps, { + ref: this.setModalRef, + show: show, + containerClassName: prefix(props, 'open'), + transition: animation ? DialogTransition : undefined, + backdrop: backdrop, + backdropTransition: animation ? BackdropTransition : undefined, + backdropClassName: classnames_default()(prefix(props, 'backdrop'), backdropClassName, inClassName), + onEntering: utils_createChainedFunction(onEntering, this.handleEntering), + onExited: utils_createChainedFunction(onExited, this.handleExited) + }), + external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.createElement( + Dialog, + extends_default()({}, dialogProps, { + style: extends_default()({}, this.state.style, style), + className: classnames_default()(className, inClassName), + onClick: backdrop === true ? this.handleDialogClick : null + }), + children + ) + ); + }; + + return Modal; +}(external___root___React___commonjs2___react___commonjs___react___amd___react___default.a.Component); + +Modal_Modal.propTypes = Modal_propTypes; +Modal_Modal.defaultProps = Modal_defaultProps; +Modal_Modal.childContextTypes = Modal_childContextTypes; + +Modal_Modal.Body = src_ModalBody; +Modal_Modal.Header = src_ModalHeader; +Modal_Modal.Title = src_ModalTitle; +Modal_Modal.Footer = src_ModalFooter; + +Modal_Modal.Dialog = src_ModalDialog; + +Modal_Modal.TRANSITION_DURATION = 300; +Modal_Modal.BACKDROP_TRANSITION_DURATION = 150; + +/* harmony default export */ var src_Modal = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], Modal_Modal))); +// CONCATENATED MODULE: ./src/Nav.js + + + + + + + + + + + + + + + + + +// TODO: Should we expose `` as ``? + +// TODO: This `bsStyle` is very unlike the others. Should we rename it? + +// TODO: `pullRight` and `pullLeft` don't render right outside of `navbar`. +// Consider renaming or replacing them. + +var Nav_propTypes = { + /** + * Marks the NavItem with a matching `eventKey` as active. Has a + * higher precedence over `activeHref`. + */ + activeKey: prop_types_default.a.any, + + /** + * Marks the child NavItem with a matching `href` prop as active. + */ + activeHref: prop_types_default.a.string, - this.hideSiblingNodes = hideSiblingNodes; - this.modals = []; - this.containers = []; - this.data = []; - } + /** + * NavItems are be positioned vertically. + */ + stacked: prop_types_default.a.bool, - _createClass(ModalManager, [{ - key: 'add', - value: function add(modal, container, className) { - var modalIdx = this.modals.indexOf(modal); - var containerIdx = this.containers.indexOf(container); + justified: all_default()(prop_types_default.a.bool, function (_ref) { + var justified = _ref.justified, + navbar = _ref.navbar; + return justified && navbar ? Error('justified navbar `Nav`s are not supported') : null; + }), - if (modalIdx !== -1) { - return modalIdx; - } + /** + * A callback fired when a NavItem is selected. + * + * ```js + * function ( + * Any eventKey, + * SyntheticEvent event? + * ) + * ``` + */ + onSelect: prop_types_default.a.func, - modalIdx = this.modals.length; - this.modals.push(modal); + /** + * ARIA role for the Nav, in the context of a TabContainer, the default will + * be set to "tablist", but can be overridden by the Nav when set explicitly. + * + * When the role is set to "tablist" NavItem focus is managed according to + * the ARIA authoring practices for tabs: + * https://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#tabpanel + */ + role: prop_types_default.a.string, - if (this.hideSiblingNodes) { - (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode); - } + /** + * Apply styling an alignment for use in a Navbar. This prop will be set + * automatically when the Nav is used inside a Navbar. + */ + navbar: prop_types_default.a.bool, - if (containerIdx !== -1) { - this.data[containerIdx].modals.push(modal); - return modalIdx; - } + /** + * Float the Nav to the right. When `navbar` is `true` the appropriate + * contextual classes are added as well. + */ + pullRight: prop_types_default.a.bool, - var data = { - modals: [modal], - //right now only the first modal of a container will have its classes applied - classes: className ? className.split(/\s+/) : [], - //we are only interested in the actual `style` here becasue we will override it - style: { - overflow: container.style.overflow, - paddingRight: container.style.paddingRight - } - }; + /** + * Float the Nav to the left. When `navbar` is `true` the appropriate + * contextual classes are added as well. + */ + pullLeft: prop_types_default.a.bool +}; - var style = { overflow: 'hidden' }; +var Nav_defaultProps = { + justified: false, + pullRight: false, + pullLeft: false, + stacked: false +}; - data.overflowing = (0, _isOverflowing2.default)(container); +var Nav_contextTypes = { + $bs_navbar: prop_types_default.a.shape({ + bsClass: prop_types_default.a.string, + onSelect: prop_types_default.a.func + }), - if (data.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'; - } + $bs_tabContainer: prop_types_default.a.shape({ + activeKey: prop_types_default.a.any, + onSelect: prop_types_default.a.func.isRequired, + getTabId: prop_types_default.a.func.isRequired, + getPaneId: prop_types_default.a.func.isRequired + }) +}; - (0, _style2.default)(container, style); +var Nav_Nav = function (_React$Component) { + inherits_default()(Nav, _React$Component); + + function Nav() { + classCallCheck_default()(this, Nav); + + return possibleConstructorReturn_default()(this, _React$Component.apply(this, arguments)); + } + + Nav.prototype.componentDidUpdate = function componentDidUpdate() { + var _this2 = this; + + if (!this._needsRefocus) { + return; + } + + this._needsRefocus = false; + + var children = this.props.children; + + var _getActiveProps = this.getActiveProps(), + activeKey = _getActiveProps.activeKey, + activeHref = _getActiveProps.activeHref; + + var activeChild = ValidComponentChildren.find(children, function (child) { + return _this2.isActive(child, activeKey, activeHref); + }); + + var childrenArray = ValidComponentChildren.toArray(children); + var activeChildIndex = childrenArray.indexOf(activeChild); + + var childNodes = external___root___ReactDOM___commonjs2___react_dom___commonjs___react_dom___amd___react_dom___default.a.findDOMNode(this).children; + var activeNode = childNodes && childNodes[activeChildIndex]; + + if (!activeNode || !activeNode.firstChild) { + return; + } + + activeNode.firstChild.focus(); + }; + + Nav.prototype.getActiveProps = function getActiveProps() { + var tabContainer = this.context.$bs_tabContainer; + + if (tabContainer) { + undefined !== 'production' ? warning_browser_default()(this.props.activeKey == null && !this.props.activeHref, 'Specifying a `