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B,EAAAhC,SAAU,KAAMuC,EAA4B,kBAAoB,EAAkB,KAAmB,kBAAoB,EAAWqD,KAAgC,kBAAoB,EAAWA,MAAmBjE,IAAa/B,GAAyB,kBAAoB,OAAQ,CACvUhqD,UAAW,yBAIfirD,EAAehqD,UAuBX,GACJ,MClWA,EDkWA","sources":["webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/index.js?49cc","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/body.js?5829","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/bootstrap-table.js?dc18","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/caption.js?2d9c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/cell-event-delegater.js?ede2","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/cell.js?a712","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/const.js?3801","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/bootstrap.js?ec8c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/column-context.js?5f1b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/data-context.js?1206","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/index.js?27d3","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/row-expand-context.js?bed5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/selection-context.js?de7e","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/contexts/sort-context.js?c396","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/filters-cell.js?343d","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/filters.js?e6ee","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/footer-cell.js?7a7c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/footer.js?8ec7","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/header-cell.js?cd71","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/header.js?fac3","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/props-resolver/column-resolver.js?6faf","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/props-resolver/index.js?b8ba","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/props-resolver/remote-resolver.js?448a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-expand/expand-cell.js?629e","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-expand/expand-header-cell-consumer.js?6984","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-expand/expand-header-cell.js?813b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-expand/expand-row.js?e768","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-expand/row-consumer.js?d7b4","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-selection/row-consumer.js?d99d","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-selection/selection-cell.js?5fb8","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-selection/selection-header-cell-consumer.js?2e58","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row-selection/selection-header-cell.js?3248","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/aggregate-row.js?1edf","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/event-delegater.js?4c3a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/row-pure-content.js?6737","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/row-section.js?0a8b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/row-template.js?0ace","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/should-updater.js?1553","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/row/simple-row.js?ea44","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/sort/caret.js?012a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/sort/symbol.js?6af0","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/expand.js?071f","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/mutate.js?2b96","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/operators.js?50bd","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/rows.js?87c5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/selection.js?52f9","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/sort.js?a6dc","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/store/type.js?2a0f","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table-next/lib/src/utils.js?5bc5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/index.js?aff5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/comparison.js?df23","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/components/date.js?1a1f","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/components/multiselect.js?d3e4","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/components/number.js?0c5b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/components/select.js?bc9f","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/components/text.js?5e16","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/const.js?82b4","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/context.js?c9a5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-filter/lib/src/filter.js?ffbf","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/index.js?813c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/const.js?922c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/data-context.js?3ade","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/page-button.js?8838","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/page-resolver.js?45e2","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/page.js?6030","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-handler.js?7634","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-list-adapter.js?9fc9","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-list-standalone.js?512a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-list.js?239a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-total-adapter.js?fab5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-total-standalone.js?e84c","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination-total.js?fe64","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/pagination.js?8866","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/size-per-page-dropdown-adapter.js?5c79","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/size-per-page-dropdown-standalone.js?e40b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/size-per-page-dropdown.js?8af9","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/size-per-page-option.js?2ff9","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/standalone-adapter.js?e019","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap-table2-paginator/lib/src/state-context.js?ff82","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/createChainedFunction.js?edb6","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/SafeAnchor.js?966b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/Button.js?6630","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/transitionEndListener.js?4273","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/Fade.js?ac48","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/triggerBrowserReflow.js?6086","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/BootstrapModalManager.js?9d64","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/createWithBsPrefix.js?5061","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalBody.js?4e43","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalContext.js?e2cb","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalDialog.js?05dc","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalFooter.js?14d3","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/CloseButton.js?c9c4","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalHeader.js?d6bf","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ModalTitle.js?b79a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/divWithClassName.js?1969","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/Modal.js?e8ea","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/usePopperMarginModifiers.js?f439","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/Overlay.js?c9b5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/OverlayTrigger.js?6bdd","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/ThemeProvider.js?8558","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-bootstrap/esm/Tooltip.js?107d","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-contenteditable/lib/react-contenteditable.js?1fed","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-contenteditable/node_modules/fast-deep-equal/index.js?d2c5","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?78a1","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-dom/server.browser.js?8dbc","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-easy-swipe/lib/index.js?bd31","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-easy-swipe/lib/react-swipe.js?d845","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-fast-compare/index.js?dcb3","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/HtmlParser.js?829e","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/convertNodeToElement.js?4c8a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/dom/attributes/BooleanAttributes.js?77ff","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/dom/attributes/ReactAttributes.js?e51d","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/dom/elements/VoidElements.js?a939","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/elementTypes/StyleElementType.js?32b7","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/elementTypes/TagElementType.js?6631","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/elementTypes/TextElementType.js?4f10","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/elementTypes/UnsupportedElementType.js?29b9","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/elementTypes/index.js?acd1","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/index.js?a354","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/processNodes.js?8334","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/utils/generatePropsFromAttributes.js?641b","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/utils/htmlAttributesToReact.js?8b50","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/utils/inlineStyleToObject.js?64f3","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/utils/isEmptyTextNode.js?acbd","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-html-parser/lib/utils/isValidTagOrAttributeName.js?227a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-inner-image-zoom/es/InnerImageZoom/components/Image.js?9e9f","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-inner-image-zoom/es/InnerImageZoom/components/ZoomImage.js?3840","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-inner-image-zoom/es/InnerImageZoom/components/FullscreenPortal.js?3784","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-inner-image-zoom/es/InnerImageZoom/InnerImageZoom.js?015a","webpack://@msdyn365-commerce-partners/fabrikam/./node_modules/react-inner-image-zoom/es/index.js?f5cb"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _bootstrapTable = require('./src/bootstrap-table');\n\nvar _bootstrapTable2 = _interopRequireDefault(_bootstrapTable);\n\nvar _contexts = require('./src/contexts');\n\nvar _contexts2 = _interopRequireDefault(_contexts);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = (0, _contexts2.default)(_bootstrapTable2.default);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _simpleRow = require('./row/simple-row');\n\nvar _simpleRow2 = _interopRequireDefault(_simpleRow);\n\nvar _aggregateRow = require('./row/aggregate-row');\n\nvar _aggregateRow2 = _interopRequireDefault(_aggregateRow);\n\nvar _rowSection = require('./row/row-section');\n\nvar _rowSection2 = _interopRequireDefault(_rowSection);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _rowConsumer = require('./row-selection/row-consumer');\n\nvar _rowConsumer2 = _interopRequireDefault(_rowConsumer);\n\nvar _rowConsumer3 = require('./row-expand/row-consumer');\n\nvar _rowConsumer4 = _interopRequireDefault(_rowConsumer3);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/require-default-props: 0 */\n\nvar Body = function (_React$Component) {\n _inherits(Body, _React$Component);\n\n function Body(props) {\n _classCallCheck(this, Body);\n\n var _this = _possibleConstructorReturn(this, (Body.__proto__ || Object.getPrototypeOf(Body)).call(this, props));\n\n var keyField = props.keyField,\n cellEdit = props.cellEdit,\n selectRow = props.selectRow,\n expandRow = props.expandRow;\n\n // Construct Editing Cell Component\n\n if (cellEdit.createContext) {\n _this.EditingCell = cellEdit.createEditingCell(_utils2.default, cellEdit.options.onStartEdit);\n }\n\n // Construct Row Component\n var RowComponent = _simpleRow2.default;\n var selectRowEnabled = selectRow.mode !== _const2.default.ROW_SELECT_DISABLED;\n var expandRowEnabled = !!expandRow.renderer;\n\n if (expandRowEnabled) {\n RowComponent = (0, _rowConsumer4.default)(_aggregateRow2.default);\n }\n\n if (selectRowEnabled) {\n RowComponent = (0, _rowConsumer2.default)(expandRowEnabled ? RowComponent : _aggregateRow2.default);\n }\n\n if (cellEdit.createContext) {\n RowComponent = cellEdit.withRowLevelCellEdit(RowComponent, selectRowEnabled, keyField, _utils2.default);\n }\n _this.RowComponent = RowComponent;\n return _this;\n }\n\n _createClass(Body, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n columns = _props.columns,\n data = _props.data,\n tabIndexCell = _props.tabIndexCell,\n keyField = _props.keyField,\n isEmpty = _props.isEmpty,\n noDataIndication = _props.noDataIndication,\n visibleColumnSize = _props.visibleColumnSize,\n cellEdit = _props.cellEdit,\n selectRow = _props.selectRow,\n rowStyle = _props.rowStyle,\n rowClasses = _props.rowClasses,\n rowEvents = _props.rowEvents,\n expandRow = _props.expandRow,\n className = _props.className;\n\n\n var content = void 0;\n\n if (isEmpty) {\n var indication = _utils2.default.isFunction(noDataIndication) ? noDataIndication() : noDataIndication;\n if (!indication) {\n return null;\n }\n content = _react2.default.createElement(_rowSection2.default, { content: indication, colSpan: visibleColumnSize });\n } else {\n var selectRowEnabled = selectRow.mode !== _const2.default.ROW_SELECT_DISABLED;\n var expandRowEnabled = !!expandRow.renderer;\n\n var additionalRowProps = {};\n\n if (cellEdit.createContext) {\n additionalRowProps.EditingCellComponent = this.EditingCell;\n }\n\n if (selectRowEnabled || expandRowEnabled) {\n additionalRowProps.expandRow = expandRow;\n additionalRowProps.selectRow = selectRow;\n }\n\n content = data.map(function (row, index) {\n var key = _utils2.default.get(row, keyField);\n var baseRowProps = _extends({\n key: key,\n row: row,\n tabIndexCell: tabIndexCell,\n columns: columns,\n keyField: keyField,\n cellEdit: cellEdit,\n value: key,\n rowIndex: index,\n visibleColumnSize: visibleColumnSize,\n attrs: rowEvents || {}\n }, additionalRowProps);\n\n baseRowProps.style = _utils2.default.isFunction(rowStyle) ? rowStyle(row, index) : rowStyle;\n baseRowProps.className = _utils2.default.isFunction(rowClasses) ? rowClasses(row, index) : rowClasses;\n\n return _react2.default.createElement(_this2.RowComponent, baseRowProps);\n });\n }\n\n return _react2.default.createElement(\n 'tbody',\n { className: className },\n content\n );\n }\n }]);\n\n return Body;\n}(_react2.default.Component);\n\nBody.propTypes = {\n keyField: _propTypes2.default.string.isRequired,\n data: _propTypes2.default.array.isRequired,\n columns: _propTypes2.default.array.isRequired,\n selectRow: _propTypes2.default.object\n};\n\nexports.default = Body;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _header = require('./header');\n\nvar _header2 = _interopRequireDefault(_header);\n\nvar _filters = require('./filters');\n\nvar _filters2 = _interopRequireDefault(_filters);\n\nvar _caption = require('./caption');\n\nvar _caption2 = _interopRequireDefault(_caption);\n\nvar _body = require('./body');\n\nvar _body2 = _interopRequireDefault(_body);\n\nvar _footer = require('./footer');\n\nvar _footer2 = _interopRequireDefault(_footer);\n\nvar _propsResolver = require('./props-resolver');\n\nvar _propsResolver2 = _interopRequireDefault(_propsResolver);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n/* eslint arrow-body-style: 0 */\n\nvar BootstrapTable = function (_PropsBaseResolver) {\n _inherits(BootstrapTable, _PropsBaseResolver);\n\n function BootstrapTable(props) {\n _classCallCheck(this, BootstrapTable);\n\n var _this = _possibleConstructorReturn(this, (BootstrapTable.__proto__ || Object.getPrototypeOf(BootstrapTable)).call(this, props));\n\n _this.getData = function () {\n return _this.visibleRows();\n };\n\n _this.validateProps();\n return _this;\n }\n\n _createClass(BootstrapTable, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.onDataSizeChange && !nextProps.pagination) {\n if (nextProps.data.length !== this.props.data.length) {\n nextProps.onDataSizeChange({ dataSize: nextProps.data.length });\n }\n }\n }\n\n // Exposed APIs\n\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n loading = _props.loading,\n overlay = _props.overlay;\n\n if (overlay) {\n var LoadingOverlay = overlay(loading);\n return _react2.default.createElement(\n LoadingOverlay,\n null,\n this.renderTable()\n );\n }\n return this.renderTable();\n }\n }, {\n key: 'renderTable',\n value: function renderTable() {\n var _props2 = this.props,\n columns = _props2.columns,\n keyField = _props2.keyField,\n tabIndexCell = _props2.tabIndexCell,\n id = _props2.id,\n classes = _props2.classes,\n bootstrap4 = _props2.bootstrap4,\n striped = _props2.striped,\n hover = _props2.hover,\n bordered = _props2.bordered,\n condensed = _props2.condensed,\n noDataIndication = _props2.noDataIndication,\n caption = _props2.caption,\n rowStyle = _props2.rowStyle,\n rowClasses = _props2.rowClasses,\n wrapperClasses = _props2.wrapperClasses,\n rowEvents = _props2.rowEvents,\n selectRow = _props2.selectRow,\n expandRow = _props2.expandRow,\n cellEdit = _props2.cellEdit,\n filterPosition = _props2.filterPosition;\n\n\n var tableWrapperClass = (0, _classnames2.default)('react-bootstrap-table', wrapperClasses);\n\n var tableClass = (0, _classnames2.default)('table', _defineProperty({\n 'table-striped': striped,\n 'table-hover': hover,\n 'table-bordered': bordered\n }, bootstrap4 ? 'table-sm' : 'table-condensed', condensed), classes);\n\n var hasFilters = columns.some(function (col) {\n return col.filter || col.filterRenderer;\n });\n\n var hasFooter = _utils2.default.filter(columns, function (col) {\n return _utils2.default.has(col, 'footer');\n }).length > 0;\n\n var tableCaption = caption && _react2.default.createElement(\n _caption2.default,\n { bootstrap4: bootstrap4 },\n caption\n );\n\n return _react2.default.createElement(\n 'div',\n { className: tableWrapperClass },\n _react2.default.createElement(\n 'table',\n { id: id, className: tableClass },\n tableCaption,\n _react2.default.createElement(_header2.default, {\n columns: columns,\n className: this.props.headerClasses,\n wrapperClasses: this.props.headerWrapperClasses,\n sortField: this.props.sortField,\n sortOrder: this.props.sortOrder,\n onSort: this.props.onSort,\n globalSortCaret: this.props.sort && this.props.sort.sortCaret,\n onFilter: this.props.onFilter,\n currFilters: this.props.currFilters,\n onExternalFilter: this.props.onExternalFilter,\n selectRow: selectRow,\n expandRow: expandRow,\n filterPosition: filterPosition\n }),\n hasFilters && filterPosition !== _const2.default.FILTERS_POSITION_INLINE && _react2.default.createElement(_filters2.default, {\n columns: columns,\n className: this.props.filtersClasses,\n onSort: this.props.onSort,\n onFilter: this.props.onFilter,\n currFilters: this.props.currFilters,\n filterPosition: this.props.filterPosition,\n onExternalFilter: this.props.onExternalFilter,\n selectRow: selectRow,\n expandRow: expandRow\n }),\n _react2.default.createElement(_body2.default, {\n className: this.props.bodyClasses,\n data: this.getData(),\n keyField: keyField,\n tabIndexCell: tabIndexCell,\n columns: columns,\n isEmpty: this.isEmpty(),\n visibleColumnSize: this.visibleColumnSize(),\n noDataIndication: noDataIndication,\n cellEdit: cellEdit,\n selectRow: selectRow,\n expandRow: expandRow,\n rowStyle: rowStyle,\n rowClasses: rowClasses,\n rowEvents: rowEvents\n }),\n hasFooter && _react2.default.createElement(_footer2.default, {\n data: this.getData(),\n columns: columns,\n selectRow: selectRow,\n expandRow: expandRow,\n className: this.props.footerClasses\n })\n )\n );\n }\n }]);\n\n return BootstrapTable;\n}((0, _propsResolver2.default)(_react.Component));\n\nBootstrapTable.propTypes = {\n keyField: _propTypes2.default.string.isRequired,\n data: _propTypes2.default.array.isRequired,\n columns: _propTypes2.default.array.isRequired,\n bootstrap4: _propTypes2.default.bool,\n remote: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.shape({\n pagination: _propTypes2.default.bool\n })]),\n noDataIndication: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.func]),\n striped: _propTypes2.default.bool,\n bordered: _propTypes2.default.bool,\n hover: _propTypes2.default.bool,\n tabIndexCell: _propTypes2.default.bool,\n id: _propTypes2.default.string,\n classes: _propTypes2.default.string,\n headerClasses: _propTypes2.default.string,\n bodyClasses: _propTypes2.default.string,\n wrapperClasses: _propTypes2.default.string,\n headerWrapperClasses: _propTypes2.default.string,\n condensed: _propTypes2.default.bool,\n caption: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.string]),\n pagination: _propTypes2.default.object,\n filter: _propTypes2.default.object,\n cellEdit: _propTypes2.default.object,\n selectRow: _propTypes2.default.shape({\n mode: _propTypes2.default.oneOf([_const2.default.ROW_SELECT_SINGLE, _const2.default.ROW_SELECT_MULTIPLE, _const2.default.ROW_SELECT_DISABLED]).isRequired,\n clickToSelect: _propTypes2.default.bool,\n clickToExpand: _propTypes2.default.bool,\n clickToEdit: _propTypes2.default.bool,\n hideSelectAll: _propTypes2.default.bool,\n onSelect: _propTypes2.default.func,\n onSelectAll: _propTypes2.default.func,\n style: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n classes: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n nonSelectable: _propTypes2.default.array,\n nonSelectableStyle: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n nonSelectableClasses: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n bgColor: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n hideSelectColumn: _propTypes2.default.bool,\n selectionRenderer: _propTypes2.default.func,\n selectionHeaderRenderer: _propTypes2.default.func,\n headerColumnStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n selectColumnStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n selectColumnPosition: _propTypes2.default.oneOf([_const2.default.INDICATOR_POSITION_LEFT, _const2.default.INDICATOR_POSITION_RIGHT])\n }),\n expandRow: _propTypes2.default.shape({\n renderer: _propTypes2.default.func,\n expanded: _propTypes2.default.array,\n onExpand: _propTypes2.default.func,\n onExpandAll: _propTypes2.default.func,\n nonExpandable: _propTypes2.default.array,\n showExpandColumn: _propTypes2.default.bool,\n onlyOneExpanding: _propTypes2.default.bool,\n expandByColumnOnly: _propTypes2.default.bool,\n expandColumnRenderer: _propTypes2.default.func,\n expandHeaderColumnRenderer: _propTypes2.default.func,\n expandColumnPosition: _propTypes2.default.oneOf([_const2.default.INDICATOR_POSITION_LEFT, _const2.default.INDICATOR_POSITION_RIGHT]),\n className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n parentClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func])\n }),\n rowStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n rowEvents: _propTypes2.default.object,\n rowClasses: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n filtersClasses: _propTypes2.default.string,\n filterPosition: _propTypes2.default.oneOf([_const2.default.FILTERS_POSITION_TOP, _const2.default.FILTERS_POSITION_INLINE, _const2.default.FILTERS_POSITION_BOTTOM]),\n footerClasses: _propTypes2.default.string,\n defaultSorted: _propTypes2.default.arrayOf(_propTypes2.default.shape({\n dataField: _propTypes2.default.string.isRequired,\n order: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC]).isRequired\n })),\n sort: _propTypes2.default.shape({\n dataField: _propTypes2.default.string,\n order: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC]),\n sortFunc: _propTypes2.default.func,\n sortCaret: _propTypes2.default.func\n }),\n defaultSortDirection: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC]),\n overlay: _propTypes2.default.func,\n onTableChange: _propTypes2.default.func,\n onSort: _propTypes2.default.func,\n onFilter: _propTypes2.default.func,\n onExternalFilter: _propTypes2.default.func,\n onDataSizeChange: _propTypes2.default.func,\n // Inject from toolkit\n search: _propTypes2.default.shape({\n searchText: _propTypes2.default.string,\n searchContext: _propTypes2.default.func\n }),\n setDependencyModules: _propTypes2.default.func\n};\n\nBootstrapTable.defaultProps = {\n bootstrap4: false,\n remote: false,\n striped: false,\n bordered: true,\n hover: false,\n condensed: false,\n noDataIndication: null,\n selectRow: {\n mode: _const2.default.ROW_SELECT_DISABLED,\n selected: [],\n hideSelectColumn: true\n },\n expandRow: {\n renderer: undefined,\n expanded: [],\n nonExpandable: []\n },\n cellEdit: {\n mode: null,\n nonEditableRows: []\n },\n filterPosition: _const2.default.FILTERS_POSITION_INLINE\n};\n\nexports.default = BootstrapTable;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint react/require-default-props: 0 */\nvar Caption = function Caption(props) {\n if (!props.children) return null;\n\n var caption = props.bootstrap4 ? _react2.default.createElement(\n 'caption',\n { style: { captionSide: 'top' } },\n props.children\n ) : _react2.default.createElement(\n 'caption',\n null,\n props.children\n );\n\n return caption;\n};\n\nCaption.propTypes = {\n children: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.string]),\n bootstrap4: _propTypes2.default.bool\n};\n\nexports.default = Caption;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nvar events = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu', 'onAuxClick'];\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(CellEventDelegater, _ExtendBase);\n\n function CellEventDelegater(props) {\n _classCallCheck(this, CellEventDelegater);\n\n var _this = _possibleConstructorReturn(this, (CellEventDelegater.__proto__ || Object.getPrototypeOf(CellEventDelegater)).call(this, props));\n\n _this.createDefaultEventHandler = _this.createDefaultEventHandler.bind(_this);\n return _this;\n }\n\n _createClass(CellEventDelegater, [{\n key: 'createDefaultEventHandler',\n value: function createDefaultEventHandler(cb) {\n var _this2 = this;\n\n return function (e) {\n var _props = _this2.props,\n column = _props.column,\n columnIndex = _props.columnIndex,\n index = _props.index;\n\n cb(e, column, typeof columnIndex !== 'undefined' ? columnIndex : index);\n };\n }\n }, {\n key: 'delegate',\n value: function delegate() {\n var _this3 = this;\n\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var newAttrs = _extends({}, attrs);\n Object.keys(attrs).forEach(function (attr) {\n if (_utils2.default.contains(events, attr)) {\n newAttrs[attr] = _this3.createDefaultEventHandler(attrs[attr]);\n }\n });\n return newAttrs;\n }\n }]);\n\n return CellEventDelegater;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _cellEventDelegater = require('./cell-event-delegater');\n\nvar _cellEventDelegater2 = _interopRequireDefault(_cellEventDelegater);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n\n\nvar Cell = function (_eventDelegater) {\n _inherits(Cell, _eventDelegater);\n\n function Cell(props) {\n _classCallCheck(this, Cell);\n\n var _this = _possibleConstructorReturn(this, (Cell.__proto__ || Object.getPrototypeOf(Cell)).call(this, props));\n\n _this.createHandleEditingCell = function (originFunc) {\n return function (e) {\n var _this$props = _this.props,\n onStart = _this$props.onStart,\n rowIndex = _this$props.rowIndex,\n columnIndex = _this$props.columnIndex,\n clickToEdit = _this$props.clickToEdit,\n dbclickToEdit = _this$props.dbclickToEdit;\n\n if ((clickToEdit || dbclickToEdit) && _utils2.default.isFunction(originFunc)) {\n originFunc(e);\n }\n if (onStart) {\n onStart(rowIndex, columnIndex);\n }\n };\n };\n\n _this.createHandleEditingCell = _this.createHandleEditingCell.bind(_this);\n return _this;\n }\n\n _createClass(Cell, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var shouldUpdate = false;\n if (nextProps.column.isDummyField) {\n shouldUpdate = !_utils2.default.isEqual(this.props.row, nextProps.row);\n } else {\n shouldUpdate = _utils2.default.get(this.props.row, this.props.column.dataField) !== _utils2.default.get(nextProps.row, nextProps.column.dataField);\n }\n\n if (shouldUpdate) return true;\n\n // if (nextProps.formatter)\n\n shouldUpdate = (nextProps.column.formatter ? !_utils2.default.isEqual(this.props.row, nextProps.row) : false) || this.props.column.hidden !== nextProps.column.hidden || this.props.column.isDummyField !== nextProps.column.isDummyField || this.props.rowIndex !== nextProps.rowIndex || this.props.columnIndex !== nextProps.columnIndex || this.props.className !== nextProps.className || this.props.title !== nextProps.title || this.props.editable !== nextProps.editable || this.props.clickToEdit !== nextProps.clickToEdit || this.props.dbclickToEdit !== nextProps.dbclickToEdit || !_utils2.default.isEqual(this.props.style, nextProps.style) || !_utils2.default.isEqual(this.props.column.formatExtraData, nextProps.column.formatExtraData) || !_utils2.default.isEqual(this.props.column.events, nextProps.column.events) || !_utils2.default.isEqual(this.props.column.attrs, nextProps.column.attrs) || this.props.tabIndex !== nextProps.tabIndex;\n return shouldUpdate;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n row = _props.row,\n rowIndex = _props.rowIndex,\n column = _props.column,\n columnIndex = _props.columnIndex,\n onStart = _props.onStart,\n editable = _props.editable,\n clickToEdit = _props.clickToEdit,\n dbclickToEdit = _props.dbclickToEdit,\n rest = _objectWithoutProperties(_props, ['row', 'rowIndex', 'column', 'columnIndex', 'onStart', 'editable', 'clickToEdit', 'dbclickToEdit']);\n\n var dataField = column.dataField,\n formatter = column.formatter,\n formatExtraData = column.formatExtraData;\n\n var attrs = this.delegate(_extends({}, rest));\n var content = column.isDummyField ? null : _utils2.default.get(row, dataField);\n\n if (formatter) {\n content = column.formatter(content, row, rowIndex, formatExtraData);\n }\n\n if (clickToEdit && editable) {\n attrs.onClick = this.createHandleEditingCell(attrs.onClick);\n } else if (dbclickToEdit && editable) {\n attrs.onDoubleClick = this.createHandleEditingCell(attrs.onDoubleClick);\n }\n\n return _react2.default.createElement(\n 'td',\n attrs,\n typeof content === 'boolean' ? '' + content : content\n );\n }\n }]);\n\n return Cell;\n}((0, _cellEventDelegater2.default)(_react.Component));\n\nCell.propTypes = {\n row: _propTypes2.default.object.isRequired,\n rowIndex: _propTypes2.default.number.isRequired,\n column: _propTypes2.default.object.isRequired,\n columnIndex: _propTypes2.default.number.isRequired\n};\n\nexports.default = Cell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n SORT_ASC: 'asc',\n SORT_DESC: 'desc',\n ROW_SELECT_SINGLE: 'radio',\n ROW_SELECT_MULTIPLE: 'checkbox',\n ROW_SELECT_DISABLED: 'ROW_SELECT_DISABLED',\n CHECKBOX_STATUS_CHECKED: 'checked',\n CHECKBOX_STATUS_INDETERMINATE: 'indeterminate',\n CHECKBOX_STATUS_UNCHECKED: 'unchecked',\n INDICATOR_POSITION_LEFT: 'left',\n INDICATOR_POSITION_RIGHT: 'right',\n TYPE_STRING: 'string',\n TYPE_NUMBER: 'number',\n TYPE_BOOLEAN: 'bool',\n TYPE_DATE: 'date',\n FILTERS_POSITION_INLINE: 'inline',\n FILTERS_POSITION_TOP: 'top',\n FILTERS_POSITION_BOTTOM: 'bottom'\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BootstrapContext = undefined;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar BootstrapContext = exports.BootstrapContext = _react2.default.createContext({\n bootstrap4: false\n});","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/prefer-stateless-function: 0 */\n\n\nexports.default = function () {\n var ColumnManagementContext = _react2.default.createContext();\n\n var ColumnManagementProvider = function (_React$Component) {\n _inherits(ColumnManagementProvider, _React$Component);\n\n function ColumnManagementProvider() {\n _classCallCheck(this, ColumnManagementProvider);\n\n return _possibleConstructorReturn(this, (ColumnManagementProvider.__proto__ || Object.getPrototypeOf(ColumnManagementProvider)).apply(this, arguments));\n }\n\n _createClass(ColumnManagementProvider, [{\n key: 'render',\n value: function render() {\n var toggleColumn = void 0;\n var _props = this.props,\n columns = _props.columns,\n toggles = _props.toggles;\n\n if (toggles) {\n toggleColumn = columns.filter(function (column) {\n return toggles[column.dataField];\n });\n } else {\n toggleColumn = columns.filter(function (column) {\n return !column.hidden;\n });\n }\n return _react2.default.createElement(\n ColumnManagementContext.Provider,\n { value: { columns: toggleColumn } },\n this.props.children\n );\n }\n }]);\n\n return ColumnManagementProvider;\n }(_react2.default.Component);\n\n ColumnManagementProvider.propTypes = {\n columns: _propTypes2.default.array.isRequired,\n toggles: _propTypes2.default.object\n };\n ColumnManagementProvider.defaultProps = {\n toggles: null\n };\n\n\n return {\n Provider: ColumnManagementProvider,\n Consumer: ColumnManagementContext.Consumer\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n\n\nexports.default = function () {\n var DataContext = _react2.default.createContext();\n\n var DataProvider = function (_Component) {\n _inherits(DataProvider, _Component);\n\n function DataProvider() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, DataProvider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DataProvider.__proto__ || Object.getPrototypeOf(DataProvider)).call.apply(_ref, [this].concat(args))), _this), _this.state = { data: _this.props.data }, _this.getData = function (filterProps, searchProps, sortProps, paginationProps) {\n if (paginationProps) return paginationProps.data;else if (sortProps) return sortProps.data;else if (searchProps) return searchProps.data;else if (filterProps) return filterProps.data;\n return _this.props.data;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(DataProvider, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n this.setState(function () {\n return { data: nextProps.data };\n });\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n DataContext.Provider,\n {\n value: {\n data: this.state.data,\n getData: this.getData\n }\n },\n this.props.children\n );\n }\n }]);\n\n return DataProvider;\n }(_react.Component);\n\n DataProvider.propTypes = {\n data: _propTypes2.default.array.isRequired,\n children: _propTypes2.default.node.isRequired\n };\n\n return {\n Provider: DataProvider,\n Consumer: DataContext.Consumer\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _events = require('events');\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _dataContext = require('./data-context');\n\nvar _dataContext2 = _interopRequireDefault(_dataContext);\n\nvar _columnContext = require('./column-context');\n\nvar _columnContext2 = _interopRequireDefault(_columnContext);\n\nvar _sortContext = require('./sort-context');\n\nvar _sortContext2 = _interopRequireDefault(_sortContext);\n\nvar _selectionContext = require('./selection-context');\n\nvar _selectionContext2 = _interopRequireDefault(_selectionContext);\n\nvar _rowExpandContext = require('./row-expand-context');\n\nvar _rowExpandContext2 = _interopRequireDefault(_rowExpandContext);\n\nvar _remoteResolver2 = require('../props-resolver/remote-resolver');\n\nvar _remoteResolver3 = _interopRequireDefault(_remoteResolver2);\n\nvar _bootstrap = require('./bootstrap');\n\nvar _operators = require('../store/operators');\n\nvar _operators2 = _interopRequireDefault(_operators);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n/* eslint no-return-assign: 0 */\n/* eslint no-param-reassign: 0 */\n/* eslint class-methods-use-this: 0 */\n\n\nvar withContext = function withContext(Base) {\n return function (_remoteResolver) {\n _inherits(BootstrapTableContainer, _remoteResolver);\n\n function BootstrapTableContainer(props) {\n _classCallCheck(this, BootstrapTableContainer);\n\n var _this = _possibleConstructorReturn(this, (BootstrapTableContainer.__proto__ || Object.getPrototypeOf(BootstrapTableContainer)).call(this, props));\n\n _this.DataContext = (0, _dataContext2.default)();\n\n if (props.registerExposedAPI) {\n var exposedAPIEmitter = new _events2.default();\n exposedAPIEmitter.on('get.table.data', function (payload) {\n return payload.result = _this.table.getData();\n });\n exposedAPIEmitter.on('get.selected.rows', function (payload) {\n return payload.result = _this.selectionContext.getSelected();\n });\n exposedAPIEmitter.on('get.filtered.rows', function (payload) {\n if (_this.searchContext) {\n payload.result = _this.searchContext.getSearched();\n } else if (_this.filterContext) {\n payload.result = _this.filterContext.getFiltered();\n } else {\n payload.result = _this.table.getData();\n }\n });\n props.registerExposedAPI(exposedAPIEmitter);\n }\n\n if (props.columns.filter(function (col) {\n return col.sort;\n }).length > 0) {\n _this.SortContext = (0, _sortContext2.default)(_operators2.default, _this.isRemoteSort, _this.handleRemoteSortChange);\n }\n\n if (props.columnToggle || props.columns.filter(function (col) {\n return col.hidden;\n }).length > 0) {\n _this.ColumnManagementContext = (0, _columnContext2.default)();\n }\n\n if (props.selectRow) {\n _this.SelectionContext = _selectionContext2.default;\n }\n\n if (props.expandRow) {\n _this.RowExpandContext = _rowExpandContext2.default;\n }\n\n if (props.cellEdit && props.cellEdit.createContext) {\n _this.CellEditContext = props.cellEdit.createContext(_utils2.default, _operators2.default, _this.isRemoteCellEdit, _this.handleRemoteCellChange);\n }\n\n if (props.filter) {\n _this.FilterContext = props.filter.createContext(_utils2.default, _this.isRemoteFiltering, _this.handleRemoteFilterChange);\n }\n\n if (props.pagination) {\n _this.PaginationContext = props.pagination.createContext();\n }\n\n if (props.search && props.search.searchContext) {\n _this.SearchContext = props.search.searchContext(_utils2.default, _this.isRemoteSearch, _this.handleRemoteSearchChange);\n }\n\n if (props.setDependencyModules) {\n props.setDependencyModules(_utils2.default);\n }\n\n if (props.setPaginationRemoteEmitter) {\n props.setPaginationRemoteEmitter(_this.remoteEmitter);\n }\n return _this;\n }\n\n _createClass(BootstrapTableContainer, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.columns.filter(function (col) {\n return col.sort;\n }).length <= 0) {\n this.SortContext = null;\n } else if (!this.SortContext) {\n this.SortContext = (0, _sortContext2.default)(_operators2.default, this.isRemoteSort, this.handleRemoteSortChange);\n }\n if (!nextProps.pagination && this.props.pagination) {\n this.PaginationContext = null;\n }\n if (nextProps.pagination && !this.props.pagination) {\n this.PaginationContext = nextProps.pagination.createContext(this.isRemotePagination, this.handleRemotePageChange);\n }\n if (!nextProps.cellEdit && this.props.cellEdit) {\n this.CellEditContext = null;\n }\n if (nextProps.cellEdit && !this.props.cellEdit) {\n this.CellEditContext = nextProps.cellEdit.createContext(_utils2.default, _operators2.default, this.isRemoteCellEdit, this.handleRemoteCellChange);\n }\n }\n }, {\n key: 'renderBase',\n value: function renderBase() {\n var _this2 = this;\n\n return function (rootProps, filterProps, searchProps, sortProps, paginationProps, columnToggleProps) {\n return _react2.default.createElement(Base, _extends({\n ref: function ref(n) {\n return _this2.table = n;\n }\n }, _this2.props, sortProps, filterProps, searchProps, paginationProps, columnToggleProps, {\n data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps)\n }));\n };\n }\n }, {\n key: 'renderWithColumnManagementCtx',\n value: function renderWithColumnManagementCtx(base, baseProps) {\n var _this3 = this;\n\n return function (rootProps, filterProps, searchProps, sortProps, paginationProps) {\n return _react2.default.createElement(\n _this3.ColumnManagementContext.Provider,\n _extends({}, baseProps, {\n toggles: _this3.props.columnToggle ? _this3.props.columnToggle.toggles : null\n }),\n _react2.default.createElement(\n _this3.ColumnManagementContext.Consumer,\n null,\n function (columnToggleProps) {\n return base(rootProps, filterProps, searchProps, sortProps, paginationProps, columnToggleProps);\n }\n )\n );\n };\n }\n }, {\n key: 'renderWithSelectionCtx',\n value: function renderWithSelectionCtx(base, baseProps) {\n var _this4 = this;\n\n return function (rootProps, filterProps, searchProps, sortProps, paginationProps) {\n return _react2.default.createElement(\n _this4.SelectionContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this4.selectionContext = n;\n },\n selectRow: _this4.props.selectRow,\n data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps)\n }),\n base(rootProps, filterProps, searchProps, sortProps, paginationProps)\n );\n };\n }\n }, {\n key: 'renderWithRowExpandCtx',\n value: function renderWithRowExpandCtx(base, baseProps) {\n var _this5 = this;\n\n return function (rootProps, filterProps, searchProps, sortProps, paginationProps) {\n return _react2.default.createElement(\n _this5.RowExpandContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this5.rowExpandContext = n;\n },\n expandRow: _this5.props.expandRow,\n data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps)\n }),\n base(rootProps, filterProps, searchProps, sortProps, paginationProps)\n );\n };\n }\n }, {\n key: 'renderWithPaginationCtx',\n value: function renderWithPaginationCtx(base) {\n var _this6 = this;\n\n return function (rootProps, filterProps, searchProps, sortProps) {\n return _react2.default.createElement(\n _this6.PaginationContext.Provider,\n {\n ref: function ref(n) {\n return _this6.paginationContext = n;\n },\n pagination: _this6.props.pagination,\n data: rootProps.getData(filterProps, searchProps, sortProps),\n bootstrap4: _this6.props.bootstrap4,\n isRemotePagination: _this6.isRemotePagination,\n remoteEmitter: _this6.remoteEmitter,\n onDataSizeChange: _this6.props.onDataSizeChange,\n tableId: _this6.props.id\n },\n _react2.default.createElement(\n _this6.PaginationContext.Consumer,\n null,\n function (paginationProps) {\n return base(rootProps, filterProps, searchProps, sortProps, paginationProps);\n }\n )\n );\n };\n }\n }, {\n key: 'renderWithSortCtx',\n value: function renderWithSortCtx(base, baseProps) {\n var _this7 = this;\n\n return function (rootProps, filterProps, searchProps) {\n return _react2.default.createElement(\n _this7.SortContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this7.sortContext = n;\n },\n defaultSorted: _this7.props.defaultSorted,\n defaultSortDirection: _this7.props.defaultSortDirection,\n sort: _this7.props.sort,\n data: rootProps.getData(filterProps, searchProps)\n }),\n _react2.default.createElement(\n _this7.SortContext.Consumer,\n null,\n function (sortProps) {\n return base(rootProps, filterProps, searchProps, sortProps);\n }\n )\n );\n };\n }\n }, {\n key: 'renderWithSearchCtx',\n value: function renderWithSearchCtx(base, baseProps) {\n var _this8 = this;\n\n return function (rootProps, filterProps) {\n return _react2.default.createElement(\n _this8.SearchContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this8.searchContext = n;\n },\n data: rootProps.getData(filterProps),\n searchText: _this8.props.search.searchText,\n dataChangeListener: _this8.props.dataChangeListener\n }),\n _react2.default.createElement(\n _this8.SearchContext.Consumer,\n null,\n function (searchProps) {\n return base(rootProps, filterProps, searchProps);\n }\n )\n );\n };\n }\n }, {\n key: 'renderWithFilterCtx',\n value: function renderWithFilterCtx(base, baseProps) {\n var _this9 = this;\n\n return function (rootProps) {\n return _react2.default.createElement(\n _this9.FilterContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this9.filterContext = n;\n },\n data: rootProps.getData(),\n filter: _this9.props.filter.options || {},\n dataChangeListener: _this9.props.dataChangeListener\n }),\n _react2.default.createElement(\n _this9.FilterContext.Consumer,\n null,\n function (filterProps) {\n return base(rootProps, filterProps);\n }\n )\n );\n };\n }\n }, {\n key: 'renderWithCellEditCtx',\n value: function renderWithCellEditCtx(base, baseProps) {\n var _this10 = this;\n\n return function (rootProps) {\n return _react2.default.createElement(\n _this10.CellEditContext.Provider,\n _extends({}, baseProps, {\n ref: function ref(n) {\n return _this10.cellEditContext = n;\n },\n selectRow: _this10.props.selectRow,\n cellEdit: _this10.props.cellEdit,\n data: rootProps.getData()\n }),\n base(rootProps)\n );\n };\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n keyField = _props.keyField,\n columns = _props.columns,\n bootstrap4 = _props.bootstrap4;\n\n var baseProps = { keyField: keyField, columns: columns };\n\n var base = this.renderBase();\n\n if (this.ColumnManagementContext) {\n base = this.renderWithColumnManagementCtx(base, baseProps);\n }\n\n if (this.SelectionContext) {\n base = this.renderWithSelectionCtx(base, baseProps);\n }\n\n if (this.RowExpandContext) {\n base = this.renderWithRowExpandCtx(base, baseProps);\n }\n\n if (this.PaginationContext) {\n base = this.renderWithPaginationCtx(base, baseProps);\n }\n\n if (this.SortContext) {\n base = this.renderWithSortCtx(base, baseProps);\n }\n\n if (this.SearchContext) {\n base = this.renderWithSearchCtx(base, baseProps);\n }\n\n if (this.FilterContext) {\n base = this.renderWithFilterCtx(base, baseProps);\n }\n\n if (this.CellEditContext) {\n base = this.renderWithCellEditCtx(base, baseProps);\n }\n\n return _react2.default.createElement(\n _bootstrap.BootstrapContext.Provider,\n { value: { bootstrap4: bootstrap4 } },\n _react2.default.createElement(\n this.DataContext.Provider,\n _extends({}, baseProps, {\n data: this.props.data\n }),\n _react2.default.createElement(\n this.DataContext.Consumer,\n null,\n base\n )\n )\n );\n }\n }]);\n\n return BootstrapTableContainer;\n }((0, _remoteResolver3.default)(_react.Component));\n};\n\nexports.default = withContext;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _operators = require('../store/operators');\n\nvar _operators2 = _interopRequireDefault(_operators);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n/* eslint react/prop-types: 0 */\n\n\nvar RowExpandContext = _react2.default.createContext();\n\nvar RowExpandProvider = function (_React$Component) {\n _inherits(RowExpandProvider, _React$Component);\n\n function RowExpandProvider() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, RowExpandProvider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = RowExpandProvider.__proto__ || Object.getPrototypeOf(RowExpandProvider)).call.apply(_ref, [this].concat(args))), _this), _this.state = { expanded: _this.props.expandRow.expanded || [],\n isClosing: _this.props.expandRow.isClosing || [] }, _this.onClosed = function (closedRow) {\n _this.setState({ isClosing: _this.state.isClosing.filter(function (value) {\n return value !== closedRow;\n }) });\n }, _this.handleRowExpand = function (rowKey, expanded, rowIndex, e) {\n var _this$props = _this.props,\n data = _this$props.data,\n keyField = _this$props.keyField,\n _this$props$expandRow = _this$props.expandRow,\n onExpand = _this$props$expandRow.onExpand,\n onlyOneExpanding = _this$props$expandRow.onlyOneExpanding,\n nonExpandable = _this$props$expandRow.nonExpandable;\n\n if (nonExpandable && _utils2.default.contains(nonExpandable, rowKey)) {\n return;\n }\n\n var currExpanded = [].concat(_toConsumableArray(_this.state.expanded));\n var isClosing = [].concat(_toConsumableArray(_this.state.isClosing));\n\n if (expanded) {\n if (onlyOneExpanding) {\n isClosing = isClosing.concat(currExpanded);\n currExpanded = [rowKey];\n } else currExpanded.push(rowKey);\n } else {\n isClosing.push(rowKey);\n currExpanded = currExpanded.filter(function (value) {\n return value !== rowKey;\n });\n }\n\n if (onExpand) {\n var row = _operators2.default.getRowByRowId(data, keyField, rowKey);\n onExpand(row, expanded, rowIndex, e);\n }\n _this.setState(function () {\n return { expanded: currExpanded, isClosing: isClosing };\n });\n }, _this.handleAllRowExpand = function (e, expandAll) {\n var _this$props2 = _this.props,\n data = _this$props2.data,\n keyField = _this$props2.keyField,\n _this$props2$expandRo = _this$props2.expandRow,\n onExpandAll = _this$props2$expandRo.onExpandAll,\n nonExpandable = _this$props2$expandRo.nonExpandable;\n var expanded = _this.state.expanded;\n\n\n var currExpanded = void 0;\n\n if (expandAll) {\n currExpanded = expanded.concat(_operators2.default.expandableKeys(data, keyField, nonExpandable));\n } else {\n currExpanded = expanded.filter(function (s) {\n return typeof data.find(function (d) {\n return _utils2.default.get(d, keyField) === s;\n }) === 'undefined';\n });\n }\n\n if (onExpandAll) {\n onExpandAll(expandAll, _operators2.default.getExpandedRows(data, keyField, currExpanded), e);\n }\n\n _this.setState(function () {\n return { expanded: currExpanded };\n });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(RowExpandProvider, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n var _this2 = this;\n\n if (nextProps.expandRow) {\n var nextExpanded = [].concat(_toConsumableArray(nextProps.expandRow.expanded || this.state.expanded));\n var _nextProps$expandRow$ = nextProps.expandRow.nonExpandable,\n nonExpandable = _nextProps$expandRow$ === undefined ? [] : _nextProps$expandRow$;\n\n nextExpanded = nextExpanded.filter(function (rowId) {\n return !_utils2.default.contains(nonExpandable, rowId);\n });\n var isClosing = this.state.expanded.reduce(function (acc, cur) {\n if (!_utils2.default.contains(nextExpanded, cur)) {\n acc.push(cur);\n }\n return acc;\n }, []);\n\n this.setState(function () {\n return {\n expanded: nextExpanded,\n isClosing: isClosing\n };\n });\n } else {\n this.setState(function () {\n return {\n expanded: _this2.state.expanded\n };\n });\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n data = _props.data,\n keyField = _props.keyField;\n\n return _react2.default.createElement(\n RowExpandContext.Provider,\n {\n value: _extends({}, this.props.expandRow, {\n nonExpandable: this.props.expandRow.nonExpandable,\n expanded: this.state.expanded,\n isClosing: this.state.isClosing,\n onClosed: this.onClosed,\n isAnyExpands: _operators2.default.isAnyExpands(data, keyField, this.state.expanded),\n onRowExpand: this.handleRowExpand,\n onAllRowExpand: this.handleAllRowExpand\n })\n },\n this.props.children\n );\n }\n }]);\n\n return RowExpandProvider;\n}(_react2.default.Component);\n\nRowExpandProvider.propTypes = {\n children: _propTypes2.default.node.isRequired,\n data: _propTypes2.default.array.isRequired,\n keyField: _propTypes2.default.string.isRequired\n};\nexports.default = {\n Provider: RowExpandProvider,\n Consumer: RowExpandContext.Consumer\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _operators = require('../store/operators');\n\nvar _operators2 = _interopRequireDefault(_operators);\n\nvar _selection = require('../store/selection');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n/* eslint react/prop-types: 0 */\n\n\nvar SelectionContext = _react2.default.createContext();\n\nvar SelectionProvider = function (_React$Component) {\n _inherits(SelectionProvider, _React$Component);\n\n function SelectionProvider(props) {\n _classCallCheck(this, SelectionProvider);\n\n var _this = _possibleConstructorReturn(this, (SelectionProvider.__proto__ || Object.getPrototypeOf(SelectionProvider)).call(this, props));\n\n _this.handleRowSelect = function (rowKey, checked, rowIndex, e) {\n var _this$props = _this.props,\n data = _this$props.data,\n keyField = _this$props.keyField,\n _this$props$selectRow = _this$props.selectRow,\n mode = _this$props$selectRow.mode,\n onSelect = _this$props$selectRow.onSelect;\n var ROW_SELECT_SINGLE = _const2.default.ROW_SELECT_SINGLE;\n\n\n var currSelected = [].concat(_toConsumableArray(_this.selected));\n\n var result = true;\n if (onSelect) {\n var row = _operators2.default.getRowByRowId(data, keyField, rowKey);\n result = onSelect(row, checked, rowIndex, e);\n }\n\n if (result === true || result === undefined) {\n if (mode === ROW_SELECT_SINGLE) {\n // when select mode is radio\n currSelected = [rowKey];\n } else if (checked) {\n // when select mode is checkbox\n currSelected.push(rowKey);\n } else {\n currSelected = currSelected.filter(function (value) {\n return value !== rowKey;\n });\n }\n }\n _this.selected = currSelected;\n _this.forceUpdate();\n };\n\n _this.handleAllRowsSelect = function (e, isUnSelect) {\n var _this$props2 = _this.props,\n data = _this$props2.data,\n keyField = _this$props2.keyField,\n _this$props2$selectRo = _this$props2.selectRow,\n onSelectAll = _this$props2$selectRo.onSelectAll,\n nonSelectable = _this$props2$selectRo.nonSelectable;\n var selected = _this.selected;\n\n\n var currSelected = void 0;\n\n if (!isUnSelect) {\n currSelected = selected.concat(_operators2.default.selectableKeys(data, keyField, nonSelectable));\n } else {\n currSelected = selected.filter(function (s) {\n return typeof data.find(function (d) {\n return _utils2.default.get(d, keyField) === s;\n }) === 'undefined';\n });\n }\n\n var result = void 0;\n if (onSelectAll) {\n result = onSelectAll(!isUnSelect, _operators2.default.getSelectedRows(data, keyField, isUnSelect ? selected : currSelected), e);\n if (Array.isArray(result)) {\n currSelected = result;\n }\n }\n _this.selected = currSelected;\n _this.forceUpdate();\n };\n\n _this.selected = props.selectRow.selected || [];\n return _this;\n }\n\n // exposed API\n\n\n _createClass(SelectionProvider, [{\n key: 'getSelected',\n value: function getSelected() {\n return this.selected;\n }\n }, {\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.selectRow) {\n this.selected = nextProps.selectRow.selected || this.selected;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _getSelectionSummary = (0, _selection.getSelectionSummary)(this.props.data, this.props.keyField, this.selected),\n allRowsSelected = _getSelectionSummary.allRowsSelected,\n allRowsNotSelected = _getSelectionSummary.allRowsNotSelected;\n\n var checkedStatus = void 0;\n\n // checkbox status depending on selected rows counts\n if (allRowsSelected) checkedStatus = _const2.default.CHECKBOX_STATUS_CHECKED;else if (allRowsNotSelected) checkedStatus = _const2.default.CHECKBOX_STATUS_UNCHECKED;else checkedStatus = _const2.default.CHECKBOX_STATUS_INDETERMINATE;\n\n return _react2.default.createElement(\n SelectionContext.Provider,\n {\n value: _extends({}, this.props.selectRow, {\n selected: this.selected,\n onRowSelect: this.handleRowSelect,\n onAllRowsSelect: this.handleAllRowsSelect,\n allRowsSelected: allRowsSelected,\n allRowsNotSelected: allRowsNotSelected,\n checkedStatus: checkedStatus\n })\n },\n this.props.children\n );\n }\n }]);\n\n return SelectionProvider;\n}(_react2.default.Component);\n\nSelectionProvider.propTypes = {\n children: _propTypes2.default.node.isRequired,\n data: _propTypes2.default.array.isRequired,\n keyField: _propTypes2.default.string.isRequired\n};\nexports.default = {\n Provider: SelectionProvider,\n Consumer: SelectionContext.Consumer\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint camelcase: 0 */\n/* eslint react/require-default-props: 0 */\n\n\nexports.default = function (dataOperator, isRemoteSort, handleSortChange) {\n var SortContext = _react2.default.createContext();\n\n var SortProvider = function (_React$Component) {\n _inherits(SortProvider, _React$Component);\n\n function SortProvider(props) {\n _classCallCheck(this, SortProvider);\n\n var _this = _possibleConstructorReturn(this, (SortProvider.__proto__ || Object.getPrototypeOf(SortProvider)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var sortOrder = void 0;\n var sortColumn = void 0;\n var defaultSorted = props.defaultSorted,\n defaultSortDirection = props.defaultSortDirection,\n sort = props.sort;\n\n\n if (defaultSorted && defaultSorted.length > 0) {\n sortOrder = defaultSorted[0].order || defaultSortDirection;\n sortColumn = _this.initSort(defaultSorted[0].dataField, sortOrder);\n } else if (sort && sort.dataField && sort.order) {\n sortOrder = sort.order;\n sortColumn = _this.initSort(sort.dataField, sortOrder);\n }\n _this.state = { sortOrder: sortOrder, sortColumn: sortColumn };\n return _this;\n }\n\n _createClass(SortProvider, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _state = this.state,\n sortOrder = _state.sortOrder,\n sortColumn = _state.sortColumn;\n\n if (isRemoteSort() && sortOrder && sortColumn) {\n handleSortChange(sortColumn.dataField, sortOrder);\n }\n }\n }, {\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n var sort = nextProps.sort,\n columns = nextProps.columns;\n\n if (sort && sort.dataField && sort.order) {\n this.setState({\n sortOrder: sort.order,\n sortColumn: columns.find(function (col) {\n return col.dataField === sort.dataField;\n })\n });\n }\n }\n }, {\n key: 'initSort',\n value: function initSort(sortField, sortOrder) {\n var sortColumn = void 0;\n var columns = this.props.columns;\n\n var sortColumns = columns.filter(function (col) {\n return col.dataField === sortField;\n });\n if (sortColumns.length > 0) {\n sortColumn = sortColumns[0];\n\n if (sortColumn.onSort) {\n sortColumn.onSort(sortField, sortOrder);\n }\n }\n return sortColumn;\n }\n }, {\n key: 'render',\n value: function render() {\n var data = this.props.data;\n var sort = this.props.sort;\n var _state2 = this.state,\n sortOrder = _state2.sortOrder,\n sortColumn = _state2.sortColumn;\n\n if (!isRemoteSort() && sortColumn) {\n var sortFunc = sortColumn.sortFunc ? sortColumn.sortFunc : sort && sort.sortFunc;\n data = dataOperator.sort(data, sortOrder, _extends({}, sortColumn, { sortFunc: sortFunc }));\n }\n\n return _react2.default.createElement(\n SortContext.Provider,\n {\n value: {\n data: data,\n sortOrder: sortOrder,\n onSort: this.handleSort,\n sortField: sortColumn ? sortColumn.dataField : null\n }\n },\n this.props.children\n );\n }\n }]);\n\n return SortProvider;\n }(_react2.default.Component);\n\n SortProvider.propTypes = {\n data: _propTypes2.default.array.isRequired,\n columns: _propTypes2.default.array.isRequired,\n children: _propTypes2.default.node.isRequired,\n defaultSorted: _propTypes2.default.arrayOf(_propTypes2.default.shape({\n dataField: _propTypes2.default.string.isRequired,\n order: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC]).isRequired\n })),\n sort: _propTypes2.default.shape({\n dataField: _propTypes2.default.string,\n order: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC]),\n sortFunc: _propTypes2.default.func\n }),\n defaultSortDirection: _propTypes2.default.oneOf([_const2.default.SORT_DESC, _const2.default.SORT_ASC])\n };\n\n var _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.handleSort = function (column) {\n var sortOrder = dataOperator.nextOrder(column, _this2.state, _this2.props.defaultSortDirection);\n\n if (column.onSort) {\n column.onSort(column.dataField, sortOrder);\n }\n\n if (isRemoteSort()) {\n handleSortChange(column.dataField, sortOrder);\n }\n _this2.setState(function () {\n return {\n sortOrder: sortOrder,\n sortColumn: column\n };\n });\n };\n };\n\n return {\n Provider: SortProvider,\n Consumer: SortContext.Consumer\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar FiltersCell = function FiltersCell(props) {\n var index = props.index,\n column = props.column,\n onExternalFilter = props.onExternalFilter,\n currFilters = props.currFilters,\n onFilter = props.onFilter;\n var filterRenderer = column.filterRenderer,\n filter = column.filter;\n\n var filterElm = void 0;\n var cellAttrs = {};\n var cellStyle = {};\n cellAttrs.style = cellStyle;\n if (column.headerAlign) {\n cellStyle.textAlign = _utils2.default.isFunction(column.headerAlign) ? column.headerAlign(column, index) : column.headerAlign;\n }\n if (column.filterRenderer) {\n var onCustomFilter = onExternalFilter(column, filter.props.type);\n filterElm = filterRenderer(onCustomFilter, column);\n } else if (filter) {\n filterElm = _react2.default.createElement(filter.Filter, _extends({}, filter.props, {\n filterState: currFilters[column.dataField],\n onFilter: onFilter,\n column: column\n }));\n }\n return _react2.default.createElement('th', cellAttrs, filterElm);\n};\n\nFiltersCell.propTypes = {\n index: _propTypes2.default.number.isRequired,\n column: _propTypes2.default.object.isRequired,\n currFilters: _propTypes2.default.object.isRequired,\n onFilter: _propTypes2.default.func,\n onExternalFilter: _propTypes2.default.func\n};\n\nFiltersCell.defaultProps = {\n onFilter: function onFilter() {},\n onExternalFilter: function onExternalFilter() {}\n};\n\nexports.default = FiltersCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _filtersCell = require('./filters-cell');\n\nvar _filtersCell2 = _interopRequireDefault(_filtersCell);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _rowTemplate = require('./row/row-template');\n\nvar _rowTemplate2 = _interopRequireDefault(_rowTemplate);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Filters = function Filters(props) {\n var columns = props.columns,\n onFilter = props.onFilter,\n currFilters = props.currFilters,\n filterPosition = props.filterPosition,\n onExternalFilter = props.onExternalFilter,\n className = props.className,\n selectRow = props.selectRow,\n expandRow = props.expandRow;\n\n\n function renderContent() {\n var filterColumns = [];\n var showFiltersRow = false;\n\n columns.forEach(function (column, i) {\n filterColumns.push(_react2.default.createElement(_filtersCell2.default, {\n index: i,\n key: column.dataField,\n column: column,\n currFilters: currFilters,\n onExternalFilter: onExternalFilter,\n onFilter: onFilter\n }));\n\n if (column.filterRenderer || column.filter) {\n if (!showFiltersRow) {\n showFiltersRow = true;\n }\n }\n });\n return filterColumns;\n }\n\n return _react2.default.createElement(\n 'tbody',\n {\n className: className,\n style: {\n display: filterPosition === _const2.default.FILTERS_POSITION_TOP ? 'table-header-group' : 'table-footer-group'\n }\n },\n _react2.default.createElement(_rowTemplate2.default, {\n renderContent: renderContent,\n selectRow: selectRow,\n expandRow: expandRow,\n cellEl: 'td'\n })\n );\n}; /* eslint react/require-default-props: 0 */\n\n\nFilters.propTypes = {\n columns: _propTypes2.default.array.isRequired,\n onFilter: _propTypes2.default.func,\n filterPosition: _propTypes2.default.oneOf([_const2.default.FILTERS_POSITION_TOP, _const2.default.FILTERS_POSITION_INLINE, _const2.default.FILTERS_POSITION_BOTTOM]),\n currFilters: _propTypes2.default.object,\n onExternalFilter: _propTypes2.default.func,\n className: _propTypes2.default.string,\n selectRow: _propTypes2.default.object,\n expandRow: _propTypes2.default.object\n};\n\nFilters.defaultProps = {\n position: _const2.default.FILTERS_POSITION_TOP\n};\n\nexports.default = Filters;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _cellEventDelegater = require('./cell-event-delegater');\n\nvar _cellEventDelegater2 = _interopRequireDefault(_cellEventDelegater);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n\n\nvar FooterCell = function (_eventDelegater) {\n _inherits(FooterCell, _eventDelegater);\n\n function FooterCell() {\n _classCallCheck(this, FooterCell);\n\n return _possibleConstructorReturn(this, (FooterCell.__proto__ || Object.getPrototypeOf(FooterCell)).apply(this, arguments));\n }\n\n _createClass(FooterCell, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n index = _props.index,\n column = _props.column,\n columnData = _props.columnData;\n var footer = column.footer,\n footerTitle = column.footerTitle,\n footerAlign = column.footerAlign,\n footerFormatter = column.footerFormatter,\n footerEvents = column.footerEvents,\n footerClasses = column.footerClasses,\n footerStyle = column.footerStyle,\n footerAttrs = column.footerAttrs;\n\n\n var delegateEvents = this.delegate(footerEvents);\n var cellAttrs = _extends({}, _utils2.default.isFunction(footerAttrs) ? footerAttrs(column, index) : footerAttrs, delegateEvents);\n\n var text = '';\n if (_utils2.default.isString(footer)) {\n text = footer;\n } else if (_utils2.default.isFunction(footer)) {\n text = footer(columnData, column, index);\n }\n\n var cellStyle = {};\n var cellClasses = _utils2.default.isFunction(footerClasses) ? footerClasses(column, index) : footerClasses;\n\n if (footerStyle) {\n cellStyle = _utils2.default.isFunction(footerStyle) ? footerStyle(column, index) : footerStyle;\n cellStyle = cellStyle ? _extends({}, cellStyle) : cellStyle;\n }\n\n if (footerTitle) {\n cellAttrs.title = _utils2.default.isFunction(footerTitle) ? footerTitle(column, index) : text;\n }\n\n if (footerAlign) {\n cellStyle.textAlign = _utils2.default.isFunction(footerAlign) ? footerAlign(column, index) : footerAlign;\n }\n\n if (cellClasses) cellAttrs.className = (0, _classnames2.default)(cellAttrs.className, cellClasses);\n if (!_utils2.default.isEmptyObject(cellStyle)) cellAttrs.style = cellStyle;\n\n var children = footerFormatter ? footerFormatter(column, index, { text: text }) : text;\n\n return _react2.default.createElement('th', cellAttrs, children);\n }\n }]);\n\n return FooterCell;\n}((0, _cellEventDelegater2.default)(_react2.default.Component));\n\nFooterCell.propTypes = {\n columnData: _propTypes2.default.array,\n index: _propTypes2.default.number,\n column: _propTypes2.default.object\n};\n\nexports.default = FooterCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rowTemplate = require('./row/row-template');\n\nvar _rowTemplate2 = _interopRequireDefault(_rowTemplate);\n\nvar _footerCell = require('./footer-cell');\n\nvar _footerCell2 = _interopRequireDefault(_footerCell);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Footer = function Footer(props) {\n var data = props.data,\n className = props.className,\n columns = props.columns,\n selectRow = props.selectRow,\n expandRow = props.expandRow;\n\n\n function renderContent() {\n return columns.map(function (column, i) {\n if (column.footer === undefined || column.footer === null) {\n return false;\n }\n\n var columnData = _utils2.default.pluck(data, column.dataField);\n\n return _react2.default.createElement(_footerCell2.default, {\n index: i,\n key: column.dataField,\n column: column,\n columnData: columnData\n });\n });\n }\n\n return _react2.default.createElement(\n 'tfoot',\n null,\n _react2.default.createElement(_rowTemplate2.default, {\n renderContent: renderContent,\n selectRow: selectRow,\n expandRow: expandRow,\n className: className,\n cellEl: 'th'\n })\n );\n}; /* eslint react/require-default-props: 0 */\n\n\nFooter.propTypes = {\n data: _propTypes2.default.array,\n className: _propTypes2.default.string,\n columns: _propTypes2.default.array,\n selectRow: _propTypes2.default.object,\n expandRow: _propTypes2.default.object\n};\n\nexports.default = Footer;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _symbol = require('./sort/symbol');\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _caret = require('./sort/caret');\n\nvar _caret2 = _interopRequireDefault(_caret);\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _cellEventDelegater = require('./cell-event-delegater');\n\nvar _cellEventDelegater2 = _interopRequireDefault(_cellEventDelegater);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n\n\nvar HeaderCell = function (_eventDelegater) {\n _inherits(HeaderCell, _eventDelegater);\n\n function HeaderCell() {\n _classCallCheck(this, HeaderCell);\n\n return _possibleConstructorReturn(this, (HeaderCell.__proto__ || Object.getPrototypeOf(HeaderCell)).apply(this, arguments));\n }\n\n _createClass(HeaderCell, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n column = _props.column,\n index = _props.index,\n onSort = _props.onSort,\n sorting = _props.sorting,\n sortOrder = _props.sortOrder,\n isLastSorting = _props.isLastSorting,\n onFilter = _props.onFilter,\n currFilters = _props.currFilters,\n filterPosition = _props.filterPosition,\n onExternalFilter = _props.onExternalFilter,\n globalSortCaret = _props.globalSortCaret;\n var text = column.text,\n sort = column.sort,\n sortCaret = column.sortCaret,\n filter = column.filter,\n filterRenderer = column.filterRenderer,\n headerTitle = column.headerTitle,\n headerAlign = column.headerAlign,\n headerFormatter = column.headerFormatter,\n headerEvents = column.headerEvents,\n headerClasses = column.headerClasses,\n headerStyle = column.headerStyle,\n headerAttrs = column.headerAttrs,\n headerSortingClasses = column.headerSortingClasses,\n headerSortingStyle = column.headerSortingStyle;\n\n\n var sortCaretfunc = sortCaret || globalSortCaret;\n\n var delegateEvents = this.delegate(headerEvents);\n\n var customAttrs = _utils2.default.isFunction(headerAttrs) ? headerAttrs(column, index) : headerAttrs || {};\n\n var cellAttrs = _extends({}, customAttrs, delegateEvents, {\n tabIndex: _utils2.default.isDefined(customAttrs.tabIndex) ? customAttrs.tabIndex : 0\n });\n\n var sortSymbol = void 0;\n var filterElm = void 0;\n var cellStyle = {};\n var cellClasses = _utils2.default.isFunction(headerClasses) ? headerClasses(column, index) : headerClasses;\n\n if (headerStyle) {\n cellStyle = _utils2.default.isFunction(headerStyle) ? headerStyle(column, index) : headerStyle;\n cellStyle = cellStyle ? _extends({}, cellStyle) : cellStyle;\n }\n\n if (headerTitle) {\n cellAttrs.title = _utils2.default.isFunction(headerTitle) ? headerTitle(column, index) : text;\n }\n\n if (headerAlign) {\n cellStyle.textAlign = _utils2.default.isFunction(headerAlign) ? headerAlign(column, index) : headerAlign;\n }\n\n if (sort) {\n var customClick = cellAttrs.onClick;\n cellAttrs['aria-label'] = sorting ? text + ' sort ' + sortOrder : text + ' sortable';\n cellAttrs.onKeyUp = function (e) {\n if (e.key === 'Enter') {\n onSort(column);\n if (_utils2.default.isFunction(customClick)) customClick(e);\n }\n };\n cellAttrs.onClick = function (e) {\n onSort(column);\n if (_utils2.default.isFunction(customClick)) customClick(e);\n };\n cellAttrs.className = (0, _classnames2.default)(cellAttrs.className, 'sortable');\n\n if (sorting) {\n sortSymbol = sortCaretfunc ? sortCaretfunc(sortOrder, column) : _react2.default.createElement(_caret2.default, { order: sortOrder });\n\n // append customized classes or style if table was sorting based on the current column.\n cellClasses = (0, _classnames2.default)(cellClasses, _utils2.default.isFunction(headerSortingClasses) ? headerSortingClasses(column, sortOrder, isLastSorting, index) : headerSortingClasses);\n\n cellStyle = _extends({}, cellStyle, _utils2.default.isFunction(headerSortingStyle) ? headerSortingStyle(column, sortOrder, isLastSorting, index) : headerSortingStyle);\n } else {\n sortSymbol = sortCaretfunc ? sortCaretfunc(undefined, column) : _react2.default.createElement(_symbol2.default, null);\n }\n }\n\n if (cellClasses) cellAttrs.className = (0, _classnames2.default)(cellAttrs.className, cellClasses);\n if (!_utils2.default.isEmptyObject(cellStyle)) cellAttrs.style = cellStyle;\n\n if (filterPosition === _const2.default.FILTERS_POSITION_INLINE) {\n if (filterRenderer) {\n var onCustomFilter = onExternalFilter(column, filter.props.type);\n filterElm = filterRenderer(onCustomFilter, column);\n } else if (filter) {\n filterElm = _react2.default.createElement(filter.Filter, _extends({}, filter.props, {\n filterState: currFilters[column.dataField],\n onFilter: onFilter,\n column: column\n }));\n }\n }\n\n var children = headerFormatter ? headerFormatter(column, index, { sortElement: sortSymbol, filterElement: filterElm }) : text;\n\n if (headerFormatter) {\n return _react2.default.createElement('th', cellAttrs, children);\n }\n\n return _react2.default.createElement('th', cellAttrs, children, sortSymbol, filterElm);\n }\n }]);\n\n return HeaderCell;\n}((0, _cellEventDelegater2.default)(_react2.default.Component));\n\nHeaderCell.propTypes = {\n column: _propTypes2.default.shape({\n dataField: _propTypes2.default.string.isRequired,\n text: _propTypes2.default.string.isRequired,\n type: _propTypes2.default.oneOf([_const2.default.TYPE_STRING, _const2.default.TYPE_NUMBER, _const2.default.TYPE_BOOLEAN, _const2.default.TYPE_DATE]),\n isDummyField: _propTypes2.default.bool,\n hidden: _propTypes2.default.bool,\n headerFormatter: _propTypes2.default.func,\n formatter: _propTypes2.default.func,\n formatExtraData: _propTypes2.default.any,\n headerClasses: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n classes: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n headerStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n style: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n headerTitle: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.func]),\n title: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.func]),\n headerEvents: _propTypes2.default.object,\n events: _propTypes2.default.object,\n headerAlign: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n align: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n headerAttrs: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n attrs: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n sort: _propTypes2.default.bool,\n sortFunc: _propTypes2.default.func,\n onSort: _propTypes2.default.func,\n editor: _propTypes2.default.object,\n editable: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.func]),\n editCellStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n editCellClasses: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n editorStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n editorClasses: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),\n editorRenderer: _propTypes2.default.func,\n validator: _propTypes2.default.func,\n filter: _propTypes2.default.object,\n filterRenderer: _propTypes2.default.func,\n filterValue: _propTypes2.default.func,\n searchable: _propTypes2.default.bool\n }).isRequired,\n index: _propTypes2.default.number.isRequired,\n onSort: _propTypes2.default.func,\n sorting: _propTypes2.default.bool,\n sortOrder: _propTypes2.default.oneOf([_const2.default.SORT_ASC, _const2.default.SORT_DESC]),\n sortCaret: _propTypes2.default.func,\n isLastSorting: _propTypes2.default.bool,\n onFilter: _propTypes2.default.func,\n filterPosition: _propTypes2.default.oneOf([_const2.default.FILTERS_POSITION_INLINE, _const2.default.FILTERS_POSITION_BOTTOM, _const2.default.FILTERS_POSITION_TOP]),\n currFilters: _propTypes2.default.object,\n onExternalFilter: _propTypes2.default.func\n};\n\nexports.default = HeaderCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _headerCell = require('./header-cell');\n\nvar _headerCell2 = _interopRequireDefault(_headerCell);\n\nvar _selectionHeaderCell = require('./row-selection/selection-header-cell');\n\nvar _selectionHeaderCell2 = _interopRequireDefault(_selectionHeaderCell);\n\nvar _expandHeaderCell = require('./row-expand/expand-header-cell');\n\nvar _expandHeaderCell2 = _interopRequireDefault(_expandHeaderCell);\n\nvar _selectionHeaderCellConsumer = require('./row-selection/selection-header-cell-consumer');\n\nvar _selectionHeaderCellConsumer2 = _interopRequireDefault(_selectionHeaderCellConsumer);\n\nvar _expandHeaderCellConsumer = require('./row-expand/expand-header-cell-consumer');\n\nvar _expandHeaderCellConsumer2 = _interopRequireDefault(_expandHeaderCellConsumer);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint react/require-default-props: 0 */\nvar Header = function Header(props) {\n var className = props.className,\n columns = props.columns,\n onSort = props.onSort,\n onFilter = props.onFilter,\n sortField = props.sortField,\n sortOrder = props.sortOrder,\n selectRow = props.selectRow,\n expandRow = props.expandRow,\n currFilters = props.currFilters,\n onExternalFilter = props.onExternalFilter,\n filterPosition = props.filterPosition,\n globalSortCaret = props.globalSortCaret,\n wrapperClasses = props.wrapperClasses;\n\n\n var SelectionHeaderCellComp = function SelectionHeaderCellComp() {\n return null;\n };\n var ExpansionHeaderCellComp = function ExpansionHeaderCellComp() {\n return null;\n };\n\n if (expandRow.showExpandColumn) {\n ExpansionHeaderCellComp = (0, _expandHeaderCellConsumer2.default)(_expandHeaderCell2.default);\n }\n\n if (selectRow) {\n SelectionHeaderCellComp = (0, _selectionHeaderCellConsumer2.default)(_selectionHeaderCell2.default);\n }\n\n var isRenderFunctionColumnInLeft = function isRenderFunctionColumnInLeft() {\n var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _const2.default.INDICATOR_POSITION_LEFT;\n return position === _const2.default.INDICATOR_POSITION_LEFT;\n };\n\n var childrens = [columns.map(function (column, i) {\n var currSort = column.dataField === sortField;\n var isLastSorting = column.dataField === sortField;\n\n return _react2.default.createElement(_headerCell2.default, {\n index: i,\n key: column.dataField,\n column: column,\n onSort: onSort,\n sorting: currSort,\n sortOrder: sortOrder,\n globalSortCaret: globalSortCaret,\n isLastSorting: isLastSorting,\n onFilter: onFilter,\n currFilters: currFilters,\n onExternalFilter: onExternalFilter,\n filterPosition: filterPosition\n });\n })];\n\n if (!selectRow.hideSelectColumn) {\n if (isRenderFunctionColumnInLeft(selectRow.selectColumnPosition)) {\n childrens.unshift(_react2.default.createElement(SelectionHeaderCellComp, { key: 'selection' }));\n } else {\n childrens.push(_react2.default.createElement(SelectionHeaderCellComp, { key: 'selection' }));\n }\n }\n\n if (expandRow.showExpandColumn) {\n if (isRenderFunctionColumnInLeft(expandRow.expandColumnPosition)) {\n childrens.unshift(_react2.default.createElement(ExpansionHeaderCellComp, { key: 'expansion' }));\n } else {\n childrens.push(_react2.default.createElement(ExpansionHeaderCellComp, { key: 'expansion' }));\n }\n }\n\n return _react2.default.createElement(\n 'thead',\n { className: wrapperClasses },\n _react2.default.createElement(\n 'tr',\n { className: className },\n childrens\n )\n );\n};\n\nHeader.propTypes = {\n columns: _propTypes2.default.array.isRequired,\n onSort: _propTypes2.default.func,\n onFilter: _propTypes2.default.func,\n sortField: _propTypes2.default.string,\n sortOrder: _propTypes2.default.string,\n selectRow: _propTypes2.default.object,\n currFilters: _propTypes2.default.object,\n onExternalFilter: _propTypes2.default.func,\n globalSortCaret: _propTypes2.default.func,\n className: _propTypes2.default.string,\n wrapperClasses: _propTypes2.default.string,\n expandRow: _propTypes2.default.object,\n filterPosition: _propTypes2.default.oneOf([_const2.default.FILTERS_POSITION_TOP, _const2.default.FILTERS_POSITION_INLINE, _const2.default.FILTERS_POSITION_BOTTOM])\n};\n\nexports.default = Header;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(ColumnResolver, _ExtendBase);\n\n function ColumnResolver() {\n _classCallCheck(this, ColumnResolver);\n\n return _possibleConstructorReturn(this, (ColumnResolver.__proto__ || Object.getPrototypeOf(ColumnResolver)).apply(this, arguments));\n }\n\n _createClass(ColumnResolver, [{\n key: \"visibleColumnSize\",\n value: function visibleColumnSize() {\n var includeSelectColumn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n var columnLen = void 0;\n if (this.props.columnToggle && this.props.columnToggle.toggles) {\n var columns = this.props.columnToggle.toggles;\n columnLen = Object.keys(columns).filter(function (name) {\n return columns[name];\n }).length;\n } else {\n columnLen = this.props.columns.filter(function (c) {\n return !c.hidden;\n }).length;\n }\n if (!includeSelectColumn) return columnLen;\n if (this.props.selectRow && !this.props.selectRow.hideSelectColumn) {\n columnLen += 1;\n }\n if (this.props.expandRow && this.props.expandRow.showExpandColumn) {\n columnLen += 1;\n }\n return columnLen;\n }\n }]);\n\n return ColumnResolver;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _columnResolver = require('./column-resolver');\n\nvar _columnResolver2 = _interopRequireDefault(_columnResolver);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nexports.default = function (ExtendBase) {\n return function (_ColumnResolver) {\n _inherits(TableResolver, _ColumnResolver);\n\n function TableResolver() {\n _classCallCheck(this, TableResolver);\n\n return _possibleConstructorReturn(this, (TableResolver.__proto__ || Object.getPrototypeOf(TableResolver)).apply(this, arguments));\n }\n\n _createClass(TableResolver, [{\n key: 'validateProps',\n value: function validateProps() {\n var keyField = this.props.keyField;\n\n if (!keyField) {\n throw new Error('Please specify a field as key via keyField');\n }\n if (this.visibleColumnSize(false) <= 0) {\n throw new Error('No visible columns detected');\n }\n }\n }, {\n key: 'isEmpty',\n value: function isEmpty() {\n return this.props.data.length === 0;\n }\n }, {\n key: 'visibleRows',\n value: function visibleRows() {\n var _props = this.props,\n data = _props.data,\n hiddenRows = _props.hiddenRows,\n keyField = _props.keyField;\n\n if (!hiddenRows || hiddenRows.length === 0) return data;\n return data.filter(function (row) {\n var key = _utils2.default.get(row, keyField);\n return !_utils2.default.contains(hiddenRows, key);\n });\n }\n }]);\n\n return TableResolver;\n }((0, _columnResolver2.default)(ExtendBase));\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _events = require('events');\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(RemoteResolver, _ExtendBase);\n\n function RemoteResolver(props) {\n _classCallCheck(this, RemoteResolver);\n\n var _this = _possibleConstructorReturn(this, (RemoteResolver.__proto__ || Object.getPrototypeOf(RemoteResolver)).call(this, props));\n\n _this.getNewestState = function () {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var sortOrder = void 0;\n var sortField = void 0;\n var page = void 0;\n var sizePerPage = void 0;\n var searchText = void 0;\n var filters = {};\n\n if (_this.sortContext) {\n sortOrder = _this.sortContext.state.sortOrder;\n sortField = _this.sortContext.state.sortColumn ? _this.sortContext.state.sortColumn.dataField : null;\n }\n\n if (_this.filterContext) {\n filters = _this.filterContext.currFilters;\n }\n\n if (_this.paginationContext) {\n page = _this.paginationContext.currPage;\n sizePerPage = _this.paginationContext.currSizePerPage;\n }\n\n if (_this.searchContext) {\n searchText = _this.props.search.searchText;\n }\n\n return _extends({\n sortOrder: sortOrder,\n sortField: sortField,\n filters: filters,\n page: page,\n sizePerPage: sizePerPage,\n searchText: searchText\n }, state, {\n data: _this.props.data\n });\n };\n\n _this.isRemoteSearch = function () {\n var remote = _this.props.remote;\n\n return remote === true || _utils2.default.isObject(remote) && remote.search || _this.isRemotePagination();\n };\n\n _this.isRemotePagination = function () {\n var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var remote = _this.props.remote;\n\n e.result = remote === true || _utils2.default.isObject(remote) && remote.pagination;\n return e.result;\n };\n\n _this.isRemoteFiltering = function () {\n var remote = _this.props.remote;\n\n return remote === true || _utils2.default.isObject(remote) && remote.filter || _this.isRemotePagination();\n };\n\n _this.isRemoteSort = function () {\n var remote = _this.props.remote;\n\n return remote === true || _utils2.default.isObject(remote) && remote.sort || _this.isRemotePagination();\n };\n\n _this.isRemoteCellEdit = function () {\n var remote = _this.props.remote;\n\n return remote === true || _utils2.default.isObject(remote) && remote.cellEdit;\n };\n\n _this.handleRemotePageChange = function (page, sizePerPage) {\n _this.props.onTableChange('pagination', _this.getNewestState({ page: page, sizePerPage: sizePerPage }));\n };\n\n _this.handleRemoteFilterChange = function (filters) {\n var newState = { filters: filters };\n if (_this.isRemotePagination()) {\n var options = _this.props.pagination.options || {};\n newState.page = _utils2.default.isDefined(options.pageStartIndex) ? options.pageStartIndex : 1;\n }\n _this.props.onTableChange('filter', _this.getNewestState(newState));\n };\n\n _this.handleRemoteSortChange = function (sortField, sortOrder) {\n _this.props.onTableChange('sort', _this.getNewestState({ sortField: sortField, sortOrder: sortOrder }));\n };\n\n _this.handleRemoteCellChange = function (rowId, dataField, newValue) {\n var cellEdit = { rowId: rowId, dataField: dataField, newValue: newValue };\n _this.props.onTableChange('cellEdit', _this.getNewestState({ cellEdit: cellEdit }));\n };\n\n _this.handleRemoteSearchChange = function (searchText) {\n _this.props.onTableChange('search', _this.getNewestState({ searchText: searchText }));\n };\n\n _this.remoteEmitter = new _events2.default();\n _this.remoteEmitter.on('paginationChange', _this.handleRemotePageChange);\n _this.remoteEmitter.on('isRemotePagination', _this.isRemotePagination);\n return _this;\n }\n\n return RemoteResolver;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint\n react/require-default-props: 0\n jsx-a11y/no-noninteractive-element-interactions: 0\n */\n/* eslint no-nested-ternary: 0 */\n\n\nvar ExpandCell = function (_Component) {\n _inherits(ExpandCell, _Component);\n\n function ExpandCell() {\n _classCallCheck(this, ExpandCell);\n\n var _this = _possibleConstructorReturn(this, (ExpandCell.__proto__ || Object.getPrototypeOf(ExpandCell)).call(this));\n\n _this.handleClick = _this.handleClick.bind(_this);\n return _this;\n }\n\n _createClass(ExpandCell, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var shouldUpdate = this.props.rowIndex !== nextProps.rowIndex || this.props.expanded !== nextProps.expanded || this.props.rowKey !== nextProps.rowKey || this.props.tabIndex !== nextProps.tabIndex;\n\n return shouldUpdate;\n }\n }, {\n key: 'handleClick',\n value: function handleClick(e) {\n var _props = this.props,\n rowKey = _props.rowKey,\n expanded = _props.expanded,\n onRowExpand = _props.onRowExpand,\n rowIndex = _props.rowIndex;\n\n e.stopPropagation();\n onRowExpand(rowKey, !expanded, rowIndex, e);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props2 = this.props,\n expanded = _props2.expanded,\n expandable = _props2.expandable,\n expandColumnRenderer = _props2.expandColumnRenderer,\n tabIndex = _props2.tabIndex,\n rowKey = _props2.rowKey;\n\n var attrs = {};\n if (tabIndex !== -1) attrs.tabIndex = tabIndex;\n\n return _react2.default.createElement(\n 'td',\n _extends({ className: 'expand-cell', onClick: this.handleClick }, attrs),\n expandColumnRenderer ? expandColumnRenderer({\n expandable: expandable,\n expanded: expanded,\n rowKey: rowKey\n }) : expandable ? expanded ? '(-)' : '(+)' : ''\n );\n }\n }]);\n\n return ExpandCell;\n}(_react.Component);\n\nExpandCell.propTypes = {\n rowKey: _propTypes2.default.any,\n expanded: _propTypes2.default.bool.isRequired,\n expandable: _propTypes2.default.bool.isRequired,\n onRowExpand: _propTypes2.default.func.isRequired,\n expandColumnRenderer: _propTypes2.default.func,\n rowIndex: _propTypes2.default.number,\n tabIndex: _propTypes2.default.number\n};\nexports.default = ExpandCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _rowExpandContext = require('../contexts/row-expand-context');\n\nvar _rowExpandContext2 = _interopRequireDefault(_rowExpandContext);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (Component) {\n return function () {\n return _react2.default.createElement(\n _rowExpandContext2.default.Consumer,\n null,\n function (expandRow) {\n return _react2.default.createElement(Component, expandRow);\n }\n );\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint no-nested-ternary: 0 */\n\n\nvar ExpansionHeaderCell = function (_Component) {\n _inherits(ExpansionHeaderCell, _Component);\n\n function ExpansionHeaderCell() {\n _classCallCheck(this, ExpansionHeaderCell);\n\n var _this = _possibleConstructorReturn(this, (ExpansionHeaderCell.__proto__ || Object.getPrototypeOf(ExpansionHeaderCell)).call(this));\n\n _this.handleCheckBoxClick = _this.handleCheckBoxClick.bind(_this);\n return _this;\n }\n\n _createClass(ExpansionHeaderCell, [{\n key: 'handleCheckBoxClick',\n value: function handleCheckBoxClick(e) {\n var _props = this.props,\n isAnyExpands = _props.isAnyExpands,\n onAllRowExpand = _props.onAllRowExpand;\n\n\n onAllRowExpand(e, !isAnyExpands);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props2 = this.props,\n isAnyExpands = _props2.isAnyExpands,\n expandHeaderColumnRenderer = _props2.expandHeaderColumnRenderer;\n\n var attrs = {\n onClick: this.handleCheckBoxClick\n };\n\n return _react2.default.createElement(\n 'th',\n _extends({ className: 'expand-cell-header', 'data-row-selection': true }, attrs),\n expandHeaderColumnRenderer ? expandHeaderColumnRenderer({ isAnyExpands: isAnyExpands }) : isAnyExpands ? '(-)' : '(+)'\n );\n }\n }]);\n\n return ExpansionHeaderCell;\n}(_react.Component);\n\nExpansionHeaderCell.propTypes = {\n isAnyExpands: _propTypes2.default.bool.isRequired,\n onAllRowExpand: _propTypes2.default.func.isRequired,\n expandHeaderColumnRenderer: _propTypes2.default.func\n};\nexports.default = ExpansionHeaderCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactTransitionGroup = require('react-transition-group');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nvar ExpandRow = function ExpandRow(_ref) {\n var children = _ref.children,\n expanded = _ref.expanded,\n onClosed = _ref.onClosed,\n className = _ref.className,\n rest = _objectWithoutProperties(_ref, ['children', 'expanded', 'onClosed', 'className']);\n\n return _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n _extends({ className: (0, _classnames2.default)('reset-expansion-style', className) }, rest),\n _react2.default.createElement(\n _reactTransitionGroup.CSSTransition,\n {\n appear: true,\n 'in': expanded,\n timeout: 400,\n classNames: 'row-expand-slide',\n onExited: onClosed\n },\n _react2.default.createElement(\n 'div',\n null,\n _react2.default.createElement(\n 'div',\n { className: 'row-expansion-style' },\n children\n )\n )\n )\n )\n );\n};\n\nExpandRow.propTypes = {\n children: _propTypes2.default.node,\n expanded: _propTypes2.default.bool,\n onClosed: _propTypes2.default.func,\n className: _propTypes2.default.string\n};\n\nExpandRow.defaultProps = {\n children: null,\n expanded: false,\n onClosed: null,\n className: ''\n};\n\nexports.default = ExpandRow;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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 react/prop-types: 0 */\n\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _expandRow = require('./expand-row');\n\nvar _expandRow2 = _interopRequireDefault(_expandRow);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _rowExpandContext = require('../contexts/row-expand-context');\n\nvar _rowExpandContext2 = _interopRequireDefault(_rowExpandContext);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (Component) {\n var renderWithExpansion = function renderWithExpansion(props, expandRow) {\n var parentClassName = '';\n var className = '';\n var key = props.value;\n\n var expanded = _utils2.default.contains(expandRow.expanded, key);\n var isClosing = _utils2.default.contains(expandRow.isClosing, key);\n var expandable = !expandRow.nonExpandable || !_utils2.default.contains(expandRow.nonExpandable, key);\n if (expanded) {\n parentClassName = _utils2.default.isFunction(expandRow.parentClassName) ? expandRow.parentClassName(expanded, props.row, props.rowIndex) : expandRow.parentClassName || '';\n\n className = _utils2.default.isFunction(expandRow.className) ? expandRow.className(expanded, props.row, props.rowIndex) : expandRow.className || '';\n }\n\n return [_react2.default.createElement(Component, _extends({}, props, {\n key: key,\n expanded: expanded,\n expandable: expandable,\n expandRow: _extends({}, expandRow),\n className: (0, _classnames2.default)(props.className, parentClassName)\n })), expanded || isClosing ? _react2.default.createElement(\n _expandRow2.default,\n {\n key: key + '-expanding',\n colSpan: props.visibleColumnSize,\n expanded: expanded,\n onClosed: function onClosed() {\n return expandRow.onClosed(key);\n },\n className: className\n },\n expandRow.renderer(props.row, props.rowIndex)\n ) : null];\n };\n return function (props) {\n return _react2.default.createElement(\n _rowExpandContext2.default.Consumer,\n null,\n function (expandRow) {\n return renderWithExpansion(props, expandRow);\n }\n );\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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 react/prop-types: 0 */\n\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _selectionContext = require('../contexts/selection-context');\n\nvar _selectionContext2 = _interopRequireDefault(_selectionContext);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (Component) {\n var renderWithSelection = function renderWithSelection(props, selectRow) {\n var key = props.value;\n var selected = _utils2.default.contains(selectRow.selected, key);\n var selectable = !selectRow.nonSelectable || !_utils2.default.contains(selectRow.nonSelectable, key);\n var notSelectable = _utils2.default.contains(selectRow.nonSelectable, key);\n\n var style = props.style,\n className = props.className;\n\n\n if (selected) {\n var selectedStyle = _utils2.default.isFunction(selectRow.style) ? selectRow.style(props.row, props.rowIndex) : selectRow.style;\n\n var selectedClasses = _utils2.default.isFunction(selectRow.classes) ? selectRow.classes(props.row, props.rowIndex) : selectRow.classes;\n\n style = _extends({}, style, selectedStyle);\n className = (0, _classnames2.default)(className, selectedClasses) || undefined;\n\n if (selectRow.bgColor) {\n style = style || {};\n style.backgroundColor = _utils2.default.isFunction(selectRow.bgColor) ? selectRow.bgColor(props.row, props.rowIndex) : selectRow.bgColor;\n }\n }\n\n if (notSelectable) {\n var notSelectableStyle = _utils2.default.isFunction(selectRow.nonSelectableStyle) ? selectRow.nonSelectableStyle(props.row, props.rowIndex) : selectRow.nonSelectableStyle;\n\n var notSelectableClasses = _utils2.default.isFunction(selectRow.nonSelectableClasses) ? selectRow.nonSelectableClasses(props.row, props.rowIndex) : selectRow.nonSelectableClasses;\n\n style = _extends({}, style, notSelectableStyle);\n className = (0, _classnames2.default)(className, notSelectableClasses) || undefined;\n }\n\n return _react2.default.createElement(Component, _extends({}, props, {\n style: style,\n className: className,\n selectRow: selectRow,\n selected: selected,\n selectable: selectable\n }));\n };\n\n function withConsumer(props) {\n return _react2.default.createElement(\n _selectionContext2.default.Consumer,\n null,\n function (selectRow) {\n return renderWithSelection(props, selectRow);\n }\n );\n }\n\n withConsumer.displayName = 'WithSelectionRowConsumer';\n return withConsumer;\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _bootstrap = require('../contexts/bootstrap');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint\n react/require-default-props: 0\n jsx-a11y/no-noninteractive-element-interactions: 0\n */\n\n\nvar SelectionCell = function (_Component) {\n _inherits(SelectionCell, _Component);\n\n function SelectionCell() {\n _classCallCheck(this, SelectionCell);\n\n var _this = _possibleConstructorReturn(this, (SelectionCell.__proto__ || Object.getPrototypeOf(SelectionCell)).call(this));\n\n _this.handleClick = _this.handleClick.bind(_this);\n return _this;\n }\n\n _createClass(SelectionCell, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var shouldUpdate = this.props.rowIndex !== nextProps.rowIndex || this.props.selected !== nextProps.selected || this.props.disabled !== nextProps.disabled || this.props.rowKey !== nextProps.rowKey || this.props.tabIndex !== nextProps.tabIndex || this.props.selectColumnStyle !== nextProps.selectColumnStyle;\n\n return shouldUpdate;\n }\n }, {\n key: 'handleClick',\n value: function handleClick(e) {\n var _props = this.props,\n inputType = _props.mode,\n rowKey = _props.rowKey,\n selected = _props.selected,\n onRowSelect = _props.onRowSelect,\n disabled = _props.disabled,\n rowIndex = _props.rowIndex;\n\n e.stopPropagation();\n if (disabled) return;\n\n var checked = inputType === _const2.default.ROW_SELECT_SINGLE ? true : !selected;\n\n onRowSelect(rowKey, checked, rowIndex, e);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props2 = this.props,\n rowKey = _props2.rowKey,\n inputType = _props2.mode,\n selected = _props2.selected,\n disabled = _props2.disabled,\n tabIndex = _props2.tabIndex,\n rowIndex = _props2.rowIndex,\n selectionRenderer = _props2.selectionRenderer,\n selectColumnStyle = _props2.selectColumnStyle;\n\n\n var attrs = {};\n if (tabIndex !== -1) attrs.tabIndex = tabIndex;\n\n attrs.style = _utils2.default.isFunction(selectColumnStyle) ? selectColumnStyle({\n checked: selected,\n disabled: disabled,\n rowIndex: rowIndex,\n rowKey: rowKey\n }) : selectColumnStyle;\n\n return _react2.default.createElement(\n _bootstrap.BootstrapContext.Consumer,\n null,\n function (_ref) {\n var bootstrap4 = _ref.bootstrap4;\n return _react2.default.createElement(\n 'td',\n _extends({ className: 'selection-cell', onClick: _this2.handleClick }, attrs),\n selectionRenderer ? selectionRenderer({\n mode: inputType,\n checked: selected,\n disabled: disabled,\n rowIndex: rowIndex,\n rowKey: rowKey\n }) : _react2.default.createElement('input', {\n type: inputType,\n checked: selected,\n disabled: disabled,\n className: bootstrap4 ? 'selection-input-4' : '',\n onChange: function onChange() {}\n })\n );\n }\n );\n }\n }]);\n\n return SelectionCell;\n}(_react.Component);\n\nSelectionCell.propTypes = {\n mode: _propTypes2.default.string.isRequired,\n rowKey: _propTypes2.default.any,\n selected: _propTypes2.default.bool,\n onRowSelect: _propTypes2.default.func,\n disabled: _propTypes2.default.bool,\n rowIndex: _propTypes2.default.number,\n tabIndex: _propTypes2.default.number,\n clickToSelect: _propTypes2.default.bool,\n selectionRenderer: _propTypes2.default.func,\n selectColumnStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func])\n};\nexports.default = SelectionCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _selectionContext = require('../contexts/selection-context');\n\nvar _selectionContext2 = _interopRequireDefault(_selectionContext);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (Component) {\n return function () {\n return _react2.default.createElement(\n _selectionContext2.default.Consumer,\n null,\n function (selectRow) {\n return _react2.default.createElement(Component, selectRow);\n }\n );\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CheckBox = undefined;\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _bootstrap = require('../contexts/bootstrap');\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n\n\nvar CheckBox = exports.CheckBox = function CheckBox(_ref) {\n var className = _ref.className,\n checked = _ref.checked,\n indeterminate = _ref.indeterminate;\n return _react2.default.createElement('input', {\n type: 'checkbox',\n checked: checked,\n className: className,\n ref: function ref(input) {\n if (input) input.indeterminate = indeterminate; // eslint-disable-line no-param-reassign\n },\n onChange: function onChange() {}\n });\n};\n\nCheckBox.propTypes = {\n checked: _propTypes2.default.bool.isRequired,\n indeterminate: _propTypes2.default.bool.isRequired,\n className: _propTypes2.default.string\n};\n\nvar SelectionHeaderCell = function (_Component) {\n _inherits(SelectionHeaderCell, _Component);\n\n function SelectionHeaderCell() {\n _classCallCheck(this, SelectionHeaderCell);\n\n var _this = _possibleConstructorReturn(this, (SelectionHeaderCell.__proto__ || Object.getPrototypeOf(SelectionHeaderCell)).call(this));\n\n _this.handleCheckBoxClick = _this.handleCheckBoxClick.bind(_this);\n return _this;\n }\n\n /**\n * avoid updating if button is\n * 1. radio\n * 2. status was not changed.\n */\n\n\n _createClass(SelectionHeaderCell, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n var ROW_SELECT_SINGLE = _const2.default.ROW_SELECT_SINGLE;\n var _props = this.props,\n mode = _props.mode,\n checkedStatus = _props.checkedStatus;\n\n\n if (mode === ROW_SELECT_SINGLE) return false;\n\n return nextProps.checkedStatus !== checkedStatus;\n }\n }, {\n key: 'handleCheckBoxClick',\n value: function handleCheckBoxClick(e) {\n var _props2 = this.props,\n onAllRowsSelect = _props2.onAllRowsSelect,\n checkedStatus = _props2.checkedStatus;\n\n var isUnSelect = checkedStatus === _const2.default.CHECKBOX_STATUS_CHECKED || checkedStatus === _const2.default.CHECKBOX_STATUS_INDETERMINATE;\n\n onAllRowsSelect(e, isUnSelect);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var CHECKBOX_STATUS_CHECKED = _const2.default.CHECKBOX_STATUS_CHECKED,\n CHECKBOX_STATUS_INDETERMINATE = _const2.default.CHECKBOX_STATUS_INDETERMINATE,\n ROW_SELECT_MULTIPLE = _const2.default.ROW_SELECT_MULTIPLE;\n var _props3 = this.props,\n mode = _props3.mode,\n checkedStatus = _props3.checkedStatus,\n selectionHeaderRenderer = _props3.selectionHeaderRenderer,\n hideSelectAll = _props3.hideSelectAll,\n headerColumnStyle = _props3.headerColumnStyle;\n\n if (hideSelectAll) {\n return _react2.default.createElement('th', { 'data-row-selection': true });\n }\n\n var checked = checkedStatus === CHECKBOX_STATUS_CHECKED;\n\n var indeterminate = checkedStatus === CHECKBOX_STATUS_INDETERMINATE;\n\n var attrs = {};\n var content = void 0;\n if (selectionHeaderRenderer || mode === ROW_SELECT_MULTIPLE) {\n attrs.onClick = this.handleCheckBoxClick;\n }\n\n attrs.style = _utils2.default.isFunction(headerColumnStyle) ? headerColumnStyle(checkedStatus) : headerColumnStyle;\n\n return _react2.default.createElement(\n _bootstrap.BootstrapContext.Consumer,\n null,\n function (_ref2) {\n var bootstrap4 = _ref2.bootstrap4;\n\n if (selectionHeaderRenderer) {\n content = selectionHeaderRenderer({\n mode: mode,\n checked: checked,\n indeterminate: indeterminate\n });\n } else if (mode === ROW_SELECT_MULTIPLE) {\n content = _react2.default.createElement(CheckBox, _extends({}, _this2.props, {\n checked: checked,\n className: bootstrap4 ? 'selection-input-4' : '',\n indeterminate: indeterminate\n }));\n }\n return _react2.default.createElement(\n 'th',\n _extends({ className: 'selection-cell-header', 'data-row-selection': true }, attrs),\n content\n );\n }\n );\n }\n }]);\n\n return SelectionHeaderCell;\n}(_react.Component);\n\nSelectionHeaderCell.propTypes = {\n mode: _propTypes2.default.string.isRequired,\n checkedStatus: _propTypes2.default.string,\n onAllRowsSelect: _propTypes2.default.func,\n hideSelectAll: _propTypes2.default.bool,\n selectionHeaderRenderer: _propTypes2.default.func,\n headerColumnStyle: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func])\n};\nexports.default = SelectionHeaderCell;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _expandCell = require('../row-expand/expand-cell');\n\nvar _expandCell2 = _interopRequireDefault(_expandCell);\n\nvar _selectionCell = require('../row-selection/selection-cell');\n\nvar _selectionCell2 = _interopRequireDefault(_selectionCell);\n\nvar _shouldUpdater2 = require('./should-updater');\n\nvar _shouldUpdater3 = _interopRequireDefault(_shouldUpdater2);\n\nvar _eventDelegater = require('./event-delegater');\n\nvar _eventDelegater2 = _interopRequireDefault(_eventDelegater);\n\nvar _rowPureContent = require('./row-pure-content');\n\nvar _rowPureContent2 = _interopRequireDefault(_rowPureContent);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint class-methods-use-this: 0 */\n/* eslint react/prop-types: 0 */\n/* eslint no-plusplus: 0 */\n\n\nvar RowAggregator = function (_shouldUpdater) {\n _inherits(RowAggregator, _shouldUpdater);\n\n function RowAggregator(props) {\n _classCallCheck(this, RowAggregator);\n\n var _this = _possibleConstructorReturn(this, (RowAggregator.__proto__ || Object.getPrototypeOf(RowAggregator)).call(this, props));\n\n _this.clickNum = 0;\n _this.shouldUpdateRowContent = false;\n _this.createClickEventHandler = _this.createClickEventHandler.bind(_this);\n return _this;\n }\n\n _createClass(RowAggregator, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n if (this.props.selected !== nextProps.selected || this.props.expanded !== nextProps.expanded || this.props.expandable !== nextProps.expandable || this.props.selectable !== nextProps.selectable || this.props.selectRow.hideSelectColumn !== nextProps.selectRow.hideSelectColumn || this.shouldUpdatedBySelfProps(nextProps)) {\n this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);\n return true;\n }\n this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);\n\n return this.shouldUpdateRowContent;\n }\n }, {\n key: 'isRenderFunctionColumnInLeft',\n value: function isRenderFunctionColumnInLeft() {\n var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _const2.default.INDICATOR_POSITION_LEFT;\n\n return position === _const2.default.INDICATOR_POSITION_LEFT;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n row = _props.row,\n columns = _props.columns,\n keyField = _props.keyField,\n rowIndex = _props.rowIndex,\n style = _props.style,\n className = _props.className,\n attrs = _props.attrs,\n selectRow = _props.selectRow,\n expandRow = _props.expandRow,\n expanded = _props.expanded,\n expandable = _props.expandable,\n selected = _props.selected,\n selectable = _props.selectable,\n visibleColumnSize = _props.visibleColumnSize,\n tabIndexCell = _props.tabIndexCell,\n rest = _objectWithoutProperties(_props, ['row', 'columns', 'keyField', 'rowIndex', 'style', 'className', 'attrs', 'selectRow', 'expandRow', 'expanded', 'expandable', 'selected', 'selectable', 'visibleColumnSize', 'tabIndexCell']);\n\n var key = _utils2.default.get(row, keyField);\n var hideSelectColumn = selectRow.hideSelectColumn,\n selectColumnPosition = selectRow.selectColumnPosition,\n clickToSelect = selectRow.clickToSelect;\n var showExpandColumn = expandRow.showExpandColumn,\n expandColumnPosition = expandRow.expandColumnPosition;\n\n\n var newAttrs = this.delegate(_extends({}, attrs));\n if (clickToSelect || !!expandRow.renderer) {\n newAttrs.onClick = this.createClickEventHandler(newAttrs.onClick);\n }\n\n var tabIndexStart = rowIndex * visibleColumnSize + 1;\n\n var childrens = [_react2.default.createElement(_rowPureContent2.default, _extends({\n key: 'row',\n row: row,\n columns: columns,\n keyField: keyField,\n rowIndex: rowIndex,\n shouldUpdate: this.shouldUpdateRowContent,\n tabIndexStart: tabIndexCell ? tabIndexStart : -1\n }, rest))];\n\n if (!hideSelectColumn) {\n var selectCell = _react2.default.createElement(_selectionCell2.default, _extends({}, selectRow, {\n key: 'selection-cell',\n rowKey: key,\n rowIndex: rowIndex,\n selected: selected,\n disabled: !selectable,\n tabIndex: tabIndexCell ? tabIndexStart++ : -1\n }));\n if (this.isRenderFunctionColumnInLeft(selectColumnPosition)) {\n childrens.unshift(selectCell);\n } else {\n childrens.push(selectCell);\n }\n }\n\n if (showExpandColumn) {\n var expandCell = _react2.default.createElement(_expandCell2.default, _extends({}, expandRow, {\n key: 'expand-cell',\n rowKey: key,\n rowIndex: rowIndex,\n expanded: expanded,\n expandable: expandable,\n tabIndex: tabIndexCell ? tabIndexStart++ : -1\n }));\n if (this.isRenderFunctionColumnInLeft(expandColumnPosition)) {\n childrens.unshift(expandCell);\n } else {\n childrens.push(expandCell);\n }\n }\n\n return _react2.default.createElement(\n 'tr',\n _extends({\n style: style,\n className: className\n }, newAttrs),\n childrens\n );\n }\n }]);\n\n return RowAggregator;\n}((0, _shouldUpdater3.default)((0, _eventDelegater2.default)(_react2.default.Component)));\n\nRowAggregator.propTypes = {\n attrs: _propTypes2.default.object,\n style: _propTypes2.default.object\n};\nRowAggregator.defaultProps = {\n attrs: {},\n style: {}\n};\nexports.default = RowAggregator;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nvar events = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu', 'onAuxClick'];\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(RowEventDelegater, _ExtendBase);\n\n function RowEventDelegater(props) {\n _classCallCheck(this, RowEventDelegater);\n\n var _this = _possibleConstructorReturn(this, (RowEventDelegater.__proto__ || Object.getPrototypeOf(RowEventDelegater)).call(this, props));\n\n _this.clickNum = 0;\n _this.createDefaultEventHandler = _this.createDefaultEventHandler.bind(_this);\n _this.createClickEventHandler = _this.createClickEventHandler.bind(_this);\n return _this;\n }\n\n _createClass(RowEventDelegater, [{\n key: 'createClickEventHandler',\n value: function createClickEventHandler(cb) {\n var _this2 = this;\n\n return function (e) {\n var _props = _this2.props,\n row = _props.row,\n selected = _props.selected,\n keyField = _props.keyField,\n selectable = _props.selectable,\n expandable = _props.expandable,\n rowIndex = _props.rowIndex,\n expanded = _props.expanded,\n expandRow = _props.expandRow,\n selectRow = _props.selectRow,\n DELAY_FOR_DBCLICK = _props.DELAY_FOR_DBCLICK;\n\n var clickFn = function clickFn() {\n if (cb) {\n cb(e, row, rowIndex);\n }\n var key = _utils2.default.get(row, keyField);\n if (expandRow && expandable && !expandRow.expandByColumnOnly) {\n if (selectRow.mode !== _const2.default.ROW_SELECT_DISABLED && selectRow.clickToExpand || selectRow.mode === _const2.default.ROW_SELECT_DISABLED) {\n expandRow.onRowExpand(key, !expanded, rowIndex, e);\n }\n }\n if (selectRow.clickToSelect && selectable) {\n selectRow.onRowSelect(key, !selected, rowIndex, e);\n }\n };\n\n if (DELAY_FOR_DBCLICK) {\n _this2.clickNum += 1;\n _utils2.default.debounce(function () {\n if (_this2.clickNum === 1) {\n clickFn();\n }\n _this2.clickNum = 0;\n }, DELAY_FOR_DBCLICK)();\n } else {\n clickFn();\n }\n };\n }\n }, {\n key: 'createDefaultEventHandler',\n value: function createDefaultEventHandler(cb) {\n var _this3 = this;\n\n return function (e) {\n var _props2 = _this3.props,\n row = _props2.row,\n rowIndex = _props2.rowIndex;\n\n cb(e, row, rowIndex);\n };\n }\n }, {\n key: 'delegate',\n value: function delegate() {\n var _this4 = this;\n\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var newAttrs = _extends({}, attrs);\n Object.keys(attrs).forEach(function (attr) {\n if (_utils2.default.contains(events, attr)) {\n newAttrs[attr] = _this4.createDefaultEventHandler(attrs[attr]);\n }\n });\n return newAttrs;\n }\n }]);\n\n return RowEventDelegater;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _cell = require('../cell');\n\nvar _cell2 = _interopRequireDefault(_cell);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/no-array-index-key: 0 */\n/* eslint no-plusplus: 0 */\n\n\nvar RowPureContent = function (_React$Component) {\n _inherits(RowPureContent, _React$Component);\n\n function RowPureContent() {\n _classCallCheck(this, RowPureContent);\n\n return _possibleConstructorReturn(this, (RowPureContent.__proto__ || Object.getPrototypeOf(RowPureContent)).apply(this, arguments));\n }\n\n _createClass(RowPureContent, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n if (typeof nextProps.shouldUpdate !== 'undefined') {\n return nextProps.shouldUpdate;\n }\n return true;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n row = _props.row,\n keyField = _props.keyField,\n columns = _props.columns,\n rowIndex = _props.rowIndex,\n editable = _props.editable,\n editingRowIdx = _props.editingRowIdx,\n editingColIdx = _props.editingColIdx,\n onStart = _props.onStart,\n clickToEdit = _props.clickToEdit,\n dbclickToEdit = _props.dbclickToEdit,\n EditingCellComponent = _props.EditingCellComponent,\n tabIndexStart = _props.tabIndexStart;\n\n\n var tabIndex = tabIndexStart;\n\n return columns.map(function (column, index) {\n var dataField = column.dataField;\n\n var content = _utils2.default.get(row, dataField);\n if (rowIndex === editingRowIdx && index === editingColIdx) {\n return _react2.default.createElement(EditingCellComponent, {\n key: content + '-' + index + '-editing',\n row: row,\n rowIndex: rowIndex,\n column: column,\n columnIndex: index\n });\n }\n // render cell\n var cellTitle = void 0;\n var cellStyle = {};\n var cellAttrs = _extends({}, _utils2.default.isFunction(column.attrs) ? column.attrs(content, row, rowIndex, index) : column.attrs);\n\n if (column.events) {\n var events = Object.assign({}, column.events);\n Object.keys(Object.assign({}, column.events)).forEach(function (key) {\n var originFn = events[key];\n events[key] = function () {\n for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {\n rest[_key] = arguments[_key];\n }\n\n return originFn.apply(undefined, rest.concat([row, rowIndex]));\n };\n });\n cellAttrs = _extends({}, cellAttrs, events);\n }\n\n var cellClasses = _utils2.default.isFunction(column.classes) ? column.classes(content, row, rowIndex, index) : column.classes;\n\n if (column.style) {\n cellStyle = _utils2.default.isFunction(column.style) ? column.style(content, row, rowIndex, index) : column.style;\n cellStyle = Object.assign({}, cellStyle) || {};\n }\n\n if (column.title) {\n cellTitle = _utils2.default.isFunction(column.title) ? column.title(content, row, rowIndex, index) : content;\n cellAttrs.title = cellTitle;\n }\n\n if (column.align) {\n cellStyle.textAlign = _utils2.default.isFunction(column.align) ? column.align(content, row, rowIndex, index) : column.align;\n }\n\n if (cellClasses) cellAttrs.className = cellClasses;\n if (!_utils2.default.isEmptyObject(cellStyle)) cellAttrs.style = cellStyle;\n\n var editableCell = _utils2.default.isDefined(column.editable) ? column.editable : true;\n if (column.dataField === keyField || !editable) editableCell = false;\n if (_utils2.default.isFunction(column.editable)) {\n editableCell = column.editable(content, row, rowIndex, index);\n }\n\n if (tabIndexStart !== -1) {\n cellAttrs.tabIndex = tabIndex++;\n }\n\n return _react2.default.createElement(_cell2.default, _extends({\n key: content + '-' + index,\n row: row,\n editable: editableCell,\n rowIndex: rowIndex,\n columnIndex: index,\n column: column,\n onStart: onStart,\n clickToEdit: clickToEdit,\n dbclickToEdit: dbclickToEdit\n }, cellAttrs));\n });\n }\n }]);\n\n return RowPureContent;\n}(_react2.default.Component);\n\nexports.default = RowPureContent;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar RowSection = function RowSection(_ref) {\n var content = _ref.content,\n colSpan = _ref.colSpan;\n return _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n {\n 'data-toggle': 'collapse',\n colSpan: colSpan,\n className: 'react-bs-table-no-data'\n },\n content\n )\n );\n};\n\nRowSection.propTypes = {\n content: _propTypes2.default.any,\n colSpan: _propTypes2.default.number\n};\n\nRowSection.defaultProps = {\n content: null,\n colSpan: 1\n};\n\nexports.default = RowSection;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; } /* eslint react/require-default-props: 0 */\n\n\nvar RowTemplate = function RowTemplate(props) {\n var renderContent = props.renderContent,\n selectRow = props.selectRow,\n expandRow = props.expandRow,\n cellEl = props.cellEl,\n rest = _objectWithoutProperties(props, ['renderContent', 'selectRow', 'expandRow', 'cellEl']);\n\n var isRenderFunctionColumnInLeft = function isRenderFunctionColumnInLeft() {\n var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _const2.default.INDICATOR_POSITION_LEFT;\n return position === _const2.default.INDICATOR_POSITION_LEFT;\n };\n\n var childrens = renderContent() || [];\n\n if (selectRow && selectRow.hideSelectColumn !== true) {\n if (isRenderFunctionColumnInLeft(selectRow.selectColumnPosition)) {\n childrens.unshift(_react2.default.createElement(cellEl, { key: 'selection' }));\n } else {\n childrens.push(_react2.default.createElement(cellEl, { key: 'selection' }));\n }\n }\n\n if (expandRow.showExpandColumn) {\n if (isRenderFunctionColumnInLeft(expandRow.expandColumnPosition)) {\n childrens.unshift(_react2.default.createElement(cellEl, { key: 'expansion' }));\n } else {\n childrens.push(_react2.default.createElement(cellEl, { key: 'expansion' }));\n }\n }\n\n return _react2.default.createElement(\n 'tr',\n rest,\n childrens\n );\n};\n\nRowTemplate.propTypes = {\n renderContent: _propTypes2.default.func.isRequired,\n cellEl: _propTypes2.default.string.isRequired,\n selectRow: _propTypes2.default.object,\n expandRow: _propTypes2.default.object\n};\n\nexports.default = RowTemplate;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(RowShouldUpdater, _ExtendBase);\n\n function RowShouldUpdater() {\n _classCallCheck(this, RowShouldUpdater);\n\n return _possibleConstructorReturn(this, (RowShouldUpdater.__proto__ || Object.getPrototypeOf(RowShouldUpdater)).apply(this, arguments));\n }\n\n _createClass(RowShouldUpdater, [{\n key: 'shouldUpdateByCellEditing',\n value: function shouldUpdateByCellEditing(nextProps) {\n if (!(this.props.clickToEdit || this.props.dbclickToEdit)) return false;\n return nextProps.editingRowIdx === nextProps.rowIndex || this.props.editingRowIdx === nextProps.rowIndex && nextProps.editingRowIdx === null || this.props.editingRowIdx === nextProps.rowIndex;\n }\n }, {\n key: 'shouldUpdatedBySelfProps',\n value: function shouldUpdatedBySelfProps(nextProps) {\n return this.props.className !== nextProps.className || !_utils2.default.isEqual(this.props.style, nextProps.style) || !_utils2.default.isEqual(this.props.attrs, nextProps.attrs);\n }\n\n // Only use for simple-row\n\n }, {\n key: 'shouldUpdateByColumnsForSimpleCheck',\n value: function shouldUpdateByColumnsForSimpleCheck(nextProps) {\n if (this.props.columns.length !== nextProps.columns.length) {\n return true;\n }\n for (var i = 0; i < this.props.columns.length; i += 1) {\n if (!_utils2.default.isEqual(this.props.columns[i], nextProps.columns[i])) {\n return true;\n }\n }\n return false;\n }\n }, {\n key: 'shouldUpdatedByNormalProps',\n value: function shouldUpdatedByNormalProps(nextProps) {\n var shouldUpdate = this.props.rowIndex !== nextProps.rowIndex || this.props.editable !== nextProps.editable || !_utils2.default.isEqual(this.props.row, nextProps.row) || this.props.columns.length !== nextProps.columns.length;\n\n return shouldUpdate;\n }\n }, {\n key: 'shouldUpdateChild',\n value: function shouldUpdateChild(nextProps) {\n return this.shouldUpdateByCellEditing(nextProps) || this.shouldUpdatedByNormalProps(nextProps);\n }\n }, {\n key: 'shouldRowContentUpdate',\n value: function shouldRowContentUpdate(nextProps) {\n return this.shouldUpdateChild(nextProps) || this.shouldUpdateByColumnsForSimpleCheck(nextProps);\n }\n }]);\n\n return RowShouldUpdater;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _rowPureContent = require('./row-pure-content');\n\nvar _rowPureContent2 = _interopRequireDefault(_rowPureContent);\n\nvar _eventDelegater = require('./event-delegater');\n\nvar _eventDelegater2 = _interopRequireDefault(_eventDelegater);\n\nvar _shouldUpdater2 = require('./should-updater');\n\nvar _shouldUpdater3 = _interopRequireDefault(_shouldUpdater2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/no-array-index-key: 0 */\n\n\nvar SimpleRow = function (_shouldUpdater) {\n _inherits(SimpleRow, _shouldUpdater);\n\n function SimpleRow(props) {\n _classCallCheck(this, SimpleRow);\n\n var _this = _possibleConstructorReturn(this, (SimpleRow.__proto__ || Object.getPrototypeOf(SimpleRow)).call(this, props));\n\n _this.shouldUpdateRowContent = false;\n return _this;\n }\n\n _createClass(SimpleRow, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n this.shouldUpdateRowContent = false;\n this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);\n if (this.shouldUpdateRowContent) return true;\n\n return this.shouldUpdatedBySelfProps(nextProps);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n style = _props.style,\n attrs = _props.attrs,\n visibleColumnSize = _props.visibleColumnSize,\n tabIndexCell = _props.tabIndexCell,\n rest = _objectWithoutProperties(_props, ['className', 'style', 'attrs', 'visibleColumnSize', 'tabIndexCell']);\n\n var trAttrs = this.delegate(attrs);\n var tabIndexStart = this.props.rowIndex * visibleColumnSize + 1;\n\n return _react2.default.createElement(\n 'tr',\n _extends({ style: style, className: className }, trAttrs),\n _react2.default.createElement(_rowPureContent2.default, _extends({\n shouldUpdate: this.shouldUpdateRowContent,\n tabIndexStart: tabIndexCell ? tabIndexStart : -1\n }, rest))\n );\n }\n }]);\n\n return SimpleRow;\n}((0, _shouldUpdater3.default)((0, _eventDelegater2.default)(_react.Component)));\n\nSimpleRow.propTypes = {\n row: _propTypes2.default.object.isRequired,\n rowIndex: _propTypes2.default.number.isRequired,\n columns: _propTypes2.default.array.isRequired,\n style: _propTypes2.default.object,\n className: _propTypes2.default.string,\n attrs: _propTypes2.default.object\n};\n\nSimpleRow.defaultProps = {\n editable: true,\n style: {},\n className: null,\n attrs: {}\n};\n\nexports.default = SimpleRow;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _bootstrap = require('../contexts/bootstrap');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SortCaret = function SortCaret(_ref) {\n var order = _ref.order;\n\n var orderClass = (0, _classnames2.default)('react-bootstrap-table-sort-order', {\n dropup: order === _const2.default.SORT_ASC\n });\n\n return _react2.default.createElement(\n _bootstrap.BootstrapContext.Consumer,\n null,\n function (_ref2) {\n var bootstrap4 = _ref2.bootstrap4;\n return bootstrap4 ? _react2.default.createElement('span', { className: 'caret-4-' + order }) : _react2.default.createElement(\n 'span',\n { className: orderClass },\n _react2.default.createElement('span', { className: 'caret' })\n );\n }\n );\n};\n\nSortCaret.propTypes = {\n order: _propTypes2.default.oneOf([_const2.default.SORT_ASC, _const2.default.SORT_DESC]).isRequired\n};\n\nexports.default = SortCaret;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _bootstrap = require('../contexts/bootstrap');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SortSymbol = function SortSymbol() {\n return _react2.default.createElement(\n _bootstrap.BootstrapContext.Consumer,\n null,\n function (_ref) {\n var bootstrap4 = _ref.bootstrap4;\n return bootstrap4 ? _react2.default.createElement('span', { className: 'order-4' }) : _react2.default.createElement(\n 'span',\n { className: 'order' },\n _react2.default.createElement(\n 'span',\n { className: 'dropdown' },\n _react2.default.createElement('span', { className: 'caret' })\n ),\n _react2.default.createElement(\n 'span',\n { className: 'dropup' },\n _react2.default.createElement('span', { className: 'caret' })\n )\n );\n }\n );\n};\n\nexports.default = SortSymbol;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getExpandedRows = exports.expandableKeys = exports.isAnyExpands = undefined;\n\nvar _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; };\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _rows = require('./rows');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isAnyExpands = exports.isAnyExpands = function isAnyExpands(data, keyField) {\n var expanded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n var _loop = function _loop(i) {\n var rowKey = _utils2.default.get(data[i], keyField);\n if (typeof expanded.find(function (x) {\n return x === rowKey;\n }) !== 'undefined') {\n return {\n v: true\n };\n }\n };\n\n for (var i = 0; i < data.length; i += 1) {\n var _ret = _loop(i);\n\n if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n }\n return false;\n};\n\nvar expandableKeys = exports.expandableKeys = function expandableKeys(data, keyField) {\n var skips = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n if (skips.length === 0) {\n return data.map(function (row) {\n return _utils2.default.get(row, keyField);\n });\n }\n return data.filter(function (row) {\n return !_utils2.default.contains(skips, _utils2.default.get(row, keyField));\n }).map(function (row) {\n return _utils2.default.get(row, keyField);\n });\n};\n\nvar getExpandedRows = exports.getExpandedRows = function getExpandedRows(data, keyField, expanded) {\n return expanded.map(function (k) {\n return (0, _rows.getRowByRowId)(data, keyField, k);\n });\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.editCell = undefined;\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _rows = require('./rows');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar editCell = exports.editCell = function editCell(data, keyField, rowId, dataField, newValue) {\n var row = (0, _rows.getRowByRowId)(data, keyField, rowId);\n if (row) _utils2.default.set(row, dataField, newValue);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _rows = require('./rows');\n\nvar rows = _interopRequireWildcard(_rows);\n\nvar _selection = require('./selection');\n\nvar selection = _interopRequireWildcard(_selection);\n\nvar _expand = require('./expand');\n\nvar expand = _interopRequireWildcard(_expand);\n\nvar _mutate = require('./mutate');\n\nvar mutate = _interopRequireWildcard(_mutate);\n\nvar _sort = require('./sort');\n\nvar sort = _interopRequireWildcard(_sort);\n\nvar _type = require('./type');\n\nvar type = _interopRequireWildcard(_type);\n\nfunction _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; } }\n\nexports.default = _extends({}, rows, selection, expand, mutate, sort, type);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getRowByRowId = exports.matchRow = undefined;\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar matchRow = exports.matchRow = function matchRow(keyField, id) {\n return function (row) {\n return _utils2.default.get(row, keyField) === id;\n };\n};\n\nvar getRowByRowId = exports.getRowByRowId = function getRowByRowId(data, keyField, id) {\n return data.find(matchRow(keyField, id));\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getSelectedRows = exports.unSelectableKeys = exports.selectableKeys = exports.getSelectionSummary = undefined;\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _rows = require('./rows');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar getSelectionSummary = exports.getSelectionSummary = function getSelectionSummary() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var keyField = arguments[1];\n var selected = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n var allRowsSelected = data.length > 0;\n var allRowsNotSelected = true;\n\n var rowKeys = data.map(function (d) {\n return _utils2.default.get(d, keyField);\n });\n\n var _loop = function _loop(i) {\n var curr = rowKeys[i];\n if (typeof selected.find(function (x) {\n return x === curr;\n }) === 'undefined') {\n allRowsSelected = false;\n } else {\n allRowsNotSelected = false;\n }\n };\n\n for (var i = 0; i < rowKeys.length; i += 1) {\n _loop(i);\n }\n return {\n allRowsSelected: allRowsSelected,\n allRowsNotSelected: allRowsNotSelected\n };\n};\n\nvar selectableKeys = exports.selectableKeys = function selectableKeys() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var keyField = arguments[1];\n var skips = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n if (skips.length === 0) {\n return data.map(function (row) {\n return _utils2.default.get(row, keyField);\n });\n }\n return data.filter(function (row) {\n return !_utils2.default.contains(skips, _utils2.default.get(row, keyField));\n }).map(function (row) {\n return _utils2.default.get(row, keyField);\n });\n};\n\nvar unSelectableKeys = exports.unSelectableKeys = function unSelectableKeys(selected) {\n var skips = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n if (skips.length === 0) {\n return [];\n }\n return selected.filter(function (x) {\n return _utils2.default.contains(skips, x);\n });\n};\n\nvar getSelectedRows = exports.getSelectedRows = function getSelectedRows() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var keyField = arguments[1];\n var selected = arguments[2];\n return selected.map(function (k) {\n return (0, _rows.getRowByRowId)(data, keyField, k);\n }).filter(function (x) {\n return !!x;\n });\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nextOrder = exports.sort = undefined;\n\nvar _utils = require('../utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /* eslint no-nested-ternary: 0 */\n/* eslint no-lonely-if: 0 */\n/* eslint no-underscore-dangle: 0 */\n\n\nfunction comparator(a, b) {\n var result = void 0;\n if (typeof b === 'string') {\n result = b.localeCompare(a);\n } else {\n result = a > b ? -1 : a < b ? 1 : 0;\n }\n return result;\n}\n\nvar sort = exports.sort = function sort(data, sortOrder, _ref) {\n var dataField = _ref.dataField,\n sortFunc = _ref.sortFunc,\n sortValue = _ref.sortValue;\n\n var _data = [].concat(_toConsumableArray(data));\n _data.sort(function (a, b) {\n var result = void 0;\n var valueA = _utils2.default.get(a, dataField);\n var valueB = _utils2.default.get(b, dataField);\n if (sortValue) {\n valueA = sortValue(valueA, a);\n valueB = sortValue(valueB, b);\n } else {\n valueA = _utils2.default.isDefined(valueA) ? valueA : '';\n valueB = _utils2.default.isDefined(valueB) ? valueB : '';\n }\n\n if (sortFunc) {\n result = sortFunc(valueA, valueB, sortOrder, dataField, a, b);\n } else {\n if (sortOrder === _const2.default.SORT_DESC) {\n result = comparator(valueA, valueB);\n } else {\n result = comparator(valueB, valueA);\n }\n }\n return result;\n });\n return _data;\n};\n\nvar nextOrder = exports.nextOrder = function nextOrder(currentSortColumn, _ref2) {\n var sortOrder = _ref2.sortOrder,\n sortColumn = _ref2.sortColumn;\n var defaultOrder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _const2.default.SORT_DESC;\n\n if (!sortColumn || currentSortColumn.dataField !== sortColumn.dataField) return defaultOrder;\n return sortOrder === _const2.default.SORT_DESC ? _const2.default.SORT_ASC : _const2.default.SORT_DESC;\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typeConvert = undefined;\n\nvar _const = require('../const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar typeConvert = exports.typeConvert = function typeConvert(type, value) {\n if (type === _const2.default.TYPE_STRING) {\n return String(value);\n } else if (type === _const2.default.TYPE_NUMBER) {\n return Number(value);\n } else if (type === _const2.default.TYPE_BOOLEAN) {\n if (typeof value === 'boolean') {\n return value;\n }\n return value === 'true';\n } else if (type === _const2.default.TYPE_DATE) {\n return new Date(value);\n }\n return value;\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _underscore = require('underscore');\n\nvar _underscore2 = _interopRequireDefault(_underscore);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction splitNested(str) {\n return [str].join('.').replace(/\\[/g, '.').replace(/\\]/g, '').split('.');\n} /* eslint no-empty: 0 */\n/* eslint no-param-reassign: 0 */\n/* eslint prefer-rest-params: 0 */\n\n\nfunction contains(list, value) {\n if (_underscore2.default.includes) {\n return _underscore2.default.includes(list, value);\n }\n\n return list.indexOf(value) > -1;\n}\n\nfunction get(target, field) {\n var directGet = target[field];\n if (directGet !== undefined && directGet !== null) {\n return directGet;\n }\n\n var pathArray = splitNested(field);\n var result = void 0;\n try {\n result = pathArray.reduce(function (curr, path) {\n return curr[path];\n }, target);\n } catch (e) {}\n return result;\n}\n\nfunction set(target, field, value) {\n var safe = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n var pathArray = splitNested(field);\n var level = 0;\n pathArray.reduce(function (a, b) {\n level += 1;\n if (typeof a[b] === 'undefined') {\n if (!safe) throw new Error(a + '.' + b + ' is undefined');\n a[b] = {};\n return a[b];\n }\n\n if (level === pathArray.length) {\n a[b] = value;\n return value;\n }\n return a[b];\n }, target);\n}\n\nfunction isEmptyObject(obj) {\n if (!_underscore2.default.isObject(obj)) return false;\n\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var keys = Object.keys(obj);\n\n for (var i = 0; i < keys.length; i += 1) {\n if (hasOwnProperty.call(obj, keys[i])) return false;\n }\n\n return true;\n}\n\nfunction isDefined(value) {\n return typeof value !== 'undefined' && value !== null;\n}\n\nfunction sleep(fn, ms) {\n return setTimeout(function () {\n return fn();\n }, ms);\n}\n\nfunction debounce(func, wait, immediate) {\n var _this = this,\n _arguments = arguments;\n\n var timeout = void 0;\n\n return function () {\n var later = function later() {\n timeout = null;\n\n if (!immediate) {\n func.apply(_this, _arguments);\n }\n };\n\n var callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait || 0);\n\n if (callNow) {\n func.apply(_this, _arguments);\n }\n };\n}\n\nexports.default = Object.assign(_underscore2.default, {\n get: get,\n set: set,\n isDefined: isDefined,\n isEmptyObject: isEmptyObject,\n sleep: sleep,\n debounce: debounce,\n contains: contains\n});","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.customFilter = exports.dateFilter = exports.numberFilter = exports.multiSelectFilter = exports.selectFilter = exports.textFilter = exports.Comparator = exports.FILTER_TYPES = undefined;\n\nvar _text = require('./src/components/text');\n\nvar _text2 = _interopRequireDefault(_text);\n\nvar _select = require('./src/components/select');\n\nvar _select2 = _interopRequireDefault(_select);\n\nvar _multiselect = require('./src/components/multiselect');\n\nvar _multiselect2 = _interopRequireDefault(_multiselect);\n\nvar _number = require('./src/components/number');\n\nvar _number2 = _interopRequireDefault(_number);\n\nvar _date = require('./src/components/date');\n\nvar _date2 = _interopRequireDefault(_date);\n\nvar _context = require('./src/context');\n\nvar _context2 = _interopRequireDefault(_context);\n\nvar _comparison = require('./src/comparison');\n\nvar Comparison = _interopRequireWildcard(_comparison);\n\nvar _const = require('./src/const');\n\nfunction _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; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n createContext: _context2.default,\n options: options\n };\n};\n\nvar FILTER_TYPES = exports.FILTER_TYPES = _const.FILTER_TYPE;\n\nvar Comparator = exports.Comparator = Comparison;\n\nvar textFilter = exports.textFilter = function textFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n Filter: _text2.default,\n props: props\n };\n};\n\nvar selectFilter = exports.selectFilter = function selectFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n Filter: _select2.default,\n props: props\n };\n};\n\nvar multiSelectFilter = exports.multiSelectFilter = function multiSelectFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n Filter: _multiselect2.default,\n props: props\n };\n};\n\nvar numberFilter = exports.numberFilter = function numberFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n Filter: _number2.default,\n props: props\n };\n};\n\nvar dateFilter = exports.dateFilter = function dateFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n Filter: _date2.default,\n props: props\n };\n};\n\nvar customFilter = exports.customFilter = function customFilter() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n props: props\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar LIKE = exports.LIKE = 'LIKE';\nvar EQ = exports.EQ = '=';\nvar NE = exports.NE = '!=';\nvar GT = exports.GT = '>';\nvar GE = exports.GE = '>=';\nvar LT = exports.LT = '<';\nvar LE = exports.LE = '<=';","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _comparison = require('../comparison');\n\nvar Comparator = _interopRequireWildcard(_comparison);\n\nvar _const = require('../const');\n\nfunction _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; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint jsx-a11y/no-static-element-interactions: 0 */\n/* eslint no-return-assign: 0 */\n/* eslint prefer-template: 0 */\n\n\nvar legalComparators = [Comparator.EQ, Comparator.NE, Comparator.GT, Comparator.GE, Comparator.LT, Comparator.LE];\n\nfunction dateParser(d) {\n return d.getUTCFullYear() + '-' + ('0' + (d.getUTCMonth() + 1)).slice(-2) + '-' + ('0' + d.getUTCDate()).slice(-2);\n}\n\nvar DateFilter = function (_Component) {\n _inherits(DateFilter, _Component);\n\n function DateFilter(props) {\n _classCallCheck(this, DateFilter);\n\n var _this = _possibleConstructorReturn(this, (DateFilter.__proto__ || Object.getPrototypeOf(DateFilter)).call(this, props));\n\n _this.timeout = null;\n _this.comparators = props.comparators || legalComparators;\n _this.applyFilter = _this.applyFilter.bind(_this);\n _this.onChangeDate = _this.onChangeDate.bind(_this);\n _this.onChangeComparator = _this.onChangeComparator.bind(_this);\n return _this;\n }\n\n _createClass(DateFilter, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var getFilter = this.props.getFilter;\n\n var comparator = this.dateFilterComparator.value;\n var date = this.inputDate.value;\n if (comparator && date) {\n this.applyFilter(date, comparator, true);\n }\n\n // export onFilter function to allow users to access\n if (getFilter) {\n getFilter(function (filterVal) {\n var nullableFilterVal = filterVal || { date: null, comparator: null };\n _this2.dateFilterComparator.value = nullableFilterVal.comparator;\n _this2.inputDate.value = nullableFilterVal.date ? dateParser(nullableFilterVal.date) : null;\n\n _this2.applyFilter(nullableFilterVal.date, nullableFilterVal.comparator);\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.timeout) clearTimeout(this.timeout);\n }\n }, {\n key: 'onChangeDate',\n value: function onChangeDate(e) {\n var comparator = this.dateFilterComparator.value;\n var filterValue = e.target.value;\n this.applyFilter(filterValue, comparator);\n }\n }, {\n key: 'onChangeComparator',\n value: function onChangeComparator(e) {\n var value = this.inputDate.value;\n var comparator = e.target.value;\n this.applyFilter(value, comparator);\n }\n }, {\n key: 'getComparatorOptions',\n value: function getComparatorOptions() {\n var optionTags = [];\n var withoutEmptyComparatorOption = this.props.withoutEmptyComparatorOption;\n\n if (!withoutEmptyComparatorOption) {\n optionTags.push(_react2.default.createElement('option', { key: '-1' }));\n }\n for (var i = 0; i < this.comparators.length; i += 1) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: i, value: this.comparators[i] },\n this.comparators[i]\n ));\n }\n return optionTags;\n }\n }, {\n key: 'getDefaultComparator',\n value: function getDefaultComparator() {\n var _props = this.props,\n defaultValue = _props.defaultValue,\n filterState = _props.filterState;\n\n if (filterState && filterState.filterVal) {\n return filterState.filterVal.comparator;\n }\n if (defaultValue && defaultValue.comparator) {\n return defaultValue.comparator;\n }\n return '';\n }\n }, {\n key: 'getDefaultDate',\n value: function getDefaultDate() {\n // Set the appropriate format for the input type=date, i.e. \"YYYY-MM-DD\"\n var _props2 = this.props,\n defaultValue = _props2.defaultValue,\n filterState = _props2.filterState;\n\n if (filterState && filterState.filterVal && filterState.filterVal.date) {\n return dateParser(filterState.filterVal.date);\n }\n if (defaultValue && defaultValue.date) {\n return dateParser(new Date(defaultValue.date));\n }\n return '';\n }\n }, {\n key: 'applyFilter',\n value: function applyFilter(value, comparator, isInitial) {\n // if (!comparator || !value) {\n // return;\n // }\n var _props3 = this.props,\n column = _props3.column,\n onFilter = _props3.onFilter,\n delay = _props3.delay;\n\n var execute = function execute() {\n // Incoming value should always be a string, and the defaultDate\n // above is implemented as an empty string, so we can just check for that.\n // instead of parsing an invalid Date. The filter function will interpret\n // null as an empty date field\n var date = value === '' ? null : new Date(value);\n onFilter(column, _const.FILTER_TYPE.DATE, isInitial)({ date: date, comparator: comparator });\n };\n if (delay) {\n this.timeout = setTimeout(function () {\n execute();\n }, delay);\n } else {\n execute();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props4 = this.props,\n id = _props4.id,\n placeholder = _props4.placeholder,\n _props4$column = _props4.column,\n dataField = _props4$column.dataField,\n text = _props4$column.text,\n style = _props4.style,\n comparatorStyle = _props4.comparatorStyle,\n dateStyle = _props4.dateStyle,\n className = _props4.className,\n comparatorClassName = _props4.comparatorClassName,\n dateClassName = _props4.dateClassName;\n\n\n var comparatorElmId = 'date-filter-comparator-' + dataField + (id ? '-' + id : '');\n var inputElmId = 'date-filter-column-' + dataField + (id ? '-' + id : '');\n\n return _react2.default.createElement(\n 'div',\n {\n onClick: function onClick(e) {\n return e.stopPropagation();\n },\n className: 'filter date-filter ' + className,\n style: style\n },\n _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: comparatorElmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Filter comparator'\n ),\n _react2.default.createElement(\n 'select',\n {\n ref: function ref(n) {\n return _this3.dateFilterComparator = n;\n },\n id: comparatorElmId,\n style: comparatorStyle,\n className: 'date-filter-comparator form-control ' + comparatorClassName,\n onChange: this.onChangeComparator,\n defaultValue: this.getDefaultComparator()\n },\n this.getComparatorOptions()\n )\n ),\n _react2.default.createElement(\n 'label',\n { htmlFor: inputElmId },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Enter $',\n text\n ),\n _react2.default.createElement('input', {\n ref: function ref(n) {\n return _this3.inputDate = n;\n },\n id: inputElmId,\n className: 'filter date-filter-input form-control ' + dateClassName,\n style: dateStyle,\n type: 'date',\n onChange: this.onChangeDate,\n placeholder: placeholder || 'Enter ' + text + '...',\n defaultValue: this.getDefaultDate()\n })\n )\n );\n }\n }]);\n\n return DateFilter;\n}(_react.Component);\n\nDateFilter.propTypes = {\n onFilter: _propTypes.PropTypes.func.isRequired,\n column: _propTypes.PropTypes.object.isRequired,\n id: _propTypes.PropTypes.string,\n filterState: _propTypes.PropTypes.object,\n delay: _propTypes.PropTypes.number,\n defaultValue: _propTypes.PropTypes.shape({\n date: _propTypes.PropTypes.oneOfType([_propTypes.PropTypes.object]),\n comparator: _propTypes.PropTypes.oneOf([].concat(legalComparators, ['']))\n }),\n /* eslint consistent-return: 0 */\n comparators: function comparators(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (var i = 0; i < props[propName].length; i += 1) {\n var comparatorIsValid = false;\n for (var j = 0; j < legalComparators.length; j += 1) {\n if (legalComparators[j] === props[propName][i] || props[propName][i] === '') {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error('Date comparator provided is not supported.\\n Use only ' + legalComparators);\n }\n }\n },\n placeholder: _propTypes.PropTypes.string,\n withoutEmptyComparatorOption: _propTypes.PropTypes.bool,\n style: _propTypes.PropTypes.object,\n comparatorStyle: _propTypes.PropTypes.object,\n dateStyle: _propTypes.PropTypes.object,\n className: _propTypes.PropTypes.string,\n comparatorClassName: _propTypes.PropTypes.string,\n dateClassName: _propTypes.PropTypes.string,\n getFilter: _propTypes.PropTypes.func\n};\n\nDateFilter.defaultProps = {\n delay: 0,\n defaultValue: {\n date: undefined,\n comparator: ''\n },\n filterState: {},\n withoutEmptyComparatorOption: false,\n comparators: legalComparators,\n placeholder: undefined,\n style: undefined,\n className: '',\n comparatorStyle: undefined,\n comparatorClassName: '',\n dateStyle: undefined,\n dateClassName: '',\n id: null\n};\n\nexports.default = DateFilter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _comparison = require('../comparison');\n\nvar _const = require('../const');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint no-return-assign: 0 */\n/* eslint no-param-reassign: 0 */\n/* eslint react/no-unused-prop-types: 0 */\n\n\nfunction optionsEquals(currOpts, prevOpts) {\n var keys = Object.keys(currOpts);\n for (var i = 0; i < keys.length; i += 1) {\n if (currOpts[keys[i]] !== prevOpts[keys[i]]) {\n return false;\n }\n }\n return Object.keys(currOpts).length === Object.keys(prevOpts).length;\n}\n\nvar getSelections = function getSelections(container) {\n if (container.selectedOptions) {\n return Array.from(container.selectedOptions).map(function (item) {\n return item.value;\n });\n }\n var selections = [];\n var totalLen = container.options.length;\n for (var i = 0; i < totalLen; i += 1) {\n var option = container.options.item(i);\n if (option.selected) selections.push(option.value);\n }\n return selections;\n};\n\nvar MultiSelectFilter = function (_Component) {\n _inherits(MultiSelectFilter, _Component);\n\n function MultiSelectFilter(props) {\n _classCallCheck(this, MultiSelectFilter);\n\n var _this = _possibleConstructorReturn(this, (MultiSelectFilter.__proto__ || Object.getPrototypeOf(MultiSelectFilter)).call(this, props));\n\n _this.filter = _this.filter.bind(_this);\n _this.applyFilter = _this.applyFilter.bind(_this);\n var isSelected = props.defaultValue.map(function (item) {\n return props.options[item];\n }).length > 0;\n _this.state = { isSelected: isSelected };\n return _this;\n }\n\n _createClass(MultiSelectFilter, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var getFilter = this.props.getFilter;\n\n\n var value = getSelections(this.selectInput);\n if (value && value.length > 0) {\n this.applyFilter(value);\n }\n\n // export onFilter function to allow users to access\n if (getFilter) {\n getFilter(function (filterVal) {\n _this2.selectInput.value = filterVal;\n _this2.applyFilter(filterVal);\n });\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n var needFilter = false;\n if (this.props.defaultValue !== prevProps.defaultValue) {\n needFilter = true;\n } else if (!optionsEquals(this.props.options, prevProps.options)) {\n needFilter = true;\n }\n if (needFilter) {\n this.applyFilter(getSelections(this.selectInput));\n }\n }\n }, {\n key: 'getDefaultValue',\n value: function getDefaultValue() {\n var _props = this.props,\n filterState = _props.filterState,\n defaultValue = _props.defaultValue;\n\n if (filterState && typeof filterState.filterVal !== 'undefined') {\n return filterState.filterVal;\n }\n return defaultValue;\n }\n }, {\n key: 'getOptions',\n value: function getOptions() {\n var optionTags = [];\n var _props2 = this.props,\n options = _props2.options,\n placeholder = _props2.placeholder,\n column = _props2.column,\n withoutEmptyOption = _props2.withoutEmptyOption;\n\n if (!withoutEmptyOption) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: '-1', value: '' },\n placeholder || 'Select ' + column.text + '...'\n ));\n }\n Object.keys(options).forEach(function (key) {\n return optionTags.push(_react2.default.createElement(\n 'option',\n { key: key, value: key },\n options[key]\n ));\n });\n return optionTags;\n }\n }, {\n key: 'cleanFiltered',\n value: function cleanFiltered() {\n var value = this.props.defaultValue !== undefined ? this.props.defaultValue : [];\n this.selectInput.value = value;\n this.applyFilter(value);\n }\n }, {\n key: 'applyFilter',\n value: function applyFilter(value) {\n if (value.length === 1 && value[0] === '') {\n value = [];\n }\n this.setState(function () {\n return { isSelected: value.length > 0 };\n });\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.MULTISELECT)(value);\n }\n }, {\n key: 'filter',\n value: function filter(e) {\n var value = getSelections(e.target);\n this.applyFilter(value);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props3 = this.props,\n id = _props3.id,\n style = _props3.style,\n className = _props3.className,\n filterState = _props3.filterState,\n defaultValue = _props3.defaultValue,\n onFilter = _props3.onFilter,\n column = _props3.column,\n options = _props3.options,\n comparator = _props3.comparator,\n withoutEmptyOption = _props3.withoutEmptyOption,\n caseSensitive = _props3.caseSensitive,\n getFilter = _props3.getFilter,\n rest = _objectWithoutProperties(_props3, ['id', 'style', 'className', 'filterState', 'defaultValue', 'onFilter', 'column', 'options', 'comparator', 'withoutEmptyOption', 'caseSensitive', 'getFilter']);\n\n var selectClass = 'filter select-filter form-control ' + className + ' ' + (this.state.isSelected ? '' : 'placeholder-selected');\n var elmId = 'multiselect-filter-column-' + column.dataField + (id ? '-' + id : '');\n\n return _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: elmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Filter by ',\n column.text\n ),\n _react2.default.createElement(\n 'select',\n _extends({}, rest, {\n ref: function ref(n) {\n return _this3.selectInput = n;\n },\n id: elmId,\n style: style,\n multiple: true,\n className: selectClass,\n onChange: this.filter,\n onClick: function onClick(e) {\n return e.stopPropagation();\n },\n defaultValue: this.getDefaultValue()\n }),\n this.getOptions()\n )\n );\n }\n }]);\n\n return MultiSelectFilter;\n}(_react.Component);\n\nMultiSelectFilter.propTypes = {\n onFilter: _propTypes2.default.func.isRequired,\n column: _propTypes2.default.object.isRequired,\n options: _propTypes2.default.object.isRequired,\n id: _propTypes2.default.string,\n filterState: _propTypes2.default.object,\n comparator: _propTypes2.default.oneOf([_comparison.LIKE, _comparison.EQ]),\n placeholder: _propTypes2.default.string,\n style: _propTypes2.default.object,\n className: _propTypes2.default.string,\n withoutEmptyOption: _propTypes2.default.bool,\n defaultValue: _propTypes2.default.array,\n caseSensitive: _propTypes2.default.bool,\n getFilter: _propTypes2.default.func\n};\n\nMultiSelectFilter.defaultProps = {\n defaultValue: [],\n filterState: {},\n className: '',\n withoutEmptyOption: false,\n comparator: _comparison.EQ,\n caseSensitive: true,\n id: null\n};\n\nexports.default = MultiSelectFilter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _comparison = require('../comparison');\n\nvar Comparator = _interopRequireWildcard(_comparison);\n\nvar _const = require('../const');\n\nfunction _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; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint jsx-a11y/no-static-element-interactions: 0 */\n/* eslint react/require-default-props: 0 */\n/* eslint no-return-assign: 0 */\n\nvar legalComparators = [Comparator.EQ, Comparator.NE, Comparator.GT, Comparator.GE, Comparator.LT, Comparator.LE];\n\nvar NumberFilter = function (_Component) {\n _inherits(NumberFilter, _Component);\n\n function NumberFilter(props) {\n _classCallCheck(this, NumberFilter);\n\n var _this = _possibleConstructorReturn(this, (NumberFilter.__proto__ || Object.getPrototypeOf(NumberFilter)).call(this, props));\n\n _this.comparators = props.comparators || legalComparators;\n _this.timeout = null;\n var isSelected = props.defaultValue !== undefined && props.defaultValue.number !== undefined;\n if (props.options && isSelected) {\n isSelected = props.options.indexOf(props.defaultValue.number) > -1;\n }\n _this.state = { isSelected: isSelected };\n _this.onChangeNumber = _this.onChangeNumber.bind(_this);\n _this.onChangeNumberSet = _this.onChangeNumberSet.bind(_this);\n _this.onChangeComparator = _this.onChangeComparator.bind(_this);\n return _this;\n }\n\n _createClass(NumberFilter, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var _props = this.props,\n column = _props.column,\n onFilter = _props.onFilter,\n getFilter = _props.getFilter;\n\n var comparator = this.numberFilterComparator.value;\n var number = this.numberFilter.value;\n if (comparator && number) {\n onFilter(column, _const.FILTER_TYPE.NUMBER, true)({ number: number, comparator: comparator });\n }\n\n // export onFilter function to allow users to access\n if (getFilter) {\n getFilter(function (filterVal) {\n _this2.setState(function () {\n return { isSelected: filterVal !== '' };\n });\n _this2.numberFilterComparator.value = filterVal.comparator;\n _this2.numberFilter.value = filterVal.number;\n\n onFilter(column, _const.FILTER_TYPE.NUMBER)({\n number: filterVal.number,\n comparator: filterVal.comparator\n });\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n }, {\n key: 'onChangeNumber',\n value: function onChangeNumber(e) {\n var _props2 = this.props,\n delay = _props2.delay,\n column = _props2.column,\n onFilter = _props2.onFilter;\n\n var comparator = this.numberFilterComparator.value;\n if (comparator === '') {\n return;\n }\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n var filterValue = e.target.value;\n this.timeout = setTimeout(function () {\n onFilter(column, _const.FILTER_TYPE.NUMBER)({ number: filterValue, comparator: comparator });\n }, delay);\n }\n }, {\n key: 'onChangeNumberSet',\n value: function onChangeNumberSet(e) {\n var _props3 = this.props,\n column = _props3.column,\n onFilter = _props3.onFilter;\n\n var comparator = this.numberFilterComparator.value;\n var value = e.target.value;\n\n this.setState(function () {\n return { isSelected: value !== '' };\n });\n // if (comparator === '') {\n // return;\n // }\n onFilter(column, _const.FILTER_TYPE.NUMBER)({ number: value, comparator: comparator });\n }\n }, {\n key: 'onChangeComparator',\n value: function onChangeComparator(e) {\n var _props4 = this.props,\n column = _props4.column,\n onFilter = _props4.onFilter;\n\n var value = this.numberFilter.value;\n var comparator = e.target.value;\n // if (value === '') {\n // return;\n // }\n onFilter(column, _const.FILTER_TYPE.NUMBER)({ number: value, comparator: comparator });\n }\n }, {\n key: 'getDefaultComparator',\n value: function getDefaultComparator() {\n var _props5 = this.props,\n defaultValue = _props5.defaultValue,\n filterState = _props5.filterState;\n\n if (filterState && filterState.filterVal) {\n return filterState.filterVal.comparator;\n }\n if (defaultValue && defaultValue.comparator) {\n return defaultValue.comparator;\n }\n return '';\n }\n }, {\n key: 'getDefaultValue',\n value: function getDefaultValue() {\n var _props6 = this.props,\n defaultValue = _props6.defaultValue,\n filterState = _props6.filterState;\n\n if (filterState && filterState.filterVal) {\n return filterState.filterVal.number;\n }\n if (defaultValue && defaultValue.number) {\n return defaultValue.number;\n }\n return '';\n }\n }, {\n key: 'getComparatorOptions',\n value: function getComparatorOptions() {\n var optionTags = [];\n var withoutEmptyComparatorOption = this.props.withoutEmptyComparatorOption;\n\n if (!withoutEmptyComparatorOption) {\n optionTags.push(_react2.default.createElement('option', { key: '-1' }));\n }\n for (var i = 0; i < this.comparators.length; i += 1) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: i, value: this.comparators[i] },\n this.comparators[i]\n ));\n }\n return optionTags;\n }\n }, {\n key: 'getNumberOptions',\n value: function getNumberOptions() {\n var optionTags = [];\n var _props7 = this.props,\n options = _props7.options,\n column = _props7.column,\n withoutEmptyNumberOption = _props7.withoutEmptyNumberOption;\n\n if (!withoutEmptyNumberOption) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: '-1', value: '' },\n this.props.placeholder || 'Select ' + column.text + '...'\n ));\n }\n for (var i = 0; i < options.length; i += 1) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: i, value: options[i] },\n options[i]\n ));\n }\n return optionTags;\n }\n }, {\n key: 'applyFilter',\n value: function applyFilter(filterObj) {\n var _props8 = this.props,\n column = _props8.column,\n onFilter = _props8.onFilter;\n var number = filterObj.number,\n comparator = filterObj.comparator;\n\n this.setState(function () {\n return { isSelected: number !== '' };\n });\n this.numberFilterComparator.value = comparator;\n this.numberFilter.value = number;\n onFilter(column, _const.FILTER_TYPE.NUMBER)({ number: number, comparator: comparator });\n }\n }, {\n key: 'cleanFiltered',\n value: function cleanFiltered() {\n var _props9 = this.props,\n column = _props9.column,\n onFilter = _props9.onFilter,\n defaultValue = _props9.defaultValue;\n\n var value = defaultValue ? defaultValue.number : '';\n var comparator = defaultValue ? defaultValue.comparator : '';\n this.setState(function () {\n return { isSelected: value !== '' };\n });\n this.numberFilterComparator.value = comparator;\n this.numberFilter.value = value;\n onFilter(column, _const.FILTER_TYPE.NUMBER)({ number: value, comparator: comparator });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var isSelected = this.state.isSelected;\n var _props10 = this.props,\n id = _props10.id,\n column = _props10.column,\n options = _props10.options,\n style = _props10.style,\n className = _props10.className,\n numberStyle = _props10.numberStyle,\n numberClassName = _props10.numberClassName,\n comparatorStyle = _props10.comparatorStyle,\n comparatorClassName = _props10.comparatorClassName,\n placeholder = _props10.placeholder;\n\n var selectClass = '\\n select-filter \\n number-filter-input \\n form-control \\n ' + numberClassName + ' \\n ' + (!isSelected ? 'placeholder-selected' : '') + '\\n ';\n\n var comparatorElmId = 'number-filter-comparator-' + column.dataField + (id ? '-' + id : '');\n var inputElmId = 'number-filter-column-' + column.dataField + (id ? '-' + id : '');\n\n return _react2.default.createElement(\n 'div',\n {\n onClick: function onClick(e) {\n return e.stopPropagation();\n },\n className: 'filter number-filter ' + className,\n style: style\n },\n _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: comparatorElmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Filter comparator'\n ),\n _react2.default.createElement(\n 'select',\n {\n ref: function ref(n) {\n return _this3.numberFilterComparator = n;\n },\n style: comparatorStyle,\n id: comparatorElmId,\n className: 'number-filter-comparator form-control ' + comparatorClassName,\n onChange: this.onChangeComparator,\n defaultValue: this.getDefaultComparator()\n },\n this.getComparatorOptions()\n )\n ),\n options ? _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: inputElmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Select ' + column.text\n ),\n _react2.default.createElement(\n 'select',\n {\n ref: function ref(n) {\n return _this3.numberFilter = n;\n },\n id: inputElmId,\n style: numberStyle,\n className: selectClass,\n onChange: this.onChangeNumberSet,\n defaultValue: this.getDefaultValue()\n },\n this.getNumberOptions()\n )\n ) : _react2.default.createElement(\n 'label',\n { htmlFor: inputElmId },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Enter ' + column.text\n ),\n _react2.default.createElement('input', {\n ref: function ref(n) {\n return _this3.numberFilter = n;\n },\n id: inputElmId,\n type: 'number',\n style: numberStyle,\n className: 'number-filter-input form-control ' + numberClassName,\n placeholder: placeholder || 'Enter ' + column.text + '...',\n onChange: this.onChangeNumber,\n defaultValue: this.getDefaultValue()\n })\n )\n );\n }\n }]);\n\n return NumberFilter;\n}(_react.Component);\n\nNumberFilter.propTypes = {\n onFilter: _propTypes2.default.func.isRequired,\n column: _propTypes2.default.object.isRequired,\n id: _propTypes2.default.string,\n filterState: _propTypes2.default.object,\n options: _propTypes2.default.arrayOf(_propTypes2.default.number),\n defaultValue: _propTypes2.default.shape({\n number: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),\n comparator: _propTypes2.default.oneOf([].concat(legalComparators, ['']))\n }),\n delay: _propTypes2.default.number,\n /* eslint consistent-return: 0 */\n comparators: function comparators(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (var i = 0; i < props[propName].length; i += 1) {\n var comparatorIsValid = false;\n for (var j = 0; j < legalComparators.length; j += 1) {\n if (legalComparators[j] === props[propName][i] || props[propName][i] === '') {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error('Number comparator provided is not supported.\\n Use only ' + legalComparators);\n }\n }\n },\n placeholder: _propTypes2.default.string,\n withoutEmptyComparatorOption: _propTypes2.default.bool,\n withoutEmptyNumberOption: _propTypes2.default.bool,\n style: _propTypes2.default.object,\n className: _propTypes2.default.string,\n comparatorStyle: _propTypes2.default.object,\n comparatorClassName: _propTypes2.default.string,\n numberStyle: _propTypes2.default.object,\n numberClassName: _propTypes2.default.string,\n getFilter: _propTypes2.default.func\n};\n\nNumberFilter.defaultProps = {\n delay: _const.FILTER_DELAY,\n options: undefined,\n defaultValue: {\n number: undefined,\n comparator: ''\n },\n filterState: {},\n withoutEmptyComparatorOption: false,\n withoutEmptyNumberOption: false,\n comparators: legalComparators,\n placeholder: undefined,\n style: undefined,\n className: '',\n comparatorStyle: undefined,\n comparatorClassName: '',\n numberStyle: undefined,\n numberClassName: '',\n id: null\n};\n\nexports.default = NumberFilter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _comparison = require('../comparison');\n\nvar _const = require('../const');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint no-return-assign: 0 */\n/* eslint react/no-unused-prop-types: 0 */\n/* eslint class-methods-use-this: 0 */\n\n\nfunction optionsEquals(currOpts, prevOpts) {\n if (Array.isArray(currOpts)) {\n if (currOpts.length === prevOpts.length) {\n for (var i = 0; i < currOpts.length; i += 1) {\n if (currOpts[i].value !== prevOpts[i].value || currOpts[i].label !== prevOpts[i].label) {\n return false;\n }\n }\n return true;\n }\n return false;\n }\n var keys = Object.keys(currOpts);\n for (var _i = 0; _i < keys.length; _i += 1) {\n if (currOpts[keys[_i]] !== prevOpts[keys[_i]]) {\n return false;\n }\n }\n return Object.keys(currOpts).length === Object.keys(prevOpts).length;\n}\n\nfunction getOptionValue(options, key) {\n if (Array.isArray(options)) {\n var result = options.filter(function (_ref) {\n var label = _ref.label;\n return label === key;\n }).map(function (_ref2) {\n var value = _ref2.value;\n return value;\n });\n return result[0];\n }\n return options[key];\n}\n\nvar SelectFilter = function (_Component) {\n _inherits(SelectFilter, _Component);\n\n function SelectFilter(props) {\n _classCallCheck(this, SelectFilter);\n\n var _this = _possibleConstructorReturn(this, (SelectFilter.__proto__ || Object.getPrototypeOf(SelectFilter)).call(this, props));\n\n _this.filter = _this.filter.bind(_this);\n _this.options = _this.getOptions(props);\n var isSelected = getOptionValue(_this.options, _this.getDefaultValue()) !== undefined;\n _this.state = { isSelected: isSelected };\n return _this;\n }\n\n _createClass(SelectFilter, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var _props = this.props,\n column = _props.column,\n onFilter = _props.onFilter,\n getFilter = _props.getFilter;\n\n\n var value = this.selectInput.value;\n if (value && value !== '') {\n onFilter(column, _const.FILTER_TYPE.SELECT, true)(value);\n }\n\n // export onFilter function to allow users to access\n if (getFilter) {\n getFilter(function (filterVal) {\n _this2.setState(function () {\n return { isSelected: filterVal !== '' };\n });\n _this2.selectInput.value = filterVal;\n\n onFilter(column, _const.FILTER_TYPE.SELECT)(filterVal);\n });\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n var needFilter = false;\n var _props2 = this.props,\n column = _props2.column,\n onFilter = _props2.onFilter,\n defaultValue = _props2.defaultValue;\n\n var nextOptions = this.getOptions(this.props);\n if (defaultValue !== prevProps.defaultValue) {\n needFilter = true;\n } else if (!optionsEquals(nextOptions, this.options)) {\n this.options = nextOptions;\n needFilter = true;\n }\n if (needFilter) {\n var value = this.selectInput.value;\n if (value) {\n onFilter(column, _const.FILTER_TYPE.SELECT)(value);\n }\n }\n }\n }, {\n key: 'getOptions',\n value: function getOptions(props) {\n return typeof props.options === 'function' ? props.options(props.column) : props.options;\n }\n }, {\n key: 'getDefaultValue',\n value: function getDefaultValue() {\n var _props3 = this.props,\n filterState = _props3.filterState,\n defaultValue = _props3.defaultValue;\n\n if (filterState && typeof filterState.filterVal !== 'undefined') {\n return filterState.filterVal;\n }\n return defaultValue;\n }\n }, {\n key: 'cleanFiltered',\n value: function cleanFiltered() {\n var value = this.props.defaultValue !== undefined ? this.props.defaultValue : '';\n this.setState(function () {\n return { isSelected: value !== '' };\n });\n this.selectInput.value = value;\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.SELECT)(value);\n }\n }, {\n key: 'applyFilter',\n value: function applyFilter(value) {\n this.selectInput.value = value;\n this.setState(function () {\n return { isSelected: value !== '' };\n });\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.SELECT)(value);\n }\n }, {\n key: 'filter',\n value: function filter(e) {\n var value = e.target.value;\n\n this.setState(function () {\n return { isSelected: value !== '' };\n });\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.SELECT)(value);\n }\n }, {\n key: 'renderOptions',\n value: function renderOptions() {\n var optionTags = [];\n var options = this.options;\n var _props4 = this.props,\n placeholder = _props4.placeholder,\n column = _props4.column,\n withoutEmptyOption = _props4.withoutEmptyOption;\n\n if (!withoutEmptyOption) {\n optionTags.push(_react2.default.createElement(\n 'option',\n { key: '-1', value: '' },\n placeholder || 'Select ' + column.text + '...'\n ));\n }\n if (Array.isArray(options)) {\n options.forEach(function (_ref3) {\n var value = _ref3.value,\n label = _ref3.label;\n return optionTags.push(_react2.default.createElement(\n 'option',\n { key: value, value: value },\n label\n ));\n });\n } else {\n Object.keys(options).forEach(function (key) {\n return optionTags.push(_react2.default.createElement(\n 'option',\n { key: key, value: key },\n options[key]\n ));\n });\n }\n return optionTags;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props5 = this.props,\n id = _props5.id,\n style = _props5.style,\n className = _props5.className,\n defaultValue = _props5.defaultValue,\n onFilter = _props5.onFilter,\n column = _props5.column,\n options = _props5.options,\n comparator = _props5.comparator,\n withoutEmptyOption = _props5.withoutEmptyOption,\n caseSensitive = _props5.caseSensitive,\n getFilter = _props5.getFilter,\n filterState = _props5.filterState,\n rest = _objectWithoutProperties(_props5, ['id', 'style', 'className', 'defaultValue', 'onFilter', 'column', 'options', 'comparator', 'withoutEmptyOption', 'caseSensitive', 'getFilter', 'filterState']);\n\n var selectClass = 'filter select-filter form-control ' + className + ' ' + (this.state.isSelected ? '' : 'placeholder-selected');\n var elmId = 'select-filter-column-' + column.dataField + (id ? '-' + id : '');\n\n return _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: elmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Filter by ',\n column.text\n ),\n _react2.default.createElement(\n 'select',\n _extends({}, rest, {\n ref: function ref(n) {\n return _this3.selectInput = n;\n },\n id: elmId,\n style: style,\n className: selectClass,\n onChange: this.filter,\n onClick: function onClick(e) {\n return e.stopPropagation();\n },\n defaultValue: this.getDefaultValue() || ''\n }),\n this.renderOptions()\n )\n );\n }\n }]);\n\n return SelectFilter;\n}(_react.Component);\n\nSelectFilter.propTypes = {\n onFilter: _propTypes2.default.func.isRequired,\n column: _propTypes2.default.object.isRequired,\n id: _propTypes2.default.string,\n filterState: _propTypes2.default.object,\n options: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.array]).isRequired,\n comparator: _propTypes2.default.oneOf([_comparison.LIKE, _comparison.EQ]),\n placeholder: _propTypes2.default.string,\n style: _propTypes2.default.object,\n className: _propTypes2.default.string,\n withoutEmptyOption: _propTypes2.default.bool,\n defaultValue: _propTypes2.default.any,\n caseSensitive: _propTypes2.default.bool,\n getFilter: _propTypes2.default.func\n};\n\nSelectFilter.defaultProps = {\n defaultValue: '',\n filterState: {},\n className: '',\n withoutEmptyOption: false,\n comparator: _comparison.EQ,\n caseSensitive: true,\n id: null\n};\n\nexports.default = SelectFilter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _comparison = require('../comparison');\n\nvar _const = require('../const');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint react/prop-types: 0 */\n/* eslint no-return-assign: 0 */\n/* eslint camelcase: 0 */\n\n\nvar TextFilter = function (_Component) {\n _inherits(TextFilter, _Component);\n\n function TextFilter(props) {\n _classCallCheck(this, TextFilter);\n\n var _this = _possibleConstructorReturn(this, (TextFilter.__proto__ || Object.getPrototypeOf(TextFilter)).call(this, props));\n\n _this.filter = _this.filter.bind(_this);\n _this.handleClick = _this.handleClick.bind(_this);\n _this.timeout = null;\n function getDefaultValue() {\n if (props.filterState && typeof props.filterState.filterVal !== 'undefined') {\n return props.filterState.filterVal;\n }\n return props.defaultValue;\n }\n _this.state = {\n value: getDefaultValue()\n };\n return _this;\n }\n\n _createClass(TextFilter, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var _props = this.props,\n onFilter = _props.onFilter,\n getFilter = _props.getFilter,\n column = _props.column;\n\n var defaultValue = this.input.value;\n\n if (defaultValue) {\n onFilter(this.props.column, _const.FILTER_TYPE.TEXT, true)(defaultValue);\n }\n\n // export onFilter function to allow users to access\n if (getFilter) {\n getFilter(function (filterVal) {\n _this2.setState(function () {\n return { value: filterVal };\n });\n onFilter(column, _const.FILTER_TYPE.TEXT)(filterVal);\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.cleanTimer();\n }\n }, {\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.defaultValue !== this.props.defaultValue) {\n this.applyFilter(nextProps.defaultValue);\n }\n }\n }, {\n key: 'filter',\n value: function filter(e) {\n var _this3 = this;\n\n e.stopPropagation();\n this.cleanTimer();\n var filterValue = e.target.value;\n this.setState(function () {\n return { value: filterValue };\n });\n this.timeout = setTimeout(function () {\n _this3.props.onFilter(_this3.props.column, _const.FILTER_TYPE.TEXT)(filterValue);\n }, this.props.delay);\n }\n }, {\n key: 'cleanTimer',\n value: function cleanTimer() {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n }\n }, {\n key: 'cleanFiltered',\n value: function cleanFiltered() {\n var value = this.props.defaultValue;\n this.setState(function () {\n return { value: value };\n });\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.TEXT)(value);\n }\n }, {\n key: 'applyFilter',\n value: function applyFilter(filterText) {\n this.setState(function () {\n return { value: filterText };\n });\n this.props.onFilter(this.props.column, _const.FILTER_TYPE.TEXT)(filterText);\n }\n }, {\n key: 'handleClick',\n value: function handleClick(e) {\n e.stopPropagation();\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var _props2 = this.props,\n id = _props2.id,\n placeholder = _props2.placeholder,\n _props2$column = _props2.column,\n dataField = _props2$column.dataField,\n text = _props2$column.text,\n style = _props2.style,\n className = _props2.className,\n onFilter = _props2.onFilter,\n caseSensitive = _props2.caseSensitive,\n defaultValue = _props2.defaultValue,\n getFilter = _props2.getFilter,\n filterState = _props2.filterState,\n rest = _objectWithoutProperties(_props2, ['id', 'placeholder', 'column', 'style', 'className', 'onFilter', 'caseSensitive', 'defaultValue', 'getFilter', 'filterState']);\n\n var elmId = 'text-filter-column-' + dataField + (id ? '-' + id : '');\n\n return _react2.default.createElement(\n 'label',\n {\n className: 'filter-label',\n htmlFor: elmId\n },\n _react2.default.createElement(\n 'span',\n { className: 'sr-only' },\n 'Filter by ',\n text\n ),\n _react2.default.createElement('input', _extends({}, rest, {\n ref: function ref(n) {\n return _this4.input = n;\n },\n type: 'text',\n id: elmId,\n className: 'filter text-filter form-control ' + className,\n style: style,\n onChange: this.filter,\n onClick: this.handleClick,\n placeholder: placeholder || 'Enter ' + text + '...',\n value: this.state.value\n }))\n );\n }\n }]);\n\n return TextFilter;\n}(_react.Component);\n\nTextFilter.propTypes = {\n onFilter: _propTypes.PropTypes.func.isRequired,\n column: _propTypes.PropTypes.object.isRequired,\n id: _propTypes.PropTypes.string,\n filterState: _propTypes.PropTypes.object,\n comparator: _propTypes.PropTypes.oneOf([_comparison.LIKE, _comparison.EQ]),\n defaultValue: _propTypes.PropTypes.string,\n delay: _propTypes.PropTypes.number,\n placeholder: _propTypes.PropTypes.string,\n style: _propTypes.PropTypes.object,\n className: _propTypes.PropTypes.string,\n caseSensitive: _propTypes.PropTypes.bool,\n getFilter: _propTypes.PropTypes.func\n};\n\nTextFilter.defaultProps = {\n delay: _const.FILTER_DELAY,\n filterState: {},\n defaultValue: '',\n caseSensitive: false,\n id: null\n};\n\nexports.default = TextFilter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar FILTER_TYPE = exports.FILTER_TYPE = {\n TEXT: 'TEXT',\n SELECT: 'SELECT',\n MULTISELECT: 'MULTISELECT',\n NUMBER: 'NUMBER',\n DATE: 'DATE'\n};\n\nvar FILTER_DELAY = exports.FILTER_DELAY = 500;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _filter = require('./filter');\n\nvar _comparison = require('./comparison');\n\nvar _const = require('./const');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/require-default-props: 0 */\n/* eslint camelcase: 0 */\n\n\nexports.default = function (_, isRemoteFiltering, handleFilterChange) {\n var FilterContext = _react2.default.createContext();\n\n var FilterProvider = function (_React$Component) {\n _inherits(FilterProvider, _React$Component);\n\n function FilterProvider(props) {\n _classCallCheck(this, FilterProvider);\n\n var _this = _possibleConstructorReturn(this, (FilterProvider.__proto__ || Object.getPrototypeOf(FilterProvider)).call(this, props));\n\n _this.currFilters = {};\n _this.clearFilters = {};\n _this.onFilter = _this.onFilter.bind(_this);\n _this.doFilter = _this.doFilter.bind(_this);\n _this.onExternalFilter = _this.onExternalFilter.bind(_this);\n _this.data = props.data;\n _this.isEmitDataChange = false;\n return _this;\n }\n\n _createClass(FilterProvider, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (isRemoteFiltering() && Object.keys(this.currFilters).length > 0) {\n handleFilterChange(this.currFilters);\n }\n }\n }, {\n key: 'onFilter',\n value: function onFilter(column, filterType) {\n var _this2 = this;\n\n var initialize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n return function (filterVal) {\n // watch out here if migration to context API, #334\n var currFilters = Object.assign({}, _this2.currFilters);\n _this2.clearFilters = {};\n var dataField = column.dataField,\n filter = column.filter;\n\n\n var needClearFilters = !_.isDefined(filterVal) || filterVal === '' || filterVal.length === 0;\n\n if (needClearFilters) {\n delete currFilters[dataField];\n _this2.clearFilters = _defineProperty({}, dataField, { clear: true, filterVal: filterVal });\n } else {\n // select default comparator is EQ, others are LIKE\n var _filter$props = filter.props,\n _filter$props$compara = _filter$props.comparator,\n comparator = _filter$props$compara === undefined ? filterType === _const.FILTER_TYPE.SELECT ? _comparison.EQ : _comparison.LIKE : _filter$props$compara,\n _filter$props$caseSen = _filter$props.caseSensitive,\n caseSensitive = _filter$props$caseSen === undefined ? false : _filter$props$caseSen;\n\n currFilters[dataField] = { filterVal: filterVal, filterType: filterType, comparator: comparator, caseSensitive: caseSensitive };\n }\n\n _this2.currFilters = currFilters;\n\n if (isRemoteFiltering()) {\n if (!initialize) {\n handleFilterChange(_this2.currFilters);\n }\n return;\n }\n _this2.doFilter(_this2.props);\n };\n }\n }, {\n key: 'onExternalFilter',\n value: function onExternalFilter(column, filterType) {\n var _this3 = this;\n\n return function (value) {\n _this3.onFilter(column, filterType)(value);\n };\n }\n }, {\n key: 'getFiltered',\n value: function getFiltered() {\n return this.data;\n }\n }, {\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n // let nextData = nextProps.data;\n if (!isRemoteFiltering() && !_.isEqual(nextProps.data, this.data)) {\n this.doFilter(nextProps, this.isEmitDataChange);\n } else {\n this.data = nextProps.data;\n }\n }\n }, {\n key: 'doFilter',\n value: function doFilter(props) {\n var ignoreEmitDataChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var dataChangeListener = props.dataChangeListener,\n data = props.data,\n columns = props.columns,\n filter = props.filter;\n\n var result = (0, _filter.filters)(data, columns, _)(this.currFilters, this.clearFilters);\n if (filter.afterFilter) {\n filter.afterFilter(result, this.currFilters);\n }\n this.data = result;\n if (dataChangeListener && !ignoreEmitDataChange) {\n this.isEmitDataChange = true;\n dataChangeListener.emit('filterChanged', result.length);\n } else {\n this.isEmitDataChange = false;\n this.forceUpdate();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n FilterContext.Provider,\n { value: {\n data: this.data,\n onFilter: this.onFilter,\n onExternalFilter: this.onExternalFilter,\n currFilters: this.currFilters\n }\n },\n this.props.children\n );\n }\n }]);\n\n return FilterProvider;\n }(_react2.default.Component);\n\n FilterProvider.propTypes = {\n data: _propTypes2.default.array.isRequired,\n columns: _propTypes2.default.array.isRequired,\n dataChangeListener: _propTypes2.default.object\n };\n\n\n return {\n Provider: FilterProvider,\n Consumer: FilterContext.Consumer\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filters = exports.filterFactory = exports.filterByArray = exports.filterByDate = exports.filterByNumber = exports.filterByText = undefined;\n\nvar _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; };\n\nvar _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; }; /* eslint eqeqeq: 0 */\n/* eslint no-console: 0 */\n\n\nvar _const = require('./const');\n\nvar _comparison = require('./comparison');\n\nvar filterByText = exports.filterByText = function filterByText(_) {\n return function (data, dataField, _ref, customFilterValue) {\n var _ref$filterVal = _ref.filterVal,\n userInput = _ref$filterVal === undefined ? '' : _ref$filterVal,\n _ref$comparator = _ref.comparator,\n comparator = _ref$comparator === undefined ? _comparison.LIKE : _ref$comparator,\n caseSensitive = _ref.caseSensitive;\n\n // make sure filter value to be a string\n var filterVal = userInput.toString();\n\n return data.filter(function (row) {\n var cell = _.get(row, dataField);\n if (customFilterValue) {\n cell = customFilterValue(cell, row);\n }\n var cellStr = _.isDefined(cell) ? cell.toString() : '';\n if (comparator === _comparison.EQ) {\n return cellStr === filterVal;\n }\n if (caseSensitive) {\n return cellStr.includes(filterVal);\n }\n\n return cellStr.toLocaleUpperCase().indexOf(filterVal.toLocaleUpperCase()) !== -1;\n });\n };\n};\n\nvar filterByNumber = exports.filterByNumber = function filterByNumber(_) {\n return function (data, dataField, _ref2, customFilterValue) {\n var _ref2$filterVal = _ref2.filterVal,\n comparator = _ref2$filterVal.comparator,\n number = _ref2$filterVal.number;\n return data.filter(function (row) {\n if (number === '' || !comparator) return true;\n var cell = _.get(row, dataField);\n\n if (customFilterValue) {\n cell = customFilterValue(cell, row);\n }\n\n switch (comparator) {\n case _comparison.EQ:\n {\n return cell == number;\n }\n case _comparison.GT:\n {\n return cell > number;\n }\n case _comparison.GE:\n {\n return cell >= number;\n }\n case _comparison.LT:\n {\n return cell < number;\n }\n case _comparison.LE:\n {\n return cell <= number;\n }\n case _comparison.NE:\n {\n return cell != number;\n }\n default:\n {\n console.error('Number comparator provided is not supported');\n return true;\n }\n }\n });\n };\n};\n\nvar filterByDate = exports.filterByDate = function filterByDate(_) {\n return function (data, dataField, _ref3, customFilterValue) {\n var _ref3$filterVal = _ref3.filterVal,\n comparator = _ref3$filterVal.comparator,\n date = _ref3$filterVal.date;\n\n if (!date || !comparator) return data;\n var filterDate = date.getUTCDate();\n var filterMonth = date.getUTCMonth();\n var filterYear = date.getUTCFullYear();\n\n return data.filter(function (row) {\n var valid = true;\n var cell = _.get(row, dataField);\n\n if (customFilterValue) {\n cell = customFilterValue(cell, row);\n }\n\n if ((typeof cell === 'undefined' ? 'undefined' : _typeof(cell)) !== 'object') {\n cell = new Date(cell);\n }\n\n var targetDate = cell.getUTCDate();\n var targetMonth = cell.getUTCMonth();\n var targetYear = cell.getUTCFullYear();\n\n switch (comparator) {\n case _comparison.EQ:\n {\n if (filterDate !== targetDate || filterMonth !== targetMonth || filterYear !== targetYear) {\n valid = false;\n }\n break;\n }\n case _comparison.GT:\n {\n if (cell <= date) {\n valid = false;\n }\n break;\n }\n case _comparison.GE:\n {\n if (targetYear < filterYear) {\n valid = false;\n } else if (targetYear === filterYear && targetMonth < filterMonth) {\n valid = false;\n } else if (targetYear === filterYear && targetMonth === filterMonth && targetDate < filterDate) {\n valid = false;\n }\n break;\n }\n case _comparison.LT:\n {\n if (cell >= date) {\n valid = false;\n }\n break;\n }\n case _comparison.LE:\n {\n if (targetYear > filterYear) {\n valid = false;\n } else if (targetYear === filterYear && targetMonth > filterMonth) {\n valid = false;\n } else if (targetYear === filterYear && targetMonth === filterMonth && targetDate > filterDate) {\n valid = false;\n }\n break;\n }\n case _comparison.NE:\n {\n if (filterDate === targetDate && filterMonth === targetMonth && filterYear === targetYear) {\n valid = false;\n }\n break;\n }\n default:\n {\n console.error('Date comparator provided is not supported');\n break;\n }\n }\n return valid;\n });\n };\n};\n\nvar filterByArray = exports.filterByArray = function filterByArray(_) {\n return function (data, dataField, _ref4) {\n var filterVal = _ref4.filterVal,\n comparator = _ref4.comparator;\n\n if (filterVal.length === 0) return data;\n var refinedFilterVal = filterVal.filter(function (x) {\n return _.isDefined(x);\n }).map(function (x) {\n return x.toString();\n });\n return data.filter(function (row) {\n var cell = _.get(row, dataField);\n var cellStr = _.isDefined(cell) ? cell.toString() : '';\n if (comparator === _comparison.EQ) {\n return refinedFilterVal.indexOf(cellStr) !== -1;\n }\n cellStr = cellStr.toLocaleUpperCase();\n return refinedFilterVal.some(function (item) {\n return cellStr.indexOf(item.toLocaleUpperCase()) !== -1;\n });\n });\n };\n};\n\nvar filterFactory = exports.filterFactory = function filterFactory(_) {\n return function (filterType) {\n switch (filterType) {\n case _const.FILTER_TYPE.MULTISELECT:\n return filterByArray(_);\n case _const.FILTER_TYPE.NUMBER:\n return filterByNumber(_);\n case _const.FILTER_TYPE.DATE:\n return filterByDate(_);\n case _const.FILTER_TYPE.TEXT:\n case _const.FILTER_TYPE.SELECT:\n default:\n // Use `text` filter as default filter\n return filterByText(_);\n }\n };\n};\n\nvar filters = exports.filters = function filters(data, columns, _) {\n return function (currFilters) {\n var clearFilters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var factory = filterFactory(_);\n var filterState = _extends({}, clearFilters, currFilters);\n var result = data;\n var filterFn = void 0;\n Object.keys(filterState).forEach(function (dataField) {\n var currentResult = void 0;\n var filterValue = void 0;\n var customFilter = void 0;\n for (var i = 0; i < columns.length; i += 1) {\n if (columns[i].dataField === dataField) {\n filterValue = columns[i].filterValue;\n if (columns[i].filter) {\n customFilter = columns[i].filter.props.onFilter;\n }\n break;\n }\n }\n\n if (clearFilters[dataField] && customFilter) {\n currentResult = customFilter(clearFilters[dataField].filterVal, result);\n if (typeof currentResult !== 'undefined') {\n result = currentResult;\n }\n } else {\n var filterObj = filterState[dataField];\n filterFn = factory(filterObj.filterType);\n if (customFilter) {\n currentResult = customFilter(filterObj.filterVal, result);\n }\n if (typeof currentResult === 'undefined') {\n result = filterFn(result, dataField, filterObj, filterValue);\n } else {\n result = currentResult;\n }\n }\n });\n return result;\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PaginationTotalStandalone = exports.SizePerPageDropdownStandalone = exports.PaginationListStandalone = exports.PaginationProvider = undefined;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _stateContext = require('./src/state-context');\n\nvar _stateContext2 = _interopRequireDefault(_stateContext);\n\nvar _dataContext = require('./src/data-context');\n\nvar _dataContext2 = _interopRequireDefault(_dataContext);\n\nvar _paginationListStandalone = require('./src/pagination-list-standalone');\n\nvar _paginationListStandalone2 = _interopRequireDefault(_paginationListStandalone);\n\nvar _sizePerPageDropdownStandalone = require('./src/size-per-page-dropdown-standalone');\n\nvar _sizePerPageDropdownStandalone2 = _interopRequireDefault(_sizePerPageDropdownStandalone);\n\nvar _paginationTotalStandalone = require('./src/pagination-total-standalone');\n\nvar _paginationTotalStandalone2 = _interopRequireDefault(_paginationTotalStandalone);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return {\n createContext: _dataContext2.default,\n options: options\n };\n};\n\nvar _createBaseContext = (0, _stateContext2.default)(),\n Provider = _createBaseContext.Provider,\n Consumer = _createBaseContext.Consumer;\n\nvar CustomizableProvider = function CustomizableProvider(props) {\n return _react2.default.createElement(\n Provider,\n props,\n _react2.default.createElement(\n Consumer,\n null,\n function (paginationProps) {\n return props.children(paginationProps);\n }\n )\n );\n};\n\nCustomizableProvider.propTypes = {\n children: _propTypes2.default.func.isRequired\n};\n\nvar PaginationProvider = exports.PaginationProvider = CustomizableProvider;\nexports.PaginationListStandalone = _paginationListStandalone2.default;\nexports.SizePerPageDropdownStandalone = _sizePerPageDropdownStandalone2.default;\nexports.PaginationTotalStandalone = _paginationTotalStandalone2.default;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n PAGINATION_SIZE: 5,\n PAGE_START_INDEX: 1,\n With_FIRST_AND_LAST: true,\n SHOW_ALL_PAGE_BTNS: false,\n SHOW_TOTAL: false,\n PAGINATION_TOTAL: null,\n FIRST_PAGE_TEXT: '<<',\n PRE_PAGE_TEXT: '<',\n NEXT_PAGE_TEXT: '>',\n LAST_PAGE_TEXT: '>>',\n NEXT_PAGE_TITLE: 'next page',\n LAST_PAGE_TITLE: 'last page',\n PRE_PAGE_TITLE: 'previous page',\n FIRST_PAGE_TITLE: 'first page',\n SIZE_PER_PAGE_LIST: [10, 25, 30, 50],\n HIDE_SIZE_PER_PAGE: false,\n HIDE_PAGE_LIST_ONLY_ONE_PAGE: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _pagination = require('./pagination');\n\nvar _pagination2 = _interopRequireDefault(_pagination);\n\nvar _page = require('./page');\n\nvar _stateContext = require('./state-context');\n\nvar _stateContext2 = _interopRequireDefault(_stateContext);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/require-default-props: 0 */\n/* eslint no-lonely-if: 0 */\n\n\nvar _createBaseContext = (0, _stateContext2.default)(),\n Provider = _createBaseContext.Provider;\n\nvar PaginationDataContext = _react2.default.createContext();\n\nvar PaginationDataProvider = function (_Provider) {\n _inherits(PaginationDataProvider, _Provider);\n\n function PaginationDataProvider() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, PaginationDataProvider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = PaginationDataProvider.__proto__ || Object.getPrototypeOf(PaginationDataProvider)).call.apply(_ref, [this].concat(args))), _this), _this.isRemotePagination = function () {\n return _this.props.isRemotePagination();\n }, _this.renderDefaultPagination = function () {\n if (!_this.props.pagination.options.custom) {\n var _this$getPaginationPr = _this.getPaginationProps(),\n currPage = _this$getPaginationPr.page,\n currSizePerPage = _this$getPaginationPr.sizePerPage,\n dataSize = _this$getPaginationPr.dataSize,\n rest = _objectWithoutProperties(_this$getPaginationPr, ['page', 'sizePerPage', 'dataSize']);\n\n return _react2.default.createElement(_pagination2.default, _extends({}, rest, {\n key: 'pagination',\n dataSize: dataSize || _this.props.data.length,\n currPage: currPage,\n currSizePerPage: currSizePerPage\n }));\n }\n return null;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(PaginationDataProvider, [{\n key: 'UNSAFE_componentWillReceiveProps',\n\n\n // eslint-disable-next-line camelcase, react/sort-comp\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n _get(PaginationDataProvider.prototype.__proto__ || Object.getPrototypeOf(PaginationDataProvider.prototype), 'UNSAFE_componentWillReceiveProps', this).call(this, nextProps);\n var currSizePerPage = this.currSizePerPage;\n var _nextProps$pagination = nextProps.pagination.options,\n custom = _nextProps$pagination.custom,\n onPageChange = _nextProps$pagination.onPageChange;\n\n\n var pageStartIndex = typeof nextProps.pagination.options.pageStartIndex !== 'undefined' ? nextProps.pagination.options.pageStartIndex : _const2.default.PAGE_START_INDEX;\n\n // user should align the page when the page is not fit to the data size when remote enable\n if (!this.isRemotePagination() && !custom) {\n var newPage = (0, _page.alignPage)(nextProps.data.length, this.props.data.length, this.currPage, currSizePerPage, pageStartIndex);\n\n if (this.currPage !== newPage) {\n if (onPageChange) {\n onPageChange(newPage, currSizePerPage);\n }\n this.currPage = newPage;\n }\n }\n if (nextProps.onDataSizeChange && nextProps.data.length !== this.props.data.length) {\n nextProps.onDataSizeChange({ dataSize: nextProps.data.length });\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var data = this.props.data;\n var options = this.props.pagination.options;\n var currPage = this.currPage,\n currSizePerPage = this.currSizePerPage;\n\n var pageStartIndex = typeof options.pageStartIndex === 'undefined' ? _const2.default.PAGE_START_INDEX : options.pageStartIndex;\n\n data = this.isRemotePagination() ? data : (0, _page.getByCurrPage)(data, currPage, currSizePerPage, pageStartIndex);\n\n return _react2.default.createElement(\n PaginationDataContext.Provider,\n { value: { data: data, setRemoteEmitter: this.setRemoteEmitter } },\n this.props.children,\n this.renderDefaultPagination()\n );\n }\n }]);\n\n return PaginationDataProvider;\n}(Provider);\n\nPaginationDataProvider.propTypes = {\n data: _propTypes2.default.array.isRequired,\n remoteEmitter: _propTypes2.default.object.isRequired,\n isRemotePagination: _propTypes2.default.func.isRequired };\n\nexports.default = function () {\n return {\n Provider: PaginationDataProvider,\n Consumer: PaginationDataContext.Consumer\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint jsx-a11y/href-no-hash: 0 */\n\n\nvar PageButton = function (_Component) {\n _inherits(PageButton, _Component);\n\n function PageButton(props) {\n _classCallCheck(this, PageButton);\n\n var _this = _possibleConstructorReturn(this, (PageButton.__proto__ || Object.getPrototypeOf(PageButton)).call(this, props));\n\n _this.handleClick = _this.handleClick.bind(_this);\n return _this;\n }\n\n _createClass(PageButton, [{\n key: 'handleClick',\n value: function handleClick(e) {\n e.preventDefault();\n this.props.onPageChange(this.props.page);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n page = _props.page,\n title = _props.title,\n active = _props.active,\n disabled = _props.disabled,\n className = _props.className;\n\n var classes = (0, _classnames2.default)({\n active: active,\n disabled: disabled,\n 'page-item': true\n }, className);\n\n return _react2.default.createElement(\n 'li',\n { className: classes, title: title },\n _react2.default.createElement(\n 'a',\n { href: '#', onClick: this.handleClick, className: 'page-link' },\n page\n )\n );\n }\n }]);\n\n return PageButton;\n}(_react.Component);\n\nPageButton.propTypes = {\n onPageChange: _propTypes2.default.func.isRequired,\n page: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.number, _propTypes2.default.string]).isRequired,\n active: _propTypes2.default.bool.isRequired,\n disabled: _propTypes2.default.bool.isRequired,\n className: _propTypes2.default.string,\n title: _propTypes2.default.string\n};\n\nexports.default = PageButton;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; }; }();\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint no-mixed-operators: 0 */\n\n\nexports.default = function (ExtendBase) {\n return function (_ExtendBase) {\n _inherits(PageResolver, _ExtendBase);\n\n function PageResolver() {\n _classCallCheck(this, PageResolver);\n\n return _possibleConstructorReturn(this, (PageResolver.__proto__ || Object.getPrototypeOf(PageResolver)).apply(this, arguments));\n }\n\n _createClass(PageResolver, [{\n key: 'backToPrevPage',\n value: function backToPrevPage() {\n var _props = this.props,\n currPage = _props.currPage,\n pageStartIndex = _props.pageStartIndex;\n\n return currPage - 1 < pageStartIndex ? pageStartIndex : currPage - 1;\n }\n }, {\n key: 'initialState',\n value: function initialState() {\n var totalPages = this.calculateTotalPage();\n var lastPage = this.calculateLastPage(totalPages);\n return { totalPages: totalPages, lastPage: lastPage };\n }\n }, {\n key: 'calculateTotalPage',\n value: function calculateTotalPage() {\n var sizePerPage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.currSizePerPage;\n var dataSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props.dataSize;\n\n return Math.ceil(dataSize / sizePerPage);\n }\n }, {\n key: 'calculateLastPage',\n value: function calculateLastPage(totalPages) {\n var pageStartIndex = this.props.pageStartIndex;\n\n return pageStartIndex + totalPages - 1;\n }\n }, {\n key: 'calculateFromTo',\n value: function calculateFromTo() {\n var _props2 = this.props,\n dataSize = _props2.dataSize,\n currPage = _props2.currPage,\n currSizePerPage = _props2.currSizePerPage,\n pageStartIndex = _props2.pageStartIndex;\n\n var offset = Math.abs(_const2.default.PAGE_START_INDEX - pageStartIndex);\n\n var from = (currPage - pageStartIndex) * currSizePerPage;\n from = dataSize === 0 ? 0 : from + 1;\n var to = Math.min(currSizePerPage * (currPage + offset), dataSize);\n if (to > dataSize) to = dataSize;\n\n return [from, to];\n }\n }, {\n key: 'calculatePages',\n value: function calculatePages(totalPages, lastPage) {\n var _props3 = this.props,\n currPage = _props3.currPage,\n paginationSize = _props3.paginationSize,\n pageStartIndex = _props3.pageStartIndex,\n withFirstAndLast = _props3.withFirstAndLast,\n firstPageText = _props3.firstPageText,\n prePageText = _props3.prePageText,\n nextPageText = _props3.nextPageText,\n lastPageText = _props3.lastPageText,\n alwaysShowAllBtns = _props3.alwaysShowAllBtns;\n\n\n var pages = [];\n var endPage = totalPages;\n if (endPage <= 0) return [];\n\n var startPage = Math.max(currPage - Math.floor(paginationSize / 2), pageStartIndex);\n endPage = startPage + paginationSize - 1;\n\n if (endPage > lastPage) {\n endPage = lastPage;\n startPage = endPage - paginationSize + 1;\n }\n\n if (alwaysShowAllBtns) {\n if (withFirstAndLast) {\n pages = [firstPageText, prePageText];\n } else {\n pages = [prePageText];\n }\n }\n\n if (startPage !== pageStartIndex && totalPages > paginationSize && withFirstAndLast && pages.length === 0) {\n pages = [firstPageText, prePageText];\n } else if (totalPages > 1 && pages.length === 0) {\n pages = [prePageText];\n }\n\n for (var i = startPage; i <= endPage; i += 1) {\n if (i >= pageStartIndex) pages.push(i);\n }\n\n if (alwaysShowAllBtns || endPage <= lastPage && pages.length > 1) {\n pages.push(nextPageText);\n }\n if (endPage !== lastPage && withFirstAndLast || withFirstAndLast && alwaysShowAllBtns) {\n pages.push(lastPageText);\n }\n\n // if ((endPage <= lastPage && pages.length > 1) || alwaysShowAllBtns) {\n // pages.push(nextPageText);\n // }\n // if (endPage !== lastPage && withFirstAndLast) {\n // pages.push(lastPageText);\n // }\n\n return pages;\n }\n }, {\n key: 'calculatePageStatus',\n value: function calculatePageStatus() {\n var pages = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n var _this2 = this;\n\n var lastPage = arguments[1];\n var disablePageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var _props4 = this.props,\n currPage = _props4.currPage,\n pageStartIndex = _props4.pageStartIndex,\n firstPageText = _props4.firstPageText,\n prePageText = _props4.prePageText,\n nextPageText = _props4.nextPageText,\n lastPageText = _props4.lastPageText,\n alwaysShowAllBtns = _props4.alwaysShowAllBtns;\n\n var isStart = function isStart(page) {\n return currPage === pageStartIndex && (page === firstPageText || page === prePageText);\n };\n var isEnd = function isEnd(page) {\n return currPage === lastPage && (page === nextPageText || page === lastPageText);\n };\n\n return pages.filter(function (page) {\n if (alwaysShowAllBtns) {\n return true;\n }\n return !(isStart(page) || isEnd(page));\n }).map(function (page) {\n var title = void 0;\n var active = page === currPage;\n var disabled = isStart(page) || isEnd(page);\n\n if (page === nextPageText) {\n title = _this2.props.nextPageTitle;\n } else if (page === prePageText) {\n title = _this2.props.prePageTitle;\n } else if (page === firstPageText) {\n title = _this2.props.firstPageTitle;\n } else if (page === lastPageText) {\n title = _this2.props.lastPageTitle;\n } else {\n title = '' + page;\n }\n\n var pageResult = { page: page, active: active, disabled: disabled };\n if (!disablePageTitle) {\n pageResult.title = title;\n }\n return pageResult;\n });\n }\n }, {\n key: 'calculateSizePerPageStatus',\n value: function calculateSizePerPageStatus() {\n var sizePerPageList = this.props.sizePerPageList;\n\n return sizePerPageList.map(function (_sizePerPage) {\n var pageText = typeof _sizePerPage.text !== 'undefined' ? _sizePerPage.text : _sizePerPage;\n var pageNumber = typeof _sizePerPage.value !== 'undefined' ? _sizePerPage.value : _sizePerPage;\n return {\n text: '' + pageText,\n page: pageNumber\n };\n });\n }\n }]);\n\n return PageResolver;\n }(ExtendBase);\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getByCurrPage = exports.alignPage = undefined;\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar getNormalizedPage = function getNormalizedPage(page, pageStartIndex) {\n var offset = Math.abs(1 - pageStartIndex);\n return page + offset;\n};\n\nvar endIndex = function endIndex(page, sizePerPage, pageStartIndex) {\n return getNormalizedPage(page, pageStartIndex) * sizePerPage - 1;\n};\n\nvar startIndex = function startIndex(end, sizePerPage) {\n return end - (sizePerPage - 1);\n};\n\nvar alignPage = exports.alignPage = function alignPage(dataSize, prevDataSize, page, sizePerPage, pageStartIndex) {\n if (prevDataSize < dataSize) return page;\n if (page < pageStartIndex) return pageStartIndex;\n if (dataSize <= 0) return pageStartIndex;\n if (page >= Math.floor(dataSize / sizePerPage) + pageStartIndex && pageStartIndex === 1) {\n return Math.ceil(dataSize / sizePerPage);\n }\n if (page >= Math.floor(dataSize / sizePerPage) && pageStartIndex === 0) {\n var newPage = Math.ceil(dataSize / sizePerPage);\n return newPage - Math.abs(_const2.default.PAGE_START_INDEX - pageStartIndex);\n }\n return page;\n};\n\nvar getByCurrPage = exports.getByCurrPage = function getByCurrPage(data, page, sizePerPage, pageStartIndex) {\n var dataSize = data.length;\n if (!dataSize) return [];\n\n var end = endIndex(page, sizePerPage, pageStartIndex);\n var start = startIndex(end, sizePerPage);\n\n var result = [];\n for (var i = start; i <= end; i += 1) {\n result.push(data[i]);\n if (i + 1 === dataSize) break;\n }\n return result;\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _pageResolver2 = require('./page-resolver');\n\nvar _pageResolver3 = _interopRequireDefault(_pageResolver2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint camelcase: 0 */\n\n\nexports.default = function (WrappedComponent) {\n return function (_pageResolver) {\n _inherits(PaginationHandler, _pageResolver);\n\n function PaginationHandler(props) {\n _classCallCheck(this, PaginationHandler);\n\n var _this = _possibleConstructorReturn(this, (PaginationHandler.__proto__ || Object.getPrototypeOf(PaginationHandler)).call(this, props));\n\n _this.handleChangePage = _this.handleChangePage.bind(_this);\n _this.handleChangeSizePerPage = _this.handleChangeSizePerPage.bind(_this);\n _this.state = _this.initialState();\n return _this;\n }\n\n _createClass(PaginationHandler, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n var dataSize = nextProps.dataSize,\n currSizePerPage = nextProps.currSizePerPage;\n\n if (currSizePerPage !== this.props.currSizePerPage || dataSize !== this.props.dataSize) {\n var totalPages = this.calculateTotalPage(currSizePerPage, dataSize);\n var lastPage = this.calculateLastPage(totalPages);\n this.setState({ totalPages: totalPages, lastPage: lastPage });\n }\n }\n }, {\n key: 'handleChangeSizePerPage',\n value: function handleChangeSizePerPage(sizePerPage) {\n var _props = this.props,\n currSizePerPage = _props.currSizePerPage,\n onSizePerPageChange = _props.onSizePerPageChange;\n\n var selectedSize = typeof sizePerPage === 'string' ? parseInt(sizePerPage, 10) : sizePerPage;\n var currPage = this.props.currPage;\n\n if (selectedSize !== currSizePerPage) {\n var newTotalPages = this.calculateTotalPage(selectedSize);\n var newLastPage = this.calculateLastPage(newTotalPages);\n if (currPage > newLastPage) currPage = newLastPage;\n onSizePerPageChange(selectedSize, currPage);\n }\n }\n }, {\n key: 'handleChangePage',\n value: function handleChangePage(newPage) {\n var page = void 0;\n var _props2 = this.props,\n currPage = _props2.currPage,\n pageStartIndex = _props2.pageStartIndex,\n prePageText = _props2.prePageText,\n nextPageText = _props2.nextPageText,\n lastPageText = _props2.lastPageText,\n firstPageText = _props2.firstPageText,\n onPageChange = _props2.onPageChange;\n var lastPage = this.state.lastPage;\n\n\n if (newPage === prePageText) {\n page = this.backToPrevPage();\n } else if (newPage === nextPageText) {\n page = currPage + 1 > lastPage ? lastPage : currPage + 1;\n } else if (newPage === lastPageText) {\n page = lastPage;\n } else if (newPage === firstPageText) {\n page = pageStartIndex;\n } else {\n page = parseInt(newPage, 10);\n }\n if (page !== currPage) {\n onPageChange(page);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(WrappedComponent, _extends({}, this.props, {\n lastPage: this.state.lastPage,\n totalPages: this.state.totalPages,\n onPageChange: this.handleChangePage,\n onSizePerPageChange: this.handleChangeSizePerPage\n }));\n }\n }]);\n\n return PaginationHandler;\n }((0, _pageResolver3.default)(_react.Component));\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PaginationListWithAdapter = undefined;\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _pageResolver2 = require('./page-resolver');\n\nvar _pageResolver3 = _interopRequireDefault(_pageResolver2);\n\nvar _paginationList = require('./pagination-list');\n\nvar _paginationList2 = _interopRequireDefault(_paginationList);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n\n\nvar paginationListAdapter = function paginationListAdapter(WrappedComponent) {\n return function (_pageResolver) {\n _inherits(PaginationListAdapter, _pageResolver);\n\n function PaginationListAdapter() {\n _classCallCheck(this, PaginationListAdapter);\n\n return _possibleConstructorReturn(this, (PaginationListAdapter.__proto__ || Object.getPrototypeOf(PaginationListAdapter)).apply(this, arguments));\n }\n\n _createClass(PaginationListAdapter, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n lastPage = _props.lastPage,\n totalPages = _props.totalPages,\n pageButtonRenderer = _props.pageButtonRenderer,\n onPageChange = _props.onPageChange,\n disablePageTitle = _props.disablePageTitle,\n hidePageListOnlyOnePage = _props.hidePageListOnlyOnePage;\n\n var pages = this.calculatePageStatus(this.calculatePages(totalPages, lastPage), lastPage, disablePageTitle);\n if (totalPages === 1 && hidePageListOnlyOnePage) {\n return null;\n }\n return _react2.default.createElement(WrappedComponent, {\n pageButtonRenderer: pageButtonRenderer,\n onPageChange: onPageChange,\n pages: pages\n });\n }\n }]);\n\n return PaginationListAdapter;\n }((0, _pageResolver3.default)(_react.Component));\n};\n\nvar PaginationListWithAdapter = exports.PaginationListWithAdapter = paginationListAdapter(_paginationList2.default);\nexports.default = paginationListAdapter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _paginationList = require('./pagination-list');\n\nvar _paginationList2 = _interopRequireDefault(_paginationList);\n\nvar _standaloneAdapter = require('./standalone-adapter');\n\nvar _standaloneAdapter2 = _interopRequireDefault(_standaloneAdapter);\n\nvar _paginationHandler = require('./pagination-handler');\n\nvar _paginationHandler2 = _interopRequireDefault(_paginationHandler);\n\nvar _paginationListAdapter = require('./pagination-list-adapter');\n\nvar _paginationListAdapter2 = _interopRequireDefault(_paginationListAdapter);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar PaginationListStandalone = function PaginationListStandalone(props) {\n return _react2.default.createElement(_paginationList2.default, props);\n};\n\nexports.default = (0, _standaloneAdapter2.default)((0, _paginationHandler2.default)((0, _paginationListAdapter2.default)(PaginationListStandalone)));","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _pageButton = require('./page-button');\n\nvar _pageButton2 = _interopRequireDefault(_pageButton);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar PaginatonList = function PaginatonList(props) {\n return _react2.default.createElement(\n 'ul',\n { className: 'pagination react-bootstrap-table-page-btns-ul' },\n props.pages.map(function (pageProps) {\n if (props.pageButtonRenderer) {\n return props.pageButtonRenderer(_extends({}, pageProps, {\n onPageChange: props.onPageChange\n }));\n }\n return _react2.default.createElement(_pageButton2.default, _extends({\n key: pageProps.page\n }, pageProps, {\n onPageChange: props.onPageChange\n }));\n })\n );\n};\n\nPaginatonList.propTypes = {\n pages: _propTypes2.default.arrayOf(_propTypes2.default.shape({\n page: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.number, _propTypes2.default.string]),\n active: _propTypes2.default.bool,\n disable: _propTypes2.default.bool,\n title: _propTypes2.default.string\n })).isRequired,\n onPageChange: _propTypes2.default.func.isRequired,\n pageButtonRenderer: _propTypes2.default.func\n};\n\nPaginatonList.defaultProps = {\n pageButtonRenderer: null\n};\n\nexports.default = PaginatonList;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PaginationTotalWithAdapter = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _pageResolver2 = require('./page-resolver');\n\nvar _pageResolver3 = _interopRequireDefault(_pageResolver2);\n\nvar _paginationTotal = require('./pagination-total');\n\nvar _paginationTotal2 = _interopRequireDefault(_paginationTotal);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n\n\nvar paginationTotalAdapter = function paginationTotalAdapter(WrappedComponent) {\n return function (_pageResolver) {\n _inherits(PaginationTotalAdapter, _pageResolver);\n\n function PaginationTotalAdapter() {\n _classCallCheck(this, PaginationTotalAdapter);\n\n return _possibleConstructorReturn(this, (PaginationTotalAdapter.__proto__ || Object.getPrototypeOf(PaginationTotalAdapter)).apply(this, arguments));\n }\n\n _createClass(PaginationTotalAdapter, [{\n key: 'render',\n value: function render() {\n var _calculateFromTo = this.calculateFromTo(),\n _calculateFromTo2 = _slicedToArray(_calculateFromTo, 2),\n from = _calculateFromTo2[0],\n to = _calculateFromTo2[1];\n\n return _react2.default.createElement(WrappedComponent, {\n from: from,\n to: to,\n dataSize: this.props.dataSize,\n paginationTotalRenderer: this.props.paginationTotalRenderer\n });\n }\n }]);\n\n return PaginationTotalAdapter;\n }((0, _pageResolver3.default)(_react.Component));\n};\n\nvar PaginationTotalWithAdapter = exports.PaginationTotalWithAdapter = paginationTotalAdapter(_paginationTotal2.default);\nexports.default = paginationTotalAdapter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _paginationTotal = require('./pagination-total');\n\nvar _paginationTotal2 = _interopRequireDefault(_paginationTotal);\n\nvar _standaloneAdapter = require('./standalone-adapter');\n\nvar _standaloneAdapter2 = _interopRequireDefault(_standaloneAdapter);\n\nvar _paginationTotalAdapter = require('./pagination-total-adapter');\n\nvar _paginationTotalAdapter2 = _interopRequireDefault(_paginationTotalAdapter);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar PaginationTotalStandalone = function PaginationTotalStandalone(props) {\n return _react2.default.createElement(_paginationTotal2.default, props);\n};\n\nexports.default = (0, _standaloneAdapter2.default)((0, _paginationTotalAdapter2.default)(PaginationTotalStandalone));","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar PaginationTotal = function PaginationTotal(props) {\n if (props.paginationTotalRenderer) {\n return props.paginationTotalRenderer(props.from, props.to, props.dataSize);\n }\n return _react2.default.createElement(\n 'span',\n { className: 'react-bootstrap-table-pagination-total' },\n '\\xA0Showing rows ',\n props.from,\n ' to\\xA0',\n props.to,\n ' of\\xA0',\n props.dataSize\n );\n};\n\nPaginationTotal.propTypes = {\n from: _propTypes2.default.number.isRequired,\n to: _propTypes2.default.number.isRequired,\n dataSize: _propTypes2.default.number.isRequired,\n paginationTotalRenderer: _propTypes2.default.func\n};\n\nPaginationTotal.defaultProps = {\n paginationTotalRenderer: undefined\n};\n\nexports.default = PaginationTotal;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _pageResolver2 = require('./page-resolver');\n\nvar _pageResolver3 = _interopRequireDefault(_pageResolver2);\n\nvar _paginationHandler = require('./pagination-handler');\n\nvar _paginationHandler2 = _interopRequireDefault(_paginationHandler);\n\nvar _sizePerPageDropdownAdapter = require('./size-per-page-dropdown-adapter');\n\nvar _paginationListAdapter = require('./pagination-list-adapter');\n\nvar _paginationTotalAdapter = require('./pagination-total-adapter');\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/require-default-props: 0 */\n/* eslint arrow-body-style: 0 */\n\n\nvar Pagination = function (_pageResolver) {\n _inherits(Pagination, _pageResolver);\n\n function Pagination() {\n _classCallCheck(this, Pagination);\n\n return _possibleConstructorReturn(this, (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).apply(this, arguments));\n }\n\n _createClass(Pagination, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n tableId = _props.tableId,\n currPage = _props.currPage,\n pageStartIndex = _props.pageStartIndex,\n showTotal = _props.showTotal,\n dataSize = _props.dataSize,\n pageListRenderer = _props.pageListRenderer,\n pageButtonRenderer = _props.pageButtonRenderer,\n paginationTotalRenderer = _props.paginationTotalRenderer,\n hidePageListOnlyOnePage = _props.hidePageListOnlyOnePage,\n totalPages = _props.totalPages,\n lastPage = _props.lastPage,\n onPageChange = _props.onPageChange,\n sizePerPageList = _props.sizePerPageList,\n currSizePerPage = _props.currSizePerPage,\n hideSizePerPage = _props.hideSizePerPage,\n sizePerPageRenderer = _props.sizePerPageRenderer,\n sizePerPageOptionRenderer = _props.sizePerPageOptionRenderer,\n onSizePerPageChange = _props.onSizePerPageChange,\n bootstrap4 = _props.bootstrap4,\n rest = _objectWithoutProperties(_props, ['tableId', 'currPage', 'pageStartIndex', 'showTotal', 'dataSize', 'pageListRenderer', 'pageButtonRenderer', 'paginationTotalRenderer', 'hidePageListOnlyOnePage', 'totalPages', 'lastPage', 'onPageChange', 'sizePerPageList', 'currSizePerPage', 'hideSizePerPage', 'sizePerPageRenderer', 'sizePerPageOptionRenderer', 'onSizePerPageChange', 'bootstrap4']);\n\n var pages = this.calculatePageStatus(this.calculatePages(totalPages, lastPage), lastPage);\n var pageListClass = (0, _classnames2.default)('react-bootstrap-table-pagination-list', 'col-md-6 col-xs-6 col-sm-6 col-lg-6', {\n 'react-bootstrap-table-pagination-list-hidden': hidePageListOnlyOnePage && totalPages === 1\n });\n return _react2.default.createElement(\n 'div',\n { className: 'row react-bootstrap-table-pagination' },\n _react2.default.createElement(\n 'div',\n { className: 'col-md-6 col-xs-6 col-sm-6 col-lg-6' },\n _react2.default.createElement(_sizePerPageDropdownAdapter.SizePerPageDropdownWithAdapter, {\n bootstrap4: bootstrap4,\n tableId: tableId,\n sizePerPageList: sizePerPageList,\n currSizePerPage: currSizePerPage,\n hideSizePerPage: hideSizePerPage,\n sizePerPageRenderer: sizePerPageRenderer,\n sizePerPageOptionRenderer: sizePerPageOptionRenderer,\n onSizePerPageChange: onSizePerPageChange\n }),\n showTotal ? _react2.default.createElement(_paginationTotalAdapter.PaginationTotalWithAdapter, {\n currPage: currPage,\n currSizePerPage: currSizePerPage,\n pageStartIndex: pageStartIndex,\n dataSize: dataSize,\n paginationTotalRenderer: paginationTotalRenderer\n }) : null\n ),\n pageListRenderer ? pageListRenderer({\n pages: pages,\n onPageChange: onPageChange\n }) : _react2.default.createElement(\n 'div',\n { className: pageListClass },\n _react2.default.createElement(_paginationListAdapter.PaginationListWithAdapter, _extends({}, rest, {\n currPage: currPage,\n currSizePerPage: currSizePerPage,\n pageStartIndex: pageStartIndex,\n lastPage: lastPage,\n totalPages: totalPages,\n pageButtonRenderer: pageButtonRenderer,\n onPageChange: onPageChange\n }))\n )\n );\n }\n }]);\n\n return Pagination;\n}((0, _pageResolver3.default)(_react.Component));\n\nPagination.propTypes = {\n dataSize: _propTypes2.default.number.isRequired,\n sizePerPageList: _propTypes2.default.array.isRequired,\n currPage: _propTypes2.default.number.isRequired,\n currSizePerPage: _propTypes2.default.number.isRequired,\n onPageChange: _propTypes2.default.func.isRequired,\n onSizePerPageChange: _propTypes2.default.func.isRequired,\n disablePageTitle: _propTypes2.default.bool,\n pageStartIndex: _propTypes2.default.number,\n paginationSize: _propTypes2.default.number,\n showTotal: _propTypes2.default.bool,\n pageListRenderer: _propTypes2.default.func,\n pageButtonRenderer: _propTypes2.default.func,\n sizePerPageRenderer: _propTypes2.default.func,\n paginationTotalRenderer: _propTypes2.default.func,\n sizePerPageOptionRenderer: _propTypes2.default.func,\n firstPageText: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n prePageText: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n nextPageText: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n lastPageText: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n nextPageTitle: _propTypes2.default.string,\n prePageTitle: _propTypes2.default.string,\n firstPageTitle: _propTypes2.default.string,\n lastPageTitle: _propTypes2.default.string,\n withFirstAndLast: _propTypes2.default.bool,\n alwaysShowAllBtns: _propTypes2.default.bool,\n hideSizePerPage: _propTypes2.default.bool,\n hidePageListOnlyOnePage: _propTypes2.default.bool,\n bootstrap4: _propTypes2.default.bool\n};\n\nPagination.defaultProps = {\n disablePageTitle: false,\n bootstrap4: false,\n pageStartIndex: _const2.default.PAGE_START_INDEX,\n paginationSize: _const2.default.PAGINATION_SIZE,\n withFirstAndLast: _const2.default.With_FIRST_AND_LAST,\n alwaysShowAllBtns: _const2.default.SHOW_ALL_PAGE_BTNS,\n showTotal: _const2.default.SHOW_TOTAL,\n pageListRenderer: null,\n pageButtonRenderer: null,\n sizePerPageRenderer: null,\n paginationTotalRenderer: _const2.default.PAGINATION_TOTAL,\n sizePerPageOptionRenderer: null,\n firstPageText: _const2.default.FIRST_PAGE_TEXT,\n prePageText: _const2.default.PRE_PAGE_TEXT,\n nextPageText: _const2.default.NEXT_PAGE_TEXT,\n lastPageText: _const2.default.LAST_PAGE_TEXT,\n sizePerPageList: _const2.default.SIZE_PER_PAGE_LIST,\n nextPageTitle: _const2.default.NEXT_PAGE_TITLE,\n prePageTitle: _const2.default.PRE_PAGE_TITLE,\n firstPageTitle: _const2.default.FIRST_PAGE_TITLE,\n lastPageTitle: _const2.default.LAST_PAGE_TITLE,\n hideSizePerPage: _const2.default.HIDE_SIZE_PER_PAGE,\n hidePageListOnlyOnePage: _const2.default.HIDE_PAGE_LIST_ONLY_ONE_PAGE\n};\n\nexports.default = (0, _paginationHandler2.default)(Pagination);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SizePerPageDropdownWithAdapter = undefined;\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _pageResolver2 = require('./page-resolver');\n\nvar _pageResolver3 = _interopRequireDefault(_pageResolver2);\n\nvar _sizePerPageDropdown = require('./size-per-page-dropdown');\n\nvar _sizePerPageDropdown2 = _interopRequireDefault(_sizePerPageDropdown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n\n\nvar sizePerPageDropdownAdapter = function sizePerPageDropdownAdapter(WrappedComponent) {\n return function (_pageResolver) {\n _inherits(SizePerPageDropdownAdapter, _pageResolver);\n\n function SizePerPageDropdownAdapter(props) {\n _classCallCheck(this, SizePerPageDropdownAdapter);\n\n var _this = _possibleConstructorReturn(this, (SizePerPageDropdownAdapter.__proto__ || Object.getPrototypeOf(SizePerPageDropdownAdapter)).call(this, props));\n\n _this.closeDropDown = _this.closeDropDown.bind(_this);\n _this.toggleDropDown = _this.toggleDropDown.bind(_this);\n _this.handleChangeSizePerPage = _this.handleChangeSizePerPage.bind(_this);\n _this.state = { dropdownOpen: false };\n return _this;\n }\n\n _createClass(SizePerPageDropdownAdapter, [{\n key: 'toggleDropDown',\n value: function toggleDropDown() {\n var dropdownOpen = !this.state.dropdownOpen;\n this.setState(function () {\n return { dropdownOpen: dropdownOpen };\n });\n }\n }, {\n key: 'closeDropDown',\n value: function closeDropDown() {\n this.setState(function () {\n return { dropdownOpen: false };\n });\n }\n }, {\n key: 'handleChangeSizePerPage',\n value: function handleChangeSizePerPage(sizePerPage) {\n this.props.onSizePerPageChange(sizePerPage);\n this.closeDropDown();\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n tableId = _props.tableId,\n bootstrap4 = _props.bootstrap4,\n sizePerPageList = _props.sizePerPageList,\n currSizePerPage = _props.currSizePerPage,\n hideSizePerPage = _props.hideSizePerPage,\n sizePerPageRenderer = _props.sizePerPageRenderer,\n sizePerPageOptionRenderer = _props.sizePerPageOptionRenderer;\n var open = this.state.dropdownOpen;\n\n\n if (sizePerPageList.length > 1 && !hideSizePerPage) {\n if (sizePerPageRenderer) {\n return sizePerPageRenderer({\n options: this.calculateSizePerPageStatus(),\n currSizePerPage: '' + currSizePerPage,\n onSizePerPageChange: this.handleChangeSizePerPage\n });\n }\n return _react2.default.createElement(WrappedComponent, _extends({}, this.props, {\n currSizePerPage: '' + currSizePerPage,\n options: this.calculateSizePerPageStatus(),\n optionRenderer: sizePerPageOptionRenderer,\n onSizePerPageChange: this.handleChangeSizePerPage,\n onClick: this.toggleDropDown,\n onBlur: this.closeDropDown,\n open: open,\n tableId: tableId,\n bootstrap4: bootstrap4\n }));\n }\n return null;\n }\n }]);\n\n return SizePerPageDropdownAdapter;\n }((0, _pageResolver3.default)(_react.Component));\n};\n\nvar SizePerPageDropdownWithAdapter = exports.SizePerPageDropdownWithAdapter = sizePerPageDropdownAdapter(_sizePerPageDropdown2.default);\nexports.default = sizePerPageDropdownAdapter;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _sizePerPageDropdown = require('./size-per-page-dropdown');\n\nvar _sizePerPageDropdown2 = _interopRequireDefault(_sizePerPageDropdown);\n\nvar _standaloneAdapter = require('./standalone-adapter');\n\nvar _standaloneAdapter2 = _interopRequireDefault(_standaloneAdapter);\n\nvar _paginationHandler = require('./pagination-handler');\n\nvar _paginationHandler2 = _interopRequireDefault(_paginationHandler);\n\nvar _sizePerPageDropdownAdapter = require('./size-per-page-dropdown-adapter');\n\nvar _sizePerPageDropdownAdapter2 = _interopRequireDefault(_sizePerPageDropdownAdapter);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SizePerPageDropdownStandalone = function SizePerPageDropdownStandalone(props) {\n return _react2.default.createElement(_sizePerPageDropdown2.default, props);\n};\n\nexports.default = (0, _standaloneAdapter2.default)((0, _paginationHandler2.default)((0, _sizePerPageDropdownAdapter2.default)(SizePerPageDropdownStandalone)));","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _sizePerPageOption = require('./size-per-page-option');\n\nvar _sizePerPageOption2 = _interopRequireDefault(_sizePerPageOption);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown';\n\nvar SizePerPageDropDown = function SizePerPageDropDown(props) {\n var open = props.open,\n tableId = props.tableId,\n hidden = props.hidden,\n onClick = props.onClick,\n onBlur = props.onBlur,\n options = props.options,\n className = props.className,\n variation = props.variation,\n bootstrap4 = props.bootstrap4,\n btnContextual = props.btnContextual,\n optionRenderer = props.optionRenderer,\n currSizePerPage = props.currSizePerPage,\n onSizePerPageChange = props.onSizePerPageChange;\n\n\n var dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };\n var openClass = open ? 'open show' : '';\n var dropdownClasses = (0, _classnames2.default)(openClass, sizePerPageDefaultClass, variation, className);\n\n var id = tableId ? tableId + '-pageDropDown' : 'pageDropDown';\n\n return _react2.default.createElement(\n 'span',\n {\n style: dropDownStyle,\n className: dropdownClasses\n },\n _react2.default.createElement(\n 'button',\n {\n id: id,\n type: 'button',\n className: 'btn ' + btnContextual + ' dropdown-toggle',\n 'data-toggle': 'dropdown',\n 'aria-expanded': open,\n onClick: onClick,\n onBlur: onBlur\n },\n currSizePerPage,\n ' ',\n bootstrap4 ? null : _react2.default.createElement(\n 'span',\n null,\n _react2.default.createElement('span', { className: 'caret' })\n )\n ),\n _react2.default.createElement(\n 'ul',\n {\n className: 'dropdown-menu ' + openClass,\n role: 'menu',\n 'aria-labelledby': id\n },\n options.map(function (option) {\n if (optionRenderer) {\n return optionRenderer(_extends({}, option, {\n onSizePerPageChange: onSizePerPageChange\n }));\n }\n return _react2.default.createElement(_sizePerPageOption2.default, _extends({}, option, {\n key: option.text,\n bootstrap4: bootstrap4,\n onSizePerPageChange: onSizePerPageChange\n }));\n })\n )\n );\n};\n\nSizePerPageDropDown.propTypes = {\n currSizePerPage: _propTypes2.default.string.isRequired,\n options: _propTypes2.default.array.isRequired,\n onClick: _propTypes2.default.func.isRequired,\n onBlur: _propTypes2.default.func.isRequired,\n onSizePerPageChange: _propTypes2.default.func.isRequired,\n bootstrap4: _propTypes2.default.bool,\n tableId: _propTypes2.default.string,\n open: _propTypes2.default.bool,\n hidden: _propTypes2.default.bool,\n btnContextual: _propTypes2.default.string,\n variation: _propTypes2.default.oneOf(['dropdown', 'dropup']),\n className: _propTypes2.default.string,\n optionRenderer: _propTypes2.default.func\n};\nSizePerPageDropDown.defaultProps = {\n open: false,\n hidden: false,\n btnContextual: 'btn-default btn-secondary',\n variation: 'dropdown',\n className: '',\n optionRenderer: null,\n bootstrap4: false,\n tableId: null\n};\n\nexports.default = SizePerPageDropDown;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint jsx-a11y/href-no-hash: 0 */\nvar SizePerPageOption = function SizePerPageOption(_ref) {\n var text = _ref.text,\n page = _ref.page,\n onSizePerPageChange = _ref.onSizePerPageChange,\n bootstrap4 = _ref.bootstrap4;\n return bootstrap4 ? _react2.default.createElement(\n 'a',\n {\n href: '#',\n tabIndex: '-1',\n role: 'menuitem',\n className: 'dropdown-item',\n 'data-page': page,\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n onSizePerPageChange(page);\n }\n },\n text\n ) : _react2.default.createElement(\n 'li',\n {\n key: text,\n role: 'presentation',\n className: 'dropdown-item'\n },\n _react2.default.createElement(\n 'a',\n {\n href: '#',\n tabIndex: '-1',\n role: 'menuitem',\n 'data-page': page,\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n onSizePerPageChange(page);\n }\n },\n text\n )\n );\n};\n\nSizePerPageOption.propTypes = {\n text: _propTypes2.default.string.isRequired,\n page: _propTypes2.default.number.isRequired,\n onSizePerPageChange: _propTypes2.default.func.isRequired,\n bootstrap4: _propTypes2.default.bool\n};\n\nSizePerPageOption.defaultProps = {\n bootstrap4: false\n};\n\nexports.default = SizePerPageOption;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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; } /* eslint react/prop-types: 0 */\n\n\nexports.default = function (WrappedComponent) {\n return function (_ref) {\n var page = _ref.page,\n sizePerPage = _ref.sizePerPage,\n rest = _objectWithoutProperties(_ref, ['page', 'sizePerPage']);\n\n return _react2.default.createElement(WrappedComponent, _extends({}, rest, {\n currPage: page,\n currSizePerPage: sizePerPage\n }));\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _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; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _events = require('events');\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _const = require('./const');\n\nvar _const2 = _interopRequireDefault(_const);\n\nvar _page = require('./page');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/prop-types: 0 */\n/* eslint react/require-default-props: 0 */\n/* eslint no-lonely-if: 0 */\n/* eslint camelcase: 0 */\n\n\nvar StateContext = _react2.default.createContext();\n\nvar StateProvider = function (_React$Component) {\n _inherits(StateProvider, _React$Component);\n\n function StateProvider(props) {\n _classCallCheck(this, StateProvider);\n\n var _this = _possibleConstructorReturn(this, (StateProvider.__proto__ || Object.getPrototypeOf(StateProvider)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.handleChangePage = _this.handleChangePage.bind(_this);\n _this.handleDataSizeChange = _this.handleDataSizeChange.bind(_this);\n _this.handleChangeSizePerPage = _this.handleChangeSizePerPage.bind(_this);\n\n var currPage = void 0;\n var currSizePerPage = void 0;\n var options = props.pagination.options;\n\n var sizePerPageList = options.sizePerPageList || _const2.default.SIZE_PER_PAGE_LIST;\n\n // initialize current page\n if (typeof options.page !== 'undefined') {\n currPage = options.page;\n } else if (typeof options.pageStartIndex !== 'undefined') {\n currPage = options.pageStartIndex;\n } else {\n currPage = _const2.default.PAGE_START_INDEX;\n }\n\n // initialize current sizePerPage\n if (typeof options.sizePerPage !== 'undefined') {\n currSizePerPage = options.sizePerPage;\n } else if (_typeof(sizePerPageList[0]) === 'object') {\n currSizePerPage = sizePerPageList[0].value;\n } else {\n currSizePerPage = sizePerPageList[0];\n }\n\n _this.currPage = currPage;\n _this.dataSize = options.totalSize;\n _this.currSizePerPage = currSizePerPage;\n _this.dataChangeListener = new _events2.default();\n _this.dataChangeListener.on('filterChanged', _this.handleDataSizeChange);\n return _this;\n }\n\n _createClass(StateProvider, [{\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n var custom = nextProps.pagination.options.custom;\n\n // user should align the page when the page is not fit to the data size when remote enable\n\n if (this.isRemotePagination() || custom) {\n if (typeof nextProps.pagination.options.page !== 'undefined') {\n this.currPage = nextProps.pagination.options.page;\n }\n if (typeof nextProps.pagination.options.sizePerPage !== 'undefined') {\n this.currSizePerPage = nextProps.pagination.options.sizePerPage;\n }\n if (typeof nextProps.pagination.options.totalSize !== 'undefined') {\n this.dataSize = nextProps.pagination.options.totalSize;\n }\n }\n }\n }, {\n key: 'handleDataSizeChange',\n value: function handleDataSizeChange(newDataSize) {\n var options = this.props.pagination.options;\n\n var pageStartIndex = typeof options.pageStartIndex === 'undefined' ? _const2.default.PAGE_START_INDEX : options.pageStartIndex;\n this.currPage = (0, _page.alignPage)(newDataSize, this.dataSize, this.currPage, this.currSizePerPage, pageStartIndex);\n this.dataSize = newDataSize;\n this.forceUpdate();\n }\n }, {\n key: 'handleChangePage',\n value: function handleChangePage(currPage) {\n var currSizePerPage = this.currSizePerPage;\n var options = this.props.pagination.options;\n\n\n if (options.onPageChange) {\n options.onPageChange(currPage, currSizePerPage);\n }\n\n this.currPage = currPage;\n\n if (this.isRemotePagination()) {\n this.getPaginationRemoteEmitter().emit('paginationChange', currPage, currSizePerPage);\n return;\n }\n this.forceUpdate();\n }\n }, {\n key: 'handleChangeSizePerPage',\n value: function handleChangeSizePerPage(currSizePerPage, currPage) {\n var options = this.props.pagination.options;\n\n\n if (options.onSizePerPageChange) {\n options.onSizePerPageChange(currSizePerPage, currPage);\n }\n\n this.currPage = currPage;\n this.currSizePerPage = currSizePerPage;\n\n if (this.isRemotePagination()) {\n this.getPaginationRemoteEmitter().emit('paginationChange', currPage, currSizePerPage);\n return;\n }\n this.forceUpdate();\n }\n }, {\n key: 'render',\n value: function render() {\n var paginationProps = this.getPaginationProps();\n var pagination = _extends({}, this.props.pagination, {\n options: paginationProps\n });\n\n return _react2.default.createElement(\n StateContext.Provider,\n {\n value: {\n paginationProps: paginationProps,\n paginationTableProps: {\n pagination: pagination,\n setPaginationRemoteEmitter: this.setPaginationRemoteEmitter,\n dataChangeListener: this.dataChangeListener\n }\n }\n },\n this.props.children\n );\n }\n }]);\n\n return StateProvider;\n}(_react2.default.Component);\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.getPaginationProps = function () {\n var _props = _this2.props,\n options = _props.pagination.options,\n bootstrap4 = _props.bootstrap4,\n tableId = _props.tableId;\n var currPage = _this2.currPage,\n currSizePerPage = _this2.currSizePerPage,\n dataSize = _this2.dataSize;\n\n var withFirstAndLast = typeof options.withFirstAndLast === 'undefined' ? _const2.default.With_FIRST_AND_LAST : options.withFirstAndLast;\n var alwaysShowAllBtns = typeof options.alwaysShowAllBtns === 'undefined' ? _const2.default.SHOW_ALL_PAGE_BTNS : options.alwaysShowAllBtns;\n var hideSizePerPage = typeof options.hideSizePerPage === 'undefined' ? _const2.default.HIDE_SIZE_PER_PAGE : options.hideSizePerPage;\n var hidePageListOnlyOnePage = typeof options.hidePageListOnlyOnePage === 'undefined' ? _const2.default.HIDE_PAGE_LIST_ONLY_ONE_PAGE : options.hidePageListOnlyOnePage;\n var pageStartIndex = typeof options.pageStartIndex === 'undefined' ? _const2.default.PAGE_START_INDEX : options.pageStartIndex;\n return _extends({}, options, {\n bootstrap4: bootstrap4,\n tableId: tableId,\n page: currPage,\n sizePerPage: currSizePerPage,\n pageStartIndex: pageStartIndex,\n hidePageListOnlyOnePage: hidePageListOnlyOnePage,\n hideSizePerPage: hideSizePerPage,\n alwaysShowAllBtns: alwaysShowAllBtns,\n withFirstAndLast: withFirstAndLast,\n dataSize: dataSize,\n sizePerPageList: options.sizePerPageList || _const2.default.SIZE_PER_PAGE_LIST,\n paginationSize: options.paginationSize || _const2.default.PAGINATION_SIZE,\n showTotal: options.showTotal,\n pageListRenderer: options.pageListRenderer,\n pageButtonRenderer: options.pageButtonRenderer,\n sizePerPageRenderer: options.sizePerPageRenderer,\n paginationTotalRenderer: options.paginationTotalRenderer,\n sizePerPageOptionRenderer: options.sizePerPageOptionRenderer,\n firstPageText: options.firstPageText || _const2.default.FIRST_PAGE_TEXT,\n prePageText: options.prePageText || _const2.default.PRE_PAGE_TEXT,\n nextPageText: options.nextPageText || _const2.default.NEXT_PAGE_TEXT,\n lastPageText: options.lastPageText || _const2.default.LAST_PAGE_TEXT,\n prePageTitle: options.prePageTitle || _const2.default.PRE_PAGE_TITLE,\n nextPageTitle: options.nextPageTitle || _const2.default.NEXT_PAGE_TITLE,\n firstPageTitle: options.firstPageTitle || _const2.default.FIRST_PAGE_TITLE,\n lastPageTitle: options.lastPageTitle || _const2.default.LAST_PAGE_TITLE,\n onPageChange: _this2.handleChangePage,\n onSizePerPageChange: _this2.handleChangeSizePerPage\n });\n };\n\n this.setPaginationRemoteEmitter = function (remoteEmitter) {\n _this2.remoteEmitter = remoteEmitter;\n };\n\n this.getPaginationRemoteEmitter = function () {\n return _this2.remoteEmitter || _this2.props.remoteEmitter;\n };\n\n this.isRemotePagination = function () {\n var e = {};\n _this2.remoteEmitter.emit('isRemotePagination', e);\n return e.result;\n };\n};\n\nexports.default = function () {\n return {\n Provider: StateProvider,\n Consumer: StateContext.Consumer\n };\n};","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.filter(function (f) {\n return f != null;\n }).reduce(function (acc, f) {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n\n if (acc === null) return f;\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n // @ts-ignore\n acc.apply(this, args); // @ts-ignore\n\n f.apply(this, args);\n };\n }, null);\n}\n\nexport default createChainedFunction;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"as\", \"disabled\", \"onKeyDown\"];\nimport React from 'react';\nimport createChainedFunction from './createChainedFunction';\n\nfunction isTrivialHref(href) {\n return !href || href.trim() === '#';\n}\n/**\n * There are situations due to browser quirks or Bootstrap CSS where\n * an anchor tag is needed, when semantically a button tag is the\n * better choice. SafeAnchor ensures that when an anchor is used like a\n * button its accessible. It also emulates input `disabled` behavior for\n * links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.\n */\n\n\nvar SafeAnchor = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var _ref$as = _ref.as,\n Component = _ref$as === void 0 ? 'a' : _ref$as,\n disabled = _ref.disabled,\n onKeyDown = _ref.onKeyDown,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var handleClick = function handleClick(event) {\n var href = props.href,\n onClick = props.onClick;\n\n if (disabled || isTrivialHref(href)) {\n event.preventDefault();\n }\n\n if (disabled) {\n event.stopPropagation();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n var handleKeyDown = function handleKeyDown(event) {\n if (event.key === ' ') {\n event.preventDefault();\n handleClick(event);\n }\n };\n\n if (isTrivialHref(props.href)) {\n props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node\n // otherwise, the cursor incorrectly styled (except with role='button')\n\n props.href = props.href || '#';\n }\n\n if (disabled) {\n props.tabIndex = -1;\n props['aria-disabled'] = true;\n }\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n ref: ref\n }, props, {\n onClick: handleClick,\n onKeyDown: createChainedFunction(handleKeyDown, onKeyDown)\n }));\n});\nSafeAnchor.displayName = 'SafeAnchor';\nexport default SafeAnchor;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"bsPrefix\", \"variant\", \"size\", \"active\", \"className\", \"block\", \"type\", \"as\"];\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport SafeAnchor from './SafeAnchor';\nvar defaultProps = {\n variant: 'primary',\n active: false,\n disabled: false\n};\nvar Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n variant = _ref.variant,\n size = _ref.size,\n active = _ref.active,\n className = _ref.className,\n block = _ref.block,\n type = _ref.type,\n as = _ref.as,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var prefix = useBootstrapPrefix(bsPrefix, 'btn');\n var classes = classNames(className, prefix, active && 'active', variant && prefix + \"-\" + variant, block && prefix + \"-block\", size && prefix + \"-\" + size);\n\n if (props.href) {\n return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {\n as: as,\n ref: ref,\n className: classNames(classes, props.disabled && 'disabled')\n }));\n }\n\n if (ref) {\n props.ref = ref;\n }\n\n if (type) {\n props.type = type;\n } else if (!as) {\n props.type = 'button';\n }\n\n var Component = as || 'button';\n return /*#__PURE__*/React.createElement(Component, _extends({}, props, {\n className: classes\n }));\n});\nButton.displayName = 'Button';\nButton.defaultProps = defaultProps;\nexport default Button;","import css from 'dom-helpers/css';\nimport transitionEnd from 'dom-helpers/transitionEnd';\n\nfunction parseDuration(node, property) {\n var str = css(node, property) || '';\n var mult = str.indexOf('ms') === -1 ? 1000 : 1;\n return parseFloat(str) * mult;\n}\n\nexport default function transitionEndListener(element, handler) {\n var duration = parseDuration(element, 'transitionDuration');\n var delay = parseDuration(element, 'transitionDelay');\n var remove = transitionEnd(element, function (e) {\n if (e.target === element) {\n remove();\n handler(e);\n }\n }, duration + delay);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\"];\n\nvar _fadeStyles;\n\nimport classNames from 'classnames';\nimport React, { useCallback } from 'react';\nimport Transition, { ENTERED, ENTERING } from 'react-transition-group/Transition';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nvar defaultProps = {\n in: false,\n timeout: 300,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false\n};\nvar fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);\nvar Fade = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var className = _ref.className,\n children = _ref.children,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var handleEnter = useCallback(function (node) {\n triggerBrowserReflow(node);\n if (props.onEnter) props.onEnter(node);\n }, [props]);\n return /*#__PURE__*/React.createElement(Transition, _extends({\n ref: ref,\n addEndListener: transitionEndListener\n }, props, {\n onEnter: handleEnter\n }), function (status, innerProps) {\n return /*#__PURE__*/React.cloneElement(children, _extends({}, innerProps, {\n className: classNames('fade', className, children.props.className, fadeStyles[status])\n }));\n });\n});\nFade.defaultProps = defaultProps;\nFade.displayName = 'Fade';\nexport default Fade;","// reading a dimension prop will cause the browser to recalculate,\n// which will let our animations work\nexport default function triggerBrowserReflow(node) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n node.offsetHeight;\n}","import _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport css from 'dom-helpers/css';\nimport qsa from 'dom-helpers/querySelectorAll';\nimport getScrollbarSize from 'dom-helpers/scrollbarSize';\nimport ModalManager from 'react-overlays/ModalManager';\nvar Selector = {\n FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',\n STICKY_CONTENT: '.sticky-top',\n NAVBAR_TOGGLER: '.navbar-toggler'\n};\n\nvar BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {\n _inheritsLoose(BootstrapModalManager, _ModalManager);\n\n function BootstrapModalManager() {\n return _ModalManager.apply(this, arguments) || this;\n }\n\n var _proto = BootstrapModalManager.prototype;\n\n _proto.adjustAndStore = function adjustAndStore(prop, element, adjust) {\n var _css;\n\n var actual = element.style[prop]; // TODO: DOMStringMap and CSSStyleDeclaration aren't strictly compatible\n // @ts-ignore\n\n element.dataset[prop] = actual;\n css(element, (_css = {}, _css[prop] = parseFloat(css(element, prop)) + adjust + \"px\", _css));\n };\n\n _proto.restore = function restore(prop, element) {\n var value = element.dataset[prop];\n\n if (value !== undefined) {\n var _css2;\n\n delete element.dataset[prop];\n css(element, (_css2 = {}, _css2[prop] = value, _css2));\n }\n };\n\n _proto.setContainerStyle = function setContainerStyle(containerState, container) {\n var _this = this;\n\n _ModalManager.prototype.setContainerStyle.call(this, containerState, container);\n\n if (!containerState.overflowing) return;\n var size = getScrollbarSize();\n qsa(container, Selector.FIXED_CONTENT).forEach(function (el) {\n return _this.adjustAndStore('paddingRight', el, size);\n });\n qsa(container, Selector.STICKY_CONTENT).forEach(function (el) {\n return _this.adjustAndStore('marginRight', el, -size);\n });\n qsa(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {\n return _this.adjustAndStore('marginRight', el, size);\n });\n };\n\n _proto.removeContainerStyle = function removeContainerStyle(containerState, container) {\n var _this2 = this;\n\n _ModalManager.prototype.removeContainerStyle.call(this, containerState, container);\n\n qsa(container, Selector.FIXED_CONTENT).forEach(function (el) {\n return _this2.restore('paddingRight', el);\n });\n qsa(container, Selector.STICKY_CONTENT).forEach(function (el) {\n return _this2.restore('marginRight', el);\n });\n qsa(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {\n return _this2.restore('marginRight', el);\n });\n };\n\n return BootstrapModalManager;\n}(ModalManager);\n\nexport { BootstrapModalManager as default };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"bsPrefix\", \"as\"];\nimport classNames from 'classnames';\nimport camelize from 'dom-helpers/camelize';\nimport React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\n\nvar pascalCase = function pascalCase(str) {\n return str[0].toUpperCase() + camelize(str).slice(1);\n};\n\n// TODO: emstricten & fix the typing here! `createWithBsPrefix...`\nexport default function createWithBsPrefix(prefix, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$displayName = _ref.displayName,\n displayName = _ref$displayName === void 0 ? pascalCase(prefix) : _ref$displayName,\n Component = _ref.Component,\n defaultProps = _ref.defaultProps;\n\n var BsComponent = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {\n var className = _ref2.className,\n bsPrefix = _ref2.bsPrefix,\n _ref2$as = _ref2.as,\n Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,\n props = _objectWithoutPropertiesLoose(_ref2, _excluded);\n\n var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);\n return /*#__PURE__*/React.createElement(Tag, _extends({\n ref: ref,\n className: classNames(className, resolvedPrefix)\n }, props));\n });\n BsComponent.defaultProps = defaultProps;\n BsComponent.displayName = displayName;\n return BsComponent;\n}","import createWithBsPrefix from './createWithBsPrefix';\nexport default createWithBsPrefix('modal-body');","import React from 'react';\nvar ModalContext = /*#__PURE__*/React.createContext({\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onHide: function onHide() {}\n});\nexport default ModalContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"bsPrefix\", \"className\", \"contentClassName\", \"centered\", \"size\", \"children\", \"scrollable\"];\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nvar ModalDialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n className = _ref.className,\n contentClassName = _ref.contentClassName,\n centered = _ref.centered,\n size = _ref.size,\n children = _ref.children,\n scrollable = _ref.scrollable,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');\n var dialogClass = bsPrefix + \"-dialog\";\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, props, {\n ref: ref,\n className: classNames(dialogClass, className, size && bsPrefix + \"-\" + size, centered && dialogClass + \"-centered\", scrollable && dialogClass + \"-scrollable\")\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(bsPrefix + \"-content\", contentClassName)\n }, children));\n});\nModalDialog.displayName = 'ModalDialog';\nexport default ModalDialog;","import createWithBsPrefix from './createWithBsPrefix';\nexport default createWithBsPrefix('modal-footer');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"label\", \"onClick\", \"className\"];\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nvar propTypes = {\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func\n};\nvar defaultProps = {\n label: 'Close'\n};\nvar CloseButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var label = _ref.label,\n onClick = _ref.onClick,\n className = _ref.className,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"button\", _extends({\n ref: ref,\n type: \"button\",\n className: classNames('close', className),\n onClick: onClick\n }, props), /*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": \"true\"\n }, \"\\xD7\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"sr-only\"\n }, label));\n});\nCloseButton.displayName = 'CloseButton';\nCloseButton.propTypes = propTypes;\nCloseButton.defaultProps = defaultProps;\nexport default CloseButton;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"bsPrefix\", \"closeLabel\", \"closeButton\", \"onHide\", \"className\", \"children\"];\nimport classNames from 'classnames';\nimport React, { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport CloseButton from './CloseButton';\nimport ModalContext from './ModalContext';\nvar defaultProps = {\n closeLabel: 'Close',\n closeButton: false\n};\nvar ModalHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n closeLabel = _ref.closeLabel,\n closeButton = _ref.closeButton,\n onHide = _ref.onHide,\n className = _ref.className,\n children = _ref.children,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');\n var context = useContext(ModalContext);\n var handleClick = useEventCallback(function () {\n if (context) context.onHide();\n if (onHide) onHide();\n });\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref\n }, props, {\n className: classNames(className, bsPrefix)\n }), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {\n label: closeLabel,\n onClick: handleClick\n }));\n});\nModalHeader.displayName = 'ModalHeader';\nModalHeader.defaultProps = defaultProps;\nexport default ModalHeader;","import createWithBsPrefix from './createWithBsPrefix';\nimport divWithClassName from './divWithClassName';\nvar DivStyledAsH4 = divWithClassName('h4');\nexport default createWithBsPrefix('modal-title', {\n Component: DivStyledAsH4\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React from 'react';\nimport classNames from 'classnames';\nexport default (function (className) {\n return /*#__PURE__*/React.forwardRef(function (p, ref) {\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, p, {\n ref: ref,\n className: classNames(p.className, className)\n }));\n });\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _excluded = [\"bsPrefix\", \"className\", \"style\", \"dialogClassName\", \"contentClassName\", \"children\", \"dialogAs\", \"aria-labelledby\", \"aria-describedby\", \"aria-label\", \"show\", \"animation\", \"backdrop\", \"keyboard\", \"onEscapeKeyDown\", \"onShow\", \"onHide\", \"container\", \"autoFocus\", \"enforceFocus\", \"restoreFocus\", \"restoreFocusOptions\", \"onEntered\", \"onExit\", \"onExiting\", \"onEnter\", \"onEntering\", \"onExited\", \"backdropClassName\", \"manager\"];\nimport classNames from 'classnames';\nimport addEventListener from 'dom-helpers/addEventListener';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport removeEventListener from 'dom-helpers/removeEventListener';\nimport getScrollbarSize from 'dom-helpers/scrollbarSize';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useWillUnmount from '@restart/hooks/useWillUnmount';\nimport transitionEnd from 'dom-helpers/transitionEnd';\nimport React, { useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport BaseModal from 'react-overlays/Modal';\nimport warning from 'warning';\nimport BootstrapModalManager from './BootstrapModalManager';\nimport Fade from './Fade';\nimport ModalBody from './ModalBody';\nimport ModalContext from './ModalContext';\nimport ModalDialog from './ModalDialog';\nimport ModalFooter from './ModalFooter';\nimport ModalHeader from './ModalHeader';\nimport ModalTitle from './ModalTitle';\nimport { useBootstrapPrefix } from './ThemeProvider';\nvar manager;\nvar defaultProps = {\n show: false,\n backdrop: true,\n keyboard: true,\n autoFocus: true,\n enforceFocus: true,\n restoreFocus: true,\n animation: true,\n dialogAs: ModalDialog\n};\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nfunction DialogTransition(props) {\n return /*#__PURE__*/React.createElement(Fade, _extends({}, props, {\n timeout: null\n }));\n}\n\nfunction BackdropTransition(props) {\n return /*#__PURE__*/React.createElement(Fade, _extends({}, props, {\n timeout: null\n }));\n}\n/* eslint-enable no-use-before-define */\n\n\nvar Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n className = _ref.className,\n style = _ref.style,\n dialogClassName = _ref.dialogClassName,\n contentClassName = _ref.contentClassName,\n children = _ref.children,\n Dialog = _ref.dialogAs,\n ariaLabelledby = _ref['aria-labelledby'],\n ariaDescribedby = _ref['aria-describedby'],\n ariaLabel = _ref['aria-label'],\n show = _ref.show,\n animation = _ref.animation,\n backdrop = _ref.backdrop,\n keyboard = _ref.keyboard,\n onEscapeKeyDown = _ref.onEscapeKeyDown,\n onShow = _ref.onShow,\n onHide = _ref.onHide,\n container = _ref.container,\n autoFocus = _ref.autoFocus,\n enforceFocus = _ref.enforceFocus,\n restoreFocus = _ref.restoreFocus,\n restoreFocusOptions = _ref.restoreFocusOptions,\n onEntered = _ref.onEntered,\n onExit = _ref.onExit,\n onExiting = _ref.onExiting,\n onEnter = _ref.onEnter,\n onEntering = _ref.onEntering,\n onExited = _ref.onExited,\n backdropClassName = _ref.backdropClassName,\n propsManager = _ref.manager,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var _useState = useState({}),\n modalStyle = _useState[0],\n setStyle = _useState[1];\n\n var _useState2 = useState(false),\n animateStaticModal = _useState2[0],\n setAnimateStaticModal = _useState2[1];\n\n var waitingForMouseUpRef = useRef(false);\n var ignoreBackdropClickRef = useRef(false);\n var removeStaticModalAnimationRef = useRef(null); // TODO: what's this type\n\n var _useCallbackRef = useCallbackRef(),\n modal = _useCallbackRef[0],\n setModalRef = _useCallbackRef[1];\n\n var handleHide = useEventCallback(onHide);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');\n useImperativeHandle(ref, function () {\n return {\n get _modal() {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Accessing `_modal` is not supported and will be removed in a future release') : void 0;\n return modal;\n }\n\n };\n }, [modal]);\n var modalContext = useMemo(function () {\n return {\n onHide: handleHide\n };\n }, [handleHide]);\n\n function getModalManager() {\n if (propsManager) return propsManager;\n if (!manager) manager = new BootstrapModalManager();\n return manager;\n }\n\n function updateDialogStyle(node) {\n if (!canUseDOM) return;\n var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);\n var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;\n setStyle({\n paddingRight: containerIsOverflowing && !modalIsOverflowing ? getScrollbarSize() : undefined,\n paddingLeft: !containerIsOverflowing && modalIsOverflowing ? getScrollbarSize() : undefined\n });\n }\n\n var handleWindowResize = useEventCallback(function () {\n if (modal) {\n updateDialogStyle(modal.dialog);\n }\n });\n useWillUnmount(function () {\n removeEventListener(window, 'resize', handleWindowResize);\n\n if (removeStaticModalAnimationRef.current) {\n removeStaticModalAnimationRef.current();\n }\n }); // We prevent the modal from closing during a drag by detecting where the\n // the click originates from. If it starts in the modal and then ends outside\n // don't close.\n\n var handleDialogMouseDown = function handleDialogMouseDown() {\n waitingForMouseUpRef.current = true;\n };\n\n var handleMouseUp = function handleMouseUp(e) {\n if (waitingForMouseUpRef.current && modal && e.target === modal.dialog) {\n ignoreBackdropClickRef.current = true;\n }\n\n waitingForMouseUpRef.current = false;\n };\n\n var handleStaticModalAnimation = function handleStaticModalAnimation() {\n setAnimateStaticModal(true);\n removeStaticModalAnimationRef.current = transitionEnd(modal.dialog, function () {\n setAnimateStaticModal(false);\n });\n };\n\n var handleStaticBackdropClick = function handleStaticBackdropClick(e) {\n if (e.target !== e.currentTarget) {\n return;\n }\n\n handleStaticModalAnimation();\n };\n\n var handleClick = function handleClick(e) {\n if (backdrop === 'static') {\n handleStaticBackdropClick(e);\n return;\n }\n\n if (ignoreBackdropClickRef.current || e.target !== e.currentTarget) {\n ignoreBackdropClickRef.current = false;\n return;\n }\n\n onHide == null ? void 0 : onHide();\n };\n\n var handleEscapeKeyDown = function handleEscapeKeyDown(e) {\n if (!keyboard && backdrop === 'static') {\n // Call preventDefault to stop modal from closing in react-overlays,\n // then play our animation.\n e.preventDefault();\n handleStaticModalAnimation();\n } else if (keyboard && onEscapeKeyDown) {\n onEscapeKeyDown(e);\n }\n };\n\n var handleEnter = function handleEnter(node, isAppearing) {\n if (node) {\n node.style.display = 'block';\n updateDialogStyle(node);\n }\n\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n };\n\n var handleExit = function handleExit(node) {\n removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();\n onExit == null ? void 0 : onExit(node);\n };\n\n var handleEntering = function handleEntering(node, isAppearing) {\n onEntering == null ? void 0 : onEntering(node, isAppearing); // FIXME: This should work even when animation is disabled.\n\n addEventListener(window, 'resize', handleWindowResize);\n };\n\n var handleExited = function handleExited(node) {\n if (node) node.style.display = ''; // RHL removes it sometimes\n\n onExited == null ? void 0 : onExited(node); // FIXME: This should work even when animation is disabled.\n\n removeEventListener(window, 'resize', handleWindowResize);\n };\n\n var renderBackdrop = useCallback(function (backdropProps) {\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, backdropProps, {\n className: classNames(bsPrefix + \"-backdrop\", backdropClassName, !animation && 'show')\n }));\n }, [animation, backdropClassName, bsPrefix]);\n\n var baseModalStyle = _extends({}, style, modalStyle); // Sets `display` always block when `animation` is false\n\n\n if (!animation) {\n baseModalStyle.display = 'block';\n }\n\n var renderDialog = function renderDialog(dialogProps) {\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n role: \"dialog\"\n }, dialogProps, {\n style: baseModalStyle,\n className: classNames(className, bsPrefix, animateStaticModal && bsPrefix + \"-static\"),\n onClick: backdrop ? handleClick : undefined,\n onMouseUp: handleMouseUp,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-describedby\": ariaDescribedby\n }), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {\n onMouseDown: handleDialogMouseDown,\n className: dialogClassName,\n contentClassName: contentClassName\n }), children));\n };\n\n return /*#__PURE__*/React.createElement(ModalContext.Provider, {\n value: modalContext\n }, /*#__PURE__*/React.createElement(BaseModal, {\n show: show,\n ref: setModalRef,\n backdrop: backdrop,\n container: container,\n keyboard: true // Always set true - see handleEscapeKeyDown\n ,\n autoFocus: autoFocus,\n enforceFocus: enforceFocus,\n restoreFocus: restoreFocus,\n restoreFocusOptions: restoreFocusOptions,\n onEscapeKeyDown: handleEscapeKeyDown,\n onShow: onShow,\n onHide: onHide,\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: onEntered,\n onExit: handleExit,\n onExiting: onExiting,\n onExited: handleExited,\n manager: getModalManager(),\n containerClassName: bsPrefix + \"-open\",\n transition: animation ? DialogTransition : undefined,\n backdropTransition: animation ? BackdropTransition : undefined,\n renderBackdrop: renderBackdrop,\n renderDialog: renderDialog\n }));\n});\nModal.displayName = 'Modal';\nModal.defaultProps = defaultProps;\nModal.Body = ModalBody;\nModal.Header = ModalHeader;\nModal.Title = ModalTitle;\nModal.Footer = ModalFooter;\nModal.Dialog = ModalDialog;\nModal.TRANSITION_DURATION = 300;\nModal.BACKDROP_TRANSITION_DURATION = 150;\nexport default Modal;","import { useCallback, useMemo, useRef } from 'react';\nimport hasClass from 'dom-helpers/hasClass';\nimport { useBootstrapPrefix } from './ThemeProvider';\n\nfunction getMargins(element) {\n var styles = window.getComputedStyle(element);\n var top = parseFloat(styles.marginTop) || 0;\n var right = parseFloat(styles.marginRight) || 0;\n var bottom = parseFloat(styles.marginBottom) || 0;\n var left = parseFloat(styles.marginLeft) || 0;\n return {\n top: top,\n right: right,\n bottom: bottom,\n left: left\n };\n}\n\nexport default function usePopperMarginModifiers() {\n var overlayRef = useRef(null);\n var margins = useRef(null);\n var arrowMargins = useRef(null);\n var popoverClass = useBootstrapPrefix(undefined, 'popover');\n var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');\n var callback = useCallback(function (overlay) {\n if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;\n margins.current = getMargins(overlay);\n overlay.style.margin = '0';\n overlayRef.current = overlay;\n }, [popoverClass, dropdownMenuClass]);\n var offset = useMemo(function () {\n return {\n name: 'offset',\n options: {\n offset: function offset(_ref) {\n var placement = _ref.placement;\n if (!margins.current) return [0, 0];\n var _margins$current = margins.current,\n top = _margins$current.top,\n left = _margins$current.left,\n bottom = _margins$current.bottom,\n right = _margins$current.right;\n\n switch (placement.split('-')[0]) {\n case 'top':\n return [0, bottom];\n\n case 'left':\n return [0, right];\n\n case 'bottom':\n return [0, top];\n\n case 'right':\n return [0, left];\n\n default:\n return [0, 0];\n }\n }\n }\n };\n }, [margins]);\n var arrow = useMemo(function () {\n return {\n name: 'arrow',\n options: {\n padding: function padding() {\n // The options here are used for Popper 2.8.4 and up.\n // For earlier version, padding is handled in popoverArrowMargins below.\n if (!arrowMargins.current) {\n return 0;\n }\n\n var _arrowMargins$current = arrowMargins.current,\n top = _arrowMargins$current.top,\n right = _arrowMargins$current.right;\n var padding = top || right;\n return {\n top: padding,\n left: padding,\n right: padding,\n bottom: padding\n };\n }\n }\n };\n }, [arrowMargins]); // Converts popover arrow margin to arrow modifier padding\n\n var popoverArrowMargins = useMemo(function () {\n return {\n name: 'popoverArrowMargins',\n enabled: true,\n phase: 'main',\n fn: function fn() {\n return undefined;\n },\n requiresIfExists: ['arrow'],\n effect: function effect(_ref2) {\n var state = _ref2.state;\n\n if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass)) {\n return undefined;\n }\n\n if (state.modifiersData['arrow#persistent']) {\n // @popperjs/core <= 2.8.3 uses arrow#persistent to pass padding to arrow modifier.\n var _getMargins = getMargins(state.elements.arrow),\n top = _getMargins.top,\n right = _getMargins.right;\n\n var padding = top || right;\n state.modifiersData['arrow#persistent'].padding = {\n top: padding,\n left: padding,\n right: padding,\n bottom: padding\n };\n } else {\n // @popperjs/core >= 2.8.4 gets the padding from the arrow modifier options,\n // so we'll get the margins here, and let the arrow modifier above pass\n // it to popper.\n arrowMargins.current = getMargins(state.elements.arrow);\n }\n\n state.elements.arrow.style.margin = '0';\n return function () {\n if (state.elements.arrow) state.elements.arrow.style.margin = '';\n };\n }\n };\n }, [popoverClass]);\n return [callback, [offset, arrow, popoverArrowMargins]];\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"children\", \"transition\", \"popperConfig\"],\n _excluded2 = [\"props\", \"arrowProps\", \"show\", \"update\", \"forceUpdate\", \"placement\", \"state\"];\nimport React, { useRef } from 'react';\nimport classNames from 'classnames';\nimport BaseOverlay from 'react-overlays/Overlay';\nimport safeFindDOMNode from 'react-overlays/safeFindDOMNode';\nimport usePopperMarginModifiers from './usePopperMarginModifiers';\nimport Fade from './Fade';\nvar defaultProps = {\n transition: Fade,\n rootClose: false,\n show: false,\n placement: 'top'\n};\n\nfunction wrapRefs(props, arrowProps) {\n var ref = props.ref;\n var aRef = arrowProps.ref;\n\n props.ref = ref.__wrapped || (ref.__wrapped = function (r) {\n return ref(safeFindDOMNode(r));\n });\n\n arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = function (r) {\n return aRef(safeFindDOMNode(r));\n });\n}\n\nfunction Overlay(_ref) {\n var overlay = _ref.children,\n transition = _ref.transition,\n _ref$popperConfig = _ref.popperConfig,\n popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig,\n outerProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var popperRef = useRef({});\n\n var _usePopperMarginModif = usePopperMarginModifiers(),\n ref = _usePopperMarginModif[0],\n marginModifiers = _usePopperMarginModif[1];\n\n var actualTransition = transition === true ? Fade : transition || null;\n return /*#__PURE__*/React.createElement(BaseOverlay, _extends({}, outerProps, {\n ref: ref,\n popperConfig: _extends({}, popperConfig, {\n modifiers: marginModifiers.concat(popperConfig.modifiers || [])\n }),\n transition: actualTransition\n }), function (_ref2) {\n var _state$modifiersData$;\n\n var overlayProps = _ref2.props,\n arrowProps = _ref2.arrowProps,\n show = _ref2.show,\n update = _ref2.update,\n _ = _ref2.forceUpdate,\n placement = _ref2.placement,\n state = _ref2.state,\n props = _objectWithoutPropertiesLoose(_ref2, _excluded2);\n\n wrapRefs(overlayProps, arrowProps);\n var popper = Object.assign(popperRef.current, {\n state: state,\n scheduleUpdate: update,\n placement: placement,\n outOfBoundaries: (state == null ? void 0 : (_state$modifiersData$ = state.modifiersData.hide) == null ? void 0 : _state$modifiersData$.isReferenceHidden) || false\n });\n if (typeof overlay === 'function') return overlay(_extends({}, props, overlayProps, {\n placement: placement,\n show: show\n }, !transition && show && {\n className: 'show'\n }, {\n popper: popper,\n arrowProps: arrowProps\n }));\n return /*#__PURE__*/React.cloneElement(overlay, _extends({}, props, overlayProps, {\n placement: placement,\n arrowProps: arrowProps,\n popper: popper,\n className: classNames(overlay.props.className, !transition && show && 'show'),\n style: _extends({}, overlay.props.style, overlayProps.style)\n }));\n });\n}\n\nOverlay.defaultProps = defaultProps;\nexport default Overlay;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _excluded = [\"trigger\", \"overlay\", \"children\", \"popperConfig\", \"show\", \"defaultShow\", \"onToggle\", \"delay\", \"placement\", \"flip\"];\nimport contains from 'dom-helpers/contains';\nimport React, { cloneElement, useCallback, useRef } from 'react';\nimport useTimeout from '@restart/hooks/useTimeout';\nimport safeFindDOMNode from 'react-overlays/safeFindDOMNode';\nimport warning from 'warning';\nimport { useUncontrolledProp } from 'uncontrollable';\nimport Overlay from './Overlay';\n\nvar RefHolder = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(RefHolder, _React$Component);\n\n function RefHolder() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = RefHolder.prototype;\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return RefHolder;\n}(React.Component);\n\nfunction normalizeDelay(delay) {\n return delay && typeof delay === 'object' ? delay : {\n show: delay,\n hide: delay\n };\n} // Simple implementation of mouseEnter and mouseLeave.\n// React's built version is broken: https://github.com/facebook/react/issues/4251\n// for cases when the trigger is disabled and mouseOut/Over can cause flicker\n// moving from one child element to another.\n\n\nfunction handleMouseOverOut( // eslint-disable-next-line @typescript-eslint/no-shadow\nhandler, args, relatedNative) {\n var e = args[0];\n var target = e.currentTarget;\n var related = e.relatedTarget || e.nativeEvent[relatedNative];\n\n if ((!related || related !== target) && !contains(target, related)) {\n handler.apply(void 0, args);\n }\n}\n\nvar defaultProps = {\n defaultShow: false,\n trigger: ['hover', 'focus']\n};\n\nfunction OverlayTrigger(_ref) {\n var trigger = _ref.trigger,\n overlay = _ref.overlay,\n children = _ref.children,\n _ref$popperConfig = _ref.popperConfig,\n popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig,\n propsShow = _ref.show,\n _ref$defaultShow = _ref.defaultShow,\n defaultShow = _ref$defaultShow === void 0 ? false : _ref$defaultShow,\n onToggle = _ref.onToggle,\n propsDelay = _ref.delay,\n placement = _ref.placement,\n _ref$flip = _ref.flip,\n flip = _ref$flip === void 0 ? placement && placement.indexOf('auto') !== -1 : _ref$flip,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var triggerNodeRef = useRef(null);\n var timeout = useTimeout();\n var hoverStateRef = useRef('');\n\n var _useUncontrolledProp = useUncontrolledProp(propsShow, defaultShow, onToggle),\n show = _useUncontrolledProp[0],\n setShow = _useUncontrolledProp[1];\n\n var delay = normalizeDelay(propsDelay);\n\n var _ref2 = typeof children !== 'function' ? React.Children.only(children).props : {},\n onFocus = _ref2.onFocus,\n onBlur = _ref2.onBlur,\n onClick = _ref2.onClick;\n\n var getTarget = useCallback(function () {\n return safeFindDOMNode(triggerNodeRef.current);\n }, []);\n var handleShow = useCallback(function () {\n timeout.clear();\n hoverStateRef.current = 'show';\n\n if (!delay.show) {\n setShow(true);\n return;\n }\n\n timeout.set(function () {\n if (hoverStateRef.current === 'show') setShow(true);\n }, delay.show);\n }, [delay.show, setShow, timeout]);\n var handleHide = useCallback(function () {\n timeout.clear();\n hoverStateRef.current = 'hide';\n\n if (!delay.hide) {\n setShow(false);\n return;\n }\n\n timeout.set(function () {\n if (hoverStateRef.current === 'hide') setShow(false);\n }, delay.hide);\n }, [delay.hide, setShow, timeout]);\n var handleFocus = useCallback(function () {\n handleShow();\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n onFocus == null ? void 0 : onFocus.apply(void 0, args);\n }, [handleShow, onFocus]);\n var handleBlur = useCallback(function () {\n handleHide();\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n onBlur == null ? void 0 : onBlur.apply(void 0, args);\n }, [handleHide, onBlur]);\n var handleClick = useCallback(function () {\n setShow(!show);\n if (onClick) onClick.apply(void 0, arguments);\n }, [onClick, setShow, show]);\n var handleMouseOver = useCallback(function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n handleMouseOverOut(handleShow, args, 'fromElement');\n }, [handleShow]);\n var handleMouseOut = useCallback(function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n handleMouseOverOut(handleHide, args, 'toElement');\n }, [handleHide]);\n var triggers = trigger == null ? [] : [].concat(trigger);\n var triggerProps = {};\n\n if (triggers.indexOf('click') !== -1) {\n triggerProps.onClick = handleClick;\n }\n\n if (triggers.indexOf('focus') !== -1) {\n triggerProps.onFocus = handleFocus;\n triggerProps.onBlur = handleBlur;\n }\n\n if (triggers.indexOf('hover') !== -1) {\n process.env.NODE_ENV !== \"production\" ? warning(triggers.length > 1, '[react-bootstrap] Specifying only the `\"hover\"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `\"focus\"` trigger so that touch and keyboard only users can see the overlay as well.') : void 0;\n triggerProps.onMouseOver = handleMouseOver;\n triggerProps.onMouseOut = handleMouseOut;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, typeof children === 'function' ? children(_extends({}, triggerProps, {\n ref: triggerNodeRef\n })) : /*#__PURE__*/React.createElement(RefHolder, {\n ref: triggerNodeRef\n }, /*#__PURE__*/cloneElement(children, triggerProps)), /*#__PURE__*/React.createElement(Overlay, _extends({}, props, {\n show: show,\n onHide: handleHide,\n flip: flip,\n placement: placement,\n popperConfig: popperConfig,\n target: getTarget\n }), overlay));\n}\n\nOverlayTrigger.defaultProps = defaultProps;\nexport default OverlayTrigger;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React, { useContext, useMemo } from 'react';\nvar ThemeContext = /*#__PURE__*/React.createContext({});\nvar Consumer = ThemeContext.Consumer,\n Provider = ThemeContext.Provider;\n\nfunction ThemeProvider(_ref) {\n var prefixes = _ref.prefixes,\n children = _ref.children;\n var copiedPrefixes = useMemo(function () {\n return _extends({}, prefixes);\n }, [prefixes]);\n return /*#__PURE__*/React.createElement(Provider, {\n value: copiedPrefixes\n }, children);\n}\n\nexport function useBootstrapPrefix(prefix, defaultPrefix) {\n var prefixes = useContext(ThemeContext);\n return prefix || prefixes[defaultPrefix] || defaultPrefix;\n}\n\nfunction createBootstrapComponent(Component, opts) {\n if (typeof opts === 'string') opts = {\n prefix: opts\n };\n var isClassy = Component.prototype && Component.prototype.isReactComponent; // If it's a functional component make sure we don't break it with a ref\n\n var _opts = opts,\n prefix = _opts.prefix,\n _opts$forwardRefAs = _opts.forwardRefAs,\n forwardRefAs = _opts$forwardRefAs === void 0 ? isClassy ? 'ref' : 'innerRef' : _opts$forwardRefAs;\n var Wrapped = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {\n var props = _extends({}, _ref2);\n\n props[forwardRefAs] = ref;\n var bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);\n return /*#__PURE__*/React.createElement(Component, _extends({}, props, {\n bsPrefix: bsPrefix\n }));\n });\n Wrapped.displayName = \"Bootstrap(\" + (Component.displayName || Component.name) + \")\";\n return Wrapped;\n}\n\nexport { createBootstrapComponent, Consumer as ThemeConsumer };\nexport default ThemeProvider;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"bsPrefix\", \"placement\", \"className\", \"style\", \"children\", \"arrowProps\", \"popper\", \"show\"];\nimport classNames from 'classnames';\nimport React from 'react';\nimport isRequiredForA11y from 'prop-types-extra/lib/isRequiredForA11y';\nimport { useBootstrapPrefix } from './ThemeProvider';\nvar defaultProps = {\n placement: 'right'\n};\nvar Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n placement = _ref.placement,\n className = _ref.className,\n style = _ref.style,\n children = _ref.children,\n arrowProps = _ref.arrowProps,\n _ = _ref.popper,\n _2 = _ref.show,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');\n\n var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],\n primaryPlacement = _ref2[0];\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref,\n style: style,\n role: \"tooltip\",\n \"x-placement\": primaryPlacement,\n className: classNames(className, bsPrefix, \"bs-tooltip-\" + primaryPlacement)\n }, props), /*#__PURE__*/React.createElement(\"div\", _extends({\n className: \"arrow\"\n }, arrowProps)), /*#__PURE__*/React.createElement(\"div\", {\n className: bsPrefix + \"-inner\"\n }, children));\n});\nTooltip.defaultProps = defaultProps;\nTooltip.displayName = 'Tooltip';\nexport default Tooltip;","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar fast_deep_equal_1 = __importDefault(require(\"fast-deep-equal\"));\nvar PropTypes = __importStar(require(\"prop-types\"));\nfunction normalizeHtml(str) {\n return str && str.replace(/ |\\u202F|\\u00A0/g, ' ');\n}\nfunction replaceCaret(el) {\n // Place the caret at the end of the element\n var target = document.createTextNode('');\n el.appendChild(target);\n // do not move caret if element was not focused\n var isTargetFocused = document.activeElement === el;\n if (target !== null && target.nodeValue !== null && isTargetFocused) {\n var sel = window.getSelection();\n if (sel !== null) {\n var range = document.createRange();\n range.setStart(target, target.nodeValue.length);\n range.collapse(true);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n if (el instanceof HTMLElement)\n el.focus();\n }\n}\n/**\n * A simple component for an html element with editable contents.\n */\nvar ContentEditable = /** @class */ (function (_super) {\n __extends(ContentEditable, _super);\n function ContentEditable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.lastHtml = _this.props.html;\n _this.el = typeof _this.props.innerRef === 'function' ? { current: null } : React.createRef();\n _this.getEl = function () { return (_this.props.innerRef && typeof _this.props.innerRef !== 'function' ? _this.props.innerRef : _this.el).current; };\n _this.emitChange = function (originalEvt) {\n var el = _this.getEl();\n if (!el)\n return;\n var html = el.innerHTML;\n if (_this.props.onChange && html !== _this.lastHtml) {\n // Clone event with Object.assign to avoid\n // \"Cannot assign to read only property 'target' of object\"\n var evt = Object.assign({}, originalEvt, {\n target: {\n value: html\n }\n });\n _this.props.onChange(evt);\n }\n _this.lastHtml = html;\n };\n return _this;\n }\n ContentEditable.prototype.render = function () {\n var _this = this;\n var _a = this.props, tagName = _a.tagName, html = _a.html, innerRef = _a.innerRef, props = __rest(_a, [\"tagName\", \"html\", \"innerRef\"]);\n return React.createElement(tagName || 'div', __assign(__assign({}, props), { ref: typeof innerRef === 'function' ? function (current) {\n innerRef(current);\n _this.el.current = current;\n } : innerRef || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: html } }), this.props.children);\n };\n ContentEditable.prototype.shouldComponentUpdate = function (nextProps) {\n var props = this.props;\n var el = this.getEl();\n // We need not rerender if the change of props simply reflects the user's edits.\n // Rerendering in this case would make the cursor/caret jump\n // Rerender if there is no element yet... (somehow?)\n if (!el)\n return true;\n // ...or if html really changed... (programmatically, not by user edit)\n if (normalizeHtml(nextProps.html) !== normalizeHtml(el.innerHTML)) {\n return true;\n }\n // Handle additional properties\n return props.disabled !== nextProps.disabled ||\n props.tagName !== nextProps.tagName ||\n props.className !== nextProps.className ||\n props.innerRef !== nextProps.innerRef ||\n !fast_deep_equal_1.default(props.style, nextProps.style);\n };\n ContentEditable.prototype.componentDidUpdate = function () {\n var el = this.getEl();\n if (!el)\n return;\n // Perhaps React (whose VDOM gets outdated because we often prevent\n // rerendering) did not update the DOM. So we update it manually now.\n if (this.props.html !== el.innerHTML) {\n el.innerHTML = this.lastHtml = this.props.html;\n }\n replaceCaret(el);\n };\n ContentEditable.propTypes = {\n html: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n tagName: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n innerRef: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ])\n };\n return ContentEditable;\n}(React.Component));\nexports.default = ContentEditable;\n","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a)\n , arrB = isArray(b)\n , i\n , length\n , key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length)\n return false;\n\n for (i = length; i-- !== 0;)\n if (!hasProp.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n return a!==a && b!==b;\n};\n","/** @license React v16.9.0\n * react-dom-server.browser.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var l=require(\"object-assign\"),m=require(\"react\");function r(a){for(var b=a.message,d=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+b,c=1;cG;G++)E[G]=G+1;E[15]=0;\nvar na=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,oa=Object.prototype.hasOwnProperty,pa={},qa={};\nfunction ra(a){if(oa.call(qa,a))return!0;if(oa.call(pa,a))return!1;if(na.test(a))return qa[a]=!0;pa[a]=!0;return!1}function sa(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction ta(a,b,d,c){if(null===b||\"undefined\"===typeof b||sa(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function I(a,b,d,c,f,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=e}var J={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){J[a]=new I(a,0,!1,a,null,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];J[b]=new I(b,1,!1,a[1],null,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){J[a]=new I(a,2,!1,a.toLowerCase(),null,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){J[a]=new I(a,2,!1,a,null,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){J[a]=new I(a,3,!1,a.toLowerCase(),null,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){J[a]=new I(a,3,!0,a,null,!1)});[\"capture\",\"download\"].forEach(function(a){J[a]=new I(a,4,!1,a,null,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){J[a]=new I(a,6,!1,a,null,!1)});[\"rowSpan\",\"start\"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null,!1)});var K=/[\\-:]([a-z])/g;function L(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(K,\nL);J[b]=new I(b,1,!1,a,null,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!1)});\nJ.xlinkHref=new I(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!0)});var ua=/[\"'&<>]/;\nfunction M(a){if(\"boolean\"===typeof a||\"number\"===typeof a)return\"\"+a;a=\"\"+a;var b=ua.exec(a);if(b){var d=\"\",c,f=0;for(c=b.index;cU))throw r(Error(301));if(a===N)if(R=!0,a={action:d,next:null},null===T&&(T=new Map),d=T.get(b),void 0===d)T.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function Ba(){}\nvar X=0,Ca={readContext:function(a){var b=X;D(a,b);return a[b]},useContext:function(a){V();var b=X;D(a,b);return a[b]},useMemo:function(a,b){N=V();P=W();b=void 0===b?null:b;if(null!==P){var d=P.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f=e))throw r(Error(304));var h=new Uint16Array(e);h.set(f);E=h;E[0]=c+1;for(f=c;f=g.children.length){var H=g.footer;\"\"!==H&&(this.previousWasTextNode=!1);this.stack.pop();if(\"select\"===g.type)this.currentSelectValue=null;else if(null!=g.type&&null!=g.type.type&&g.type.type.$$typeof===x)this.popProvider(g.type);else if(g.type===A){this.suspenseDepth--;var F=f.pop();if(e){e=!1;var n=g.fallbackFrame;if(!n)throw r(Error(303));this.stack.push(n);\nf[this.suspenseDepth]+=\"\\x3c!--$!--\\x3e\";continue}else f[this.suspenseDepth]+=F}f[this.suspenseDepth]+=H}else{var w=g.children[g.childIndex++],p=\"\";try{p+=this.render(w,g.context,g.domNamespace)}catch(k){throw k;}finally{}f.length<=this.suspenseDepth&&f.push(\"\");f[this.suspenseDepth]+=p}}return f[0]}finally{Ka.current=c,X=b}};a.prototype.render=function(a,d,c){if(\"string\"===typeof a||\"number\"===typeof a){c=\"\"+a;if(\"\"===c)return\"\";if(this.makeStaticMarkup)return M(c);if(this.previousWasTextNode)return\"\\x3c!-- --\\x3e\"+\nM(c);this.previousWasTextNode=!0;return M(c)}d=Ta(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return\"\";if(!m.isValidElement(a)){if(null!=a&&null!=a.$$typeof){c=a.$$typeof;if(c===aa)throw r(Error(257));throw r(Error(258),c.toString());}a=Z(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:\"\"});return\"\"}var b=a.type;if(\"string\"===typeof b)return this.renderDOM(a,d,c);switch(b){case ba:case ea:case ca:case ha:case v:return a=Z(a.props.children),this.stack.push({type:null,\ndomNamespace:c,children:a,childIndex:0,context:d,footer:\"\"}),\"\";case A:throw r(Error(294));}if(\"object\"===typeof b&&null!==b)switch(b.$$typeof){case fa:N={};var e=b.render(a.props,a.ref);e=xa(b.render,a.props,e,a.ref);e=Z(e);this.stack.push({type:null,domNamespace:c,children:e,childIndex:0,context:d,footer:\"\"});return\"\";case ia:return a=[m.createElement(b.type,l({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:\"\"}),\"\";case x:return b=Z(a.props.children),\nc={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:\"\"},this.pushProvider(a),this.stack.push(c),\"\";case da:b=a.type;e=a.props;var h=this.threadID;D(b,h);b=Z(e.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:\"\"});return\"\";case ka:throw r(Error(338));case ja:throw r(Error(295));}throw r(Error(130),null==b?b:typeof b,\"\");};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===Da.html&&Ea(b);if(!Na.hasOwnProperty(b)){if(!Ma.test(b))throw r(Error(65),\nb);Na[b]=!0}var e=a.props;if(\"input\"===b)e=l({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:e.defaultChecked});else if(\"textarea\"===b){var h=e.value;if(null==h){h=e.defaultValue;var g=e.children;if(null!=g){if(null!=h)throw r(Error(92));if(Array.isArray(g)){if(!(1>=g.length))throw r(Error(93));g=g[0]}h=\"\"+g}null==h&&(h=\"\")}e=l({},e,{value:void 0,children:\"\"+h})}else if(\"select\"===b)this.currentSelectValue=null!=\ne.value?e.value:e.defaultValue,e=l({},e,{value:void 0});else if(\"option\"===b){g=this.currentSelectValue;var H=Pa(e.children);if(null!=g){var F=null!=e.value?e.value+\"\":H;h=!1;if(Array.isArray(g))for(var n=0;n\":(z+=\">\",h=\"\");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,\"string\"===typeof g||\"number\"===typeof g){g=M(g);break a}g=null}null!=g?(e=[],La[b]&&\"\\n\"===g.charAt(0)&&(z+=\"\\n\"),z+=g):e=Z(e.children);a=a.type;c=null==c||\"http://www.w3.org/1999/xhtml\"===c?Ea(a):\"http://www.w3.org/2000/svg\"===c&&\"foreignObject\"===a?\"http://www.w3.org/1999/xhtml\":\nc;this.stack.push({domNamespace:c,type:b,children:e,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return z};return a}(),Va={renderToString:function(a){a=new Ua(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Ua(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw r(Error(207));},renderToStaticNodeStream:function(){throw r(Error(208));},version:\"16.9.0\"},Wa={default:Va},Xa=Wa&&Va||\nWa;module.exports=Xa.default||Xa;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-dom-server.browser.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom-server.browser.development.js');\n}\n","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', './react-swipe'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('./react-swipe'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.reactSwipe);\n global.index = mod.exports;\n }\n})(this, function (exports, _reactSwipe) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _reactSwipe2 = _interopRequireDefault(_reactSwipe);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n exports.default = _reactSwipe2.default;\n});","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'prop-types'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('prop-types'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.propTypes);\n global.reactSwipe = mod.exports;\n }\n})(this, function (exports, _react, _propTypes) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.setHasSupportToCaptureOption = setHasSupportToCaptureOption;\n\n var _react2 = _interopRequireDefault(_react);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n function _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var supportsCaptureOption = false;\n function setHasSupportToCaptureOption(hasSupport) {\n supportsCaptureOption = hasSupport;\n }\n\n try {\n addEventListener('test', null, Object.defineProperty({}, 'capture', { get: function get() {\n setHasSupportToCaptureOption(true);\n } }));\n } catch (e) {} // eslint-disable-line no-empty\n\n function getSafeEventHandlerOpts() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { capture: true };\n\n return supportsCaptureOption ? options : options.capture;\n }\n\n /**\n * [getPosition returns a position element that works for mouse or touch events]\n * @param {[Event]} event [the received event]\n * @return {[Object]} [x and y coords]\n */\n function getPosition(event) {\n if ('touches' in event) {\n var _event$touches$ = event.touches[0],\n pageX = _event$touches$.pageX,\n pageY = _event$touches$.pageY;\n\n return { x: pageX, y: pageY };\n }\n\n var screenX = event.screenX,\n screenY = event.screenY;\n\n return { x: screenX, y: screenY };\n }\n\n var ReactSwipe = function (_Component) {\n _inherits(ReactSwipe, _Component);\n\n function ReactSwipe() {\n var _ref;\n\n _classCallCheck(this, ReactSwipe);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var _this = _possibleConstructorReturn(this, (_ref = ReactSwipe.__proto__ || Object.getPrototypeOf(ReactSwipe)).call.apply(_ref, [this].concat(args)));\n\n _this._handleSwipeStart = _this._handleSwipeStart.bind(_this);\n _this._handleSwipeMove = _this._handleSwipeMove.bind(_this);\n _this._handleSwipeEnd = _this._handleSwipeEnd.bind(_this);\n\n _this._onMouseDown = _this._onMouseDown.bind(_this);\n _this._onMouseMove = _this._onMouseMove.bind(_this);\n _this._onMouseUp = _this._onMouseUp.bind(_this);\n\n _this._setSwiperRef = _this._setSwiperRef.bind(_this);\n return _this;\n }\n\n _createClass(ReactSwipe, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.swiper) {\n this.swiper.addEventListener('touchmove', this._handleSwipeMove, getSafeEventHandlerOpts({\n capture: true,\n passive: false\n }));\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.swiper) {\n this.swiper.removeEventListener('touchmove', this._handleSwipeMove, getSafeEventHandlerOpts({\n capture: true,\n passive: false\n }));\n }\n }\n }, {\n key: '_onMouseDown',\n value: function _onMouseDown(event) {\n if (!this.props.allowMouseEvents) {\n return;\n }\n\n this.mouseDown = true;\n\n document.addEventListener('mouseup', this._onMouseUp);\n document.addEventListener('mousemove', this._onMouseMove);\n\n this._handleSwipeStart(event);\n }\n }, {\n key: '_onMouseMove',\n value: function _onMouseMove(event) {\n if (!this.mouseDown) {\n return;\n }\n\n this._handleSwipeMove(event);\n }\n }, {\n key: '_onMouseUp',\n value: function _onMouseUp(event) {\n this.mouseDown = false;\n\n document.removeEventListener('mouseup', this._onMouseUp);\n document.removeEventListener('mousemove', this._onMouseMove);\n\n this._handleSwipeEnd(event);\n }\n }, {\n key: '_handleSwipeStart',\n value: function _handleSwipeStart(event) {\n var _getPosition = getPosition(event),\n x = _getPosition.x,\n y = _getPosition.y;\n\n this.moveStart = { x: x, y: y };\n this.props.onSwipeStart(event);\n }\n }, {\n key: '_handleSwipeMove',\n value: function _handleSwipeMove(event) {\n if (!this.moveStart) {\n return;\n }\n\n var _getPosition2 = getPosition(event),\n x = _getPosition2.x,\n y = _getPosition2.y;\n\n var deltaX = x - this.moveStart.x;\n var deltaY = y - this.moveStart.y;\n this.moving = true;\n\n // handling the responsability of cancelling the scroll to\n // the component handling the event\n var shouldPreventDefault = this.props.onSwipeMove({\n x: deltaX,\n y: deltaY\n }, event);\n\n if (shouldPreventDefault && event.cancelable) {\n event.preventDefault();\n }\n\n this.movePosition = { deltaX: deltaX, deltaY: deltaY };\n }\n }, {\n key: '_handleSwipeEnd',\n value: function _handleSwipeEnd(event) {\n this.props.onSwipeEnd(event);\n\n var tolerance = this.props.tolerance;\n\n\n if (this.moving && this.movePosition) {\n if (this.movePosition.deltaX < -tolerance) {\n this.props.onSwipeLeft(1, event);\n } else if (this.movePosition.deltaX > tolerance) {\n this.props.onSwipeRight(1, event);\n }\n if (this.movePosition.deltaY < -tolerance) {\n this.props.onSwipeUp(1, event);\n } else if (this.movePosition.deltaY > tolerance) {\n this.props.onSwipeDown(1, event);\n }\n }\n\n this.moveStart = null;\n this.moving = false;\n this.movePosition = null;\n }\n }, {\n key: '_setSwiperRef',\n value: function _setSwiperRef(node) {\n this.swiper = node;\n this.props.innerRef(node);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n tagName = _props.tagName,\n className = _props.className,\n style = _props.style,\n children = _props.children,\n allowMouseEvents = _props.allowMouseEvents,\n onSwipeUp = _props.onSwipeUp,\n onSwipeDown = _props.onSwipeDown,\n onSwipeLeft = _props.onSwipeLeft,\n onSwipeRight = _props.onSwipeRight,\n onSwipeStart = _props.onSwipeStart,\n onSwipeMove = _props.onSwipeMove,\n onSwipeEnd = _props.onSwipeEnd,\n innerRef = _props.innerRef,\n tolerance = _props.tolerance,\n props = _objectWithoutProperties(_props, ['tagName', 'className', 'style', 'children', 'allowMouseEvents', 'onSwipeUp', 'onSwipeDown', 'onSwipeLeft', 'onSwipeRight', 'onSwipeStart', 'onSwipeMove', 'onSwipeEnd', 'innerRef', 'tolerance']);\n\n return _react2.default.createElement(\n this.props.tagName,\n _extends({\n ref: this._setSwiperRef,\n onMouseDown: this._onMouseDown,\n onTouchStart: this._handleSwipeStart,\n onTouchEnd: this._handleSwipeEnd,\n className: className,\n style: style\n }, props),\n children\n );\n }\n }]);\n\n return ReactSwipe;\n }(_react.Component);\n\n ReactSwipe.displayName = 'ReactSwipe';\n ReactSwipe.propTypes = {\n tagName: _propTypes2.default.string,\n className: _propTypes2.default.string,\n style: _propTypes2.default.object,\n children: _propTypes2.default.node,\n allowMouseEvents: _propTypes2.default.bool,\n onSwipeUp: _propTypes2.default.func,\n onSwipeDown: _propTypes2.default.func,\n onSwipeLeft: _propTypes2.default.func,\n onSwipeRight: _propTypes2.default.func,\n onSwipeStart: _propTypes2.default.func,\n onSwipeMove: _propTypes2.default.func,\n onSwipeEnd: _propTypes2.default.func,\n innerRef: _propTypes2.default.func,\n tolerance: _propTypes2.default.number.isRequired\n };\n ReactSwipe.defaultProps = {\n tagName: 'div',\n allowMouseEvents: false,\n onSwipeUp: function onSwipeUp() {},\n onSwipeDown: function onSwipeDown() {},\n onSwipeLeft: function onSwipeLeft() {},\n onSwipeRight: function onSwipeRight() {},\n onSwipeStart: function onSwipeStart() {},\n onSwipeMove: function onSwipeMove() {},\n onSwipeEnd: function onSwipeEnd() {},\n innerRef: function innerRef() {},\n\n tolerance: 0\n };\n exports.default = ReactSwipe;\n});","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = HtmlParser;\n\nvar _htmlparser = require('htmlparser2');\n\nvar _htmlparser2 = _interopRequireDefault(_htmlparser);\n\nvar _processNodes = require('./processNodes');\n\nvar _processNodes2 = _interopRequireDefault(_processNodes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Parses a HTML string and returns a list of React components generated from it\n *\n * @param {String} html The HTML to convert into React component\n * @param {Object} options Options to pass\n * @returns {Array} List of top level React elements\n */\nfunction HtmlParser(html) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$decodeEntities = _ref.decodeEntities,\n decodeEntities = _ref$decodeEntities === undefined ? true : _ref$decodeEntities,\n transform = _ref.transform,\n _ref$preprocessNodes = _ref.preprocessNodes,\n preprocessNodes = _ref$preprocessNodes === undefined ? function (nodes) {\n return nodes;\n } : _ref$preprocessNodes;\n\n var nodes = preprocessNodes(_htmlparser2.default.parseDOM(html, { decodeEntities: decodeEntities }));\n return (0, _processNodes2.default)(nodes, transform);\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = convertNodeToElement;\n\nvar _elementTypes = require('./elementTypes');\n\nvar _elementTypes2 = _interopRequireDefault(_elementTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Converts a htmlparser2 node to a React element\n *\n * @param {Object} node The htmlparser2 node to convert\n * @param {Number} index The index of the current node\n * @param {Function} transform Transform function to apply to children of the node\n * @returns {React.Element}\n */\nfunction convertNodeToElement(node, index, transform) {\n return _elementTypes2.default[node.type](node, index, transform);\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * List of boolean attributes\n * These attributes should have their React attribute value set to be the same as their name\n * E.g. = \n * = \n * = \n * @type {Array}\n */\nexports.default = ['allowfullScreen', 'async', 'autoplay', 'capture', 'checked', 'controls', 'default', 'defer', 'disabled', 'formnovalidate', 'hidden', 'loop', 'multiple', 'muted', 'novalidate', 'open', 'playsinline', 'readonly', 'required', 'reversed', 'scoped', 'seamless', 'selected', 'itemscope'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * Mapping of standard HTML attributes to their React counterparts\n * List taken and reversed from react/src/renderers/dom/shared/HTMLDOMPropertyConfig.js\n * https://github.com/facebook/react/blob/c9c3c339b757682f1154f1c915eb55e6a8766933/src/renderers/dom/shared/HTMLDOMPropertyConfig.js\n * @type {Object}\n */\nexports.default = {\n /**\n * Standard Properties\n */\n accept: 'accept',\n 'accept-charset': 'acceptCharset',\n accesskey: 'accessKey',\n action: 'action',\n allowfullscreen: 'allowFullScreen',\n allowtransparency: 'allowTransparency',\n alt: 'alt',\n as: 'as',\n async: 'async',\n autocomplete: 'autoComplete',\n autoplay: 'autoPlay',\n capture: 'capture',\n cellpadding: 'cellPadding',\n cellspacing: 'cellSpacing',\n charset: 'charSet',\n challenge: 'challenge',\n checked: 'checked',\n cite: 'cite',\n classid: 'classID',\n class: 'className',\n cols: 'cols',\n colspan: 'colSpan',\n content: 'content',\n contenteditable: 'contentEditable',\n contextmenu: 'contextMenu',\n controls: 'controls',\n controlsList: 'controlsList',\n coords: 'coords',\n crossorigin: 'crossOrigin',\n data: 'data',\n datetime: 'dateTime',\n default: 'default',\n defer: 'defer',\n dir: 'dir',\n disabled: 'disabled',\n download: 'download',\n draggable: 'draggable',\n enctype: 'encType',\n form: 'form',\n formaction: 'formAction',\n formenctype: 'formEncType',\n formmethod: 'formMethod',\n formnovalidate: 'formNoValidate',\n formtarget: 'formTarget',\n frameborder: 'frameBorder',\n headers: 'headers',\n height: 'height',\n hidden: 'hidden',\n high: 'high',\n href: 'href',\n hreflang: 'hrefLang',\n for: 'htmlFor',\n 'http-equiv': 'httpEquiv',\n icon: 'icon',\n id: 'id',\n inputmode: 'inputMode',\n integrity: 'integrity',\n is: 'is',\n keyparams: 'keyParams',\n keytype: 'keyType',\n kind: 'kind',\n label: 'label',\n lang: 'lang',\n list: 'list',\n loop: 'loop',\n low: 'low',\n manifest: 'manifest',\n marginheight: 'marginHeight',\n marginwidth: 'marginWidth',\n max: 'max',\n maxlength: 'maxLength',\n media: 'media',\n mediagroup: 'mediaGroup',\n method: 'method',\n min: 'min',\n minlength: 'minLength',\n multiple: 'multiple',\n muted: 'muted',\n name: 'name',\n nonce: 'nonce',\n novalidate: 'noValidate',\n open: 'open',\n optimum: 'optimum',\n pattern: 'pattern',\n placeholder: 'placeholder',\n playsinline: 'playsInline',\n poster: 'poster',\n preload: 'preload',\n profile: 'profile',\n radiogroup: 'radioGroup',\n readonly: 'readOnly',\n referrerpolicy: 'referrerPolicy',\n rel: 'rel',\n required: 'required',\n reversed: 'reversed',\n role: 'role',\n rows: 'rows',\n rowspan: 'rowSpan',\n sandbox: 'sandbox',\n scope: 'scope',\n scoped: 'scoped',\n scrolling: 'scrolling',\n seamless: 'seamless',\n selected: 'selected',\n shape: 'shape',\n size: 'size',\n sizes: 'sizes',\n slot: 'slot',\n span: 'span',\n spellcheck: 'spellCheck',\n src: 'src',\n srcdoc: 'srcDoc',\n srclang: 'srcLang',\n srcset: 'srcSet',\n start: 'start',\n step: 'step',\n style: 'style',\n summary: 'summary',\n tabindex: 'tabIndex',\n target: 'target',\n title: 'title',\n type: 'type',\n usemap: 'useMap',\n value: 'value',\n width: 'width',\n wmode: 'wmode',\n wrap: 'wrap',\n /**\n * RDFa Properties\n */\n about: 'about',\n datatype: 'datatype',\n inlist: 'inlist',\n prefix: 'prefix',\n property: 'property',\n resource: 'resource',\n typeof: 'typeof',\n vocab: 'vocab',\n /**\n * Non-standard Properties\n */\n autocapitalize: 'autoCapitalize',\n autocorrect: 'autoCorrect',\n autosave: 'autoSave',\n color: 'color',\n itemprop: 'itemProp',\n itemscope: 'itemScope',\n itemtype: 'itemType',\n itemid: 'itemID',\n itemref: 'itemRef',\n results: 'results',\n security: 'security',\n unselectable: 'unselectable'\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * List of void elements\n * These elements are not allowed to have children\n * @type {Array}\n */\nexports.default = ['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = StyleElementType;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _generatePropsFromAttributes = require('../utils/generatePropsFromAttributes');\n\nvar _generatePropsFromAttributes2 = _interopRequireDefault(_generatePropsFromAttributes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Converts a