rsuite 4.10.0 → 4.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rsuite.js CHANGED
@@ -5074,7 +5074,7 @@ eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source cod
5074
5074
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5075
5075
 
5076
5076
  "use strict";
5077
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"propTypes\", function() { return propTypes; });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n\n\n\n\n\n\n\n\n\n\nvar propTypes = {\n align: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'center', 'right']),\n verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['top', 'middle', 'bottom']),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n dataKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n isHeaderCell: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]),\n left: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n firstColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n lastColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n hasChildren: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n rowIndex: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n rowData: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n depth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n onTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderCell: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n wordWrap: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n removed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n treeCol: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n expanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n groupHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,\n groupCount: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number\n};\n\nvar Cell = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Cell, _React$PureComponent);\n\n function Cell() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.handleExpandClick = function (event) {\n var _this$props$onTreeTog, _this$props2;\n\n var _this$props = _this.props,\n rowKey = _this$props.rowKey,\n rowIndex = _this$props.rowIndex,\n rowData = _this$props.rowData;\n (_this$props$onTreeTog = (_this$props2 = _this.props).onTreeToggle) === null || _this$props$onTreeTog === void 0 ? void 0 : _this$props$onTreeTog.call(_this$props2, rowKey, rowIndex, rowData, event);\n };\n\n return _this;\n }\n\n var _proto = Cell.prototype;\n\n _proto.isTreeCol = function isTreeCol() {\n var _this$props3 = this.props,\n treeCol = _this$props3.treeCol,\n firstColumn = _this$props3.firstColumn;\n var _this$context = this.context,\n hasCustomTreeCol = _this$context.hasCustomTreeCol,\n isTree = _this$context.isTree;\n\n if (treeCol) {\n return true;\n }\n\n if (!hasCustomTreeCol && firstColumn && isTree) {\n return true;\n }\n\n return false;\n };\n\n _proto.getHeight = function getHeight() {\n var _this$props4 = this.props,\n height = _this$props4.height,\n rowData = _this$props4.rowData;\n return typeof height === 'function' ? height(rowData) : height;\n };\n\n _proto.renderTreeNodeExpandIcon = function renderTreeNodeExpandIcon() {\n var _this$props5 = this.props,\n rowData = _this$props5.rowData,\n renderTreeToggle = _this$props5.renderTreeToggle,\n hasChildren = _this$props5.hasChildren,\n expanded = _this$props5.expanded;\n var expandButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: this.addPrefix('expand-icon')\n });\n\n if (this.isTreeCol() && hasChildren) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: this.addPrefix('expand-wrapper'),\n onClick: this.handleExpandClick\n }, renderTreeToggle ? renderTreeToggle(expandButton, rowData, expanded) : expandButton);\n }\n\n return null;\n };\n\n _proto.render = function render() {\n var _classNames, _styles, _extends2;\n\n var _this$props6 = this.props,\n width = _this$props6.width,\n left = _this$props6.left,\n style = _this$props6.style,\n className = _this$props6.className,\n firstColumn = _this$props6.firstColumn,\n lastColumn = _this$props6.lastColumn,\n isHeaderCell = _this$props6.isHeaderCell,\n headerHeight = _this$props6.headerHeight,\n align = _this$props6.align,\n children = _this$props6.children,\n rowData = _this$props6.rowData,\n dataKey = _this$props6.dataKey,\n rowIndex = _this$props6.rowIndex,\n renderCell = _this$props6.renderCell,\n removed = _this$props6.removed,\n wordWrap = _this$props6.wordWrap,\n classPrefix = _this$props6.classPrefix,\n depth = _this$props6.depth,\n verticalAlign = _this$props6.verticalAlign,\n expanded = _this$props6.expanded,\n onClick = _this$props6.onClick,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props6, [\"width\", \"left\", \"style\", \"className\", \"firstColumn\", \"lastColumn\", \"isHeaderCell\", \"headerHeight\", \"align\", \"children\", \"rowData\", \"dataKey\", \"rowIndex\", \"renderCell\", \"removed\", \"wordWrap\", \"classPrefix\", \"depth\", \"verticalAlign\", \"expanded\", \"onClick\"]);\n\n if (removed) {\n return null;\n }\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix('expanded')] = expanded && this.isTreeCol(), _classNames[this.addPrefix('first')] = firstColumn, _classNames[this.addPrefix('last')] = lastColumn, _classNames));\n var rtl = this.context.rtl;\n var nextHeight = isHeaderCell ? headerHeight : this.getHeight();\n var styles = (_styles = {\n width: width,\n height: nextHeight,\n zIndex: depth\n }, _styles[rtl ? 'right' : 'left'] = left, _styles);\n\n var contentStyles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((_extends2 = {\n width: width,\n height: nextHeight,\n textAlign: align\n }, _extends2[rtl ? 'paddingRight' : 'paddingLeft'] = this.isTreeCol() ? depth * _constants__WEBPACK_IMPORTED_MODULE_6__[\"LAYER_WIDTH\"] + 10 : null, _extends2), style);\n\n if (verticalAlign) {\n contentStyles.display = 'table-cell';\n contentStyles.verticalAlign = verticalAlign;\n }\n\n var cellContent = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(children) && rowData ? rowData[dataKey] : children;\n\n if (typeof children === 'function') {\n var getChildren = children;\n cellContent = getChildren(rowData, rowIndex);\n }\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(Cell, Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(_Column__WEBPACK_IMPORTED_MODULE_9__[\"default\"], rest));\n var cell = renderCell ? renderCell(cellContent) : cellContent;\n var content = wordWrap ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('wrap')\n }, this.renderTreeNodeExpandIcon(), cell) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_3__[\"Fragment\"], null, this.renderTreeNodeExpandIcon(), cell);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: isHeaderCell ? 'columnheader' : 'gridcell'\n }, unhandledProps, {\n onClick: onClick,\n className: classes,\n style: styles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('content'),\n style: contentStyles\n }, content));\n };\n\n return Cell;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nCell.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\nCell.propTypes = propTypes;\nCell.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"defaultClassPrefix\"])('table-cell'),\n headerHeight: 36,\n depth: 0,\n height: 36,\n width: 0,\n left: 0\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Cell.js?");
5077
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"propTypes\", function() { return propTypes; });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n\n\n\n\n\n\n\n\n\n\nvar propTypes = {\n align: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'center', 'right']),\n verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['top', 'middle', 'bottom']),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n dataKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n isHeaderCell: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]),\n left: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n firstColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n lastColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n hasChildren: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n rowIndex: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n rowData: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n depth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n onTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderCell: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n wordWrap: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n removed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n treeCol: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n expanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n groupHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,\n groupCount: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number\n};\n\nvar Cell = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Cell, _React$PureComponent);\n\n function Cell() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.handleExpandClick = function (event) {\n var _this$props$onTreeTog, _this$props2;\n\n var _this$props = _this.props,\n rowKey = _this$props.rowKey,\n rowIndex = _this$props.rowIndex,\n rowData = _this$props.rowData;\n (_this$props$onTreeTog = (_this$props2 = _this.props).onTreeToggle) === null || _this$props$onTreeTog === void 0 ? void 0 : _this$props$onTreeTog.call(_this$props2, rowKey, rowIndex, rowData, event);\n };\n\n return _this;\n }\n\n var _proto = Cell.prototype;\n\n _proto.isTreeCol = function isTreeCol() {\n var _this$props3 = this.props,\n treeCol = _this$props3.treeCol,\n firstColumn = _this$props3.firstColumn;\n var _this$context = this.context,\n hasCustomTreeCol = _this$context.hasCustomTreeCol,\n isTree = _this$context.isTree;\n\n if (treeCol) {\n return true;\n }\n\n if (!hasCustomTreeCol && firstColumn && isTree) {\n return true;\n }\n\n return false;\n };\n\n _proto.getHeight = function getHeight() {\n var _this$props4 = this.props,\n height = _this$props4.height,\n rowData = _this$props4.rowData;\n return typeof height === 'function' ? height(rowData) : height;\n };\n\n _proto.renderTreeNodeExpandIcon = function renderTreeNodeExpandIcon() {\n var _this$props5 = this.props,\n rowData = _this$props5.rowData,\n renderTreeToggle = _this$props5.renderTreeToggle,\n hasChildren = _this$props5.hasChildren,\n expanded = _this$props5.expanded;\n var expandButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: this.addPrefix('expand-icon')\n });\n\n if (this.isTreeCol() && hasChildren) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: this.addPrefix('expand-wrapper'),\n onClick: this.handleExpandClick\n }, renderTreeToggle ? renderTreeToggle(expandButton, rowData, expanded) : expandButton);\n }\n\n return null;\n };\n\n _proto.render = function render() {\n var _classNames, _extends2, _contentStyles;\n\n var _this$props6 = this.props,\n width = _this$props6.width,\n left = _this$props6.left,\n style = _this$props6.style,\n className = _this$props6.className,\n firstColumn = _this$props6.firstColumn,\n lastColumn = _this$props6.lastColumn,\n isHeaderCell = _this$props6.isHeaderCell,\n headerHeight = _this$props6.headerHeight,\n align = _this$props6.align,\n children = _this$props6.children,\n rowData = _this$props6.rowData,\n dataKey = _this$props6.dataKey,\n rowIndex = _this$props6.rowIndex,\n renderCell = _this$props6.renderCell,\n removed = _this$props6.removed,\n wordWrap = _this$props6.wordWrap,\n classPrefix = _this$props6.classPrefix,\n depth = _this$props6.depth,\n verticalAlign = _this$props6.verticalAlign,\n expanded = _this$props6.expanded,\n onClick = _this$props6.onClick,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props6, [\"width\", \"left\", \"style\", \"className\", \"firstColumn\", \"lastColumn\", \"isHeaderCell\", \"headerHeight\", \"align\", \"children\", \"rowData\", \"dataKey\", \"rowIndex\", \"renderCell\", \"removed\", \"wordWrap\", \"classPrefix\", \"depth\", \"verticalAlign\", \"expanded\", \"onClick\"]);\n\n if (removed) {\n return null;\n }\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix('expanded')] = expanded && this.isTreeCol(), _classNames[this.addPrefix('first')] = firstColumn, _classNames[this.addPrefix('last')] = lastColumn, _classNames));\n var rtl = this.context.rtl;\n var nextHeight = isHeaderCell ? headerHeight : this.getHeight();\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, style, (_extends2 = {\n width: width,\n height: nextHeight,\n zIndex: depth\n }, _extends2[rtl ? 'right' : 'left'] = left, _extends2));\n\n var contentStyles = (_contentStyles = {\n width: width,\n height: nextHeight,\n textAlign: align\n }, _contentStyles[rtl ? 'paddingRight' : 'paddingLeft'] = this.isTreeCol() ? depth * _constants__WEBPACK_IMPORTED_MODULE_6__[\"LAYER_WIDTH\"] + 10 : null, _contentStyles);\n\n if (verticalAlign) {\n contentStyles.display = 'table-cell';\n contentStyles.verticalAlign = verticalAlign;\n }\n\n var cellContent = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(children) && rowData ? rowData[dataKey] : children;\n\n if (typeof children === 'function') {\n var getChildren = children;\n cellContent = getChildren(rowData, rowIndex);\n }\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(propTypes, Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(_Column__WEBPACK_IMPORTED_MODULE_9__[\"default\"].propTypes, rest));\n var cell = renderCell ? renderCell(cellContent) : cellContent;\n var content = wordWrap ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('wrap')\n }, this.renderTreeNodeExpandIcon(), cell) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_3__[\"Fragment\"], null, this.renderTreeNodeExpandIcon(), cell);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: isHeaderCell ? 'columnheader' : 'gridcell'\n }, unhandledProps, {\n onClick: onClick,\n className: classes,\n style: styles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('content'),\n style: contentStyles\n }, content));\n };\n\n return Cell;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nCell.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\nCell.propTypes = propTypes;\nCell.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"defaultClassPrefix\"])('table-cell'),\n headerHeight: 36,\n depth: 0,\n height: 36,\n width: 0,\n left: 0\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Cell.js?");
5078
5078
 
5079
5079
  /***/ }),
5080
5080
 
@@ -5086,7 +5086,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5086
5086
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5087
5087
 
5088
5088
  "use strict";
5089
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\nvar CellGroup = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(CellGroup, _React$PureComponent);\n\n function CellGroup() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n return _this;\n }\n\n var _proto = CellGroup.prototype;\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props = this.props,\n fixed = _this$props.fixed,\n width = _this$props.width,\n left = _this$props.left,\n height = _this$props.height,\n style = _this$props.style,\n classPrefix = _this$props.classPrefix,\n className = _this$props.className,\n children = _this$props.children,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props, [\"fixed\", \"width\", \"left\", \"height\", \"style\", \"classPrefix\", \"className\", \"children\"]);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix(\"fixed-\" + (fixed || ''))] = fixed, _classNames[this.addPrefix('scroll')] = !fixed, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n width: width,\n height: height\n }, style);\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"getUnhandledProps\"])(CellGroup, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Consumer, null, function (_ref) {\n var translateDOMPositionXY = _ref.translateDOMPositionXY;\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, left, 0);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, unhandledProps, {\n className: classes,\n style: styles\n }), children);\n });\n };\n\n return CellGroup;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nCellGroup.propTypes = {\n fixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right']),\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n left: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string\n};\nCellGroup.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"defaultClassPrefix\"])('table-cell-group')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (CellGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/CellGroup.js?");
5089
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\nvar propTypes = {\n fixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right']),\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n left: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string\n};\n\nvar CellGroup = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(CellGroup, _React$PureComponent);\n\n function CellGroup() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n return _this;\n }\n\n var _proto = CellGroup.prototype;\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props = this.props,\n fixed = _this$props.fixed,\n width = _this$props.width,\n left = _this$props.left,\n height = _this$props.height,\n style = _this$props.style,\n classPrefix = _this$props.classPrefix,\n className = _this$props.className,\n children = _this$props.children,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props, [\"fixed\", \"width\", \"left\", \"height\", \"style\", \"classPrefix\", \"className\", \"children\"]);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix(\"fixed-\" + (fixed || ''))] = fixed, _classNames[this.addPrefix('scroll')] = !fixed, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n width: width,\n height: height\n }, style);\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"getUnhandledProps\"])(propTypes, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Consumer, null, function (_ref) {\n var translateDOMPositionXY = _ref.translateDOMPositionXY;\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, left, 0);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, unhandledProps, {\n className: classes,\n style: styles\n }), children);\n });\n };\n\n return CellGroup;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nCellGroup.propTypes = propTypes;\nCellGroup.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"defaultClassPrefix\"])('table-cell-group')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (CellGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/CellGroup.js?");
5090
5090
 
5091
5091
  /***/ }),
5092
5092
 
@@ -5110,7 +5110,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var prop
5110
5110
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5111
5111
 
5112
5112
  "use strict";
5113
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_prefix__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n\n\n\n\n\n\nvar ColumnGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"](function (props, ref) {\n var header = props.header,\n className = props.className,\n children = props.children,\n classPrefix = props.classPrefix,\n headerHeight = props.headerHeight,\n verticalAlign = props.verticalAlign,\n width = props.width,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, [\"header\", \"className\", \"children\", \"classPrefix\", \"headerHeight\", \"verticalAlign\", \"width\"]);\n\n var height = headerHeight / 2;\n var styles = {\n height: height,\n width: width\n };\n\n var contentStyles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, styles, {\n verticalAlign: verticalAlign\n });\n\n var addPrefix = react__WEBPACK_IMPORTED_MODULE_2__[\"useCallback\"](function (name) {\n return Object(_utils_prefix__WEBPACK_IMPORTED_MODULE_5__[\"prefix\"])(classPrefix)(name);\n }, []);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: ref,\n className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(classPrefix, className)\n }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", {\n className: addPrefix('header'),\n style: styles\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", {\n className: addPrefix('header-content'),\n style: contentStyles\n }, header)), react__WEBPACK_IMPORTED_MODULE_2__[\"Children\"].map(children, function (node) {\n var _node$props, _node$props2, _node$props2$style;\n\n var nodeStyles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n height: height\n }, (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.style, {\n top: styles.height\n });\n\n var width = (_node$props2 = node.props) === null || _node$props2 === void 0 ? void 0 : (_node$props2$style = _node$props2.style) === null || _node$props2$style === void 0 ? void 0 : _node$props2$style.width;\n var nodeContentStyles = {\n height: height,\n width: width,\n verticalAlign: verticalAlign\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"cloneElement\"](node, {\n className: addPrefix('cell'),\n style: nodeStyles,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", {\n className: addPrefix('cell-content'),\n style: nodeContentStyles\n }, node.props.children)\n });\n }));\n});\nColumnGroup.displayName = 'ColumnGroup';\nColumnGroup.defaultProps = {\n headerHeight: 80,\n classPrefix: Object(_utils_prefix__WEBPACK_IMPORTED_MODULE_5__[\"defaultClassPrefix\"])('table-column-group')\n};\nColumnGroup.propTypes = {\n header: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['top', 'middle', 'bottom'])\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnGroup.js?");
5113
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_prefix__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n\n\n\n\n\n\nvar ColumnGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"](function (props, ref) {\n var header = props.header,\n className = props.className,\n children = props.children,\n classPrefix = props.classPrefix,\n headerHeight = props.headerHeight,\n verticalAlign = props.verticalAlign,\n width = props.width,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, [\"header\", \"className\", \"children\", \"classPrefix\", \"headerHeight\", \"verticalAlign\", \"width\"]);\n\n var height = headerHeight / 2;\n var styles = {\n height: height,\n width: width\n };\n\n var contentStyles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, styles, {\n verticalAlign: verticalAlign\n });\n\n var addPrefix = react__WEBPACK_IMPORTED_MODULE_2__[\"useCallback\"](function (name) {\n return Object(_utils_prefix__WEBPACK_IMPORTED_MODULE_5__[\"prefix\"])(classPrefix)(name);\n }, []);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: ref,\n className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(classPrefix, className)\n }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", {\n className: addPrefix('header'),\n style: styles\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"div\", {\n className: addPrefix('header-content'),\n style: contentStyles\n }, header)), react__WEBPACK_IMPORTED_MODULE_2__[\"Children\"].map(children, function (node) {\n var _node$props;\n\n var nodeStyles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n height: height\n }, (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.style, {\n top: styles.height\n });\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"cloneElement\"](node, {\n className: addPrefix('cell'),\n style: nodeStyles,\n headerHeight: height,\n verticalAlign: verticalAlign,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"](\"span\", {\n className: addPrefix('cell-content')\n }, node.props.children)\n });\n }));\n});\nColumnGroup.displayName = 'ColumnGroup';\nColumnGroup.defaultProps = {\n headerHeight: 80,\n classPrefix: Object(_utils_prefix__WEBPACK_IMPORTED_MODULE_5__[\"defaultClassPrefix\"])('table-column-group')\n};\nColumnGroup.propTypes = {\n header: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['top', 'middle', 'bottom'])\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnGroup.js?");
5114
5114
 
5115
5115
  /***/ }),
5116
5116
 
@@ -5122,7 +5122,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
5122
5122
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5123
5123
 
5124
5124
  "use strict";
5125
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/clamp */ \"./node_modules/rsuite-table/node_modules/lodash/clamp.js\");\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar ColumnResizeHandler = /*#__PURE__*/function (_React$Component) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(ColumnResizeHandler, _React$Component);\n\n function ColumnResizeHandler(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.columnWidth = 0;\n _this.cursorDelta = 0;\n _this.mouseMoveTracker = void 0;\n _this.isKeyDown = void 0;\n\n _this.onMove = function (deltaX) {\n if (!_this.isKeyDown) {\n return;\n }\n\n var _this$props = _this.props,\n onColumnResizeMove = _this$props.onColumnResizeMove,\n defaultColumnWidth = _this$props.defaultColumnWidth,\n columnLeft = _this$props.columnLeft,\n columnFixed = _this$props.columnFixed;\n var rtl = _this.context.rtl;\n _this.cursorDelta += deltaX;\n _this.columnWidth = lodash_clamp__WEBPACK_IMPORTED_MODULE_6___default()(defaultColumnWidth + (rtl ? -_this.cursorDelta : _this.cursorDelta), 20, 20000);\n onColumnResizeMove === null || onColumnResizeMove === void 0 ? void 0 : onColumnResizeMove(_this.columnWidth, columnLeft, columnFixed);\n };\n\n _this.onColumnResizeEnd = function () {\n var _this$props$onColumnR, _this$props2, _this$mouseMoveTracke, _this$mouseMoveTracke2;\n\n _this.isKeyDown = false;\n (_this$props$onColumnR = (_this$props2 = _this.props).onColumnResizeEnd) === null || _this$props$onColumnR === void 0 ? void 0 : _this$props$onColumnR.call(_this$props2, _this.columnWidth, _this.cursorDelta);\n (_this$mouseMoveTracke = _this.mouseMoveTracker) === null || _this$mouseMoveTracke === void 0 ? void 0 : (_this$mouseMoveTracke2 = _this$mouseMoveTracke.releaseMouseMoves) === null || _this$mouseMoveTracke2 === void 0 ? void 0 : _this$mouseMoveTracke2.call(_this$mouseMoveTracke);\n _this.mouseMoveTracker = null;\n };\n\n _this.onColumnResizeMouseDown = function (event) {\n var _this$props$onColumnR2, _this$props3;\n\n _this.mouseMoveTracker = _this.getMouseMoveTracker();\n\n _this.mouseMoveTracker.captureMouseMoves(event);\n\n _this.isKeyDown = true;\n _this.cursorDelta = 0;\n var client = {\n clientX: event.clientX,\n clientY: event.clientY,\n preventDefault: Function()\n };\n (_this$props$onColumnR2 = (_this$props3 = _this.props).onColumnResizeStart) === null || _this$props$onColumnR2 === void 0 ? void 0 : _this$props$onColumnR2.call(_this$props3, client);\n };\n\n _this.columnWidth = props.defaultColumnWidth || 0;\n return _this;\n }\n\n var _proto = ColumnResizeHandler.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.mouseMoveTracker) {\n this.mouseMoveTracker.releaseMouseMoves();\n this.mouseMoveTracker = null;\n }\n };\n\n _proto.getMouseMoveTracker = function getMouseMoveTracker() {\n return this.mouseMoveTracker || new dom_lib__WEBPACK_IMPORTED_MODULE_7__[\"DOMMouseMoveTracker\"](this.onMove, this.onColumnResizeEnd, document.body);\n };\n\n _proto.render = function render() {\n var _extends2;\n\n var _this$props4 = this.props,\n _this$props4$columnLe = _this$props4.columnLeft,\n columnLeft = _this$props4$columnLe === void 0 ? 0 : _this$props4$columnLe,\n classPrefix = _this$props4.classPrefix,\n height = _this$props4.height,\n className = _this$props4.className,\n style = _this$props4.style,\n columnFixed = _this$props4.columnFixed,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props4, [\"columnLeft\", \"classPrefix\", \"height\", \"className\", \"style\", \"columnFixed\"]);\n\n if (columnFixed === 'right') {\n return null;\n }\n\n var rtl = this.context.rtl;\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((_extends2 = {}, _extends2[rtl ? 'right' : 'left'] = this.columnWidth + columnLeft - 2, _extends2.height = height, _extends2), style);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className);\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"getUnhandledProps\"])(ColumnResizeHandler, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, unhandled, {\n className: classes,\n style: styles,\n onMouseDown: this.onColumnResizeMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n };\n\n return ColumnResizeHandler;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"Component\"]);\n\nColumnResizeHandler.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\nColumnResizeHandler.propTypes = {\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n defaultColumnWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n columnLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n columnFixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right'])]),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n onColumnResizeStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeEnd: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\nColumnResizeHandler.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"defaultClassPrefix\"])('table-column-resize-spanner')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnResizeHandler);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnResizeHandler.js?");
5125
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/clamp */ \"./node_modules/rsuite-table/node_modules/lodash/clamp.js\");\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\n\nvar propTypes = {\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n defaultColumnWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n columnLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n columnFixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right'])]),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n onColumnResizeStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeEnd: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\n\nvar ColumnResizeHandler = /*#__PURE__*/function (_React$Component) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(ColumnResizeHandler, _React$Component);\n\n function ColumnResizeHandler(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.columnWidth = 0;\n _this.cursorDelta = 0;\n _this.mouseMoveTracker = void 0;\n _this.isKeyDown = void 0;\n\n _this.onMove = function (deltaX) {\n if (!_this.isKeyDown) {\n return;\n }\n\n var _this$props = _this.props,\n onColumnResizeMove = _this$props.onColumnResizeMove,\n defaultColumnWidth = _this$props.defaultColumnWidth,\n columnLeft = _this$props.columnLeft,\n columnFixed = _this$props.columnFixed;\n var rtl = _this.context.rtl;\n _this.cursorDelta += deltaX;\n _this.columnWidth = lodash_clamp__WEBPACK_IMPORTED_MODULE_6___default()(defaultColumnWidth + (rtl ? -_this.cursorDelta : _this.cursorDelta), 20, 20000);\n onColumnResizeMove === null || onColumnResizeMove === void 0 ? void 0 : onColumnResizeMove(_this.columnWidth, columnLeft, columnFixed);\n };\n\n _this.onColumnResizeEnd = function () {\n var _this$props$onColumnR, _this$props2, _this$mouseMoveTracke, _this$mouseMoveTracke2;\n\n _this.isKeyDown = false;\n (_this$props$onColumnR = (_this$props2 = _this.props).onColumnResizeEnd) === null || _this$props$onColumnR === void 0 ? void 0 : _this$props$onColumnR.call(_this$props2, _this.columnWidth, _this.cursorDelta);\n (_this$mouseMoveTracke = _this.mouseMoveTracker) === null || _this$mouseMoveTracke === void 0 ? void 0 : (_this$mouseMoveTracke2 = _this$mouseMoveTracke.releaseMouseMoves) === null || _this$mouseMoveTracke2 === void 0 ? void 0 : _this$mouseMoveTracke2.call(_this$mouseMoveTracke);\n _this.mouseMoveTracker = null;\n };\n\n _this.onColumnResizeMouseDown = function (event) {\n var _this$props$onColumnR2, _this$props3;\n\n _this.mouseMoveTracker = _this.getMouseMoveTracker();\n\n _this.mouseMoveTracker.captureMouseMoves(event);\n\n _this.isKeyDown = true;\n _this.cursorDelta = 0;\n var client = {\n clientX: event.clientX,\n clientY: event.clientY,\n preventDefault: Function()\n };\n (_this$props$onColumnR2 = (_this$props3 = _this.props).onColumnResizeStart) === null || _this$props$onColumnR2 === void 0 ? void 0 : _this$props$onColumnR2.call(_this$props3, client);\n };\n\n _this.columnWidth = props.defaultColumnWidth || 0;\n return _this;\n }\n\n var _proto = ColumnResizeHandler.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.mouseMoveTracker) {\n this.mouseMoveTracker.releaseMouseMoves();\n this.mouseMoveTracker = null;\n }\n };\n\n _proto.getMouseMoveTracker = function getMouseMoveTracker() {\n return this.mouseMoveTracker || new dom_lib__WEBPACK_IMPORTED_MODULE_7__[\"DOMMouseMoveTracker\"](this.onMove, this.onColumnResizeEnd, document.body);\n };\n\n _proto.render = function render() {\n var _extends2;\n\n var _this$props4 = this.props,\n _this$props4$columnLe = _this$props4.columnLeft,\n columnLeft = _this$props4$columnLe === void 0 ? 0 : _this$props4$columnLe,\n classPrefix = _this$props4.classPrefix,\n height = _this$props4.height,\n className = _this$props4.className,\n style = _this$props4.style,\n columnFixed = _this$props4.columnFixed,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props4, [\"columnLeft\", \"classPrefix\", \"height\", \"className\", \"style\", \"columnFixed\"]);\n\n if (columnFixed === 'right') {\n return null;\n }\n\n var rtl = this.context.rtl;\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((_extends2 = {}, _extends2[rtl ? 'right' : 'left'] = this.columnWidth + columnLeft - 2, _extends2.height = height, _extends2), style);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className);\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"getUnhandledProps\"])(propTypes, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, unhandled, {\n className: classes,\n style: styles,\n onMouseDown: this.onColumnResizeMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n };\n\n return ColumnResizeHandler;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"Component\"]);\n\nColumnResizeHandler.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\nColumnResizeHandler.propTypes = propTypes;\nColumnResizeHandler.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"defaultClassPrefix\"])('table-column-resize-spanner')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnResizeHandler);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnResizeHandler.js?");
5126
5126
 
5127
5127
  /***/ }),
5128
5128
 
@@ -5134,7 +5134,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
5134
5134
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5135
5135
 
5136
5136
  "use strict";
5137
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ColumnResizeHandler */ \"./node_modules/rsuite-table/es/ColumnResizeHandler.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n\n\n\n\n\n\n\n\n\n\nvar HeaderCell = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(HeaderCell, _React$PureComponent);\n\n HeaderCell.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.width !== prevState.width || nextProps.flexGrow !== prevState.flexGrow) {\n return {\n width: nextProps.width,\n flexGrow: nextProps.flexGrow,\n columnWidth: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(nextProps.flexGrow) ? nextProps.width : 0\n };\n }\n\n return null;\n };\n\n function HeaderCell(props) {\n var _this;\n\n _this = _React$PureComponent.call(this, props) || this;\n\n _this.handleColumnResizeStart = function () {\n var _this$props = _this.props,\n left = _this$props.left,\n fixed = _this$props.fixed,\n onColumnResizeStart = _this$props.onColumnResizeStart;\n onColumnResizeStart === null || onColumnResizeStart === void 0 ? void 0 : onColumnResizeStart(_this.state.columnWidth, left, !!fixed);\n };\n\n _this.handleColumnResizeEnd = function (columnWidth, cursorDelta) {\n var _this$props2 = _this.props,\n dataKey = _this$props2.dataKey,\n index = _this$props2.index,\n onColumnResizeEnd = _this$props2.onColumnResizeEnd,\n onResize = _this$props2.onResize;\n\n _this.setState({\n columnWidth: columnWidth\n });\n\n onColumnResizeEnd === null || onColumnResizeEnd === void 0 ? void 0 : onColumnResizeEnd(columnWidth, cursorDelta, dataKey, index);\n onResize === null || onResize === void 0 ? void 0 : onResize(columnWidth, dataKey);\n };\n\n _this.handleClick = function () {\n if (_this.props.sortable) {\n var _this$props$onSortCol, _this$props3;\n\n (_this$props$onSortCol = (_this$props3 = _this.props).onSortColumn) === null || _this$props$onSortCol === void 0 ? void 0 : _this$props$onSortCol.call(_this$props3, _this.props.dataKey);\n }\n };\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.state = {\n width: props.width,\n flexGrow: props.flexGrow,\n columnWidth: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(props.flexGrow) ? props.width : 0\n };\n return _this;\n }\n\n var _proto = HeaderCell.prototype;\n\n _proto.renderResizeSpanner = function renderResizeSpanner() {\n var _this$props4 = this.props,\n resizable = _this$props4.resizable,\n left = _this$props4.left,\n onColumnResizeMove = _this$props4.onColumnResizeMove,\n fixed = _this$props4.fixed,\n headerHeight = _this$props4.headerHeight;\n var columnWidth = this.state.columnWidth;\n\n if (!resizable) {\n return null;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n defaultColumnWidth: columnWidth,\n key: columnWidth,\n columnLeft: left,\n columnFixed: fixed,\n height: headerHeight ? headerHeight - 1 : undefined,\n onColumnResizeMove: onColumnResizeMove,\n onColumnResizeStart: this.handleColumnResizeStart,\n onColumnResizeEnd: this.handleColumnResizeEnd\n });\n };\n\n _proto.renderSortColumn = function renderSortColumn() {\n var _this$props5 = this.props,\n sortable = _this$props5.sortable,\n sortColumn = _this$props5.sortColumn,\n _this$props5$sortType = _this$props5.sortType,\n sortType = _this$props5$sortType === void 0 ? '' : _this$props5$sortType,\n dataKey = _this$props5.dataKey;\n\n if (sortable) {\n var _classNames;\n\n var iconClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(this.addPrefix('icon-sort'), (_classNames = {}, _classNames[this.addPrefix(\"icon-sort-\" + sortType)] = sortColumn === dataKey, _classNames));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n className: this.addPrefix('sort-wrapper')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: iconClasses\n }));\n }\n\n return null;\n };\n\n _proto.render = function render() {\n var _classNames2;\n\n var _this$props6 = this.props,\n className = _this$props6.className,\n width = _this$props6.width,\n dataKey = _this$props6.dataKey,\n headerHeight = _this$props6.headerHeight,\n children = _this$props6.children,\n left = _this$props6.left,\n sortable = _this$props6.sortable,\n classPrefix = _this$props6.classPrefix,\n sortColumn = _this$props6.sortColumn,\n sortType = _this$props6.sortType,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props6, [\"className\", \"width\", \"dataKey\", \"headerHeight\", \"children\", \"left\", \"sortable\", \"classPrefix\", \"sortColumn\", \"sortType\"]);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames2 = {}, _classNames2[this.addPrefix('sortable')] = sortable, _classNames2));\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(HeaderCell, rest);\n var ariaSort;\n\n if (sortColumn === dataKey) {\n ariaSort = 'other';\n\n if (sortType === 'asc') {\n ariaSort = 'ascending';\n } else if (sortType === 'desc') {\n ariaSort = 'descending';\n }\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: classes\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Cell__WEBPACK_IMPORTED_MODULE_8__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n \"aria-sort\": ariaSort\n }, unhandledProps, {\n width: width,\n dataKey: dataKey,\n left: left,\n headerHeight: headerHeight,\n isHeaderCell: true,\n onClick: this.handleClick\n }), children, this.renderSortColumn()), this.renderResizeSpanner());\n };\n\n return HeaderCell;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nHeaderCell.propTypes = {\n index: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n sortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n sortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['desc', 'asc']),\n sortable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n resizable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n onColumnResizeStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeEnd: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onResize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onSortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n flexGrow: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n fixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right'])]),\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node\n};\nHeaderCell.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"defaultClassPrefix\"])('table-cell-header')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (HeaderCell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/HeaderCell.js?");
5137
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ColumnResizeHandler */ \"./node_modules/rsuite-table/es/ColumnResizeHandler.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n\n\n\n\n\n\n\n\n\nvar propTypes = {\n index: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n sortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n sortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['desc', 'asc']),\n sortable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n resizable: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n onColumnResizeStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeEnd: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onResize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onColumnResizeMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onSortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n flexGrow: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n fixed: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['left', 'right'])]),\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node\n};\n\nvar HeaderCell = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(HeaderCell, _React$PureComponent);\n\n HeaderCell.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.width !== prevState.width || nextProps.flexGrow !== prevState.flexGrow) {\n return {\n width: nextProps.width,\n flexGrow: nextProps.flexGrow,\n columnWidth: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(nextProps.flexGrow) ? nextProps.width : 0\n };\n }\n\n return null;\n };\n\n function HeaderCell(props) {\n var _this;\n\n _this = _React$PureComponent.call(this, props) || this;\n\n _this.handleColumnResizeStart = function () {\n var _this$props = _this.props,\n left = _this$props.left,\n fixed = _this$props.fixed,\n onColumnResizeStart = _this$props.onColumnResizeStart;\n onColumnResizeStart === null || onColumnResizeStart === void 0 ? void 0 : onColumnResizeStart(_this.state.columnWidth, left, !!fixed);\n };\n\n _this.handleColumnResizeEnd = function (columnWidth, cursorDelta) {\n var _this$props2 = _this.props,\n dataKey = _this$props2.dataKey,\n index = _this$props2.index,\n onColumnResizeEnd = _this$props2.onColumnResizeEnd,\n onResize = _this$props2.onResize;\n\n _this.setState({\n columnWidth: columnWidth\n });\n\n onColumnResizeEnd === null || onColumnResizeEnd === void 0 ? void 0 : onColumnResizeEnd(columnWidth, cursorDelta, dataKey, index);\n onResize === null || onResize === void 0 ? void 0 : onResize(columnWidth, dataKey);\n };\n\n _this.handleClick = function () {\n if (_this.props.sortable) {\n var _this$props$onSortCol, _this$props3;\n\n (_this$props$onSortCol = (_this$props3 = _this.props).onSortColumn) === null || _this$props$onSortCol === void 0 ? void 0 : _this$props$onSortCol.call(_this$props3, _this.props.dataKey);\n }\n };\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.state = {\n width: props.width,\n flexGrow: props.flexGrow,\n columnWidth: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"isNullOrUndefined\"])(props.flexGrow) ? props.width : 0\n };\n return _this;\n }\n\n var _proto = HeaderCell.prototype;\n\n _proto.renderResizeSpanner = function renderResizeSpanner() {\n var _this$props4 = this.props,\n resizable = _this$props4.resizable,\n left = _this$props4.left,\n onColumnResizeMove = _this$props4.onColumnResizeMove,\n fixed = _this$props4.fixed,\n headerHeight = _this$props4.headerHeight;\n var columnWidth = this.state.columnWidth;\n\n if (!resizable) {\n return null;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n defaultColumnWidth: columnWidth,\n key: columnWidth,\n columnLeft: left,\n columnFixed: fixed,\n height: headerHeight ? headerHeight - 1 : undefined,\n onColumnResizeMove: onColumnResizeMove,\n onColumnResizeStart: this.handleColumnResizeStart,\n onColumnResizeEnd: this.handleColumnResizeEnd\n });\n };\n\n _proto.renderSortColumn = function renderSortColumn() {\n var _this$props5 = this.props,\n sortable = _this$props5.sortable,\n sortColumn = _this$props5.sortColumn,\n _this$props5$sortType = _this$props5.sortType,\n sortType = _this$props5$sortType === void 0 ? '' : _this$props5$sortType,\n dataKey = _this$props5.dataKey,\n groupHeader = _this$props5.groupHeader;\n\n if (sortable && !groupHeader) {\n var _classNames;\n\n var iconClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(this.addPrefix('icon-sort'), (_classNames = {}, _classNames[this.addPrefix(\"icon-sort-\" + sortType)] = sortColumn === dataKey, _classNames));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n className: this.addPrefix('sort-wrapper')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: iconClasses\n }));\n }\n\n return null;\n };\n\n _proto.render = function render() {\n var _classNames2;\n\n var _this$props6 = this.props,\n className = _this$props6.className,\n width = _this$props6.width,\n dataKey = _this$props6.dataKey,\n headerHeight = _this$props6.headerHeight,\n children = _this$props6.children,\n left = _this$props6.left,\n sortable = _this$props6.sortable,\n classPrefix = _this$props6.classPrefix,\n sortColumn = _this$props6.sortColumn,\n sortType = _this$props6.sortType,\n groupHeader = _this$props6.groupHeader,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props6, [\"className\", \"width\", \"dataKey\", \"headerHeight\", \"children\", \"left\", \"sortable\", \"classPrefix\", \"sortColumn\", \"sortType\", \"groupHeader\"]);\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames2 = {}, _classNames2[this.addPrefix('sortable')] = sortable, _classNames2));\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"getUnhandledProps\"])(propTypes, rest);\n var ariaSort;\n\n if (sortColumn === dataKey) {\n ariaSort = 'other';\n\n if (sortType === 'asc') {\n ariaSort = 'ascending';\n } else if (sortType === 'desc') {\n ariaSort = 'descending';\n }\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: classes\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Cell__WEBPACK_IMPORTED_MODULE_8__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n \"aria-sort\": ariaSort\n }, unhandledProps, {\n width: width,\n dataKey: dataKey,\n left: left,\n headerHeight: headerHeight,\n isHeaderCell: true,\n onClick: !groupHeader ? this.handleClick : null\n }), children, this.renderSortColumn()), this.renderResizeSpanner());\n };\n\n return HeaderCell;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nHeaderCell.propTypes = propTypes;\nHeaderCell.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_7__[\"defaultClassPrefix\"])('table-cell-header')\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (HeaderCell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/HeaderCell.js?");
5138
5138
 
5139
5139
  /***/ }),
5140
5140
 
@@ -5146,7 +5146,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
5146
5146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5147
5147
 
5148
5148
  "use strict";
5149
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\nvar Row = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Row, _React$PureComponent);\n\n function Row() {\n return _React$PureComponent.apply(this, arguments) || this;\n }\n\n var _proto = Row.prototype;\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props = this.props,\n className = _this$props.className,\n width = _this$props.width,\n height = _this$props.height,\n top = _this$props.top,\n style = _this$props.style,\n isHeaderRow = _this$props.isHeaderRow,\n headerHeight = _this$props.headerHeight,\n rowRef = _this$props.rowRef,\n classPrefix = _this$props.classPrefix,\n children = _this$props.children,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props, [\"className\", \"width\", \"height\", \"top\", \"style\", \"isHeaderRow\", \"headerHeight\", \"rowRef\", \"classPrefix\", \"children\"]);\n\n var addPrefix = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"prefix\"])(classPrefix);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[addPrefix('header')] = isHeaderRow, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n minWidth: width,\n height: isHeaderRow ? headerHeight : height\n }, style);\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"getUnhandledProps\"])(Row, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Consumer, null, function (_ref) {\n var translateDOMPositionXY = _ref.translateDOMPositionXY;\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, 0, top);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"row\"\n }, unhandledProps, {\n ref: rowRef,\n className: classes,\n style: styles\n }), children);\n });\n };\n\n return Row;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nRow.propTypes = {\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n top: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n isHeaderRow: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n rowRef: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object]),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object\n};\nRow.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"defaultClassPrefix\"])('table-row'),\n height: 46,\n headerHeight: 40\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Row);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Row.js?");
5149
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\nvar propTypes = {\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n top: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n isHeaderRow: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n rowRef: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object]),\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object\n};\n\nvar Row = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Row, _React$PureComponent);\n\n function Row() {\n return _React$PureComponent.apply(this, arguments) || this;\n }\n\n var _proto = Row.prototype;\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props = this.props,\n className = _this$props.className,\n width = _this$props.width,\n height = _this$props.height,\n top = _this$props.top,\n style = _this$props.style,\n isHeaderRow = _this$props.isHeaderRow,\n headerHeight = _this$props.headerHeight,\n rowRef = _this$props.rowRef,\n classPrefix = _this$props.classPrefix,\n children = _this$props.children,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props, [\"className\", \"width\", \"height\", \"top\", \"style\", \"isHeaderRow\", \"headerHeight\", \"rowRef\", \"classPrefix\", \"children\"]);\n\n var addPrefix = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"prefix\"])(classPrefix);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[addPrefix('header')] = isHeaderRow, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n minWidth: width,\n height: isHeaderRow ? headerHeight : height\n }, style);\n\n var unhandledProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"getUnhandledProps\"])(propTypes, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Consumer, null, function (_ref) {\n var translateDOMPositionXY = _ref.translateDOMPositionXY;\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, 0, top);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"row\"\n }, unhandledProps, {\n ref: rowRef,\n className: classes,\n style: styles\n }), children);\n });\n };\n\n return Row;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nRow.propTypes = propTypes;\nRow.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_6__[\"defaultClassPrefix\"])('table-row'),\n height: 46,\n headerHeight: 40\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Row);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Row.js?");
5150
5150
 
5151
5151
  /***/ }),
5152
5152
 
@@ -5158,7 +5158,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
5158
5158
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5159
5159
 
5160
5160
  "use strict";
5161
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar Scrollbar = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Scrollbar, _React$PureComponent);\n\n function Scrollbar(props) {\n var _this;\n\n _this = _React$PureComponent.call(this, props) || this;\n _this.scrollOffset = 0;\n _this.mouseMoveTracker = null;\n _this.handleRef = void 0;\n _this.barRef = void 0;\n\n _this.handleMouseDown = function (event) {\n var _this$mouseMoveTracke, _this$props$onMouseDo, _this$props;\n\n _this.mouseMoveTracker = _this.getMouseMoveTracker();\n (_this$mouseMoveTracke = _this.mouseMoveTracker) === null || _this$mouseMoveTracke === void 0 ? void 0 : _this$mouseMoveTracke.captureMouseMoves(event);\n\n _this.setState({\n handlePressed: true\n });\n\n (_this$props$onMouseDo = (_this$props = _this.props).onMouseDown) === null || _this$props$onMouseDo === void 0 ? void 0 : _this$props$onMouseDo.call(_this$props, event);\n };\n\n _this.handleDragEnd = function () {\n _this.releaseMouseMoves();\n\n _this.setState({\n handlePressed: false\n });\n };\n\n _this.handleDragMove = function (deltaX, deltaY, event) {\n var _window, _window$event;\n\n var vertical = _this.props.vertical;\n\n if (!_this.mouseMoveTracker || !_this.mouseMoveTracker.isDragging()) {\n return;\n }\n\n if ((event === null || event === void 0 ? void 0 : event.buttons) === 0 || ((_window = window) === null || _window === void 0 ? void 0 : (_window$event = _window.event) === null || _window$event === void 0 ? void 0 : _window$event['buttons']) === 0) {\n _this.releaseMouseMoves();\n\n return;\n }\n\n _this.handleScroll(vertical ? deltaY : deltaX, event);\n };\n\n _this.handleClick = function (event) {\n var _this$handleRef$curre;\n\n if (_this.handleRef.current && (_this$handleRef$curre = _this.handleRef.current) !== null && _this$handleRef$curre !== void 0 && _this$handleRef$curre.contains(event.target)) {\n return;\n }\n\n var _this$props2 = _this.props,\n vertical = _this$props2.vertical,\n length = _this$props2.length,\n scrollLength = _this$props2.scrollLength;\n var barOffset = _this.state.barOffset;\n var offset = vertical ? event.pageY - barOffset.top : event.pageX - barOffset.left;\n var handleWidth = length / scrollLength * length;\n var delta = offset - handleWidth;\n var nextDelta = offset > _this.scrollOffset ? delta - _this.scrollOffset : offset - _this.scrollOffset;\n\n _this.handleScroll(nextDelta, event);\n };\n\n _this.state = {\n barOffset: {\n top: 0,\n left: 0\n },\n handlePressed: false\n };\n _this.handleRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.barRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n return _this;\n }\n\n var _proto = Scrollbar.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.initBarOffset();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.releaseMouseMoves();\n };\n\n _proto.onWheelScroll = function onWheelScroll(delta) {\n var _this$props3 = this.props,\n length = _this$props3.length,\n scrollLength = _this$props3.scrollLength;\n var nextDelta = delta / (scrollLength / length);\n this.updateScrollBarPosition(nextDelta);\n };\n\n _proto.getMouseMoveTracker = function getMouseMoveTracker() {\n return this.mouseMoveTracker || new dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"DOMMouseMoveTracker\"](this.handleDragMove, this.handleDragEnd, document.body);\n };\n\n _proto.initBarOffset = function initBarOffset() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.barRef.current && _this2.setState({\n barOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"getOffset\"])(_this2.barRef.current)\n });\n }, 1);\n };\n\n _proto.handleScroll = function handleScroll(delta, event) {\n var _this$props$onScroll, _this$props5;\n\n var _this$props4 = this.props,\n length = _this$props4.length,\n scrollLength = _this$props4.scrollLength;\n var scrollDelta = delta * (scrollLength / length);\n this.updateScrollBarPosition(delta);\n (_this$props$onScroll = (_this$props5 = this.props).onScroll) === null || _this$props$onScroll === void 0 ? void 0 : _this$props$onScroll.call(_this$props5, scrollDelta, event);\n };\n\n _proto.resetScrollBarPosition = function resetScrollBarPosition(forceDelta) {\n if (forceDelta === void 0) {\n forceDelta = 0;\n }\n\n this.scrollOffset = 0;\n this.updateScrollBarPosition(0, forceDelta);\n };\n\n _proto.updateScrollBarPosition = function updateScrollBarPosition(delta, forceDelta) {\n var _this$props6 = this.props,\n vertical = _this$props6.vertical,\n length = _this$props6.length,\n scrollLength = _this$props6.scrollLength;\n var translateDOMPositionXY = this.context.translateDOMPositionXY;\n var max = scrollLength && length ? length - Math.max(length / scrollLength * length, _constants__WEBPACK_IMPORTED_MODULE_7__[\"SCROLLBAR_MIN_WIDTH\"] + 2) : 0;\n var styles = {};\n\n if (typeof forceDelta === 'undefined') {\n this.scrollOffset += delta;\n this.scrollOffset = Math.max(this.scrollOffset, 0);\n this.scrollOffset = Math.min(this.scrollOffset, max);\n } else {\n this.scrollOffset = forceDelta || 0;\n }\n\n if (vertical) {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, 0, this.scrollOffset);\n } else {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, this.scrollOffset, 0);\n }\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"addStyle\"])(this.handleRef.current, styles);\n };\n\n _proto.releaseMouseMoves = function releaseMouseMoves() {\n var _this$mouseMoveTracke2, _this$mouseMoveTracke3;\n\n (_this$mouseMoveTracke2 = this.mouseMoveTracker) === null || _this$mouseMoveTracke2 === void 0 ? void 0 : (_this$mouseMoveTracke3 = _this$mouseMoveTracke2.releaseMouseMoves) === null || _this$mouseMoveTracke3 === void 0 ? void 0 : _this$mouseMoveTracke3.call(_this$mouseMoveTracke2);\n this.mouseMoveTracker = null;\n };\n\n _proto.render = function render() {\n var _classNames, _styles;\n\n var _this$props7 = this.props,\n vertical = _this$props7.vertical,\n length = _this$props7.length,\n scrollLength = _this$props7.scrollLength,\n classPrefix = _this$props7.classPrefix,\n className = _this$props7.className,\n tableId = _this$props7.tableId,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props7, [\"vertical\", \"length\", \"scrollLength\", \"classPrefix\", \"className\", \"tableId\"]);\n\n var handlePressed = this.state.handlePressed;\n var addPrefix = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"prefix\"])(classPrefix);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[addPrefix('vertical')] = vertical, _classNames[addPrefix('horizontal')] = !vertical, _classNames[addPrefix('hide')] = scrollLength <= length, _classNames[addPrefix('pressed')] = handlePressed, _classNames));\n var width = length / scrollLength * 100;\n var styles = (_styles = {}, _styles[vertical ? 'height' : 'width'] = width + \"%\", _styles[vertical ? 'minHeight' : 'minWidth'] = _constants__WEBPACK_IMPORTED_MODULE_7__[\"SCROLLBAR_MIN_WIDTH\"], _styles);\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"getUnhandledProps\"])(Scrollbar, rest);\n var valuenow = this.scrollOffset / length * 100 + width;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"scrollbar\",\n \"aria-controls\": tableId,\n \"aria-valuemax\": \"100\",\n \"aria-valuemin\": \"0\",\n \"aria-valuenow\": valuenow,\n \"aria-orientation\": vertical ? 'vertical' : 'horizontal'\n }, unhandled, {\n ref: this.barRef,\n className: classes,\n onClick: this.handleClick\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.handleRef,\n className: addPrefix('handle'),\n style: styles,\n onMouseDown: this.handleMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n };\n\n return Scrollbar;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nScrollbar.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\nScrollbar.propTypes = {\n tableId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n vertical: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n length: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n scrollLength: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n onScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onMouseDown: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\nScrollbar.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"defaultClassPrefix\"])('table-scrollbar'),\n scrollLength: 1,\n length: 1\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Scrollbar);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Scrollbar.js?");
5161
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n\n\n\n\n\n\n\n\n\n\nvar propTypes = {\n tableId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n vertical: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n length: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n scrollLength: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n onScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onMouseDown: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\n\nvar Scrollbar = /*#__PURE__*/function (_React$PureComponent) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Scrollbar, _React$PureComponent);\n\n function Scrollbar(props) {\n var _this;\n\n _this = _React$PureComponent.call(this, props) || this;\n _this.scrollOffset = 0;\n _this.mouseMoveTracker = null;\n _this.handleRef = void 0;\n _this.barRef = void 0;\n\n _this.handleMouseDown = function (event) {\n var _this$mouseMoveTracke, _this$props$onMouseDo, _this$props;\n\n _this.mouseMoveTracker = _this.getMouseMoveTracker();\n (_this$mouseMoveTracke = _this.mouseMoveTracker) === null || _this$mouseMoveTracke === void 0 ? void 0 : _this$mouseMoveTracke.captureMouseMoves(event);\n\n _this.setState({\n handlePressed: true\n });\n\n (_this$props$onMouseDo = (_this$props = _this.props).onMouseDown) === null || _this$props$onMouseDo === void 0 ? void 0 : _this$props$onMouseDo.call(_this$props, event);\n };\n\n _this.handleDragEnd = function () {\n _this.releaseMouseMoves();\n\n _this.setState({\n handlePressed: false\n });\n };\n\n _this.handleDragMove = function (deltaX, deltaY, event) {\n var _window, _window$event;\n\n var vertical = _this.props.vertical;\n\n if (!_this.mouseMoveTracker || !_this.mouseMoveTracker.isDragging()) {\n return;\n }\n\n if ((event === null || event === void 0 ? void 0 : event.buttons) === 0 || ((_window = window) === null || _window === void 0 ? void 0 : (_window$event = _window.event) === null || _window$event === void 0 ? void 0 : _window$event['buttons']) === 0) {\n _this.releaseMouseMoves();\n\n return;\n }\n\n _this.handleScroll(vertical ? deltaY : deltaX, event);\n };\n\n _this.handleClick = function (event) {\n var _this$handleRef$curre;\n\n if (_this.handleRef.current && (_this$handleRef$curre = _this.handleRef.current) !== null && _this$handleRef$curre !== void 0 && _this$handleRef$curre.contains(event.target)) {\n return;\n }\n\n var _this$props2 = _this.props,\n vertical = _this$props2.vertical,\n length = _this$props2.length,\n scrollLength = _this$props2.scrollLength;\n var barOffset = _this.state.barOffset;\n var offset = vertical ? event.pageY - barOffset.top : event.pageX - barOffset.left;\n var handleWidth = length / scrollLength * length;\n var delta = offset - handleWidth;\n var nextDelta = offset > _this.scrollOffset ? delta - _this.scrollOffset : offset - _this.scrollOffset;\n\n _this.handleScroll(nextDelta, event);\n };\n\n _this.state = {\n barOffset: {\n top: 0,\n left: 0\n },\n handlePressed: false\n };\n _this.handleRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.barRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n return _this;\n }\n\n var _proto = Scrollbar.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.initBarOffset();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.releaseMouseMoves();\n };\n\n _proto.onWheelScroll = function onWheelScroll(delta) {\n var _this$props3 = this.props,\n length = _this$props3.length,\n scrollLength = _this$props3.scrollLength;\n var nextDelta = delta / (scrollLength / length);\n this.updateScrollBarPosition(nextDelta);\n };\n\n _proto.getMouseMoveTracker = function getMouseMoveTracker() {\n return this.mouseMoveTracker || new dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"DOMMouseMoveTracker\"](this.handleDragMove, this.handleDragEnd, document.body);\n };\n\n _proto.initBarOffset = function initBarOffset() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.barRef.current && _this2.setState({\n barOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"getOffset\"])(_this2.barRef.current)\n });\n }, 1);\n };\n\n _proto.handleScroll = function handleScroll(delta, event) {\n var _this$props$onScroll, _this$props5;\n\n var _this$props4 = this.props,\n length = _this$props4.length,\n scrollLength = _this$props4.scrollLength;\n var scrollDelta = delta * (scrollLength / length);\n this.updateScrollBarPosition(delta);\n (_this$props$onScroll = (_this$props5 = this.props).onScroll) === null || _this$props$onScroll === void 0 ? void 0 : _this$props$onScroll.call(_this$props5, scrollDelta, event);\n };\n\n _proto.resetScrollBarPosition = function resetScrollBarPosition(forceDelta) {\n if (forceDelta === void 0) {\n forceDelta = 0;\n }\n\n this.scrollOffset = 0;\n this.updateScrollBarPosition(0, forceDelta);\n };\n\n _proto.updateScrollBarPosition = function updateScrollBarPosition(delta, forceDelta) {\n var _this$props6 = this.props,\n vertical = _this$props6.vertical,\n length = _this$props6.length,\n scrollLength = _this$props6.scrollLength;\n var translateDOMPositionXY = this.context.translateDOMPositionXY;\n var max = scrollLength && length ? length - Math.max(length / scrollLength * length, _constants__WEBPACK_IMPORTED_MODULE_7__[\"SCROLLBAR_MIN_WIDTH\"] + 2) : 0;\n var styles = {};\n\n if (typeof forceDelta === 'undefined') {\n this.scrollOffset += delta;\n this.scrollOffset = Math.max(this.scrollOffset, 0);\n this.scrollOffset = Math.min(this.scrollOffset, max);\n } else {\n this.scrollOffset = forceDelta || 0;\n }\n\n if (vertical) {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, 0, this.scrollOffset);\n } else {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, this.scrollOffset, 0);\n }\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_6__[\"addStyle\"])(this.handleRef.current, styles);\n };\n\n _proto.releaseMouseMoves = function releaseMouseMoves() {\n var _this$mouseMoveTracke2, _this$mouseMoveTracke3;\n\n (_this$mouseMoveTracke2 = this.mouseMoveTracker) === null || _this$mouseMoveTracke2 === void 0 ? void 0 : (_this$mouseMoveTracke3 = _this$mouseMoveTracke2.releaseMouseMoves) === null || _this$mouseMoveTracke3 === void 0 ? void 0 : _this$mouseMoveTracke3.call(_this$mouseMoveTracke2);\n this.mouseMoveTracker = null;\n };\n\n _proto.render = function render() {\n var _classNames, _styles;\n\n var _this$props7 = this.props,\n vertical = _this$props7.vertical,\n length = _this$props7.length,\n scrollLength = _this$props7.scrollLength,\n classPrefix = _this$props7.classPrefix,\n className = _this$props7.className,\n tableId = _this$props7.tableId,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_this$props7, [\"vertical\", \"length\", \"scrollLength\", \"classPrefix\", \"className\", \"tableId\"]);\n\n var handlePressed = this.state.handlePressed;\n var addPrefix = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"prefix\"])(classPrefix);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[addPrefix('vertical')] = vertical, _classNames[addPrefix('horizontal')] = !vertical, _classNames[addPrefix('hide')] = scrollLength <= length, _classNames[addPrefix('pressed')] = handlePressed, _classNames));\n var width = length / scrollLength * 100;\n var styles = (_styles = {}, _styles[vertical ? 'height' : 'width'] = width + \"%\", _styles[vertical ? 'minHeight' : 'minWidth'] = _constants__WEBPACK_IMPORTED_MODULE_7__[\"SCROLLBAR_MIN_WIDTH\"], _styles);\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"getUnhandledProps\"])(propTypes, rest);\n var valuenow = this.scrollOffset / length * 100 + width;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"scrollbar\",\n \"aria-controls\": tableId,\n \"aria-valuemax\": \"100\",\n \"aria-valuemin\": \"0\",\n \"aria-valuenow\": valuenow,\n \"aria-orientation\": vertical ? 'vertical' : 'horizontal'\n }, unhandled, {\n ref: this.barRef,\n className: classes,\n onClick: this.handleClick\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.handleRef,\n className: addPrefix('handle'),\n style: styles,\n onMouseDown: this.handleMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n };\n\n return Scrollbar;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"PureComponent\"]);\n\nScrollbar.contextType = _TableContext__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\nScrollbar.propTypes = propTypes;\nScrollbar.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_8__[\"defaultClassPrefix\"])('table-scrollbar'),\n scrollLength: 1,\n length: 1\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Scrollbar);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Scrollbar.js?");
5162
5162
 
5163
5163
  /***/ }),
5164
5164
 
@@ -5170,7 +5170,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
5170
5170
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5171
5171
 
5172
5172
  "use strict";
5173
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/rsuite-table/node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/flatten */ \"./node_modules/rsuite-table/node_modules/lodash/flatten.js\");\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/rsuite-table/node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isEqual */ \"./node_modules/rsuite-table/node_modules/lodash/isEqual.js\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/eq */ \"./node_modules/rsuite-table/node_modules/lodash/eq.js\");\n/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_eq__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/rsuite-table/node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/rsuite-table/node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var element_resize_event__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! element-resize-event */ \"./node_modules/element-resize-event/index.js\");\n/* harmony import */ var element_resize_event__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(element_resize_event__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! dom-lib/lib/transition/translateDOMPositionXY */ \"./node_modules/dom-lib/lib/transition/translateDOMPositionXY.js\");\n/* harmony import */ var dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar SORT_TYPE = {\n DESC: 'desc',\n ASC: 'asc'\n};\n\nvar Table = /*#__PURE__*/function (_React$Component) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Table, _React$Component);\n\n Table.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (props.data !== state.cacheData || props.isTree !== state.isTree) {\n return {\n cacheData: props.data,\n isTree: props.isTree,\n data: props.isTree ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"flattenData\"])(props.data) : props.data\n };\n }\n\n return null;\n };\n\n function Table(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.translateDOMPositionXY = null;\n _this.scrollListener = null;\n _this.tableRef = void 0;\n _this.scrollbarYRef = void 0;\n _this.scrollbarXRef = void 0;\n _this.tableBodyRef = void 0;\n _this.affixHeaderWrapperRef = void 0;\n _this.mouseAreaRef = void 0;\n _this.headerWrapperRef = void 0;\n _this.tableHeaderRef = void 0;\n _this.wheelWrapperRef = void 0;\n _this.tableRows = {};\n _this.mounted = false;\n _this.disableEventsTimeoutId = null;\n _this.scrollY = 0;\n _this.scrollX = 0;\n _this.wheelHandler = void 0;\n _this.minScrollY = void 0;\n _this.minScrollX = void 0;\n _this.mouseArea = void 0;\n _this.touchX = void 0;\n _this.touchY = void 0;\n _this.wheelListener = void 0;\n _this.touchStartListener = void 0;\n _this.touchMoveListener = void 0;\n _this._cacheCells = null;\n _this._cacheChildrenSize = 0;\n _this._visibleRows = [];\n\n _this.listenWheel = function (deltaX, deltaY) {\n var _this$scrollbarXRef$c, _this$scrollbarXRef$c2, _this$scrollbarYRef$c, _this$scrollbarYRef$c2;\n\n _this.handleWheel(deltaX, deltaY);\n\n (_this$scrollbarXRef$c = _this.scrollbarXRef.current) === null || _this$scrollbarXRef$c === void 0 ? void 0 : (_this$scrollbarXRef$c2 = _this$scrollbarXRef$c.onWheelScroll) === null || _this$scrollbarXRef$c2 === void 0 ? void 0 : _this$scrollbarXRef$c2.call(_this$scrollbarXRef$c, deltaX);\n (_this$scrollbarYRef$c = _this.scrollbarYRef.current) === null || _this$scrollbarYRef$c === void 0 ? void 0 : (_this$scrollbarYRef$c2 = _this$scrollbarYRef$c.onWheelScroll) === null || _this$scrollbarYRef$c2 === void 0 ? void 0 : _this$scrollbarYRef$c2.call(_this$scrollbarYRef$c, deltaY);\n };\n\n _this.setOffsetByAffix = function () {\n var _this$headerWrapperRe, _this$tableRef;\n\n var _this$props = _this.props,\n affixHeader = _this$props.affixHeader,\n affixHorizontalScrollbar = _this$props.affixHorizontalScrollbar;\n var headerNode = (_this$headerWrapperRe = _this.headerWrapperRef) === null || _this$headerWrapperRe === void 0 ? void 0 : _this$headerWrapperRe.current;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader) && headerNode) {\n _this.setState(function () {\n return {\n headerOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getOffset\"])(headerNode)\n };\n });\n }\n\n var tableNode = (_this$tableRef = _this.tableRef) === null || _this$tableRef === void 0 ? void 0 : _this$tableRef.current;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar) && tableNode) {\n _this.setState(function () {\n return {\n tableOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getOffset\"])(tableNode)\n };\n });\n }\n };\n\n _this.handleWindowScroll = function () {\n var _this$props2 = _this.props,\n affixHeader = _this$props2.affixHeader,\n affixHorizontalScrollbar = _this$props2.affixHorizontalScrollbar;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader)) {\n _this.affixTableHeader();\n }\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar)) {\n _this.affixHorizontalScrollbar();\n }\n };\n\n _this.affixHorizontalScrollbar = function () {\n var _this$scrollbarXRef, _this$scrollbarXRef$c3, _this$scrollbarXRef$c4;\n\n var scrollY = window.scrollY || window.pageYOffset;\n var windowHeight = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(window);\n\n var height = _this.getTableHeight();\n\n var _this$state = _this.state,\n tableOffset = _this$state.tableOffset,\n fixedHorizontalScrollbar = _this$state.fixedHorizontalScrollbar;\n var affixHorizontalScrollbar = _this.props.affixHorizontalScrollbar;\n\n var headerHeight = _this.getTableHeaderHeight();\n\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var fixedScrollbar = scrollY + windowHeight < height + (tableOffset.top + bottom) && scrollY + windowHeight - headerHeight > tableOffset.top + bottom;\n\n if ((_this$scrollbarXRef = _this.scrollbarXRef) !== null && _this$scrollbarXRef !== void 0 && (_this$scrollbarXRef$c3 = _this$scrollbarXRef.current) !== null && _this$scrollbarXRef$c3 !== void 0 && (_this$scrollbarXRef$c4 = _this$scrollbarXRef$c3.barRef) !== null && _this$scrollbarXRef$c4 !== void 0 && _this$scrollbarXRef$c4.current && fixedHorizontalScrollbar !== fixedScrollbar) {\n _this.setState({\n fixedHorizontalScrollbar: fixedScrollbar\n });\n }\n };\n\n _this.affixTableHeader = function () {\n var affixHeader = _this.props.affixHeader;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var _this$state2 = _this.state,\n headerOffset = _this$state2.headerOffset,\n contentHeight = _this$state2.contentHeight;\n var scrollY = window.scrollY || window.pageYOffset;\n var fixedHeader = scrollY - (headerOffset.top - top) >= 0 && scrollY < headerOffset.top - top + contentHeight;\n\n if (_this.affixHeaderWrapperRef.current) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(_this.affixHeaderWrapperRef.current, 'fixed', fixedHeader);\n }\n };\n\n _this.handleSortColumn = function (dataKey) {\n var _this$props$onSortCol, _this$props3;\n\n var sortType = _this.getSortType();\n\n if (_this.props.sortColumn === dataKey) {\n sortType = sortType === SORT_TYPE.ASC ? SORT_TYPE.DESC : SORT_TYPE.ASC;\n\n _this.setState({\n sortType: sortType\n });\n }\n\n (_this$props$onSortCol = (_this$props3 = _this.props).onSortColumn) === null || _this$props$onSortCol === void 0 ? void 0 : _this$props$onSortCol.call(_this$props3, dataKey, sortType);\n };\n\n _this.handleColumnResizeEnd = function (columnWidth, _cursorDelta, dataKey, index) {\n var _this$setState;\n\n _this._cacheCells = null;\n\n _this.setState((_this$setState = {\n isColumnResizing: false\n }, _this$setState[dataKey + \"_\" + index + \"_width\"] = columnWidth, _this$setState));\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(_this.mouseAreaRef.current, {\n display: 'none'\n });\n };\n\n _this.handleColumnResizeStart = function (width, left, fixed) {\n _this.setState({\n isColumnResizing: true\n });\n\n _this.handleColumnResizeMove(width, left, fixed);\n };\n\n _this.handleColumnResizeMove = function (width, left, fixed) {\n var _addStyle;\n\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n\n if (_this.isRTL()) {\n mouseAreaLeft += _this.minScrollX + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n dir = 'right';\n }\n\n if (!fixed) {\n x = mouseAreaLeft + (_this.isRTL() ? -_this.scrollX : _this.scrollX);\n }\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(_this.mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n };\n\n _this.handleTreeToggle = function (rowKey, _rowIndex, rowData) {\n var _this$props$onExpandC, _this$props4;\n\n var expandedRowKeys = _this.getExpandedRowKeys();\n\n var open = false;\n var nextExpandedRowKeys = [];\n\n for (var i = 0; i < expandedRowKeys.length; i++) {\n var _key = expandedRowKeys[i];\n\n if (_key === rowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(_key);\n }\n }\n\n if (!open) {\n nextExpandedRowKeys.push(rowKey);\n }\n\n _this.setState({\n expandedRowKeys: nextExpandedRowKeys\n });\n\n (_this$props$onExpandC = (_this$props4 = _this.props).onExpandChange) === null || _this$props$onExpandC === void 0 ? void 0 : _this$props$onExpandC.call(_this$props4, !open, rowData);\n };\n\n _this.handleScrollX = function (delta) {\n _this.handleWheel(delta, 0);\n };\n\n _this.handleScrollY = function (delta) {\n _this.handleWheel(0, delta);\n };\n\n _this.handleWheel = function (deltaX, deltaY) {\n var _this$props5 = _this.props,\n onScroll = _this$props5.onScroll,\n virtualized = _this$props5.virtualized;\n var _this$state3 = _this.state,\n contentWidth = _this$state3.contentWidth,\n width = _this$state3.width;\n\n if (!_this.tableRef.current) {\n return;\n }\n\n var nextScrollX = contentWidth <= width ? 0 : _this.scrollX - deltaX;\n var nextScrollY = _this.scrollY - deltaY;\n _this.scrollY = Math.min(0, nextScrollY < _this.minScrollY ? _this.minScrollY : nextScrollY);\n _this.scrollX = Math.min(0, nextScrollX < _this.minScrollX ? _this.minScrollX : nextScrollX);\n\n _this.updatePosition();\n\n onScroll === null || onScroll === void 0 ? void 0 : onScroll(_this.scrollX, _this.scrollY);\n\n if (virtualized) {\n _this.setState({\n isScrolling: true,\n scrollY: _this.scrollY\n });\n\n if (_this.disableEventsTimeoutId) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"cancelAnimationTimeout\"])(_this.disableEventsTimeoutId);\n }\n\n _this.disableEventsTimeoutId = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"requestAnimationTimeout\"])(_this.debounceScrollEndedCallback, 150);\n }\n };\n\n _this.debounceScrollEndedCallback = function () {\n _this.disableEventsTimeoutId = null;\n\n _this.setState({\n isScrolling: false\n });\n };\n\n _this.handleTouchStart = function (event) {\n var _this$props$onTouchSt, _this$props6;\n\n if (event.touches) {\n var _event$touches$ = event.touches[0],\n pageX = _event$touches$.pageX,\n pageY = _event$touches$.pageY;\n _this.touchX = pageX;\n _this.touchY = pageY;\n }\n\n (_this$props$onTouchSt = (_this$props6 = _this.props).onTouchStart) === null || _this$props$onTouchSt === void 0 ? void 0 : _this$props$onTouchSt.call(_this$props6, event);\n };\n\n _this.handleTouchMove = function (event) {\n var _this$props$onTouchMo, _this$props7;\n\n var autoHeight = _this.props.autoHeight;\n\n if (event.touches) {\n var _event$preventDefault, _this$scrollbarXRef$c5, _this$scrollbarXRef$c6, _this$scrollbarYRef$c3, _this$scrollbarYRef$c4;\n\n var _event$touches$2 = event.touches[0],\n pageX = _event$touches$2.pageX,\n pageY = _event$touches$2.pageY;\n var deltaX = _this.touchX - pageX;\n var deltaY = autoHeight ? 0 : _this.touchY - pageY;\n\n if (!_this.shouldHandleWheelY(deltaY) && !_this.shouldHandleWheelX(deltaX)) {\n return;\n }\n\n (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 ? void 0 : _event$preventDefault.call(event);\n\n _this.handleWheel(deltaX, deltaY);\n\n (_this$scrollbarXRef$c5 = _this.scrollbarXRef.current) === null || _this$scrollbarXRef$c5 === void 0 ? void 0 : (_this$scrollbarXRef$c6 = _this$scrollbarXRef$c5.onWheelScroll) === null || _this$scrollbarXRef$c6 === void 0 ? void 0 : _this$scrollbarXRef$c6.call(_this$scrollbarXRef$c5, deltaX);\n (_this$scrollbarYRef$c3 = _this.scrollbarYRef.current) === null || _this$scrollbarYRef$c3 === void 0 ? void 0 : (_this$scrollbarYRef$c4 = _this$scrollbarYRef$c3.onWheelScroll) === null || _this$scrollbarYRef$c4 === void 0 ? void 0 : _this$scrollbarYRef$c4.call(_this$scrollbarYRef$c3, deltaY);\n _this.touchX = pageX;\n _this.touchY = pageY;\n }\n\n (_this$props$onTouchMo = (_this$props7 = _this.props).onTouchMove) === null || _this$props$onTouchMo === void 0 ? void 0 : _this$props$onTouchMo.call(_this$props7, event);\n };\n\n _this.handleBodyScroll = function (event) {\n if (event.target !== _this.tableBodyRef.current) {\n return;\n }\n\n var left = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollLeft\"])(event.target);\n var top = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollTop\"])(event.target);\n\n if (top === 0 && left === 0) {\n return;\n }\n\n _this.listenWheel(left, top);\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollLeft\"])(event.target, 0);\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollTop\"])(event.target, 0);\n };\n\n _this.shouldHandleWheelX = function (delta) {\n var _this$props8 = _this.props,\n disabledScroll = _this$props8.disabledScroll,\n loading = _this$props8.loading;\n\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n\n return true;\n };\n\n _this.shouldHandleWheelY = function (delta) {\n var _this$props9 = _this.props,\n disabledScroll = _this$props9.disabledScroll,\n loading = _this$props9.loading;\n\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n\n return delta >= 0 && _this.scrollY > _this.minScrollY || delta < 0 && _this.scrollY < 0;\n };\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.calculateTableWidth = function () {\n var _this$tableRef2;\n\n var table = (_this$tableRef2 = _this.tableRef) === null || _this$tableRef2 === void 0 ? void 0 : _this$tableRef2.current;\n var width = _this.state.width;\n\n if (table) {\n var nextWidth = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getWidth\"])(table);\n\n if (width !== nextWidth) {\n var _this$scrollbarXRef2, _this$scrollbarXRef2$;\n\n _this.scrollX = 0;\n (_this$scrollbarXRef2 = _this.scrollbarXRef) === null || _this$scrollbarXRef2 === void 0 ? void 0 : (_this$scrollbarXRef2$ = _this$scrollbarXRef2.current) === null || _this$scrollbarXRef2$ === void 0 ? void 0 : _this$scrollbarXRef2$.resetScrollBarPosition();\n }\n\n _this._cacheCells = null;\n\n _this.setState({\n width: nextWidth\n });\n }\n\n _this.setOffsetByAffix();\n };\n\n _this.scrollTop = function (top) {\n var _this$scrollbarYRef, _this$scrollbarYRef$c5, _this$scrollbarYRef$c6;\n\n if (top === void 0) {\n top = 0;\n }\n\n var _this$getControlledSc = _this.getControlledScrollTopValue(top),\n scrollY = _this$getControlledSc[0],\n handleScrollY = _this$getControlledSc[1];\n\n _this.scrollY = scrollY;\n (_this$scrollbarYRef = _this.scrollbarYRef) === null || _this$scrollbarYRef === void 0 ? void 0 : (_this$scrollbarYRef$c5 = _this$scrollbarYRef.current) === null || _this$scrollbarYRef$c5 === void 0 ? void 0 : (_this$scrollbarYRef$c6 = _this$scrollbarYRef$c5.resetScrollBarPosition) === null || _this$scrollbarYRef$c6 === void 0 ? void 0 : _this$scrollbarYRef$c6.call(_this$scrollbarYRef$c5, handleScrollY);\n\n _this.updatePosition();\n /**\n * 当开启 virtualized,调用 scrollTop 后会出现白屏现象,\n * 原因是直接操作 DOM 的坐标,但是组件没有重新渲染,需要调用 forceUpdate 重新进入 render。\n * Fix: rsuite#1044\n */\n\n\n if (_this.props.virtualized && _this.state.contentHeight > _this.props.height) {\n _this.forceUpdate();\n }\n };\n\n _this.scrollLeft = function (left) {\n var _this$scrollbarXRef3, _this$scrollbarXRef3$, _this$scrollbarXRef3$2;\n\n if (left === void 0) {\n left = 0;\n }\n\n var _this$getControlledSc2 = _this.getControlledScrollLeftValue(left),\n scrollX = _this$getControlledSc2[0],\n handleScrollX = _this$getControlledSc2[1];\n\n _this.scrollX = scrollX;\n (_this$scrollbarXRef3 = _this.scrollbarXRef) === null || _this$scrollbarXRef3 === void 0 ? void 0 : (_this$scrollbarXRef3$ = _this$scrollbarXRef3.current) === null || _this$scrollbarXRef3$ === void 0 ? void 0 : (_this$scrollbarXRef3$2 = _this$scrollbarXRef3$.resetScrollBarPosition) === null || _this$scrollbarXRef3$2 === void 0 ? void 0 : _this$scrollbarXRef3$2.call(_this$scrollbarXRef3$, handleScrollX);\n\n _this.updatePosition();\n };\n\n _this.scrollTo = function (coord) {\n var _ref = coord || {},\n x = _ref.x,\n y = _ref.y;\n\n if (typeof x === 'number') {\n _this.scrollLeft(x);\n }\n\n if (typeof y === 'number') {\n _this.scrollTop(y);\n }\n };\n\n _this.bindTableRowsRef = function (index, rowData) {\n return function (ref) {\n if (ref) {\n _this.tableRows[index] = [ref, rowData];\n }\n };\n };\n\n _this.bindRowClick = function (rowData) {\n return function (event) {\n var _this$props$onRowClic, _this$props10;\n\n (_this$props$onRowClic = (_this$props10 = _this.props).onRowClick) === null || _this$props$onRowClic === void 0 ? void 0 : _this$props$onRowClic.call(_this$props10, rowData, event);\n };\n };\n\n _this.bindRowContextMenu = function (rowData) {\n return function (event) {\n var _this$props$onRowCont, _this$props11;\n\n (_this$props$onRowCont = (_this$props11 = _this.props).onRowContextMenu) === null || _this$props$onRowCont === void 0 ? void 0 : _this$props$onRowCont.call(_this$props11, rowData, event);\n };\n };\n\n var _width = props.width,\n data = props.data,\n _rowKey = props.rowKey,\n defaultExpandAllRows = props.defaultExpandAllRows,\n renderRowExpanded = props.renderRowExpanded,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n _props$children = props.children,\n children = _props$children === void 0 ? [] : _props$children,\n isTree = props.isTree,\n defaultSortType = props.defaultSortType;\n\n var _expandedRowKeys = defaultExpandAllRows ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"findRowKeys\"])(data, _rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(renderRowExpanded)) : defaultExpandedRowKeys || [];\n\n var shouldFixedColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children)).some(function (child) {\n return child && child.props && child.props.fixed;\n });\n\n if (isTree && !_rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n }\n\n _this.state = {\n isTree: isTree,\n expandedRowKeys: _expandedRowKeys,\n shouldFixedColumn: shouldFixedColumn,\n cacheData: data,\n data: isTree ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"flattenData\"])(data) : data,\n width: _width || 0,\n columnWidth: 0,\n dataKey: 0,\n contentHeight: 0,\n contentWidth: 0,\n tableRowsMaxHeight: [],\n sortType: defaultSortType,\n scrollY: 0,\n isScrolling: false,\n fixedHeader: false\n };\n _this.scrollY = 0;\n _this.scrollX = 0;\n _this.wheelHandler = new dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"WheelHandler\"](_this.listenWheel, _this.shouldHandleWheelX, _this.shouldHandleWheelY, false);\n _this._cacheChildrenSize = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children).length;\n _this.translateDOMPositionXY = Object(dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__[\"getTranslateDOMPositionXY\"])({\n enable3DTransform: props.translate3d\n });\n _this.tableRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.scrollbarYRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.scrollbarXRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.tableBodyRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.affixHeaderWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.mouseAreaRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.headerWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.wheelWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.tableHeaderRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n return _this;\n }\n\n var _proto = Table.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this$props13, _this$props13$bodyRef;\n\n this.calculateTableWidth();\n this.calculateTableContextHeight();\n this.calculateRowMaxHeight();\n this.setOffsetByAffix();\n this.initPosition();\n element_resize_event__WEBPACK_IMPORTED_MODULE_13___default()(this.tableRef.current, lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default()(this.calculateTableWidth, 400));\n var options = {\n passive: false\n };\n var tableBody = this.tableBodyRef.current;\n\n if (tableBody) {\n this.wheelListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'wheel', this.wheelHandler.onWheel, options);\n this.touchStartListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'touchstart', this.handleTouchStart, options);\n this.touchMoveListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'touchmove', this.handleTouchMove, options);\n }\n\n var _this$props12 = this.props,\n affixHeader = _this$props12.affixHeader,\n affixHorizontalScrollbar = _this$props12.affixHorizontalScrollbar;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader) || Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar)) {\n this.scrollListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(window, 'scroll', this.handleWindowScroll);\n }\n\n (_this$props13 = this.props) === null || _this$props13 === void 0 ? void 0 : (_this$props13$bodyRef = _this$props13.bodyRef) === null || _this$props13$bodyRef === void 0 ? void 0 : _this$props13$bodyRef.call(_this$props13, this.wheelWrapperRef.current);\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n var _cacheChildrenSize = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(nextProps.children || []).length;\n /**\n * 单元格列的信息在初始化后会被缓存,在某些属性被更新以后,需要清除缓存。\n */\n\n if (_cacheChildrenSize !== this._cacheChildrenSize) {\n this._cacheChildrenSize = _cacheChildrenSize;\n this._cacheCells = null;\n } else if (this.props.children !== nextProps.children || this.props.sortColumn !== nextProps.sortColumn || this.props.sortType !== nextProps.sortType) {\n this._cacheCells = null;\n }\n\n return !lodash_eq__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps) || !lodash_isEqual__WEBPACK_IMPORTED_MODULE_9___default()(this.state, nextState);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n var rowHeight = prevProps.rowHeight,\n data = prevProps.data,\n height = prevProps.height;\n\n if (data !== this.props.data) {\n var _this$props$onDataUpd, _this$props14;\n\n this.calculateRowMaxHeight();\n (_this$props$onDataUpd = (_this$props14 = this.props).onDataUpdated) === null || _this$props$onDataUpd === void 0 ? void 0 : _this$props$onDataUpd.call(_this$props14, this.props.data, this.scrollTo);\n var maxHeight = this.props.data.length * (typeof rowHeight === 'function' ? rowHeight(null) : rowHeight); // 当开启允许更新滚动条,或者滚动条位置大于表格的最大高度,则初始滚动条位置\n\n if (this.props.shouldUpdateScroll || Math.abs(this.scrollY) > maxHeight) {\n this.scrollTo({\n x: 0,\n y: 0\n });\n }\n } else {\n this.updatePosition();\n }\n\n if ( // 当 Table 的 data 发生变化,需要重新计算高度\n data !== this.props.data || // 当 Table 的 height 属性发生变化,需要重新计算 Table 高度\n height !== this.props.height || // 当 Table 内容区的高度发生变化需要重新计算\n prevState.contentHeight !== this.state.contentHeight || // 当 expandedRowKeys 发生变化,需要重新计算 Table 高度,如果重算会导致滚动条不显示。\n prevState.expandedRowKeys !== this.state.expandedRowKeys || prevProps.expandedRowKeys !== this.props.expandedRowKeys) {\n this.calculateTableContextHeight(prevProps);\n }\n\n this.calculateTableContentWidth(prevProps);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var _this$wheelListener, _this$touchStartListe, _this$touchMoveListen, _this$scrollListener;\n\n this.wheelHandler = null;\n\n if (this.tableRef.current) {\n Object(element_resize_event__WEBPACK_IMPORTED_MODULE_13__[\"unbind\"])(this.tableRef.current);\n }\n\n (_this$wheelListener = this.wheelListener) === null || _this$wheelListener === void 0 ? void 0 : _this$wheelListener.off();\n (_this$touchStartListe = this.touchStartListener) === null || _this$touchStartListe === void 0 ? void 0 : _this$touchStartListe.off();\n (_this$touchMoveListen = this.touchMoveListener) === null || _this$touchMoveListen === void 0 ? void 0 : _this$touchMoveListen.off();\n (_this$scrollListener = this.scrollListener) === null || _this$scrollListener === void 0 ? void 0 : _this$scrollListener.off();\n };\n\n _proto.getExpandedRowKeys = function getExpandedRowKeys() {\n var expandedRowKeys = this.props.expandedRowKeys;\n return typeof expandedRowKeys === 'undefined' ? this.state.expandedRowKeys : expandedRowKeys;\n };\n\n _proto.getSortType = function getSortType() {\n var sortType = this.props.sortType;\n return typeof sortType === 'undefined' ? this.state.sortType : sortType;\n };\n\n _proto.getScrollCellGroups = function getScrollCellGroups() {\n var _this$tableRef$curren;\n\n return (_this$tableRef$curren = this.tableRef.current) === null || _this$tableRef$curren === void 0 ? void 0 : _this$tableRef$curren.querySelectorAll(\".\" + this.addPrefix('cell-group-scroll'));\n };\n\n _proto.getFixedLeftCellGroups = function getFixedLeftCellGroups() {\n var _this$tableRef$curren2;\n\n return (_this$tableRef$curren2 = this.tableRef.current) === null || _this$tableRef$curren2 === void 0 ? void 0 : _this$tableRef$curren2.querySelectorAll(\".\" + this.addPrefix('cell-group-fixed-left'));\n };\n\n _proto.getFixedRightCellGroups = function getFixedRightCellGroups() {\n var _this$tableRef$curren3;\n\n return (_this$tableRef$curren3 = this.tableRef.current) === null || _this$tableRef$curren3 === void 0 ? void 0 : _this$tableRef$curren3.querySelectorAll(\".\" + this.addPrefix('cell-group-fixed-right'));\n };\n\n _proto.isRTL = function isRTL() {\n return this.props.rtl || Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isRTL\"])();\n };\n\n _proto.getRowHeight = function getRowHeight(rowData) {\n if (rowData === void 0) {\n rowData = {};\n }\n\n var rowHeight = this.props.rowHeight;\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n }\n /**\n * 获取表头高度\n */\n ;\n\n _proto.getTableHeaderHeight = function getTableHeaderHeight() {\n var _this$props15 = this.props,\n headerHeight = _this$props15.headerHeight,\n showHeader = _this$props15.showHeader;\n return showHeader ? headerHeight : 0;\n }\n /**\n * 获取 Table 需要渲染的高度\n */\n ;\n\n _proto.getTableHeight = function getTableHeight() {\n var contentHeight = this.state.contentHeight;\n var _this$props16 = this.props,\n minHeight = _this$props16.minHeight,\n height = _this$props16.height,\n autoHeight = _this$props16.autoHeight,\n data = _this$props16.data;\n var headerHeight = this.getTableHeaderHeight();\n\n if (data.length === 0 && autoHeight) {\n return height;\n }\n\n return autoHeight ? Math.max(headerHeight + contentHeight, minHeight) : height;\n }\n /**\n * 获取 columns ReactElement 数组\n * - 处理 children 中存在 <Column> 数组的情况\n * - 过滤 children 中的空项\n */\n ;\n\n _proto.getTableColumns = function getTableColumns() {\n var children = this.props.children;\n\n if (!Array.isArray(children)) {\n return children;\n }\n\n var flattenColumns = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children).map(function (column) {\n if ((column === null || column === void 0 ? void 0 : column.type) === _ColumnGroup__WEBPACK_IMPORTED_MODULE_22__[\"default\"]) {\n var _column$props = column === null || column === void 0 ? void 0 : column.props,\n header = _column$props.header,\n childColumns = _column$props.children,\n align = _column$props.align,\n fixed = _column$props.fixed,\n verticalAlign = _column$props.verticalAlign;\n\n return childColumns.map(function (childColumn, index) {\n // 把 ColumnGroup 设置的属性覆盖到 Column\n var groupCellProps = {\n align: align,\n fixed: fixed,\n verticalAlign: verticalAlign\n };\n /**\n * 为分组中的第一列设置属性:\n * groupCount: 分组子项个数\n * groupHeader: 分组标题\n * resizable: 设置为不可自定义列宽\n */\n\n if (index === 0) {\n groupCellProps.groupCount = childColumns.length;\n groupCellProps.groupHeader = header;\n groupCellProps.resizable = false;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](childColumn, groupCellProps);\n });\n }\n\n return column;\n }); // 把 Columns 中的数组,展平为一维数组,计算 lastColumn 与 firstColumn。\n\n return lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(flattenColumns).filter(function (col) {\n return col;\n });\n };\n\n _proto.getCellDescriptor = function getCellDescriptor() {\n var _this2 = this;\n\n if (this._cacheCells) {\n return this._cacheCells;\n }\n\n var hasCustomTreeCol = false;\n var left = 0; // Cell left margin\n\n var headerCells = []; // Table header cell\n\n var bodyCells = []; // Table body cell\n\n var children = this.props.children;\n\n if (!children) {\n this._cacheCells = {\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n return this._cacheCells;\n }\n\n var columns = this.getTableColumns();\n var tableWidth = this.state.width;\n var _this$props17 = this.props,\n sortColumn = _this$props17.sortColumn,\n rowHeight = _this$props17.rowHeight,\n showHeader = _this$props17.showHeader;\n\n var _getTotalByColumns = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"getTotalByColumns\"])(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n\n var headerHeight = this.getTableHeaderHeight();\n react__WEBPACK_IMPORTED_MODULE_3__[\"Children\"].forEach(columns, function (column, index) {\n if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"isValidElement\"](column)) {\n var columnChildren = column.props.children;\n var _column$props2 = column.props,\n width = _column$props2.width,\n resizable = _column$props2.resizable,\n flexGrow = _column$props2.flexGrow,\n minWidth = _column$props2.minWidth,\n onResize = _column$props2.onResize,\n treeCol = _column$props2.treeCol;\n\n if (treeCol) {\n hasCustomTreeCol = true;\n }\n\n if (resizable && flexGrow) {\n console.warn(\"Cannot set 'resizable' and 'flexGrow' together in <Column>, column index: \" + index);\n }\n\n if (columnChildren.length !== 2) {\n throw new Error(\"Component <HeaderCell> and <Cell> is required, column index: \" + index + \" \");\n }\n\n var nextWidth = _this2.state[columnChildren[1].props.dataKey + \"_\" + index + \"_width\"] || width || 0;\n\n if (tableWidth && flexGrow && totalFlexGrow) {\n nextWidth = Math.max((tableWidth - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n }\n\n var cellProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, lodash_omit__WEBPACK_IMPORTED_MODULE_11___default()(column.props, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: nextWidth,\n height: rowHeight,\n firstColumn: index === 0,\n lastColumn: index === columns.length - 1\n });\n\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // index 用于拖拽列宽时候(Resizable column),定义的序号\n index: index,\n dataKey: columnChildren[1].props.dataKey,\n isHeaderCell: true,\n sortable: column.props.sortable,\n onSortColumn: _this2.handleSortColumn,\n sortType: _this2.getSortType(),\n sortColumn: sortColumn,\n flexGrow: flexGrow\n };\n\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_12___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: _this2.handleColumnResizeEnd,\n onColumnResizeStart: _this2.handleColumnResizeStart,\n onColumnResizeMove: _this2.handleColumnResizeMove\n });\n }\n\n headerCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](columnChildren[0], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, cellProps, headerCellProps)));\n }\n\n bodyCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](columnChildren[1], cellProps));\n left += nextWidth;\n }\n });\n return this._cacheCells = {\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n };\n\n _proto.initPosition = function initPosition() {\n var _this3 = this;\n\n if (this.isRTL()) {\n setTimeout(function () {\n var _this3$scrollbarXRef, _this3$scrollbarXRef$, _this3$scrollbarXRef$2;\n\n var _this3$state = _this3.state,\n contentWidth = _this3$state.contentWidth,\n width = _this3$state.width;\n _this3.scrollX = width - contentWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n\n _this3.updatePosition();\n\n (_this3$scrollbarXRef = _this3.scrollbarXRef) === null || _this3$scrollbarXRef === void 0 ? void 0 : (_this3$scrollbarXRef$ = _this3$scrollbarXRef.current) === null || _this3$scrollbarXRef$ === void 0 ? void 0 : (_this3$scrollbarXRef$2 = _this3$scrollbarXRef$.resetScrollBarPosition) === null || _this3$scrollbarXRef$2 === void 0 ? void 0 : _this3$scrollbarXRef$2.call(_this3$scrollbarXRef$, -_this3.scrollX);\n }, 0);\n }\n };\n\n _proto.updatePosition = function updatePosition() {\n var _this$tableHeaderRef;\n\n /**\n * 当存在锁定列情况处理\n */\n if (this.state.shouldFixedColumn) {\n this.updatePositionByFixedCell();\n } else {\n var _this$wheelWrapperRef, _this$headerWrapperRe2, _this$affixHeaderWrap, _affixHeaderElement$h;\n\n var wheelStyle = {};\n var headerStyle = {};\n this.translateDOMPositionXY(wheelStyle, this.scrollX, this.scrollY);\n this.translateDOMPositionXY(headerStyle, this.scrollX, 0);\n var wheelElement = (_this$wheelWrapperRef = this.wheelWrapperRef) === null || _this$wheelWrapperRef === void 0 ? void 0 : _this$wheelWrapperRef.current;\n var headerElement = (_this$headerWrapperRe2 = this.headerWrapperRef) === null || _this$headerWrapperRe2 === void 0 ? void 0 : _this$headerWrapperRe2.current;\n var affixHeaderElement = (_this$affixHeaderWrap = this.affixHeaderWrapperRef) === null || _this$affixHeaderWrap === void 0 ? void 0 : _this$affixHeaderWrap.current;\n wheelElement && Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(wheelElement, wheelStyle);\n headerElement && Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(headerElement, headerStyle);\n\n if (affixHeaderElement !== null && affixHeaderElement !== void 0 && (_affixHeaderElement$h = affixHeaderElement.hasChildNodes) !== null && _affixHeaderElement$h !== void 0 && _affixHeaderElement$h.call(affixHeaderElement)) {\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(affixHeaderElement.firstChild, headerStyle);\n }\n }\n\n if ((_this$tableHeaderRef = this.tableHeaderRef) !== null && _this$tableHeaderRef !== void 0 && _this$tableHeaderRef.current) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(this.tableHeaderRef.current, this.addPrefix('cell-group-shadow'), this.scrollY < 0);\n }\n };\n\n _proto.updatePositionByFixedCell = function updatePositionByFixedCell() {\n var _this$wheelWrapperRef2;\n\n var wheelGroupStyle = {};\n var wheelStyle = {};\n var scrollGroups = this.getScrollCellGroups();\n var fixedLeftGroups = this.getFixedLeftCellGroups();\n var fixedRightGroups = this.getFixedRightCellGroups();\n var _this$state4 = this.state,\n contentWidth = _this$state4.contentWidth,\n width = _this$state4.width;\n this.translateDOMPositionXY(wheelGroupStyle, this.scrollX, 0);\n this.translateDOMPositionXY(wheelStyle, 0, this.scrollY);\n var scrollArrayGroups = Array.from(scrollGroups);\n\n for (var i = 0; i < scrollArrayGroups.length; i++) {\n var group = scrollArrayGroups[i];\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(group, wheelGroupStyle);\n }\n\n if ((_this$wheelWrapperRef2 = this.wheelWrapperRef) !== null && _this$wheelWrapperRef2 !== void 0 && _this$wheelWrapperRef2.current) {\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(this.wheelWrapperRef.current, wheelStyle);\n }\n\n var leftShadowClassName = this.addPrefix('cell-group-left-shadow');\n var rightShadowClassName = this.addPrefix('cell-group-right-shadow');\n var showLeftShadow = this.scrollX < 0;\n var showRightShadow = width - contentWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"] !== this.scrollX;\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(fixedLeftGroups, leftShadowClassName, showLeftShadow);\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(fixedRightGroups, rightShadowClassName, showRightShadow);\n };\n\n _proto.shouldRenderExpandedRow = function shouldRenderExpandedRow(rowData) {\n var _this$props18 = this.props,\n rowKey = _this$props18.rowKey,\n renderRowExpanded = _this$props18.renderRowExpanded,\n isTree = _this$props18.isTree;\n var expandedRowKeys = this.getExpandedRowKeys() || [];\n return lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(renderRowExpanded) && !isTree && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n });\n };\n\n _proto.calculateRowMaxHeight = function calculateRowMaxHeight() {\n var wordWrap = this.props.wordWrap;\n\n if (wordWrap) {\n var tableRowsMaxHeight = [];\n var tableRows = Object.values(this.tableRows);\n\n for (var i = 0; i < tableRows.length; i++) {\n var _tableRows$i = tableRows[i],\n row = _tableRows$i[0];\n\n if (row) {\n var cells = row.querySelectorAll(\".\" + this.addPrefix('cell-wrap')) || [];\n var cellArray = Array.from(cells);\n var maxHeight = 0;\n\n for (var j = 0; j < cellArray.length; j++) {\n var cell = cellArray[j];\n var h = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(cell);\n maxHeight = Math.max(maxHeight, h);\n }\n\n tableRowsMaxHeight.push(maxHeight);\n }\n }\n\n this.setState({\n tableRowsMaxHeight: tableRowsMaxHeight\n });\n }\n };\n\n _proto.calculateTableContentWidth = function calculateTableContentWidth(prevProps) {\n var _this$tableRef3;\n\n var table = (_this$tableRef3 = this.tableRef) === null || _this$tableRef3 === void 0 ? void 0 : _this$tableRef3.current;\n var row = table.querySelector(\".\" + this.addPrefix('row') + \":not(.virtualized)\");\n var contentWidth = row ? Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getWidth\"])(row) : 0;\n this.setState({\n contentWidth: contentWidth\n }); // 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分\n\n this.minScrollX = -(contentWidth - this.state.width) - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n /**\n * 1.判断 Table 列数是否发生变化\n * 2.判断 Table 内容区域是否宽度有变化\n *\n * 满足 1 和 2 则更新横向滚动条位置\n */\n\n if (lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(this.props.children).length !== lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(prevProps.children).length && this.state.contentWidth !== contentWidth) {\n this.scrollLeft(0);\n }\n };\n\n _proto.calculateTableContextHeight = function calculateTableContextHeight(prevProps) {\n var table = this.tableRef.current;\n var rows = table.querySelectorAll(\".\" + this.addPrefix('row')) || [];\n var _this$props19 = this.props,\n height = _this$props19.height,\n autoHeight = _this$props19.autoHeight,\n rowHeight = _this$props19.rowHeight,\n affixHeader = _this$props19.affixHeader;\n var headerHeight = this.getTableHeaderHeight();\n var contentHeight = rows.length ? Array.from(rows).map(function (row) {\n return Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(row) || rowHeight;\n }).reduce(function (x, y) {\n return x + y;\n }) : 0; // 当设置 affixHeader 属性后要减掉两个 header 的高度\n\n var nextContentHeight = contentHeight - (affixHeader ? headerHeight * 2 : headerHeight);\n\n if (nextContentHeight !== this.state.contentHeight) {\n this.setState({\n contentHeight: nextContentHeight\n });\n }\n\n if (prevProps && ( // 当 data 更新,或者表格高度更新,则更新滚动条\n prevProps.height !== height || prevProps.data !== this.props.data) && this.scrollY !== 0) {\n this.scrollTop(Math.abs(this.scrollY));\n this.updatePosition();\n }\n\n if (!autoHeight) {\n // 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分\n this.minScrollY = -(contentHeight - height) - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n } // 如果内容区域的高度小于表格的高度,则重置 Y 坐标滚动条\n\n\n if (contentHeight < height) {\n this.scrollTop(0);\n } // 如果 scrollTop 的值大于可以滚动的范围 ,则重置 Y 坐标滚动条\n // 当 Table 为 virtualized 时, wheel 事件触发每次都会进入该逻辑, 避免在滚动到底部后滚动条重置, +SCROLLBAR_WIDTH\n\n\n if (Math.abs(this.scrollY) + height - headerHeight > nextContentHeight + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]) {\n this.scrollTop(this.scrollY);\n }\n };\n\n _proto.getControlledScrollTopValue = function getControlledScrollTopValue(value) {\n if (this.props.autoHeight) {\n return [0, 0];\n }\n\n var contentHeight = this.state.contentHeight;\n var headerHeight = this.getTableHeaderHeight();\n var height = this.getTableHeight(); // 滚动值的最大范围判断\n\n value = Math.min(value, Math.max(0, contentHeight - (height - headerHeight))); // value 值是表格理论滚动位置的一个值,通过 value 计算出 scrollY 坐标值与滚动条位置的值\n\n return [-value, value / contentHeight * (height - headerHeight)];\n };\n\n _proto.getControlledScrollLeftValue = function getControlledScrollLeftValue(value) {\n var _this$state5 = this.state,\n contentWidth = _this$state5.contentWidth,\n width = _this$state5.width; // 滚动值的最大范围判断\n\n value = Math.min(value, Math.max(0, contentWidth - width));\n return [-value, value / contentWidth * width];\n }\n /**\n * public method\n */\n ;\n\n _proto.renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var _this$props20 = this.props,\n renderTreeToggle = _this$props20.renderTreeToggle,\n rowKey = _this$props20.rowKey,\n wordWrap = _this$props20.wordWrap,\n isTree = _this$props20.isTree;\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n\n var rowProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, props, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: this.bindTableRowsRef(props.key, rowData),\n onClick: this.bindRowClick(rowData),\n onContextMenu: this.bindRowContextMenu(rowData)\n });\n\n var expandedRowKeys = this.getExpandedRowKeys() || [];\n var expanded = expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n });\n var cells = [];\n\n for (var i = 0; i < bodyCells.length; i++) {\n var cell = bodyCells[i];\n cells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](cell, {\n hasChildren: hasChildren,\n rowData: rowData,\n wordWrap: wordWrap,\n renderTreeToggle: renderTreeToggle,\n height: props.height,\n rowIndex: props.key,\n depth: props.depth,\n onTreeToggle: this.handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded\n }));\n }\n\n return this.renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n\n _proto.renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var rowClassName = this.props.rowClassName;\n var _this$state6 = this.state,\n shouldFixedColumn = _this$state6.shouldFixedColumn,\n width = _this$state6.width,\n contentWidth = _this$state6.contentWidth;\n\n var depth = props.depth,\n restRowProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(props, [\"depth\"]);\n\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData);\n } else {\n restRowProps.className = rowClassName;\n }\n\n var rowStyles = {};\n var rowRight = 0;\n\n if (this.isRTL() && contentWidth > width) {\n rowRight = width - contentWidth;\n rowStyles.right = rowRight;\n } // IF there are fixed columns, add a fixed group\n\n\n if (shouldFixedColumn && contentWidth > width) {\n var fixedLeftCells = [];\n var fixedRightCells = [];\n var scrollCells = [];\n var fixedLeftCellGroupWidth = 0;\n var fixedRightCellGroupWidth = 0;\n\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n var _cell$props = cell.props,\n fixed = _cell$props.fixed,\n _width2 = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n\n if (this.isRTL()) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += _width2;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += _width2;\n } else {\n scrollCells.push(cell);\n }\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: this.isRTL() ? {\n right: width - fixedLeftCellGroupWidth - rowRight\n } : null\n }, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"resetLeftForCells\"])(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], null, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n fixed: \"right\",\n style: this.isRTL() ? {\n right: 0 - rowRight\n } : {\n left: width - fixedRightCellGroupWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]\n }, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"resetLeftForCells\"])(fixedRightCells, _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]))) : null, shouldRenderExpandedRow && this.renderRowExpanded(rowData));\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], null, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(cells)), shouldRenderExpandedRow && this.renderRowExpanded(rowData));\n };\n\n _proto.renderRowExpanded = function renderRowExpanded(rowData) {\n var _this$props21 = this.props,\n renderRowExpanded = _this$props21.renderRowExpanded,\n rowExpandedHeight = _this$props21.rowExpandedHeight;\n var styles = {\n height: rowExpandedHeight\n };\n\n if (typeof renderRowExpanded === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('row-expanded'),\n style: styles\n }, renderRowExpanded(rowData));\n }\n\n return null;\n };\n\n _proto.renderMouseArea = function renderMouseArea() {\n var headerHeight = this.getTableHeaderHeight();\n var styles = {\n height: this.getTableHeight()\n };\n var spanStyles = {\n height: headerHeight - 1\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.mouseAreaRef,\n className: this.addPrefix('mouse-area'),\n style: styles\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n style: spanStyles\n }));\n };\n\n _proto.renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var affixHeader = this.props.affixHeader;\n var tableWidth = this.state.width;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var headerHeight = this.getTableHeaderHeight();\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: this.tableHeaderRef,\n width: rowWidth,\n height: this.getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: this.getTableHeaderHeight(),\n width: tableWidth,\n top: top\n }; // Affix header\n\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(this.addPrefix('affix-header')),\n style: fixedStyle,\n ref: this.affixHeaderWrapperRef\n }, this.renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_3__[\"Fragment\"], null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n role: \"rowgroup\",\n className: this.addPrefix('header-row-wrapper'),\n ref: this.headerWrapperRef\n }, this.renderRow(rowProps, headerCells)));\n };\n\n _proto.renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _this$props22 = this.props,\n rowExpandedHeight = _this$props22.rowExpandedHeight,\n renderRowExpanded = _this$props22.renderRowExpanded,\n isTree = _this$props22.isTree,\n rowKey = _this$props22.rowKey,\n wordWrap = _this$props22.wordWrap,\n virtualized = _this$props22.virtualized,\n rowHeight = _this$props22.rowHeight;\n var headerHeight = this.getTableHeaderHeight();\n var _this$state7 = this.state,\n tableRowsMaxHeight = _this$state7.tableRowsMaxHeight,\n isScrolling = _this$state7.isScrolling,\n data = _this$state7.data;\n var height = this.getTableHeight();\n var bodyHeight = height - headerHeight;\n var bodyStyles = {\n top: headerHeight,\n height: bodyHeight\n };\n var contentHeight = 0;\n var topHideHeight = 0;\n var bottomHideHeight = 0;\n this._visibleRows = [];\n\n if (data) {\n var top = 0; // Row position\n\n var minTop = Math.abs(this.scrollY);\n var maxTop = minTop + height + rowExpandedHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!(renderRowExpanded || isCustomRowHeight || isTree);\n /**\n 如果开启了 virtualized 同时 Table 中的的行高是可变的,\n 则需要循环遍历 data, 获取每一行的高度。\n */\n\n if (isUncertainHeight && virtualized || !virtualized) {\n for (var index = 0; index < data.length; index++) {\n var rowData = data[index];\n var maxHeight = tableRowsMaxHeight[index];\n var shouldRenderExpandedRow = this.shouldRenderExpandedRow(rowData);\n var nextRowHeight = 0;\n var depth = 0;\n\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(rowData);\n } else {\n nextRowHeight = maxHeight ? Math.max(maxHeight + _constants__WEBPACK_IMPORTED_MODULE_20__[\"CELL_PADDING_HEIGHT\"], rowHeight) : rowHeight;\n\n if (shouldRenderExpandedRow) {\n nextRowHeight += rowExpandedHeight;\n }\n }\n\n if (isTree) {\n var parents = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"findAllParents\"])(rowData, rowKey);\n var expandedRowKeys = this.getExpandedRowKeys();\n depth = parents.length; // 如果是 Tree Table, 判断当前的行是否展开/折叠,如果是折叠则不显示该行。\n\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"shouldShowRowByExpanded\"])(expandedRowKeys, parents)) {\n continue;\n }\n }\n\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n width: rowWidth,\n depth: depth,\n height: nextRowHeight\n };\n top += nextRowHeight;\n\n if (virtualized && !wordWrap) {\n if (top + nextRowHeight < minTop) {\n topHideHeight += nextRowHeight;\n continue;\n } else if (top > maxTop) {\n bottomHideHeight += nextRowHeight;\n continue;\n }\n }\n\n this._visibleRows.push(this.renderRowData(bodyCells, rowData, rowProps, shouldRenderExpandedRow));\n }\n } else {\n /**\n 如果 Table 的行高是固定的,则直接通过行高与行数进行计算,\n 减少遍历所有 data 带来的性能消耗\n */\n var _nextRowHeight = this.getRowHeight();\n\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight), data.length);\n contentHeight = data.length * _nextRowHeight;\n topHideHeight = startIndex * _nextRowHeight;\n bottomHideHeight = (data.length - endIndex) * _nextRowHeight;\n\n for (var _index = startIndex; _index < endIndex; _index++) {\n var _rowData = data[_index];\n var _rowProps = {\n key: _index,\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight\n };\n\n this._visibleRows.push(this.renderRowData(bodyCells, _rowData, _rowProps, false));\n }\n }\n }\n\n var wheelStyles = {\n position: 'absolute',\n height: contentHeight,\n minHeight: height,\n pointerEvents: isScrolling ? 'none' : undefined\n };\n var topRowStyles = {\n height: topHideHeight\n };\n var bottomRowStyles = {\n height: bottomHideHeight\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.tableBodyRef,\n role: \"rowgroup\",\n className: this.addPrefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: this.handleBodyScroll\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n style: wheelStyles,\n className: this.addPrefix('body-wheel-area'),\n ref: this.wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, this._visibleRows, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), this.renderInfo(), this.renderScrollbar(), this.renderLoading());\n };\n\n _proto.renderInfo = function renderInfo() {\n var _this$props23 = this.props,\n locale = _this$props23.locale,\n renderEmpty = _this$props23.renderEmpty,\n loading = _this$props23.loading;\n\n if (this._visibleRows.length || loading) {\n return null;\n }\n\n var emptyMessage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('body-info')\n }, locale.emptyMessage);\n return renderEmpty ? renderEmpty(emptyMessage) : emptyMessage;\n };\n\n _proto.renderScrollbar = function renderScrollbar() {\n var _this$props24 = this.props,\n disabledScroll = _this$props24.disabledScroll,\n affixHorizontalScrollbar = _this$props24.affixHorizontalScrollbar,\n id = _this$props24.id;\n var _this$state8 = this.state,\n contentWidth = _this$state8.contentWidth,\n contentHeight = _this$state8.contentHeight,\n width = _this$state8.width,\n fixedHorizontalScrollbar = _this$state8.fixedHorizontalScrollbar;\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var headerHeight = this.getTableHeaderHeight();\n var height = this.getTableHeight();\n\n if (disabledScroll) {\n return null;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Scrollbar__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n tableId: id,\n className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({\n fixed: fixedHorizontalScrollbar\n }),\n style: {\n width: width,\n bottom: fixedHorizontalScrollbar ? bottom : undefined\n },\n length: this.state.width,\n onScroll: this.handleScrollX,\n scrollLength: contentWidth,\n ref: this.scrollbarXRef\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Scrollbar__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n vertical: true,\n tableId: id,\n length: height - headerHeight,\n scrollLength: contentHeight,\n onScroll: this.handleScrollY,\n ref: this.scrollbarYRef\n }));\n }\n /**\n * show loading\n */\n ;\n\n _proto.renderLoading = function renderLoading() {\n var _this$props25 = this.props,\n locale = _this$props25.locale,\n loading = _this$props25.loading,\n loadAnimation = _this$props25.loadAnimation,\n renderLoading = _this$props25.renderLoading;\n\n if (!loadAnimation && !loading) {\n return null;\n }\n\n var loadingElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('loader-wrapper')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('loader')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: this.addPrefix('loader-icon')\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n className: this.addPrefix('loader-text')\n }, locale.loading)));\n return renderLoading ? renderLoading(loadingElement) : loadingElement;\n };\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props26 = this.props,\n children = _this$props26.children,\n className = _this$props26.className,\n data = _this$props26.data,\n _this$props26$width = _this$props26.width,\n width = _this$props26$width === void 0 ? 0 : _this$props26$width,\n style = _this$props26.style,\n isTree = _this$props26.isTree,\n hover = _this$props26.hover,\n bordered = _this$props26.bordered,\n cellBordered = _this$props26.cellBordered,\n wordWrap = _this$props26.wordWrap,\n classPrefix = _this$props26.classPrefix,\n loading = _this$props26.loading,\n showHeader = _this$props26.showHeader,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_this$props26, [\"children\", \"className\", \"data\", \"width\", \"style\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"classPrefix\", \"loading\", \"showHeader\"]);\n\n var isColumnResizing = this.state.isColumnResizing;\n\n var _this$getCellDescript = this.getCellDescriptor(),\n headerCells = _this$getCellDescript.headerCells,\n bodyCells = _this$getCellDescript.bodyCells,\n allColumnsWidth = _this$getCellDescript.allColumnsWidth,\n hasCustomTreeCol = _this$getCellDescript.hasCustomTreeCol;\n\n var rowWidth = allColumnsWidth > width ? allColumnsWidth : width;\n var clesses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix('word-wrap')] = wordWrap, _classNames[this.addPrefix('treetable')] = isTree, _classNames[this.addPrefix('bordered')] = bordered, _classNames[this.addPrefix('cell-bordered')] = cellBordered, _classNames[this.addPrefix('column-resizing')] = isColumnResizing, _classNames[this.addPrefix('hover')] = hover, _classNames[this.addPrefix('loading')] = loading, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n width: width || 'auto',\n height: this.getTableHeight()\n }, style);\n\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"getUnhandledProps\"])(Table, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_19__[\"default\"].Provider, {\n value: {\n translateDOMPositionXY: this.translateDOMPositionXY,\n rtl: this.isRTL(),\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n role: isTree ? 'treegrid' : 'grid' // The aria-rowcount is specified on the element with the table.\n // Its value is an integer equal to the total number of rows available, including header rows.\n ,\n \"aria-rowcount\": data.length + 1,\n \"aria-colcount\": this._cacheChildrenSize\n }, unhandled, {\n className: clesses,\n style: styles,\n ref: this.tableRef\n }), showHeader && this.renderTableHeader(headerCells, rowWidth), children && this.renderTableBody(bodyCells, rowWidth), showHeader && this.renderMouseArea()));\n };\n\n return Table;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"Component\"]);\n\nTable.propTypes = {\n autoHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n affixHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n affixHorizontalScrollbar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n bordered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n bodyRef: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,\n cellBordered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n data: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object),\n defaultExpandAllRows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n defaultExpandedRowKeys: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),\n defaultSortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n disabledScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n expandedRowKeys: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),\n hover: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n locale: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n loading: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n loadAnimation: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n minHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]),\n renderTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderRowExpanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n rowExpandedHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n renderEmpty: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderLoading: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n rowClassName: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n rtl: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n sortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n sortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n showHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n shouldUpdateScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n translate3d: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n wordWrap: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n virtualized: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n isTree: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n onRowClick: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onRowContextMenu: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onSortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onExpandChange: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onTouchStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onTouchMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onDataUpdated: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\nTable.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"defaultClassPrefix\"])('table'),\n data: [],\n defaultSortType: SORT_TYPE.DESC,\n height: 200,\n rowHeight: 46,\n headerHeight: 40,\n minHeight: 0,\n rowExpandedHeight: 100,\n hover: true,\n showHeader: true,\n rowKey: 'key',\n translate3d: true,\n shouldUpdateScroll: true,\n locale: {\n emptyMessage: 'No data found',\n loading: 'Loading...'\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
5173
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/rsuite-table/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/rsuite-table/node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/flatten */ \"./node_modules/rsuite-table/node_modules/lodash/flatten.js\");\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/rsuite-table/node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isEqual */ \"./node_modules/rsuite-table/node_modules/lodash/isEqual.js\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/eq */ \"./node_modules/rsuite-table/node_modules/lodash/eq.js\");\n/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_eq__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/rsuite-table/node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/rsuite-table/node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var element_resize_event__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! element-resize-event */ \"./node_modules/element-resize-event/index.js\");\n/* harmony import */ var element_resize_event__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(element_resize_event__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! dom-lib/lib/transition/translateDOMPositionXY */ \"./node_modules/dom-lib/lib/transition/translateDOMPositionXY.js\");\n/* harmony import */ var dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var dom_lib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar SORT_TYPE = {\n DESC: 'desc',\n ASC: 'asc'\n};\nvar propTypes = {\n autoHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n affixHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n affixHorizontalScrollbar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n bordered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n bodyRef: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n className: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n classPrefix: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,\n cellBordered: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n data: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object),\n defaultExpandAllRows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n defaultExpandedRowKeys: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),\n defaultSortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n disabledScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n expandedRowKeys: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),\n hover: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n height: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n headerHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n locale: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n loading: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n loadAnimation: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n minHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number]),\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func]),\n renderTreeToggle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderRowExpanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n rowExpandedHeight: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n renderEmpty: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n renderLoading: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n rowClassName: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n rtl: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n style: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object,\n sortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,\n sortType: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string]),\n showHeader: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n shouldUpdateScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n translate3d: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n wordWrap: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n width: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,\n virtualized: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n isTree: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,\n onRowClick: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onRowContextMenu: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onScroll: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onSortColumn: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onExpandChange: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onTouchStart: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onTouchMove: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,\n onDataUpdated: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func\n};\n\nvar Table = /*#__PURE__*/function (_React$Component) {\n Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Table, _React$Component);\n\n Table.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n if (props.data !== state.cacheData || props.isTree !== state.isTree) {\n return {\n cacheData: props.data,\n isTree: props.isTree,\n data: props.isTree ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"flattenData\"])(props.data) : props.data\n };\n }\n\n return null;\n };\n\n function Table(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.translateDOMPositionXY = null;\n _this.scrollListener = null;\n _this.tableRef = void 0;\n _this.scrollbarYRef = void 0;\n _this.scrollbarXRef = void 0;\n _this.tableBodyRef = void 0;\n _this.affixHeaderWrapperRef = void 0;\n _this.mouseAreaRef = void 0;\n _this.headerWrapperRef = void 0;\n _this.tableHeaderRef = void 0;\n _this.wheelWrapperRef = void 0;\n _this.tableRows = {};\n _this.mounted = false;\n _this.disableEventsTimeoutId = null;\n _this.scrollY = 0;\n _this.scrollX = 0;\n _this.wheelHandler = void 0;\n _this.minScrollY = void 0;\n _this.minScrollX = void 0;\n _this.mouseArea = void 0;\n _this.touchX = void 0;\n _this.touchY = void 0;\n _this.wheelListener = void 0;\n _this.touchStartListener = void 0;\n _this.touchMoveListener = void 0;\n _this._cacheCells = null;\n _this._cacheChildrenSize = 0;\n _this._visibleRows = [];\n\n _this.listenWheel = function (deltaX, deltaY) {\n var _this$scrollbarXRef$c, _this$scrollbarXRef$c2, _this$scrollbarYRef$c, _this$scrollbarYRef$c2;\n\n _this.handleWheel(deltaX, deltaY);\n\n (_this$scrollbarXRef$c = _this.scrollbarXRef.current) === null || _this$scrollbarXRef$c === void 0 ? void 0 : (_this$scrollbarXRef$c2 = _this$scrollbarXRef$c.onWheelScroll) === null || _this$scrollbarXRef$c2 === void 0 ? void 0 : _this$scrollbarXRef$c2.call(_this$scrollbarXRef$c, deltaX);\n (_this$scrollbarYRef$c = _this.scrollbarYRef.current) === null || _this$scrollbarYRef$c === void 0 ? void 0 : (_this$scrollbarYRef$c2 = _this$scrollbarYRef$c.onWheelScroll) === null || _this$scrollbarYRef$c2 === void 0 ? void 0 : _this$scrollbarYRef$c2.call(_this$scrollbarYRef$c, deltaY);\n };\n\n _this.setOffsetByAffix = function () {\n var _this$headerWrapperRe, _this$tableRef;\n\n var _this$props = _this.props,\n affixHeader = _this$props.affixHeader,\n affixHorizontalScrollbar = _this$props.affixHorizontalScrollbar;\n var headerNode = (_this$headerWrapperRe = _this.headerWrapperRef) === null || _this$headerWrapperRe === void 0 ? void 0 : _this$headerWrapperRe.current;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader) && headerNode) {\n _this.setState(function () {\n return {\n headerOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getOffset\"])(headerNode)\n };\n });\n }\n\n var tableNode = (_this$tableRef = _this.tableRef) === null || _this$tableRef === void 0 ? void 0 : _this$tableRef.current;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar) && tableNode) {\n _this.setState(function () {\n return {\n tableOffset: Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getOffset\"])(tableNode)\n };\n });\n }\n };\n\n _this.handleWindowScroll = function () {\n var _this$props2 = _this.props,\n affixHeader = _this$props2.affixHeader,\n affixHorizontalScrollbar = _this$props2.affixHorizontalScrollbar;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader)) {\n _this.affixTableHeader();\n }\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar)) {\n _this.affixHorizontalScrollbar();\n }\n };\n\n _this.affixHorizontalScrollbar = function () {\n var _this$scrollbarXRef, _this$scrollbarXRef$c3, _this$scrollbarXRef$c4;\n\n var scrollY = window.scrollY || window.pageYOffset;\n var windowHeight = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(window);\n\n var height = _this.getTableHeight();\n\n var _this$state = _this.state,\n tableOffset = _this$state.tableOffset,\n fixedHorizontalScrollbar = _this$state.fixedHorizontalScrollbar;\n var affixHorizontalScrollbar = _this.props.affixHorizontalScrollbar;\n\n var headerHeight = _this.getTableHeaderHeight();\n\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var fixedScrollbar = scrollY + windowHeight < height + (tableOffset.top + bottom) && scrollY + windowHeight - headerHeight > tableOffset.top + bottom;\n\n if ((_this$scrollbarXRef = _this.scrollbarXRef) !== null && _this$scrollbarXRef !== void 0 && (_this$scrollbarXRef$c3 = _this$scrollbarXRef.current) !== null && _this$scrollbarXRef$c3 !== void 0 && (_this$scrollbarXRef$c4 = _this$scrollbarXRef$c3.barRef) !== null && _this$scrollbarXRef$c4 !== void 0 && _this$scrollbarXRef$c4.current && fixedHorizontalScrollbar !== fixedScrollbar) {\n _this.setState({\n fixedHorizontalScrollbar: fixedScrollbar\n });\n }\n };\n\n _this.affixTableHeader = function () {\n var affixHeader = _this.props.affixHeader;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var _this$state2 = _this.state,\n headerOffset = _this$state2.headerOffset,\n contentHeight = _this$state2.contentHeight;\n var scrollY = window.scrollY || window.pageYOffset;\n var fixedHeader = scrollY - (headerOffset.top - top) >= 0 && scrollY < headerOffset.top - top + contentHeight;\n\n if (_this.affixHeaderWrapperRef.current) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(_this.affixHeaderWrapperRef.current, 'fixed', fixedHeader);\n }\n };\n\n _this.handleSortColumn = function (dataKey) {\n var _this$props$onSortCol, _this$props3;\n\n var sortType = _this.getSortType();\n\n if (_this.props.sortColumn === dataKey) {\n sortType = sortType === SORT_TYPE.ASC ? SORT_TYPE.DESC : SORT_TYPE.ASC;\n\n _this.setState({\n sortType: sortType\n });\n }\n\n (_this$props$onSortCol = (_this$props3 = _this.props).onSortColumn) === null || _this$props$onSortCol === void 0 ? void 0 : _this$props$onSortCol.call(_this$props3, dataKey, sortType);\n };\n\n _this.handleColumnResizeEnd = function (columnWidth, _cursorDelta, dataKey, index) {\n var _this$setState;\n\n _this._cacheCells = null;\n\n _this.setState((_this$setState = {\n isColumnResizing: false\n }, _this$setState[dataKey + \"_\" + index + \"_width\"] = columnWidth, _this$setState));\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(_this.mouseAreaRef.current, {\n display: 'none'\n });\n };\n\n _this.handleColumnResizeStart = function (width, left, fixed) {\n _this.setState({\n isColumnResizing: true\n });\n\n _this.handleColumnResizeMove(width, left, fixed);\n };\n\n _this.handleColumnResizeMove = function (width, left, fixed) {\n var _addStyle;\n\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n\n if (_this.isRTL()) {\n mouseAreaLeft += _this.minScrollX + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n dir = 'right';\n }\n\n if (!fixed) {\n x = mouseAreaLeft + (_this.isRTL() ? -_this.scrollX : _this.scrollX);\n }\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(_this.mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n };\n\n _this.handleTreeToggle = function (rowKey, _rowIndex, rowData) {\n var _this$props$onExpandC, _this$props4;\n\n var expandedRowKeys = _this.getExpandedRowKeys();\n\n var open = false;\n var nextExpandedRowKeys = [];\n\n for (var i = 0; i < expandedRowKeys.length; i++) {\n var _key = expandedRowKeys[i];\n\n if (_key === rowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(_key);\n }\n }\n\n if (!open) {\n nextExpandedRowKeys.push(rowKey);\n }\n\n _this.setState({\n expandedRowKeys: nextExpandedRowKeys\n });\n\n (_this$props$onExpandC = (_this$props4 = _this.props).onExpandChange) === null || _this$props$onExpandC === void 0 ? void 0 : _this$props$onExpandC.call(_this$props4, !open, rowData);\n };\n\n _this.handleScrollX = function (delta) {\n _this.handleWheel(delta, 0);\n };\n\n _this.handleScrollY = function (delta) {\n _this.handleWheel(0, delta);\n };\n\n _this.handleWheel = function (deltaX, deltaY) {\n var _this$props5 = _this.props,\n onScroll = _this$props5.onScroll,\n virtualized = _this$props5.virtualized;\n var _this$state3 = _this.state,\n contentWidth = _this$state3.contentWidth,\n width = _this$state3.width;\n\n if (!_this.tableRef.current) {\n return;\n }\n\n var nextScrollX = contentWidth <= width ? 0 : _this.scrollX - deltaX;\n var nextScrollY = _this.scrollY - deltaY;\n _this.scrollY = Math.min(0, nextScrollY < _this.minScrollY ? _this.minScrollY : nextScrollY);\n _this.scrollX = Math.min(0, nextScrollX < _this.minScrollX ? _this.minScrollX : nextScrollX);\n\n _this.updatePosition();\n\n onScroll === null || onScroll === void 0 ? void 0 : onScroll(_this.scrollX, _this.scrollY);\n\n if (virtualized) {\n _this.setState({\n isScrolling: true,\n scrollY: _this.scrollY\n });\n\n if (_this.disableEventsTimeoutId) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"cancelAnimationTimeout\"])(_this.disableEventsTimeoutId);\n }\n\n _this.disableEventsTimeoutId = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"requestAnimationTimeout\"])(_this.debounceScrollEndedCallback, 150);\n }\n };\n\n _this.debounceScrollEndedCallback = function () {\n _this.disableEventsTimeoutId = null;\n\n _this.setState({\n isScrolling: false\n });\n };\n\n _this.handleTouchStart = function (event) {\n var _this$props$onTouchSt, _this$props6;\n\n if (event.touches) {\n var _event$touches$ = event.touches[0],\n pageX = _event$touches$.pageX,\n pageY = _event$touches$.pageY;\n _this.touchX = pageX;\n _this.touchY = pageY;\n }\n\n (_this$props$onTouchSt = (_this$props6 = _this.props).onTouchStart) === null || _this$props$onTouchSt === void 0 ? void 0 : _this$props$onTouchSt.call(_this$props6, event);\n };\n\n _this.handleTouchMove = function (event) {\n var _this$props$onTouchMo, _this$props7;\n\n var autoHeight = _this.props.autoHeight;\n\n if (event.touches) {\n var _event$preventDefault, _this$scrollbarXRef$c5, _this$scrollbarXRef$c6, _this$scrollbarYRef$c3, _this$scrollbarYRef$c4;\n\n var _event$touches$2 = event.touches[0],\n pageX = _event$touches$2.pageX,\n pageY = _event$touches$2.pageY;\n var deltaX = _this.touchX - pageX;\n var deltaY = autoHeight ? 0 : _this.touchY - pageY;\n\n if (!_this.shouldHandleWheelY(deltaY) && !_this.shouldHandleWheelX(deltaX)) {\n return;\n }\n\n (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 ? void 0 : _event$preventDefault.call(event);\n\n _this.handleWheel(deltaX, deltaY);\n\n (_this$scrollbarXRef$c5 = _this.scrollbarXRef.current) === null || _this$scrollbarXRef$c5 === void 0 ? void 0 : (_this$scrollbarXRef$c6 = _this$scrollbarXRef$c5.onWheelScroll) === null || _this$scrollbarXRef$c6 === void 0 ? void 0 : _this$scrollbarXRef$c6.call(_this$scrollbarXRef$c5, deltaX);\n (_this$scrollbarYRef$c3 = _this.scrollbarYRef.current) === null || _this$scrollbarYRef$c3 === void 0 ? void 0 : (_this$scrollbarYRef$c4 = _this$scrollbarYRef$c3.onWheelScroll) === null || _this$scrollbarYRef$c4 === void 0 ? void 0 : _this$scrollbarYRef$c4.call(_this$scrollbarYRef$c3, deltaY);\n _this.touchX = pageX;\n _this.touchY = pageY;\n }\n\n (_this$props$onTouchMo = (_this$props7 = _this.props).onTouchMove) === null || _this$props$onTouchMo === void 0 ? void 0 : _this$props$onTouchMo.call(_this$props7, event);\n };\n\n _this.handleBodyScroll = function (event) {\n if (event.target !== _this.tableBodyRef.current) {\n return;\n }\n\n var left = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollLeft\"])(event.target);\n var top = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollTop\"])(event.target);\n\n if (top === 0 && left === 0) {\n return;\n }\n\n _this.listenWheel(left, top);\n\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollLeft\"])(event.target, 0);\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"scrollTop\"])(event.target, 0);\n };\n\n _this.shouldHandleWheelX = function (delta) {\n var _this$props8 = _this.props,\n disabledScroll = _this$props8.disabledScroll,\n loading = _this$props8.loading;\n\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n\n return true;\n };\n\n _this.shouldHandleWheelY = function (delta) {\n var _this$props9 = _this.props,\n disabledScroll = _this$props9.disabledScroll,\n loading = _this$props9.loading;\n\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n\n return delta >= 0 && _this.scrollY > _this.minScrollY || delta < 0 && _this.scrollY < 0;\n };\n\n _this.addPrefix = function (name) {\n return Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"prefix\"])(_this.props.classPrefix)(name);\n };\n\n _this.calculateTableWidth = function () {\n var _this$tableRef2;\n\n var table = (_this$tableRef2 = _this.tableRef) === null || _this$tableRef2 === void 0 ? void 0 : _this$tableRef2.current;\n var width = _this.state.width;\n\n if (table) {\n var nextWidth = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getWidth\"])(table);\n\n if (width !== nextWidth) {\n var _this$scrollbarXRef2, _this$scrollbarXRef2$;\n\n _this.scrollX = 0;\n (_this$scrollbarXRef2 = _this.scrollbarXRef) === null || _this$scrollbarXRef2 === void 0 ? void 0 : (_this$scrollbarXRef2$ = _this$scrollbarXRef2.current) === null || _this$scrollbarXRef2$ === void 0 ? void 0 : _this$scrollbarXRef2$.resetScrollBarPosition();\n }\n\n _this._cacheCells = null;\n\n _this.setState({\n width: nextWidth\n });\n }\n\n _this.setOffsetByAffix();\n };\n\n _this.scrollTop = function (top) {\n var _this$scrollbarYRef, _this$scrollbarYRef$c5, _this$scrollbarYRef$c6;\n\n if (top === void 0) {\n top = 0;\n }\n\n var _this$getControlledSc = _this.getControlledScrollTopValue(top),\n scrollY = _this$getControlledSc[0],\n handleScrollY = _this$getControlledSc[1];\n\n _this.scrollY = scrollY;\n (_this$scrollbarYRef = _this.scrollbarYRef) === null || _this$scrollbarYRef === void 0 ? void 0 : (_this$scrollbarYRef$c5 = _this$scrollbarYRef.current) === null || _this$scrollbarYRef$c5 === void 0 ? void 0 : (_this$scrollbarYRef$c6 = _this$scrollbarYRef$c5.resetScrollBarPosition) === null || _this$scrollbarYRef$c6 === void 0 ? void 0 : _this$scrollbarYRef$c6.call(_this$scrollbarYRef$c5, handleScrollY);\n\n _this.updatePosition();\n /**\n * 当开启 virtualized,调用 scrollTop 后会出现白屏现象,\n * 原因是直接操作 DOM 的坐标,但是组件没有重新渲染,需要调用 forceUpdate 重新进入 render。\n * Fix: rsuite#1044\n */\n\n\n if (_this.props.virtualized && _this.state.contentHeight > _this.props.height) {\n _this.forceUpdate();\n }\n };\n\n _this.scrollLeft = function (left) {\n var _this$scrollbarXRef3, _this$scrollbarXRef3$, _this$scrollbarXRef3$2;\n\n if (left === void 0) {\n left = 0;\n }\n\n var _this$getControlledSc2 = _this.getControlledScrollLeftValue(left),\n scrollX = _this$getControlledSc2[0],\n handleScrollX = _this$getControlledSc2[1];\n\n _this.scrollX = scrollX;\n (_this$scrollbarXRef3 = _this.scrollbarXRef) === null || _this$scrollbarXRef3 === void 0 ? void 0 : (_this$scrollbarXRef3$ = _this$scrollbarXRef3.current) === null || _this$scrollbarXRef3$ === void 0 ? void 0 : (_this$scrollbarXRef3$2 = _this$scrollbarXRef3$.resetScrollBarPosition) === null || _this$scrollbarXRef3$2 === void 0 ? void 0 : _this$scrollbarXRef3$2.call(_this$scrollbarXRef3$, handleScrollX);\n\n _this.updatePosition();\n };\n\n _this.scrollTo = function (coord) {\n var _ref = coord || {},\n x = _ref.x,\n y = _ref.y;\n\n if (typeof x === 'number') {\n _this.scrollLeft(x);\n }\n\n if (typeof y === 'number') {\n _this.scrollTop(y);\n }\n };\n\n _this.bindTableRowsRef = function (index, rowData) {\n return function (ref) {\n if (ref) {\n _this.tableRows[index] = [ref, rowData];\n }\n };\n };\n\n _this.bindRowClick = function (rowData) {\n return function (event) {\n var _this$props$onRowClic, _this$props10;\n\n (_this$props$onRowClic = (_this$props10 = _this.props).onRowClick) === null || _this$props$onRowClic === void 0 ? void 0 : _this$props$onRowClic.call(_this$props10, rowData, event);\n };\n };\n\n _this.bindRowContextMenu = function (rowData) {\n return function (event) {\n var _this$props$onRowCont, _this$props11;\n\n (_this$props$onRowCont = (_this$props11 = _this.props).onRowContextMenu) === null || _this$props$onRowCont === void 0 ? void 0 : _this$props$onRowCont.call(_this$props11, rowData, event);\n };\n };\n\n var _width = props.width,\n data = props.data,\n _rowKey = props.rowKey,\n defaultExpandAllRows = props.defaultExpandAllRows,\n renderRowExpanded = props.renderRowExpanded,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n _props$children = props.children,\n children = _props$children === void 0 ? [] : _props$children,\n isTree = props.isTree,\n defaultSortType = props.defaultSortType;\n\n var _expandedRowKeys = defaultExpandAllRows ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"findRowKeys\"])(data, _rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(renderRowExpanded)) : defaultExpandedRowKeys || [];\n\n var shouldFixedColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children)).some(function (child) {\n return child && child.props && child.props.fixed;\n });\n\n if (isTree && !_rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n }\n\n _this.state = {\n isTree: isTree,\n expandedRowKeys: _expandedRowKeys,\n shouldFixedColumn: shouldFixedColumn,\n cacheData: data,\n data: isTree ? Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"flattenData\"])(data) : data,\n width: _width || 0,\n columnWidth: 0,\n dataKey: 0,\n contentHeight: 0,\n contentWidth: 0,\n tableRowsMaxHeight: [],\n sortType: defaultSortType,\n scrollY: 0,\n isScrolling: false,\n fixedHeader: false\n };\n _this.scrollY = 0;\n _this.scrollX = 0;\n _this.wheelHandler = new dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"WheelHandler\"](_this.listenWheel, _this.shouldHandleWheelX, _this.shouldHandleWheelY, false);\n _this._cacheChildrenSize = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children).length;\n _this.translateDOMPositionXY = Object(dom_lib_lib_transition_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_14__[\"getTranslateDOMPositionXY\"])({\n enable3DTransform: props.translate3d\n });\n _this.tableRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.scrollbarYRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.scrollbarXRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.tableBodyRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.affixHeaderWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.mouseAreaRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.headerWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.wheelWrapperRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n _this.tableHeaderRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createRef\"]();\n return _this;\n }\n\n var _proto = Table.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this$props13, _this$props13$bodyRef;\n\n this.calculateTableWidth();\n this.calculateTableContextHeight();\n this.calculateRowMaxHeight();\n this.setOffsetByAffix();\n this.initPosition();\n element_resize_event__WEBPACK_IMPORTED_MODULE_13___default()(this.tableRef.current, lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default()(this.calculateTableWidth, 400));\n var options = {\n passive: false\n };\n var tableBody = this.tableBodyRef.current;\n\n if (tableBody) {\n this.wheelListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'wheel', this.wheelHandler.onWheel, options);\n this.touchStartListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'touchstart', this.handleTouchStart, options);\n this.touchMoveListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(tableBody, 'touchmove', this.handleTouchMove, options);\n }\n\n var _this$props12 = this.props,\n affixHeader = _this$props12.affixHeader,\n affixHorizontalScrollbar = _this$props12.affixHorizontalScrollbar;\n\n if (Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHeader) || Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isNumberOrTrue\"])(affixHorizontalScrollbar)) {\n this.scrollListener = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"on\"])(window, 'scroll', this.handleWindowScroll);\n }\n\n (_this$props13 = this.props) === null || _this$props13 === void 0 ? void 0 : (_this$props13$bodyRef = _this$props13.bodyRef) === null || _this$props13$bodyRef === void 0 ? void 0 : _this$props13$bodyRef.call(_this$props13, this.wheelWrapperRef.current);\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n var _cacheChildrenSize = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(nextProps.children || []).length;\n /**\n * 单元格列的信息在初始化后会被缓存,在某些属性被更新以后,需要清除缓存。\n */\n\n if (_cacheChildrenSize !== this._cacheChildrenSize) {\n this._cacheChildrenSize = _cacheChildrenSize;\n this._cacheCells = null;\n } else if (this.props.children !== nextProps.children || this.props.sortColumn !== nextProps.sortColumn || this.props.sortType !== nextProps.sortType) {\n this._cacheCells = null;\n }\n\n return !lodash_eq__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps) || !lodash_isEqual__WEBPACK_IMPORTED_MODULE_9___default()(this.state, nextState);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n var rowHeight = prevProps.rowHeight,\n data = prevProps.data,\n height = prevProps.height;\n\n if (data !== this.props.data) {\n var _this$props$onDataUpd, _this$props14;\n\n this.calculateRowMaxHeight();\n (_this$props$onDataUpd = (_this$props14 = this.props).onDataUpdated) === null || _this$props$onDataUpd === void 0 ? void 0 : _this$props$onDataUpd.call(_this$props14, this.props.data, this.scrollTo);\n var maxHeight = this.props.data.length * (typeof rowHeight === 'function' ? rowHeight(null) : rowHeight); // 当开启允许更新滚动条,或者滚动条位置大于表格的最大高度,则初始滚动条位置\n\n if (this.props.shouldUpdateScroll || Math.abs(this.scrollY) > maxHeight) {\n this.scrollTo({\n x: 0,\n y: 0\n });\n }\n } else {\n this.updatePosition();\n }\n\n if ( // 当 Table 的 data 发生变化,需要重新计算高度\n data !== this.props.data || // 当 Table 的 height 属性发生变化,需要重新计算 Table 高度\n height !== this.props.height || // 当 Table 内容区的高度发生变化需要重新计算\n prevState.contentHeight !== this.state.contentHeight || // 当 expandedRowKeys 发生变化,需要重新计算 Table 高度,如果重算会导致滚动条不显示。\n prevState.expandedRowKeys !== this.state.expandedRowKeys || prevProps.expandedRowKeys !== this.props.expandedRowKeys) {\n this.calculateTableContextHeight(prevProps);\n }\n\n this.calculateTableContentWidth(prevProps);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var _this$wheelListener, _this$touchStartListe, _this$touchMoveListen, _this$scrollListener;\n\n this.wheelHandler = null;\n\n if (this.tableRef.current) {\n Object(element_resize_event__WEBPACK_IMPORTED_MODULE_13__[\"unbind\"])(this.tableRef.current);\n }\n\n (_this$wheelListener = this.wheelListener) === null || _this$wheelListener === void 0 ? void 0 : _this$wheelListener.off();\n (_this$touchStartListe = this.touchStartListener) === null || _this$touchStartListe === void 0 ? void 0 : _this$touchStartListe.off();\n (_this$touchMoveListen = this.touchMoveListener) === null || _this$touchMoveListen === void 0 ? void 0 : _this$touchMoveListen.off();\n (_this$scrollListener = this.scrollListener) === null || _this$scrollListener === void 0 ? void 0 : _this$scrollListener.off();\n };\n\n _proto.getExpandedRowKeys = function getExpandedRowKeys() {\n var expandedRowKeys = this.props.expandedRowKeys;\n return typeof expandedRowKeys === 'undefined' ? this.state.expandedRowKeys : expandedRowKeys;\n };\n\n _proto.getSortType = function getSortType() {\n var sortType = this.props.sortType;\n return typeof sortType === 'undefined' ? this.state.sortType : sortType;\n };\n\n _proto.getScrollCellGroups = function getScrollCellGroups() {\n var _this$tableRef$curren;\n\n return (_this$tableRef$curren = this.tableRef.current) === null || _this$tableRef$curren === void 0 ? void 0 : _this$tableRef$curren.querySelectorAll(\".\" + this.addPrefix('cell-group-scroll'));\n };\n\n _proto.getFixedLeftCellGroups = function getFixedLeftCellGroups() {\n var _this$tableRef$curren2;\n\n return (_this$tableRef$curren2 = this.tableRef.current) === null || _this$tableRef$curren2 === void 0 ? void 0 : _this$tableRef$curren2.querySelectorAll(\".\" + this.addPrefix('cell-group-fixed-left'));\n };\n\n _proto.getFixedRightCellGroups = function getFixedRightCellGroups() {\n var _this$tableRef$curren3;\n\n return (_this$tableRef$curren3 = this.tableRef.current) === null || _this$tableRef$curren3 === void 0 ? void 0 : _this$tableRef$curren3.querySelectorAll(\".\" + this.addPrefix('cell-group-fixed-right'));\n };\n\n _proto.isRTL = function isRTL() {\n return this.props.rtl || Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"isRTL\"])();\n };\n\n _proto.getRowHeight = function getRowHeight(rowData) {\n if (rowData === void 0) {\n rowData = {};\n }\n\n var rowHeight = this.props.rowHeight;\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n }\n /**\n * 获取表头高度\n */\n ;\n\n _proto.getTableHeaderHeight = function getTableHeaderHeight() {\n var _this$props15 = this.props,\n headerHeight = _this$props15.headerHeight,\n showHeader = _this$props15.showHeader;\n return showHeader ? headerHeight : 0;\n }\n /**\n * 获取 Table 需要渲染的高度\n */\n ;\n\n _proto.getTableHeight = function getTableHeight() {\n var contentHeight = this.state.contentHeight;\n var _this$props16 = this.props,\n minHeight = _this$props16.minHeight,\n height = _this$props16.height,\n autoHeight = _this$props16.autoHeight,\n data = _this$props16.data;\n var headerHeight = this.getTableHeaderHeight();\n\n if (data.length === 0 && autoHeight) {\n return height;\n }\n\n return autoHeight ? Math.max(headerHeight + contentHeight, minHeight) : height;\n }\n /**\n * 获取 columns ReactElement 数组\n * - 处理 children 中存在 <Column> 数组的情况\n * - 过滤 children 中的空项\n */\n ;\n\n _proto.getTableColumns = function getTableColumns() {\n var children = this.props.children;\n\n if (!Array.isArray(children)) {\n return children;\n }\n\n var flattenColumns = lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(children).map(function (column) {\n if ((column === null || column === void 0 ? void 0 : column.type) === _ColumnGroup__WEBPACK_IMPORTED_MODULE_22__[\"default\"]) {\n var _column$props = column === null || column === void 0 ? void 0 : column.props,\n header = _column$props.header,\n childColumns = _column$props.children,\n align = _column$props.align,\n fixed = _column$props.fixed,\n verticalAlign = _column$props.verticalAlign;\n\n return childColumns.map(function (childColumn, index) {\n // 把 ColumnGroup 设置的属性覆盖到 Column\n var groupCellProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, childColumn === null || childColumn === void 0 ? void 0 : childColumn.props, {\n align: align,\n fixed: fixed,\n verticalAlign: verticalAlign\n });\n /**\n * 为分组中的第一列设置属性:\n * groupCount: 分组子项个数\n * groupHeader: 分组标题\n * resizable: 设置为不可自定义列宽\n */\n\n\n if (index === 0) {\n groupCellProps.groupCount = childColumns.length;\n groupCellProps.groupHeader = header;\n groupCellProps.resizable = false;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](childColumn, groupCellProps);\n });\n }\n\n return column;\n }); // 把 Columns 中的数组,展平为一维数组,计算 lastColumn 与 firstColumn。\n\n return lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(flattenColumns).filter(function (col) {\n return col;\n });\n };\n\n _proto.getCellDescriptor = function getCellDescriptor() {\n var _this2 = this;\n\n if (this._cacheCells) {\n return this._cacheCells;\n }\n\n var hasCustomTreeCol = false;\n var left = 0; // Cell left margin\n\n var headerCells = []; // Table header cell\n\n var bodyCells = []; // Table body cell\n\n var children = this.props.children;\n\n if (!children) {\n this._cacheCells = {\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n return this._cacheCells;\n }\n\n var columns = this.getTableColumns();\n var tableWidth = this.state.width;\n var _this$props17 = this.props,\n sortColumn = _this$props17.sortColumn,\n rowHeight = _this$props17.rowHeight,\n showHeader = _this$props17.showHeader;\n\n var _getTotalByColumns = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"getTotalByColumns\"])(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n\n var headerHeight = this.getTableHeaderHeight();\n react__WEBPACK_IMPORTED_MODULE_3__[\"Children\"].forEach(columns, function (column, index) {\n if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"isValidElement\"](column)) {\n var columnChildren = column.props.children;\n var _column$props2 = column.props,\n width = _column$props2.width,\n resizable = _column$props2.resizable,\n flexGrow = _column$props2.flexGrow,\n minWidth = _column$props2.minWidth,\n onResize = _column$props2.onResize,\n treeCol = _column$props2.treeCol;\n\n if (treeCol) {\n hasCustomTreeCol = true;\n }\n\n if (resizable && flexGrow) {\n console.warn(\"Cannot set 'resizable' and 'flexGrow' together in <Column>, column index: \" + index);\n }\n\n if (columnChildren.length !== 2) {\n throw new Error(\"Component <HeaderCell> and <Cell> is required, column index: \" + index + \" \");\n }\n\n var nextWidth = _this2.state[columnChildren[1].props.dataKey + \"_\" + index + \"_width\"] || width || 0;\n\n if (tableWidth && flexGrow && totalFlexGrow) {\n nextWidth = Math.max((tableWidth - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n }\n\n var cellProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, lodash_omit__WEBPACK_IMPORTED_MODULE_11___default()(column.props, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: nextWidth,\n height: rowHeight,\n firstColumn: index === 0,\n lastColumn: index === columns.length - 1\n });\n\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // index 用于拖拽列宽时候(Resizable column),定义的序号\n index: index,\n dataKey: columnChildren[1].props.dataKey,\n isHeaderCell: true,\n sortable: column.props.sortable,\n onSortColumn: _this2.handleSortColumn,\n sortType: _this2.getSortType(),\n sortColumn: sortColumn,\n flexGrow: flexGrow\n };\n\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_12___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: _this2.handleColumnResizeEnd,\n onColumnResizeStart: _this2.handleColumnResizeStart,\n onColumnResizeMove: _this2.handleColumnResizeMove\n });\n }\n\n headerCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](columnChildren[0], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, cellProps, headerCellProps)));\n }\n\n bodyCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](columnChildren[1], cellProps));\n left += nextWidth;\n }\n });\n return this._cacheCells = {\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n };\n\n _proto.initPosition = function initPosition() {\n var _this3 = this;\n\n if (this.isRTL()) {\n setTimeout(function () {\n var _this3$scrollbarXRef, _this3$scrollbarXRef$, _this3$scrollbarXRef$2;\n\n var _this3$state = _this3.state,\n contentWidth = _this3$state.contentWidth,\n width = _this3$state.width;\n _this3.scrollX = width - contentWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n\n _this3.updatePosition();\n\n (_this3$scrollbarXRef = _this3.scrollbarXRef) === null || _this3$scrollbarXRef === void 0 ? void 0 : (_this3$scrollbarXRef$ = _this3$scrollbarXRef.current) === null || _this3$scrollbarXRef$ === void 0 ? void 0 : (_this3$scrollbarXRef$2 = _this3$scrollbarXRef$.resetScrollBarPosition) === null || _this3$scrollbarXRef$2 === void 0 ? void 0 : _this3$scrollbarXRef$2.call(_this3$scrollbarXRef$, -_this3.scrollX);\n }, 0);\n }\n };\n\n _proto.updatePosition = function updatePosition() {\n var _this$tableHeaderRef;\n\n /**\n * 当存在锁定列情况处理\n */\n if (this.state.shouldFixedColumn) {\n this.updatePositionByFixedCell();\n } else {\n var _this$wheelWrapperRef, _this$headerWrapperRe2, _this$affixHeaderWrap, _affixHeaderElement$h;\n\n var wheelStyle = {};\n var headerStyle = {};\n this.translateDOMPositionXY(wheelStyle, this.scrollX, this.scrollY);\n this.translateDOMPositionXY(headerStyle, this.scrollX, 0);\n var wheelElement = (_this$wheelWrapperRef = this.wheelWrapperRef) === null || _this$wheelWrapperRef === void 0 ? void 0 : _this$wheelWrapperRef.current;\n var headerElement = (_this$headerWrapperRe2 = this.headerWrapperRef) === null || _this$headerWrapperRe2 === void 0 ? void 0 : _this$headerWrapperRe2.current;\n var affixHeaderElement = (_this$affixHeaderWrap = this.affixHeaderWrapperRef) === null || _this$affixHeaderWrap === void 0 ? void 0 : _this$affixHeaderWrap.current;\n wheelElement && Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(wheelElement, wheelStyle);\n headerElement && Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(headerElement, headerStyle);\n\n if (affixHeaderElement !== null && affixHeaderElement !== void 0 && (_affixHeaderElement$h = affixHeaderElement.hasChildNodes) !== null && _affixHeaderElement$h !== void 0 && _affixHeaderElement$h.call(affixHeaderElement)) {\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(affixHeaderElement.firstChild, headerStyle);\n }\n }\n\n if ((_this$tableHeaderRef = this.tableHeaderRef) !== null && _this$tableHeaderRef !== void 0 && _this$tableHeaderRef.current) {\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(this.tableHeaderRef.current, this.addPrefix('cell-group-shadow'), this.scrollY < 0);\n }\n };\n\n _proto.updatePositionByFixedCell = function updatePositionByFixedCell() {\n var _this$wheelWrapperRef2;\n\n var wheelGroupStyle = {};\n var wheelStyle = {};\n var scrollGroups = this.getScrollCellGroups();\n var fixedLeftGroups = this.getFixedLeftCellGroups();\n var fixedRightGroups = this.getFixedRightCellGroups();\n var _this$state4 = this.state,\n contentWidth = _this$state4.contentWidth,\n width = _this$state4.width;\n this.translateDOMPositionXY(wheelGroupStyle, this.scrollX, 0);\n this.translateDOMPositionXY(wheelStyle, 0, this.scrollY);\n var scrollArrayGroups = Array.from(scrollGroups);\n\n for (var i = 0; i < scrollArrayGroups.length; i++) {\n var group = scrollArrayGroups[i];\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(group, wheelGroupStyle);\n }\n\n if ((_this$wheelWrapperRef2 = this.wheelWrapperRef) !== null && _this$wheelWrapperRef2 !== void 0 && _this$wheelWrapperRef2.current) {\n Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"addStyle\"])(this.wheelWrapperRef.current, wheelStyle);\n }\n\n var leftShadowClassName = this.addPrefix('cell-group-left-shadow');\n var rightShadowClassName = this.addPrefix('cell-group-right-shadow');\n var showLeftShadow = this.scrollX < 0;\n var showRightShadow = width - contentWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"] !== this.scrollX;\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(fixedLeftGroups, leftShadowClassName, showLeftShadow);\n Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"toggleClass\"])(fixedRightGroups, rightShadowClassName, showRightShadow);\n };\n\n _proto.shouldRenderExpandedRow = function shouldRenderExpandedRow(rowData) {\n var _this$props18 = this.props,\n rowKey = _this$props18.rowKey,\n renderRowExpanded = _this$props18.renderRowExpanded,\n isTree = _this$props18.isTree;\n var expandedRowKeys = this.getExpandedRowKeys() || [];\n return lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(renderRowExpanded) && !isTree && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n });\n };\n\n _proto.calculateRowMaxHeight = function calculateRowMaxHeight() {\n var wordWrap = this.props.wordWrap;\n\n if (wordWrap) {\n var tableRowsMaxHeight = [];\n var tableRows = Object.values(this.tableRows);\n\n for (var i = 0; i < tableRows.length; i++) {\n var _tableRows$i = tableRows[i],\n row = _tableRows$i[0];\n\n if (row) {\n var cells = row.querySelectorAll(\".\" + this.addPrefix('cell-wrap')) || [];\n var cellArray = Array.from(cells);\n var maxHeight = 0;\n\n for (var j = 0; j < cellArray.length; j++) {\n var cell = cellArray[j];\n var h = Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(cell);\n maxHeight = Math.max(maxHeight, h);\n }\n\n tableRowsMaxHeight.push(maxHeight);\n }\n }\n\n this.setState({\n tableRowsMaxHeight: tableRowsMaxHeight\n });\n }\n };\n\n _proto.calculateTableContentWidth = function calculateTableContentWidth(prevProps) {\n var _this$tableRef3;\n\n var table = (_this$tableRef3 = this.tableRef) === null || _this$tableRef3 === void 0 ? void 0 : _this$tableRef3.current;\n var row = table.querySelector(\".\" + this.addPrefix('row') + \":not(.virtualized)\");\n var contentWidth = row ? Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getWidth\"])(row) : 0;\n this.setState({\n contentWidth: contentWidth\n }); // 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分\n\n this.minScrollX = -(contentWidth - this.state.width) - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n /**\n * 1.判断 Table 列数是否发生变化\n * 2.判断 Table 内容区域是否宽度有变化\n *\n * 满足 1 和 2 则更新横向滚动条位置\n */\n\n if (lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(this.props.children).length !== lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(prevProps.children).length && this.state.contentWidth !== contentWidth) {\n this.scrollLeft(0);\n }\n };\n\n _proto.calculateTableContextHeight = function calculateTableContextHeight(prevProps) {\n var table = this.tableRef.current;\n var rows = table.querySelectorAll(\".\" + this.addPrefix('row')) || [];\n var _this$props19 = this.props,\n height = _this$props19.height,\n autoHeight = _this$props19.autoHeight,\n rowHeight = _this$props19.rowHeight,\n affixHeader = _this$props19.affixHeader;\n var headerHeight = this.getTableHeaderHeight();\n var contentHeight = rows.length ? Array.from(rows).map(function (row) {\n return Object(dom_lib__WEBPACK_IMPORTED_MODULE_15__[\"getHeight\"])(row) || rowHeight;\n }).reduce(function (x, y) {\n return x + y;\n }) : 0; // 当设置 affixHeader 属性后要减掉两个 header 的高度\n\n var nextContentHeight = contentHeight - (affixHeader ? headerHeight * 2 : headerHeight);\n\n if (nextContentHeight !== this.state.contentHeight) {\n this.setState({\n contentHeight: nextContentHeight\n });\n }\n\n if (prevProps && ( // 当 data 更新,或者表格高度更新,则更新滚动条\n prevProps.height !== height || prevProps.data !== this.props.data) && this.scrollY !== 0) {\n this.scrollTop(Math.abs(this.scrollY));\n this.updatePosition();\n }\n\n if (!autoHeight) {\n // 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分\n this.minScrollY = -(contentHeight - height) - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"];\n } // 如果内容区域的高度小于表格的高度,则重置 Y 坐标滚动条\n\n\n if (contentHeight < height) {\n this.scrollTop(0);\n } // 如果 scrollTop 的值大于可以滚动的范围 ,则重置 Y 坐标滚动条\n // 当 Table 为 virtualized 时, wheel 事件触发每次都会进入该逻辑, 避免在滚动到底部后滚动条重置, +SCROLLBAR_WIDTH\n\n\n if (Math.abs(this.scrollY) + height - headerHeight > nextContentHeight + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]) {\n this.scrollTop(this.scrollY);\n }\n };\n\n _proto.getControlledScrollTopValue = function getControlledScrollTopValue(value) {\n if (this.props.autoHeight) {\n return [0, 0];\n }\n\n var contentHeight = this.state.contentHeight;\n var headerHeight = this.getTableHeaderHeight();\n var height = this.getTableHeight(); // 滚动值的最大范围判断\n\n value = Math.min(value, Math.max(0, contentHeight - (height - headerHeight))); // value 值是表格理论滚动位置的一个值,通过 value 计算出 scrollY 坐标值与滚动条位置的值\n\n return [-value, value / contentHeight * (height - headerHeight)];\n };\n\n _proto.getControlledScrollLeftValue = function getControlledScrollLeftValue(value) {\n var _this$state5 = this.state,\n contentWidth = _this$state5.contentWidth,\n width = _this$state5.width; // 滚动值的最大范围判断\n\n value = Math.min(value, Math.max(0, contentWidth - width));\n return [-value, value / contentWidth * width];\n }\n /**\n * public method\n */\n ;\n\n _proto.renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var _this$props20 = this.props,\n renderTreeToggle = _this$props20.renderTreeToggle,\n rowKey = _this$props20.rowKey,\n wordWrap = _this$props20.wordWrap,\n isTree = _this$props20.isTree;\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n\n var rowProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, props, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: this.bindTableRowsRef(props.key, rowData),\n onClick: this.bindRowClick(rowData),\n onContextMenu: this.bindRowContextMenu(rowData)\n });\n\n var expandedRowKeys = this.getExpandedRowKeys() || [];\n var expanded = expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n });\n var cells = [];\n\n for (var i = 0; i < bodyCells.length; i++) {\n var cell = bodyCells[i];\n cells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"cloneElement\"](cell, {\n hasChildren: hasChildren,\n rowData: rowData,\n wordWrap: wordWrap,\n renderTreeToggle: renderTreeToggle,\n height: props.height,\n rowIndex: props.key,\n depth: props.depth,\n onTreeToggle: this.handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded\n }));\n }\n\n return this.renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n\n _proto.renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var rowClassName = this.props.rowClassName;\n var _this$state6 = this.state,\n shouldFixedColumn = _this$state6.shouldFixedColumn,\n width = _this$state6.width,\n contentWidth = _this$state6.contentWidth;\n\n var depth = props.depth,\n restRowProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(props, [\"depth\"]);\n\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData);\n } else {\n restRowProps.className = rowClassName;\n }\n\n var rowStyles = {};\n var rowRight = 0;\n\n if (this.isRTL() && contentWidth > width) {\n rowRight = width - contentWidth;\n rowStyles.right = rowRight;\n } // IF there are fixed columns, add a fixed group\n\n\n if (shouldFixedColumn && contentWidth > width) {\n var fixedLeftCells = [];\n var fixedRightCells = [];\n var scrollCells = [];\n var fixedLeftCellGroupWidth = 0;\n var fixedRightCellGroupWidth = 0;\n\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n var _cell$props = cell.props,\n fixed = _cell$props.fixed,\n _width2 = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n\n if (this.isRTL()) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += _width2;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += _width2;\n } else {\n scrollCells.push(cell);\n }\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: this.isRTL() ? {\n right: width - fixedLeftCellGroupWidth - rowRight\n } : null\n }, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"resetLeftForCells\"])(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], null, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n fixed: \"right\",\n style: this.isRTL() ? {\n right: 0 - rowRight\n } : {\n left: width - fixedRightCellGroupWidth - _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth + _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]\n }, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"resetLeftForCells\"])(fixedRightCells, _constants__WEBPACK_IMPORTED_MODULE_20__[\"SCROLLBAR_WIDTH\"]))) : null, shouldRenderExpandedRow && this.renderRowExpanded(rowData));\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_CellGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"], null, Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"mergeCells\"])(cells)), shouldRenderExpandedRow && this.renderRowExpanded(rowData));\n };\n\n _proto.renderRowExpanded = function renderRowExpanded(rowData) {\n var _this$props21 = this.props,\n renderRowExpanded = _this$props21.renderRowExpanded,\n rowExpandedHeight = _this$props21.rowExpandedHeight;\n var styles = {\n height: rowExpandedHeight\n };\n\n if (typeof renderRowExpanded === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('row-expanded'),\n style: styles\n }, renderRowExpanded(rowData));\n }\n\n return null;\n };\n\n _proto.renderMouseArea = function renderMouseArea() {\n var headerHeight = this.getTableHeaderHeight();\n var styles = {\n height: this.getTableHeight()\n };\n var spanStyles = {\n height: headerHeight - 1\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.mouseAreaRef,\n className: this.addPrefix('mouse-area'),\n style: styles\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n style: spanStyles\n }));\n };\n\n _proto.renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var affixHeader = this.props.affixHeader;\n var tableWidth = this.state.width;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var headerHeight = this.getTableHeaderHeight();\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: this.tableHeaderRef,\n width: rowWidth,\n height: this.getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: this.getTableHeaderHeight(),\n width: tableWidth,\n top: top\n }; // Affix header\n\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(this.addPrefix('affix-header')),\n style: fixedStyle,\n ref: this.affixHeaderWrapperRef\n }, this.renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_3__[\"Fragment\"], null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n role: \"rowgroup\",\n className: this.addPrefix('header-row-wrapper'),\n ref: this.headerWrapperRef\n }, this.renderRow(rowProps, headerCells)));\n };\n\n _proto.renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _this$props22 = this.props,\n rowExpandedHeight = _this$props22.rowExpandedHeight,\n renderRowExpanded = _this$props22.renderRowExpanded,\n isTree = _this$props22.isTree,\n rowKey = _this$props22.rowKey,\n wordWrap = _this$props22.wordWrap,\n virtualized = _this$props22.virtualized,\n rowHeight = _this$props22.rowHeight;\n var headerHeight = this.getTableHeaderHeight();\n var _this$state7 = this.state,\n tableRowsMaxHeight = _this$state7.tableRowsMaxHeight,\n isScrolling = _this$state7.isScrolling,\n data = _this$state7.data;\n var height = this.getTableHeight();\n var bodyHeight = height - headerHeight;\n var bodyStyles = {\n top: headerHeight,\n height: bodyHeight\n };\n var contentHeight = 0;\n var topHideHeight = 0;\n var bottomHideHeight = 0;\n this._visibleRows = [];\n\n if (data) {\n var top = 0; // Row position\n\n var minTop = Math.abs(this.scrollY);\n var maxTop = minTop + height + rowExpandedHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!(renderRowExpanded || isCustomRowHeight || isTree);\n /**\n 如果开启了 virtualized 同时 Table 中的的行高是可变的,\n 则需要循环遍历 data, 获取每一行的高度。\n */\n\n if (isUncertainHeight && virtualized || !virtualized) {\n for (var index = 0; index < data.length; index++) {\n var rowData = data[index];\n var maxHeight = tableRowsMaxHeight[index];\n var shouldRenderExpandedRow = this.shouldRenderExpandedRow(rowData);\n var nextRowHeight = 0;\n var depth = 0;\n\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(rowData);\n } else {\n nextRowHeight = maxHeight ? Math.max(maxHeight + _constants__WEBPACK_IMPORTED_MODULE_20__[\"CELL_PADDING_HEIGHT\"], rowHeight) : rowHeight;\n\n if (shouldRenderExpandedRow) {\n nextRowHeight += rowExpandedHeight;\n }\n }\n\n if (isTree) {\n var parents = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"findAllParents\"])(rowData, rowKey);\n var expandedRowKeys = this.getExpandedRowKeys();\n depth = parents.length; // 如果是 Tree Table, 判断当前的行是否展开/折叠,如果是折叠则不显示该行。\n\n if (!Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"shouldShowRowByExpanded\"])(expandedRowKeys, parents)) {\n continue;\n }\n }\n\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n width: rowWidth,\n depth: depth,\n height: nextRowHeight\n };\n top += nextRowHeight;\n\n if (virtualized && !wordWrap) {\n if (top + nextRowHeight < minTop) {\n topHideHeight += nextRowHeight;\n continue;\n } else if (top > maxTop) {\n bottomHideHeight += nextRowHeight;\n continue;\n }\n }\n\n this._visibleRows.push(this.renderRowData(bodyCells, rowData, rowProps, shouldRenderExpandedRow));\n }\n } else {\n /**\n 如果 Table 的行高是固定的,则直接通过行高与行数进行计算,\n 减少遍历所有 data 带来的性能消耗\n */\n var _nextRowHeight = this.getRowHeight();\n\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight), data.length);\n contentHeight = data.length * _nextRowHeight;\n topHideHeight = startIndex * _nextRowHeight;\n bottomHideHeight = (data.length - endIndex) * _nextRowHeight;\n\n for (var _index = startIndex; _index < endIndex; _index++) {\n var _rowData = data[_index];\n var _rowProps = {\n key: _index,\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight\n };\n\n this._visibleRows.push(this.renderRowData(bodyCells, _rowData, _rowProps, false));\n }\n }\n }\n\n var wheelStyles = {\n position: 'absolute',\n height: contentHeight,\n minHeight: height,\n pointerEvents: isScrolling ? 'none' : undefined\n };\n var topRowStyles = {\n height: topHideHeight\n };\n var bottomRowStyles = {\n height: bottomHideHeight\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n ref: this.tableBodyRef,\n role: \"rowgroup\",\n className: this.addPrefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: this.handleBodyScroll\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n style: wheelStyles,\n className: this.addPrefix('body-wheel-area'),\n ref: this.wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, this._visibleRows, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Row__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), this.renderInfo(), this.renderScrollbar(), this.renderLoading());\n };\n\n _proto.renderInfo = function renderInfo() {\n var _this$props23 = this.props,\n locale = _this$props23.locale,\n renderEmpty = _this$props23.renderEmpty,\n loading = _this$props23.loading;\n\n if (this._visibleRows.length || loading) {\n return null;\n }\n\n var emptyMessage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('body-info')\n }, locale.emptyMessage);\n return renderEmpty ? renderEmpty(emptyMessage) : emptyMessage;\n };\n\n _proto.renderScrollbar = function renderScrollbar() {\n var _this$props24 = this.props,\n disabledScroll = _this$props24.disabledScroll,\n affixHorizontalScrollbar = _this$props24.affixHorizontalScrollbar,\n id = _this$props24.id;\n var _this$state8 = this.state,\n contentWidth = _this$state8.contentWidth,\n contentHeight = _this$state8.contentHeight,\n width = _this$state8.width,\n fixedHorizontalScrollbar = _this$state8.fixedHorizontalScrollbar;\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var headerHeight = this.getTableHeaderHeight();\n var height = this.getTableHeight();\n\n if (disabledScroll) {\n return null;\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Scrollbar__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n tableId: id,\n className: classnames__WEBPACK_IMPORTED_MODULE_5___default()({\n fixed: fixedHorizontalScrollbar\n }),\n style: {\n width: width,\n bottom: fixedHorizontalScrollbar ? bottom : undefined\n },\n length: this.state.width,\n onScroll: this.handleScrollX,\n scrollLength: contentWidth,\n ref: this.scrollbarXRef\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_Scrollbar__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n vertical: true,\n tableId: id,\n length: height - headerHeight,\n scrollLength: contentHeight,\n onScroll: this.handleScrollY,\n ref: this.scrollbarYRef\n }));\n }\n /**\n * show loading\n */\n ;\n\n _proto.renderLoading = function renderLoading() {\n var _this$props25 = this.props,\n locale = _this$props25.locale,\n loading = _this$props25.loading,\n loadAnimation = _this$props25.loadAnimation,\n renderLoading = _this$props25.renderLoading;\n\n if (!loadAnimation && !loading) {\n return null;\n }\n\n var loadingElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('loader-wrapper')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", {\n className: this.addPrefix('loader')\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"i\", {\n className: this.addPrefix('loader-icon')\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"span\", {\n className: this.addPrefix('loader-text')\n }, locale.loading)));\n return renderLoading ? renderLoading(loadingElement) : loadingElement;\n };\n\n _proto.render = function render() {\n var _classNames;\n\n var _this$props26 = this.props,\n children = _this$props26.children,\n className = _this$props26.className,\n data = _this$props26.data,\n _this$props26$width = _this$props26.width,\n width = _this$props26$width === void 0 ? 0 : _this$props26$width,\n style = _this$props26.style,\n isTree = _this$props26.isTree,\n hover = _this$props26.hover,\n bordered = _this$props26.bordered,\n cellBordered = _this$props26.cellBordered,\n wordWrap = _this$props26.wordWrap,\n classPrefix = _this$props26.classPrefix,\n loading = _this$props26.loading,\n showHeader = _this$props26.showHeader,\n rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_this$props26, [\"children\", \"className\", \"data\", \"width\", \"style\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"classPrefix\", \"loading\", \"showHeader\"]);\n\n var isColumnResizing = this.state.isColumnResizing;\n\n var _this$getCellDescript = this.getCellDescriptor(),\n headerCells = _this$getCellDescript.headerCells,\n bodyCells = _this$getCellDescript.bodyCells,\n allColumnsWidth = _this$getCellDescript.allColumnsWidth,\n hasCustomTreeCol = _this$getCellDescript.hasCustomTreeCol;\n\n var rowWidth = allColumnsWidth > width ? allColumnsWidth : width;\n var clesses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(classPrefix, className, (_classNames = {}, _classNames[this.addPrefix('word-wrap')] = wordWrap, _classNames[this.addPrefix('treetable')] = isTree, _classNames[this.addPrefix('bordered')] = bordered, _classNames[this.addPrefix('cell-bordered')] = cellBordered, _classNames[this.addPrefix('column-resizing')] = isColumnResizing, _classNames[this.addPrefix('hover')] = hover, _classNames[this.addPrefix('loading')] = loading, _classNames));\n\n var styles = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n width: width || 'auto',\n height: this.getTableHeight()\n }, style);\n\n var unhandled = Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"getUnhandledProps\"])(propTypes, rest);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](_TableContext__WEBPACK_IMPORTED_MODULE_19__[\"default\"].Provider, {\n value: {\n translateDOMPositionXY: this.translateDOMPositionXY,\n rtl: this.isRTL(),\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"](\"div\", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n role: isTree ? 'treegrid' : 'grid' // The aria-rowcount is specified on the element with the table.\n // Its value is an integer equal to the total number of rows available, including header rows.\n ,\n \"aria-rowcount\": data.length + 1,\n \"aria-colcount\": this._cacheChildrenSize\n }, unhandled, {\n className: clesses,\n style: styles,\n ref: this.tableRef\n }), showHeader && this.renderTableHeader(headerCells, rowWidth), children && this.renderTableBody(bodyCells, rowWidth), showHeader && this.renderMouseArea()));\n };\n\n return Table;\n}(react__WEBPACK_IMPORTED_MODULE_3__[\"Component\"]);\n\nTable.propTypes = propTypes;\nTable.defaultProps = {\n classPrefix: Object(_utils__WEBPACK_IMPORTED_MODULE_21__[\"defaultClassPrefix\"])('table'),\n data: [],\n defaultSortType: SORT_TYPE.DESC,\n height: 200,\n rowHeight: 46,\n headerHeight: 40,\n minHeight: 0,\n rowExpandedHeight: 100,\n hover: true,\n showHeader: true,\n rowKey: 'key',\n translate3d: true,\n shouldUpdateScroll: true,\n locale: {\n emptyMessage: 'No data found',\n loading: 'Loading...'\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
5174
5174
 
5175
5175
  /***/ }),
5176
5176
 
@@ -5278,7 +5278,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
5278
5278
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5279
5279
 
5280
5280
  "use strict";
5281
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns an object consisting of props beyond the scope of the Component.\n * Useful for getting and spreading unknown props from the user.\n * @param {function} Component A function or ReactClass.\n * @param {object} props A ReactElement props object\n * @returns {{}} A shallow copy of the prop object\n */\nvar getUnhandledProps = function getUnhandledProps(Component, props) {\n var _Component$handledPro = Component.handledProps,\n handledProps = _Component$handledPro === void 0 ? [] : _Component$handledPro,\n _Component$propTypes = Component.propTypes,\n propTypes = _Component$propTypes === void 0 ? {} : _Component$propTypes;\n var propTypeKeys = Object.keys(propTypes);\n return Object.keys(props).reduce(function (acc, prop) {\n if (prop === 'childKey') {\n return acc;\n }\n\n if (handledProps.length > 0 && handledProps.indexOf(prop) === -1) {\n acc[prop] = props[prop];\n }\n\n if (propTypeKeys.length > 0 && propTypeKeys.indexOf(prop) === -1) {\n acc[prop] = props[prop];\n }\n\n return acc;\n }, {});\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (getUnhandledProps);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/getUnhandledProps.js?");
5281
+ eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns an object consisting of props beyond the scope of the Component.\n * Useful for getting and spreading unknown props from the user.\n * @param {object} propTypes\n * @param {object} props A ReactElement props object\n * @returns {{}} A shallow copy of the prop object\n */\nvar getUnhandledProps = function getUnhandledProps(propTypes, props) {\n var propTypeKeys = Object.keys(propTypes);\n return Object.keys(props).reduce(function (acc, prop) {\n if (prop === 'childKey') {\n return acc;\n }\n\n if (propTypeKeys.length > 0 && propTypeKeys.indexOf(prop) === -1) {\n acc[prop] = props[prop];\n }\n\n return acc;\n }, {});\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (getUnhandledProps);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/getUnhandledProps.js?");
5282
5282
 
5283
5283
  /***/ }),
5284
5284
 
@@ -5286,11 +5286,11 @@ eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns an object con
5286
5286
  /*!*****************************************************!*\
5287
5287
  !*** ./node_modules/rsuite-table/es/utils/index.js ***!
5288
5288
  \*****************************************************/
5289
- /*! exports provided: globalKey, getClassNamePrefix, defaultClassPrefix, prefix, isNullOrUndefined, getUnhandledProps, getTotalByColumns, mergeCells, toggleClass, toggle, flattenData, translateDOMPositionXY, isRTL, findRowKeys, findAllParents, shouldShowRowByExpanded, resetLeftForCells, isNumberOrTrue, cancelAnimationTimeout, requestAnimationTimeout */
5289
+ /*! exports provided: globalKey, defaultClassPrefix, prefix, getClassNamePrefix, isNullOrUndefined, getUnhandledProps, getTotalByColumns, mergeCells, toggleClass, toggle, flattenData, translateDOMPositionXY, isRTL, findRowKeys, findAllParents, shouldShowRowByExpanded, resetLeftForCells, isNumberOrTrue, cancelAnimationTimeout, requestAnimationTimeout */
5290
5290
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5291
5291
 
5292
5292
  "use strict";
5293
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _prefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"globalKey\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"globalKey\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getClassNamePrefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"getClassNamePrefix\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"defaultClassPrefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"defaultClassPrefix\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"prefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"prefix\"]; });\n\n/* harmony import */ var _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isNullOrUndefined */ \"./node_modules/rsuite-table/es/utils/isNullOrUndefined.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isNullOrUndefined\", function() { return _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _getUnhandledProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getUnhandledProps */ \"./node_modules/rsuite-table/es/utils/getUnhandledProps.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getUnhandledProps\", function() { return _getUnhandledProps__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getTotalByColumns\", function() { return _getTotalByColumns__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _mergeCells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeCells */ \"./node_modules/rsuite-table/es/utils/mergeCells.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"mergeCells\", function() { return _mergeCells__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"toggleClass\", function() { return _toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./toggle */ \"./node_modules/rsuite-table/es/utils/toggle.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"toggle\", function() { return _toggle__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _flattenData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"flattenData\", function() { return _flattenData__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./translateDOMPositionXY */ \"./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"translateDOMPositionXY\", function() { return _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _isRTL__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./isRTL */ \"./node_modules/rsuite-table/es/utils/isRTL.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isRTL\", function() { return _isRTL__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _findRowKeys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./findRowKeys */ \"./node_modules/rsuite-table/es/utils/findRowKeys.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"findRowKeys\", function() { return _findRowKeys__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _findAllParents__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"findAllParents\", function() { return _findAllParents__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"shouldShowRowByExpanded\", function() { return _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _resetLeftForCells__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./resetLeftForCells */ \"./node_modules/rsuite-table/es/utils/resetLeftForCells.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"resetLeftForCells\", function() { return _resetLeftForCells__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isNumberOrTrue\", function() { return _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"cancelAnimationTimeout\", function() { return _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__[\"cancelAnimationTimeout\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"requestAnimationTimeout\", function() { return _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__[\"requestAnimationTimeout\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/index.js?");
5293
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _prefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"globalKey\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"globalKey\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"defaultClassPrefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"defaultClassPrefix\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"prefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"prefix\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getClassNamePrefix\", function() { return _prefix__WEBPACK_IMPORTED_MODULE_0__[\"getClassNamePrefix\"]; });\n\n/* harmony import */ var _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isNullOrUndefined */ \"./node_modules/rsuite-table/es/utils/isNullOrUndefined.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isNullOrUndefined\", function() { return _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _getUnhandledProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getUnhandledProps */ \"./node_modules/rsuite-table/es/utils/getUnhandledProps.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getUnhandledProps\", function() { return _getUnhandledProps__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getTotalByColumns\", function() { return _getTotalByColumns__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _mergeCells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeCells */ \"./node_modules/rsuite-table/es/utils/mergeCells.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"mergeCells\", function() { return _mergeCells__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"toggleClass\", function() { return _toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./toggle */ \"./node_modules/rsuite-table/es/utils/toggle.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"toggle\", function() { return _toggle__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _flattenData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"flattenData\", function() { return _flattenData__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./translateDOMPositionXY */ \"./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"translateDOMPositionXY\", function() { return _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _isRTL__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./isRTL */ \"./node_modules/rsuite-table/es/utils/isRTL.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isRTL\", function() { return _isRTL__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _findRowKeys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./findRowKeys */ \"./node_modules/rsuite-table/es/utils/findRowKeys.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"findRowKeys\", function() { return _findRowKeys__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _findAllParents__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"findAllParents\", function() { return _findAllParents__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"shouldShowRowByExpanded\", function() { return _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _resetLeftForCells__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./resetLeftForCells */ \"./node_modules/rsuite-table/es/utils/resetLeftForCells.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"resetLeftForCells\", function() { return _resetLeftForCells__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isNumberOrTrue\", function() { return _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"cancelAnimationTimeout\", function() { return _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__[\"cancelAnimationTimeout\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"requestAnimationTimeout\", function() { return _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_15__[\"requestAnimationTimeout\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/index.js?");
5294
5294
 
5295
5295
  /***/ }),
5296
5296
 
@@ -5338,7 +5338,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
5338
5338
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5339
5339
 
5340
5340
  "use strict";
5341
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/rsuite-table/node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/get */ \"./node_modules/rsuite-table/node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isNullOrUndefined */ \"./node_modules/rsuite-table/es/utils/isNullOrUndefined.js\");\n\n\n\n\n\n\nfunction cloneCell(Cell, props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"cloneElement\"](Cell, props);\n}\n\nfunction mergeCells(cells) {\n var nextCells = [];\n\n for (var i = 0; i < cells.length; i += 1) {\n var _cells$i$props = cells[i].props,\n width = _cells$i$props.width,\n colSpan = _cells$i$props.colSpan,\n groupCount = _cells$i$props.groupCount,\n groupHeader = _cells$i$props.groupHeader,\n isHeaderCell = _cells$i$props.isHeaderCell,\n headerHeight = _cells$i$props.headerHeight,\n verticalAlign = _cells$i$props.verticalAlign;\n var groupChildren = [];\n /**\n * 为列头添加分组\n */\n\n if (groupCount && isHeaderCell) {\n var nextWidth = width;\n var left = 0;\n\n for (var j = 0; j < groupCount; j += 1) {\n var nextCell = cells[i + j];\n var _nextCell$props = nextCell.props,\n nextCellWidth = _nextCell$props.width,\n children = _nextCell$props.children;\n\n if (j !== 0) {\n nextWidth += nextCellWidth;\n left += cells[i + j - 1].props.width;\n cells[i + j] = cloneCell(nextCell, {\n removed: true\n });\n }\n\n groupChildren.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"div\", {\n key: j,\n style: {\n width: nextCellWidth,\n left: left\n }\n }, children));\n }\n\n nextCells.push(cloneCell(cells[i], {\n width: nextWidth,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n width: nextWidth,\n headerHeight: headerHeight,\n header: groupHeader,\n verticalAlign: verticalAlign\n }, groupChildren)\n }));\n continue;\n } else if (colSpan) {\n /**\n * 如果存在 colSpan 属性,就去找它的下一个 Cell,\n * 看看值是否是 isNullOrUndefined,,如果为空这可以合并这个单元格\n */\n var _nextWidth = width;\n\n for (var _j = 0; _j < colSpan; _j += 1) {\n var _nextCell = cells[i + _j];\n\n if (_nextCell) {\n var _nextCell$props2 = _nextCell.props,\n rowData = _nextCell$props2.rowData,\n rowIndex = _nextCell$props2.rowIndex,\n _children = _nextCell$props2.children,\n colSpanWidth = _nextCell$props2.width,\n _isHeaderCell = _nextCell$props2.isHeaderCell,\n dataKey = _nextCell$props2.dataKey;\n var cellText = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(_children) ? _children(rowData, rowIndex) : lodash_get__WEBPACK_IMPORTED_MODULE_2___default()(rowData, dataKey);\n\n if (rowData && Object(_isNullOrUndefined__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(cellText) || _isHeaderCell && Object(_isNullOrUndefined__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_children)) {\n _nextWidth += colSpanWidth;\n cells[i + _j] = cloneCell(_nextCell, {\n removed: true\n });\n }\n }\n }\n\n nextCells.push(cloneCell(cells[i], {\n width: _nextWidth,\n 'aria-colspan': colSpan && _nextWidth > width ? colSpan : undefined\n }));\n continue;\n }\n\n nextCells.push(cells[i]);\n }\n\n return nextCells;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (mergeCells);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/mergeCells.js?");
5341
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/rsuite-table/node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/get */ \"./node_modules/rsuite-table/node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n/* harmony import */ var _isNullOrUndefined__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isNullOrUndefined */ \"./node_modules/rsuite-table/es/utils/isNullOrUndefined.js\");\n\n\n\n\n\n\n\nfunction cloneCell(Cell, props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"cloneElement\"](Cell, props);\n}\n\nfunction mergeCells(cells) {\n var nextCells = [];\n\n for (var i = 0; i < cells.length; i += 1) {\n var _cells$i$props = cells[i].props,\n width = _cells$i$props.width,\n colSpan = _cells$i$props.colSpan,\n groupCount = _cells$i$props.groupCount,\n groupHeader = _cells$i$props.groupHeader,\n isHeaderCell = _cells$i$props.isHeaderCell,\n headerHeight = _cells$i$props.headerHeight,\n verticalAlign = _cells$i$props.verticalAlign;\n var groupChildren = [];\n /**\n * 为列头添加分组\n */\n\n if (groupCount && isHeaderCell) {\n var nextWidth = width;\n var left = 0;\n\n for (var j = 0; j < groupCount; j += 1) {\n var nextCell = cells[i + j];\n var _nextCell$props = nextCell.props,\n nextCellWidth = _nextCell$props.width,\n sortable = _nextCell$props.sortable,\n children = _nextCell$props.children,\n dataKey = _nextCell$props.dataKey,\n onSortColumn = _nextCell$props.onSortColumn,\n sortColumn = _nextCell$props.sortColumn,\n sortType = _nextCell$props.sortType;\n\n if (j !== 0) {\n nextWidth += nextCellWidth;\n left += cells[i + j - 1].props.width;\n cells[i + j] = cloneCell(nextCell, {\n removed: true\n });\n }\n\n groupChildren.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](_HeaderCell__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n key: j,\n left: left,\n dataKey: dataKey,\n width: nextCellWidth,\n sortable: sortable,\n sortColumn: sortColumn,\n sortType: sortType,\n onSortColumn: onSortColumn\n }, children));\n }\n\n nextCells.push(cloneCell(cells[i], {\n width: nextWidth,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n width: nextWidth,\n headerHeight: headerHeight,\n header: groupHeader,\n verticalAlign: verticalAlign\n }, groupChildren)\n }));\n continue;\n } else if (colSpan) {\n /**\n * 如果存在 colSpan 属性,就去找它的下一个 Cell,\n * 看看值是否是 isNullOrUndefined,,如果为空这可以合并这个单元格\n */\n var _nextWidth = width;\n\n for (var _j = 0; _j < colSpan; _j += 1) {\n var _nextCell = cells[i + _j];\n\n if (_nextCell) {\n var _nextCell$props2 = _nextCell.props,\n rowData = _nextCell$props2.rowData,\n rowIndex = _nextCell$props2.rowIndex,\n _children = _nextCell$props2.children,\n colSpanWidth = _nextCell$props2.width,\n _isHeaderCell = _nextCell$props2.isHeaderCell,\n _dataKey = _nextCell$props2.dataKey;\n var cellText = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(_children) ? _children(rowData, rowIndex) : lodash_get__WEBPACK_IMPORTED_MODULE_2___default()(rowData, _dataKey);\n\n if (rowData && Object(_isNullOrUndefined__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(cellText) || _isHeaderCell && Object(_isNullOrUndefined__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_children)) {\n _nextWidth += colSpanWidth;\n cells[i + _j] = cloneCell(_nextCell, {\n removed: true\n });\n }\n }\n }\n\n nextCells.push(cloneCell(cells[i], {\n width: _nextWidth,\n 'aria-colspan': colSpan && _nextWidth > width ? colSpan : undefined\n }));\n continue;\n }\n\n nextCells.push(cells[i]);\n }\n\n return nextCells;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (mergeCells);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/mergeCells.js?");
5342
5342
 
5343
5343
  /***/ }),
5344
5344
 
@@ -9207,7 +9207,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/he
9207
9207
  /***/ (function(module, exports, __webpack_require__) {
9208
9208
 
9209
9209
  "use strict";
9210
- eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ \"./node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\n\nvar _get = _interopRequireDefault(__webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\"));\n\nvar _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ \"./node_modules/lodash/pick.js\"));\n\nvar _isNil = _interopRequireDefault(__webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\"));\n\nvar _domLib = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n\nvar _Overlay = _interopRequireDefault(__webpack_require__(/*! ./Overlay */ \"./src/Overlay/Overlay.tsx\"));\n\nvar _createChainedFunction = _interopRequireDefault(__webpack_require__(/*! ../utils/createChainedFunction */ \"./src/utils/createChainedFunction.ts\"));\n\nvar _isOneOf = _interopRequireDefault(__webpack_require__(/*! ../utils/isOneOf */ \"./src/utils/isOneOf.ts\"));\n\nvar _getDOMNode = _interopRequireDefault(__webpack_require__(/*! ../utils/getDOMNode */ \"./src/utils/getDOMNode.ts\"));\n\nvar _Portal = _interopRequireDefault(__webpack_require__(/*! ../Portal */ \"./src/Portal/index.tsx\"));\n\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Overlay/OverlayTrigger.tsx\";\n\nfunction onMouseEventHandler(handler, event) {\n var target = event.currentTarget;\n var related = event.relatedTarget || (0, _get.default)(event, ['nativeEvent', 'toElement']);\n\n if ((!related || related !== target) && !(0, _domLib.contains)(target, related)) {\n handler(event);\n }\n}\n\nvar OverlayTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inheritsLoose2.default)(OverlayTrigger, _React$Component);\n\n function OverlayTrigger(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.onMouseOverListener = void 0;\n _this.onMouseOutListener = void 0;\n _this.delayShowTimer = void 0;\n _this.delayHideTimer = void 0;\n _this.mouseEnteredToSpeaker = false;\n _this.mouseEnteredToTrigger = false;\n\n _this.getOverlayTarget = function () {\n return (0, _getDOMNode.default)((0, _assertThisInitialized2.default)(_this));\n };\n\n _this.handleSpeakerMouseEnter = function () {\n _this.mouseEnteredToSpeaker = true;\n };\n\n _this.handleSpeakerMouseLeave = function () {\n var trigger = _this.props.trigger;\n _this.mouseEnteredToSpeaker = false;\n\n if (!(0, _isOneOf.default)('click', trigger) && !(0, _isOneOf.default)('active', trigger)) {\n _this.hideWithCheck();\n }\n };\n\n _this.open = function (delay) {\n _this.show(delay);\n };\n\n _this.close = function (delay) {\n _this.hide(delay);\n };\n\n _this.show = function (delay) {\n if (delay) {\n return _this.delayShowTimer = setTimeout(function () {\n _this.delayShowTimer = null;\n\n _this.setState({\n isOverlayShown: true\n });\n }, delay);\n }\n\n _this.setState({\n isOverlayShown: true\n });\n };\n\n _this.hide = function (delay) {\n if (delay) {\n return _this.delayHideTimer = setTimeout(function () {\n _this.delayHideTimer = null;\n\n _this.setState({\n isOverlayShown: false\n });\n }, delay);\n }\n\n _this.setState({\n isOverlayShown: false\n });\n };\n\n _this.hideWithCheck = function (delay) {\n if (!_this.mouseEnteredToSpeaker && !_this.mouseEnteredToTrigger) {\n _this.hide(delay);\n }\n };\n\n _this.toggleHideAndShow = function () {\n var _this$props = _this.props,\n delayShow = _this$props.delayShow,\n delay = _this$props.delay,\n delayHide = _this$props.delayHide;\n\n if (_this.state.isOverlayShown) {\n _this.hideWithCheck((0, _isNil.default)(delayHide) ? delay : delayHide);\n } else {\n _this.show((0, _isNil.default)(delayShow) ? delay : delayShow);\n }\n };\n\n _this.handleDelayedShow = function () {\n var _this$props2 = _this.props,\n delayShow = _this$props2.delayShow,\n enterable = _this$props2.enterable;\n var delay = (0, _isNil.default)(delayShow) ? _this.props.delay : delayShow;\n\n if (!enterable) {\n return _this.show(delay);\n }\n\n _this.mouseEnteredToTrigger = true;\n\n if (!(0, _isNil.default)(_this.delayHideTimer)) {\n clearTimeout(_this.delayHideTimer);\n _this.delayHideTimer = null;\n return _this.show(delay);\n }\n\n if (_this.state.isOverlayShown) {\n return;\n }\n\n _this.show(delay);\n };\n\n _this.handleDelayedHide = function () {\n var _this$props3 = _this.props,\n delayHide = _this$props3.delayHide,\n enterable = _this$props3.enterable;\n var delay = (0, _isNil.default)(delayHide) ? _this.props.delay : delayHide;\n\n if (!enterable) {\n _this.hide(delay);\n }\n\n _this.mouseEnteredToTrigger = false;\n\n if (!(0, _isNil.default)(_this.delayShowTimer)) {\n clearTimeout(_this.delayShowTimer);\n _this.delayShowTimer = null;\n return;\n }\n\n if (!_this.state.isOverlayShown || !(0, _isNil.default)(_this.delayHideTimer)) {\n return;\n }\n\n if (!delay) {\n return _this.hideWithCheck();\n }\n\n _this.delayHideTimer = setTimeout(function () {\n if (_this.state.isOnSpeaker) {\n return;\n }\n\n clearTimeout(_this.delayHideTimer);\n _this.delayHideTimer = null;\n\n _this.hideWithCheck();\n }, delay);\n };\n\n if (props.trigger !== 'none') {\n _this.onMouseOverListener = function (e) {\n return onMouseEventHandler(_this.handleDelayedShow, e);\n };\n\n _this.onMouseOutListener = function (e) {\n return onMouseEventHandler(_this.handleDelayedHide, e);\n };\n }\n\n _this.state = {\n isOverlayShown: props.defaultOpen\n };\n return _this;\n }\n\n var _proto = OverlayTrigger.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n clearTimeout(this.delayShowTimer);\n clearTimeout(this.delayHideTimer);\n };\n\n _proto.renderOverlay = function renderOverlay() {\n var _this2 = this;\n\n var _this$props4 = this.props,\n open = _this$props4.open,\n speaker = _this$props4.speaker,\n trigger = _this$props4.trigger,\n onHide = _this$props4.onHide;\n var isOverlayShown = this.state.isOverlayShown;\n var overlayProps = (0, _extends2.default)({}, (0, _pick.default)(this.props, Object.keys(_Overlay.default.propTypes)), {\n show: typeof open === 'undefined' ? isOverlayShown : open,\n target: this.getOverlayTarget\n });\n\n if ((0, _isOneOf.default)('click', trigger)) {\n overlayProps.onHide = (0, _createChainedFunction.default)(this.hide, onHide);\n } else if ((0, _isOneOf.default)('active', trigger)) {\n overlayProps.onHide = (0, _createChainedFunction.default)(this.hide, onHide);\n }\n\n var speakerProps = {\n placement: overlayProps.placement\n };\n\n if (trigger !== 'none') {\n speakerProps.onMouseEnter = this.handleSpeakerMouseEnter;\n speakerProps.onMouseLeave = this.handleSpeakerMouseLeave;\n }\n\n if (typeof speaker === 'function') {\n return React.createElement(_Overlay.default, (0, _extends2.default)({}, overlayProps, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 215\n },\n __self: this\n }), function (props, ref) {\n return speaker((0, _extends2.default)({}, props, {\n onClose: _this2.hide\n }), ref);\n });\n }\n\n return React.createElement(_Overlay.default, (0, _extends2.default)({}, overlayProps, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223\n },\n __self: this\n }), React.cloneElement(speaker, speakerProps));\n };\n\n _proto.render = function render() {\n var _this$props5 = this.props,\n children = _this$props5.children,\n speaker = _this$props5.speaker,\n onClick = _this$props5.onClick,\n trigger = _this$props5.trigger,\n onMouseOver = _this$props5.onMouseOver,\n onMouseOut = _this$props5.onMouseOut,\n onFocus = _this$props5.onFocus,\n onBlur = _this$props5.onBlur,\n disabled = _this$props5.disabled;\n var triggerComponent = React.Children.only(children);\n var triggerProps = triggerComponent.props;\n var props = {\n key: 'triggerComponent',\n onClick: (0, _createChainedFunction.default)(triggerProps.onClick, onClick),\n 'aria-describedby': (0, _get.default)(speaker, ['props', 'id'])\n };\n\n if (!disabled) {\n if ((0, _isOneOf.default)('click', trigger)) {\n props.onClick = (0, _createChainedFunction.default)(this.toggleHideAndShow, props.onClick);\n }\n\n if ((0, _isOneOf.default)('active', trigger)) {\n props.onClick = (0, _createChainedFunction.default)(this.handleDelayedShow, props.onClick);\n }\n\n if ((0, _isOneOf.default)('hover', trigger)) {\n props.onMouseOver = (0, _createChainedFunction.default)(this.onMouseOverListener, triggerProps.onMouseOver, onMouseOver);\n props.onMouseOut = (0, _createChainedFunction.default)(this.onMouseOutListener, triggerProps.onMouseOut, onMouseOut);\n }\n\n if ((0, _isOneOf.default)('focus', trigger)) {\n props.onFocus = (0, _createChainedFunction.default)(this.handleDelayedShow, triggerProps.onFocus, onFocus);\n props.onBlur = (0, _createChainedFunction.default)(this.handleDelayedHide, triggerProps.onBlur, onBlur);\n }\n }\n\n return [React.cloneElement(triggerComponent, props), React.createElement(_Portal.default, {\n key: \"portal\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287\n },\n __self: this\n }, this.renderOverlay())];\n };\n\n return OverlayTrigger;\n}(React.Component);\n\nOverlayTrigger.defaultProps = {\n trigger: ['hover', 'focus'],\n delayHide: 200,\n placement: 'bottomStart',\n rootClose: true\n};\nvar _default = OverlayTrigger;\nexports.default = _default;\nmodule.exports = exports.default;\n\n//# sourceURL=webpack://rsuite/./src/Overlay/OverlayTrigger.tsx?");
9210
+ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nvar _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ \"./node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/inheritsLoose.js\"));\n\nvar React = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\n\nvar _get = _interopRequireDefault(__webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\"));\n\nvar _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ \"./node_modules/lodash/pick.js\"));\n\nvar _isNil = _interopRequireDefault(__webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\"));\n\nvar _domLib = __webpack_require__(/*! dom-lib */ \"./node_modules/dom-lib/es/index.js\");\n\nvar _Overlay = _interopRequireDefault(__webpack_require__(/*! ./Overlay */ \"./src/Overlay/Overlay.tsx\"));\n\nvar _createChainedFunction = _interopRequireDefault(__webpack_require__(/*! ../utils/createChainedFunction */ \"./src/utils/createChainedFunction.ts\"));\n\nvar _isOneOf = _interopRequireDefault(__webpack_require__(/*! ../utils/isOneOf */ \"./src/utils/isOneOf.ts\"));\n\nvar _getDOMNode = _interopRequireDefault(__webpack_require__(/*! ../utils/getDOMNode */ \"./src/utils/getDOMNode.ts\"));\n\nvar _Portal = _interopRequireDefault(__webpack_require__(/*! ../Portal */ \"./src/Portal/index.tsx\"));\n\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Overlay/OverlayTrigger.tsx\";\n\nfunction onMouseEventHandler(handler, event) {\n var target = event.currentTarget;\n var related = event.relatedTarget || (0, _get.default)(event, ['nativeEvent', 'toElement']);\n\n if ((!related || related !== target) && !(0, _domLib.contains)(target, related)) {\n handler(event);\n }\n}\n\nvar OverlayTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n (0, _inheritsLoose2.default)(OverlayTrigger, _React$Component);\n\n function OverlayTrigger(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.onMouseOverListener = void 0;\n _this.onMouseOutListener = void 0;\n _this.delayShowTimer = void 0;\n _this.delayHideTimer = void 0;\n _this.mouseEnteredToSpeaker = false;\n _this.mouseEnteredToTrigger = false;\n\n _this.getOverlayTarget = function () {\n return (0, _getDOMNode.default)((0, _assertThisInitialized2.default)(_this));\n };\n\n _this.handleSpeakerMouseEnter = function () {\n _this.mouseEnteredToSpeaker = true;\n };\n\n _this.handleSpeakerMouseLeave = function () {\n var trigger = _this.props.trigger;\n _this.mouseEnteredToSpeaker = false;\n\n if (!(0, _isOneOf.default)('click', trigger) && !(0, _isOneOf.default)('active', trigger) && !(0, _isOneOf.default)('contextMenu', trigger)) {\n _this.hideWithCheck();\n }\n };\n\n _this.open = function (delay) {\n _this.show(delay);\n };\n\n _this.close = function (delay) {\n _this.hide(delay);\n };\n\n _this.show = function (delay) {\n if (delay) {\n return _this.delayShowTimer = setTimeout(function () {\n _this.delayShowTimer = null;\n\n _this.setState({\n isOverlayShown: true\n });\n }, delay);\n }\n\n _this.setState({\n isOverlayShown: true\n });\n };\n\n _this.hide = function (delay) {\n if (delay) {\n return _this.delayHideTimer = setTimeout(function () {\n _this.delayHideTimer = null;\n\n _this.setState({\n isOverlayShown: false\n });\n }, delay);\n }\n\n _this.setState({\n isOverlayShown: false\n });\n };\n\n _this.hideWithCheck = function (delay) {\n if (!_this.mouseEnteredToSpeaker && !_this.mouseEnteredToTrigger) {\n _this.hide(delay);\n }\n };\n\n _this.toggleHideAndShow = function () {\n var _this$props = _this.props,\n delayShow = _this$props.delayShow,\n delay = _this$props.delay,\n delayHide = _this$props.delayHide;\n\n if (_this.state.isOverlayShown) {\n _this.hideWithCheck((0, _isNil.default)(delayHide) ? delay : delayHide);\n } else {\n _this.show((0, _isNil.default)(delayShow) ? delay : delayShow);\n }\n };\n\n _this.preventDefault = function (event) {\n event.preventDefault();\n };\n\n _this.handleDelayedShow = function () {\n var _this$props2 = _this.props,\n delayShow = _this$props2.delayShow,\n enterable = _this$props2.enterable;\n var delay = (0, _isNil.default)(delayShow) ? _this.props.delay : delayShow;\n\n if (!enterable) {\n return _this.show(delay);\n }\n\n _this.mouseEnteredToTrigger = true;\n\n if (!(0, _isNil.default)(_this.delayHideTimer)) {\n clearTimeout(_this.delayHideTimer);\n _this.delayHideTimer = null;\n return _this.show(delay);\n }\n\n if (_this.state.isOverlayShown) {\n return;\n }\n\n _this.show(delay);\n };\n\n _this.handleDelayedHide = function () {\n var _this$props3 = _this.props,\n delayHide = _this$props3.delayHide,\n enterable = _this$props3.enterable;\n var delay = (0, _isNil.default)(delayHide) ? _this.props.delay : delayHide;\n\n if (!enterable) {\n _this.hide(delay);\n }\n\n _this.mouseEnteredToTrigger = false;\n\n if (!(0, _isNil.default)(_this.delayShowTimer)) {\n clearTimeout(_this.delayShowTimer);\n _this.delayShowTimer = null;\n return;\n }\n\n if (!_this.state.isOverlayShown || !(0, _isNil.default)(_this.delayHideTimer)) {\n return;\n }\n\n if (!delay) {\n return _this.hideWithCheck();\n }\n\n _this.delayHideTimer = setTimeout(function () {\n if (_this.state.isOnSpeaker) {\n return;\n }\n\n clearTimeout(_this.delayHideTimer);\n _this.delayHideTimer = null;\n\n _this.hideWithCheck();\n }, delay);\n };\n\n if (props.trigger !== 'none') {\n _this.onMouseOverListener = function (e) {\n return onMouseEventHandler(_this.handleDelayedShow, e);\n };\n\n _this.onMouseOutListener = function (e) {\n return onMouseEventHandler(_this.handleDelayedHide, e);\n };\n }\n\n _this.state = {\n isOverlayShown: props.defaultOpen\n };\n return _this;\n }\n\n var _proto = OverlayTrigger.prototype;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n clearTimeout(this.delayShowTimer);\n clearTimeout(this.delayHideTimer);\n };\n\n _proto.renderOverlay = function renderOverlay() {\n var _this2 = this;\n\n var _this$props4 = this.props,\n open = _this$props4.open,\n speaker = _this$props4.speaker,\n trigger = _this$props4.trigger,\n onHide = _this$props4.onHide;\n var isOverlayShown = this.state.isOverlayShown;\n var overlayProps = (0, _extends2.default)({}, (0, _pick.default)(this.props, Object.keys(_Overlay.default.propTypes)), {\n show: typeof open === 'undefined' ? isOverlayShown : open,\n target: this.getOverlayTarget\n });\n\n if ((0, _isOneOf.default)('click', trigger)) {\n overlayProps.onHide = (0, _createChainedFunction.default)(this.hide, onHide);\n } else if ((0, _isOneOf.default)('contextMenu', trigger)) {\n overlayProps.onHide = (0, _createChainedFunction.default)(this.hide, onHide);\n } else if ((0, _isOneOf.default)('active', trigger)) {\n overlayProps.onHide = (0, _createChainedFunction.default)(this.hide, onHide);\n }\n\n var speakerProps = {\n placement: overlayProps.placement\n };\n\n if (trigger !== 'none') {\n speakerProps.onMouseEnter = this.handleSpeakerMouseEnter;\n speakerProps.onMouseLeave = this.handleSpeakerMouseLeave;\n }\n\n if (typeof speaker === 'function') {\n return React.createElement(_Overlay.default, (0, _extends2.default)({}, overlayProps, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226\n },\n __self: this\n }), function (props, ref) {\n return speaker((0, _extends2.default)({}, props, {\n onClose: _this2.hide\n }), ref);\n });\n }\n\n return React.createElement(_Overlay.default, (0, _extends2.default)({}, overlayProps, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234\n },\n __self: this\n }), React.cloneElement(speaker, speakerProps));\n };\n\n _proto.render = function render() {\n var _this$props5 = this.props,\n children = _this$props5.children,\n speaker = _this$props5.speaker,\n onClick = _this$props5.onClick,\n onContextMenu = _this$props5.onContextMenu,\n trigger = _this$props5.trigger,\n onMouseOver = _this$props5.onMouseOver,\n onMouseOut = _this$props5.onMouseOut,\n onFocus = _this$props5.onFocus,\n onBlur = _this$props5.onBlur,\n disabled = _this$props5.disabled;\n var triggerComponent = React.Children.only(children);\n var triggerProps = triggerComponent.props;\n var props = {\n key: 'triggerComponent',\n onClick: (0, _createChainedFunction.default)(triggerProps.onClick, onClick),\n 'aria-describedby': (0, _get.default)(speaker, ['props', 'id'])\n };\n\n if (!disabled) {\n if ((0, _isOneOf.default)('click', trigger)) {\n props.onClick = (0, _createChainedFunction.default)(this.toggleHideAndShow, props.onClick);\n }\n\n if ((0, _isOneOf.default)('contextMenu', trigger)) {\n props.onContextMenu = (0, _createChainedFunction.default)(this.preventDefault, this.toggleHideAndShow, triggerProps.onContextMenu, onContextMenu);\n }\n\n if ((0, _isOneOf.default)('active', trigger)) {\n props.onClick = (0, _createChainedFunction.default)(this.handleDelayedShow, props.onClick);\n }\n\n if ((0, _isOneOf.default)('hover', trigger)) {\n props.onMouseOver = (0, _createChainedFunction.default)(this.onMouseOverListener, triggerProps.onMouseOver, onMouseOver);\n props.onMouseOut = (0, _createChainedFunction.default)(this.onMouseOutListener, triggerProps.onMouseOut, onMouseOut);\n }\n\n if ((0, _isOneOf.default)('focus', trigger)) {\n props.onFocus = (0, _createChainedFunction.default)(this.handleDelayedShow, triggerProps.onFocus, onFocus);\n props.onBlur = (0, _createChainedFunction.default)(this.handleDelayedHide, triggerProps.onBlur, onBlur);\n }\n }\n\n return [React.cloneElement(triggerComponent, props), React.createElement(_Portal.default, {\n key: \"portal\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 308\n },\n __self: this\n }, this.renderOverlay())];\n };\n\n return OverlayTrigger;\n}(React.Component);\n\nOverlayTrigger.defaultProps = {\n trigger: ['hover', 'focus'],\n delayHide: 200,\n placement: 'bottomStart',\n rootClose: true\n};\nvar _default = OverlayTrigger;\nexports.default = _default;\nmodule.exports = exports.default;\n\n//# sourceURL=webpack://rsuite/./src/Overlay/OverlayTrigger.tsx?");
9211
9211
 
9212
9212
  /***/ }),
9213
9213