rsuite 5.27.0 → 5.28.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
@@ -4008,7 +4008,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/he
4008
4008
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
4009
4009
 
4010
4010
  "use strict";
4011
- eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nexports.__esModule = true;\nexports.default = exports.pickTriggerPropKeys = exports.omitTriggerPropKeys = void 0;\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\n\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\n\nvar _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ \"./node_modules/lodash/pick.js\"));\n\nvar _OverlayTrigger = _interopRequireDefault(__webpack_require__(/*! ../Overlay/OverlayTrigger */ \"./src/Overlay/OverlayTrigger.tsx\"));\n\nvar _utils = __webpack_require__(/*! ../utils */ \"./src/utils/index.ts\");\n\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Picker/PickerToggleTrigger.tsx\",\n _this = void 0;\n\nvar omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'defaultOpen', 'onHide', 'container', 'containerPadding', 'preventOverflow'];\nexports.omitTriggerPropKeys = omitTriggerPropKeys;\nvar pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading']);\nexports.pickTriggerPropKeys = pickTriggerPropKeys;\n\nvar PickerToggleTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var pickerProps = props.pickerProps,\n speaker = props.speaker,\n placement = props.placement,\n _props$trigger = props.trigger,\n trigger = _props$trigger === void 0 ? 'click' : _props$trigger,\n rest = (0, _objectWithoutPropertiesLoose2.default)(props, [\"pickerProps\", \"speaker\", \"placement\", \"trigger\"]);\n var pickerTriggerProps = (0, _pick.default)(pickerProps, pickTriggerPropKeys);\n\n var _useCustom = (0, _utils.useCustom)(),\n rtl = _useCustom.rtl;\n\n return /*#__PURE__*/_react.default.createElement(_OverlayTrigger.default, (0, _extends2.default)({}, rest, pickerTriggerProps, {\n disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,\n ref: ref,\n trigger: trigger,\n placement: (0, _utils.placementPolyfill)(placement, rtl),\n speaker: speaker,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 7\n }\n }));\n});\n\nPickerToggleTrigger.displayName = 'PickerToggleTrigger';\nvar _default = PickerToggleTrigger;\nexports.default = _default;\n\n//# sourceURL=webpack://rsuite/./src/Picker/PickerToggleTrigger.tsx?");
4011
+ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n\nexports.__esModule = true;\nexports.default = exports.pickTriggerPropKeys = exports.omitTriggerPropKeys = void 0;\n\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\n\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\n\nvar _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ \"./node_modules/lodash/pick.js\"));\n\nvar _OverlayTrigger = _interopRequireDefault(__webpack_require__(/*! ../Overlay/OverlayTrigger */ \"./src/Overlay/OverlayTrigger.tsx\"));\n\nvar _utils = __webpack_require__(/*! ../utils */ \"./src/utils/index.ts\");\n\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Picker/PickerToggleTrigger.tsx\",\n _this = void 0;\n\nvar omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'defaultOpen', 'onHide', 'container', 'containerPadding', 'preventOverflow'];\nexports.omitTriggerPropKeys = omitTriggerPropKeys;\nvar pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading']);\nexports.pickTriggerPropKeys = pickTriggerPropKeys;\n\nvar PickerToggleTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var pickerProps = props.pickerProps,\n speaker = props.speaker,\n placement = props.placement,\n _props$trigger = props.trigger,\n trigger = _props$trigger === void 0 ? 'click' : _props$trigger,\n rest = (0, _objectWithoutPropertiesLoose2.default)(props, [\"pickerProps\", \"speaker\", \"placement\", \"trigger\"]);\n var pickerTriggerProps = (0, _pick.default)(pickerProps, pickTriggerPropKeys);\n\n var _useCustom = (0, _utils.useCustom)(),\n rtl = _useCustom.rtl;\n\n return /*#__PURE__*/_react.default.createElement(_OverlayTrigger.default, (0, _extends2.default)({}, pickerTriggerProps, rest, {\n disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,\n ref: ref,\n trigger: trigger,\n placement: (0, _utils.placementPolyfill)(placement, rtl),\n speaker: speaker,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 7\n }\n }));\n});\n\nPickerToggleTrigger.displayName = 'PickerToggleTrigger';\nvar _default = PickerToggleTrigger;\nexports.default = _default;\n\n//# sourceURL=webpack://rsuite/./src/Picker/PickerToggleTrigger.tsx?");
4012
4012
 
4013
4013
  /***/ }),
4014
4014
 
@@ -9654,7 +9654,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
9654
9654
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9655
9655
 
9656
9656
  "use strict";
9657
- 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/@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/@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 dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/flatten */ \"./node_modules/lodash/flatten.js\");\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _MouseArea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MouseArea */ \"./node_modules/rsuite-table/es/MouseArea.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Loader */ \"./node_modules/rsuite-table/es/Loader.js\");\n/* harmony import */ var _EmptyMessage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./EmptyMessage */ \"./node_modules/rsuite-table/es/EmptyMessage.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n\n\nvar _excluded = [\"affixHeader\", \"children\", \"classPrefix\", \"className\", \"data\", \"defaultSortType\", \"width\", \"expandedRowKeys\", \"defaultExpandAllRows\", \"defaultExpandedRowKeys\", \"style\", \"id\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"loading\", \"locale\", \"showHeader\", \"sortColumn\", \"rowHeight\", \"sortType\", \"headerHeight\", \"minHeight\", \"height\", \"autoHeight\", \"fillHeight\", \"rtl\", \"translate3d\", \"rowKey\", \"virtualized\", \"rowClassName\", \"rowExpandedHeight\", \"disabledScroll\", \"affixHorizontalScrollbar\", \"loadAnimation\", \"shouldUpdateScroll\", \"renderRow\", \"renderRowExpanded\", \"renderLoading\", \"renderEmpty\", \"onSortColumn\", \"onScroll\", \"renderTreeToggle\", \"onRowClick\", \"onRowContextMenu\", \"onExpandChange\", \"onTouchStart\", \"onTouchMove\", \"onTouchEnd\"],\n _excluded2 = [\"depth\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Filter those expanded nodes.\n * @param data\n * @param expandedRowKeys\n * @param rowKey\n * @returns\n */\nvar filterTreeData = function filterTreeData(data, expandedRowKeys, rowKey) {\n return (0,_utils__WEBPACK_IMPORTED_MODULE_15__.flattenData)(data).filter(function (rowData) {\n if (rowKey) {\n var parents = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.findAllParents)(rowData, rowKey);\n\n var _expanded = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.shouldShowRowByExpanded)(expandedRowKeys, parents);\n\n rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.EXPANDED_KEY] = _expanded;\n rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_DEPTH] = parents.length;\n return _expanded;\n }\n });\n};\n\nvar DATA_PLACEHOLDER = [];\nvar Table = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var affixHeader = props.affixHeader,\n children = props.children,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'rs-table' : _props$classPrefix,\n className = props.className,\n _props$data = props.data,\n dataProp = _props$data === void 0 ? DATA_PLACEHOLDER : _props$data,\n _props$defaultSortTyp = props.defaultSortType,\n defaultSortType = _props$defaultSortTyp === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_14__.SORT_TYPE.DESC : _props$defaultSortTyp,\n widthProp = props.width,\n expandedRowKeysProp = props.expandedRowKeys,\n defaultExpandAllRows = props.defaultExpandAllRows,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n style = props.style,\n id = props.id,\n isTree = props.isTree,\n _props$hover = props.hover,\n hover = _props$hover === void 0 ? true : _props$hover,\n bordered = props.bordered,\n cellBordered = props.cellBordered,\n wordWrap = props.wordWrap,\n loading = props.loading,\n _props$locale = props.locale,\n locale = _props$locale === void 0 ? {\n emptyMessage: 'No data found',\n loading: 'Loading...'\n } : _props$locale,\n _props$showHeader = props.showHeader,\n showHeader = _props$showHeader === void 0 ? true : _props$showHeader,\n sortColumn = props.sortColumn,\n _props$rowHeight = props.rowHeight,\n rowHeight = _props$rowHeight === void 0 ? 46 : _props$rowHeight,\n sortTypeProp = props.sortType,\n _props$headerHeight = props.headerHeight,\n headerHeightProp = _props$headerHeight === void 0 ? 40 : _props$headerHeight,\n _props$minHeight = props.minHeight,\n minHeight = _props$minHeight === void 0 ? 0 : _props$minHeight,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n autoHeight = props.autoHeight,\n fillHeight = props.fillHeight,\n rtlProp = props.rtl,\n _props$translate3d = props.translate3d,\n translate3d = _props$translate3d === void 0 ? true : _props$translate3d,\n rowKey = props.rowKey,\n virtualized = props.virtualized,\n rowClassName = props.rowClassName,\n _props$rowExpandedHei = props.rowExpandedHeight,\n rowExpandedHeight = _props$rowExpandedHei === void 0 ? 100 : _props$rowExpandedHei,\n disabledScroll = props.disabledScroll,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n loadAnimation = props.loadAnimation,\n _props$shouldUpdateSc = props.shouldUpdateScroll,\n shouldUpdateScroll = _props$shouldUpdateSc === void 0 ? true : _props$shouldUpdateSc,\n renderRowProp = props.renderRow,\n renderRowExpandedProp = props.renderRowExpanded,\n renderLoading = props.renderLoading,\n renderEmpty = props.renderEmpty,\n onSortColumn = props.onSortColumn,\n onScroll = props.onScroll,\n renderTreeToggle = props.renderTreeToggle,\n onRowClick = props.onRowClick,\n onRowContextMenu = props.onRowContextMenu,\n onExpandChange = props.onExpandChange,\n onTouchStart = props.onTouchStart,\n onTouchMove = props.onTouchMove,\n onTouchEnd = props.onTouchEnd,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(props, _excluded);\n\n var _useClassNames = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useClassNames)(classPrefix, typeof classPrefix !== 'undefined'),\n withClassPrefix = _useClassNames.withClassPrefix,\n mergeCls = _useClassNames.merge,\n prefix = _useClassNames.prefix; // Use `forceUpdate` to force the component to re-render after manipulating the DOM.\n\n\n var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_2__.useReducer)(function (x) {\n return x + 1;\n }, 0),\n forceUpdate = _useReducer[1];\n\n var _useControlled = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useControlled)(expandedRowKeysProp, defaultExpandAllRows ? (0,_utils__WEBPACK_IMPORTED_MODULE_15__.findRowKeys)(dataProp, rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(renderRowExpandedProp)) : defaultExpandedRowKeys || []),\n expandedRowKeys = _useControlled[0],\n setExpandedRowKeys = _useControlled[1];\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(function () {\n return isTree ? filterTreeData(dataProp, expandedRowKeys, rowKey) : dataProp;\n }),\n data = _useState[0],\n setData = _useState[1];\n\n if (isTree) {\n if (!rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n } else if (data.length > 0) {\n if (!data[0].hasOwnProperty(rowKey)) {\n throw new Error('The `rowKey` is not found in data');\n }\n }\n }\n\n var _useTableRows = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useTableRows)({\n data: dataProp,\n expandedRowKeys: expandedRowKeys,\n wordWrap: wordWrap,\n prefix: prefix\n }),\n tableRowsMaxHeight = _useTableRows.tableRowsMaxHeight,\n bindTableRowsRef = _useTableRows.bindTableRowsRef;\n\n var headerHeight = showHeader ? headerHeightProp : 0;\n var rtl = rtlProp || (0,_utils__WEBPACK_IMPORTED_MODULE_15__.isRTL)();\n\n var getRowHeight = function getRowHeight(rowData) {\n if (rowData === void 0) {\n rowData = {};\n }\n\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n };\n\n var translateDOMPositionXY = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_3__.getTranslateDOMPositionXY)({\n forceUseTransform: true,\n enable3DTransform: translate3d\n })); // Check for the existence of fixed columns in all column properties.\n\n var shouldFixedColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(children)).some(function (child) {\n var _child$props;\n\n return child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.fixed;\n }); // Check all column properties for the existence of rowSpan.\n\n var shouldRowSpanColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(children)).some(function (child) {\n var _child$props2;\n\n return child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.rowSpan;\n });\n var visibleRows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)([]);\n var mouseAreaRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var affixHeaderWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var headerWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableBodyRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var wheelWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarXRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarYRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n\n var handleTableResizeChange = function handleTableResizeChange(_prevSize, event) {\n forceUpdate();\n /**\n * Reset the position of the scroll bar after the table size changes.\n */\n\n if (typeof shouldUpdateScroll === 'function') {\n onScrollTo(shouldUpdateScroll(event));\n } else if (shouldUpdateScroll) {\n var vertical = event === 'bodyHeightChanged';\n vertical ? onScrollTop(0) : onScrollLeft(0);\n }\n };\n\n var _useTableDimension = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useTableDimension)({\n data: dataProp,\n width: widthProp,\n rowHeight: rowHeight,\n tableRef: tableRef,\n headerWrapperRef: headerWrapperRef,\n prefix: prefix,\n affixHeader: affixHeader,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n headerHeight: headerHeight,\n height: height,\n minHeight: minHeight,\n autoHeight: autoHeight,\n fillHeight: fillHeight,\n children: children,\n expandedRowKeys: expandedRowKeys,\n showHeader: showHeader,\n onTableScroll: lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default()(function (coords) {\n return onScrollTo(coords);\n }, 100),\n onTableResizeChange: handleTableResizeChange\n }),\n contentHeight = _useTableDimension.contentHeight,\n contentWidth = _useTableDimension.contentWidth,\n minScrollY = _useTableDimension.minScrollY,\n minScrollX = _useTableDimension.minScrollX,\n scrollY = _useTableDimension.scrollY,\n scrollX = _useTableDimension.scrollX,\n tableWidth = _useTableDimension.tableWidth,\n tableOffset = _useTableDimension.tableOffset,\n headerOffset = _useTableDimension.headerOffset,\n setScrollY = _useTableDimension.setScrollY,\n setScrollX = _useTableDimension.setScrollX,\n getTableHeight = _useTableDimension.getTableHeight;\n\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useAffix)({\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n affixHeader: affixHeader,\n tableOffset: tableOffset,\n headerOffset: headerOffset,\n headerHeight: headerHeight,\n scrollbarXRef: scrollbarXRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef\n });\n\n var _usePosition = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.usePosition)({\n data: dataProp,\n height: height,\n tableWidth: tableWidth,\n tableRef: tableRef,\n prefix: prefix,\n translateDOMPositionXY: translateDOMPositionXY,\n wheelWrapperRef: wheelWrapperRef,\n headerWrapperRef: headerWrapperRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef,\n tableHeaderRef: tableHeaderRef,\n scrollX: scrollX,\n scrollY: scrollY,\n contentWidth: contentWidth,\n shouldFixedColumn: shouldFixedColumn\n }),\n forceUpdatePosition = _usePosition.forceUpdatePosition;\n\n var _useScrollListener = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useScrollListener)({\n rtl: rtl,\n data: dataProp,\n height: height,\n virtualized: virtualized,\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n headerHeight: headerHeight,\n autoHeight: autoHeight,\n tableBodyRef: tableBodyRef,\n scrollbarXRef: scrollbarXRef,\n scrollbarYRef: scrollbarYRef,\n disabledScroll: disabledScroll,\n loading: loading,\n tableRef: tableRef,\n contentWidth: contentWidth,\n tableWidth: tableWidth,\n scrollY: scrollY,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollX: scrollX,\n setScrollX: setScrollX,\n setScrollY: setScrollY,\n forceUpdatePosition: forceUpdatePosition,\n onScroll: onScroll,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd\n }),\n isScrolling = _useScrollListener.isScrolling,\n onScrollHorizontal = _useScrollListener.onScrollHorizontal,\n onScrollVertical = _useScrollListener.onScrollVertical,\n onScrollBody = _useScrollListener.onScrollBody,\n onScrollTop = _useScrollListener.onScrollTop,\n onScrollLeft = _useScrollListener.onScrollLeft,\n onScrollTo = _useScrollListener.onScrollTo;\n\n var _useCellDescriptor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useCellDescriptor)({\n children: children,\n rtl: rtl,\n mouseAreaRef: mouseAreaRef,\n tableRef: tableRef,\n minScrollX: minScrollX,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerHeight: headerHeight,\n showHeader: showHeader,\n sortType: sortTypeProp,\n defaultSortType: defaultSortType,\n sortColumn: sortColumn,\n prefix: prefix,\n onSortColumn: onSortColumn,\n // Force table update after column width change, so scrollbar re-renders.\n onHeaderCellResize: forceUpdate,\n rowHeight: rowHeight\n }),\n headerCells = _useCellDescriptor.headerCells,\n bodyCells = _useCellDescriptor.bodyCells,\n allColumnsWidth = _useCellDescriptor.allColumnsWidth,\n hasCustomTreeCol = _useCellDescriptor.hasCustomTreeCol;\n\n var colCounts = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0);\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useUpdateEffect)(function () {\n setData(isTree ? filterTreeData(dataProp, expandedRowKeys, rowKey) : dataProp);\n }, [dataProp, expandedRowKeys, rowKey, isTree]);\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useUpdateEffect)(function () {\n if ((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) !== colCounts.current) {\n onScrollLeft(0);\n colCounts.current = (headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0;\n }\n }, [children]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return tableRef.current;\n },\n\n get body() {\n return wheelWrapperRef.current;\n },\n\n scrollTop: onScrollTop,\n scrollLeft: onScrollLeft\n };\n });\n var rowWidth = allColumnsWidth > tableWidth.current ? allColumnsWidth : tableWidth.current; // Whether to show vertical scroll bar\n\n var hasVerticalScrollbar = !autoHeight && contentHeight.current > getTableHeight() - headerHeight; // Whether to show the horizontal scroll bar\n\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var classes = mergeCls(className, withClassPrefix({\n bordered: bordered,\n hover: hover && !shouldRowSpanColumn,\n loading: loading,\n treetable: isTree,\n 'word-wrap': wordWrap,\n 'cell-bordered': cellBordered\n }));\n\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({\n width: widthProp || 'auto',\n height: getTableHeight()\n }, style);\n\n var renderRowExpanded = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n var styles = {\n height: rowExpandedHeight\n };\n\n if (typeof renderRowExpandedProp === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('row-expanded'),\n style: styles\n }, renderRowExpandedProp(rowData));\n }\n\n return null;\n }, [prefix, renderRowExpandedProp, rowExpandedHeight]);\n\n var renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var depth = props.depth,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(props, _excluded2);\n\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData);\n } else {\n restRowProps.className = rowClassName;\n }\n\n var rowStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, props === null || props === void 0 ? void 0 : props.style);\n\n var rowRight = 0;\n\n if (rtl && contentWidth.current > tableWidth.current) {\n rowRight = tableWidth.current - contentWidth.current;\n rowStyles.right = rowRight;\n }\n\n var rowNode = null; // IF there are fixed columns, add a fixed group\n\n if (shouldFixedColumn && contentWidth.current > tableWidth.current) {\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 width = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n\n if (rtl) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += width;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += width;\n } else {\n scrollCells.push(cell);\n }\n }\n\n if (hasVerticalScrollbar && fixedRightCellGroupWidth) {\n fixedRightCellGroupWidth += _constants__WEBPACK_IMPORTED_MODULE_14__.SCROLLBAR_WIDTH;\n }\n\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: rtl ? {\n right: tableWidth.current - fixedLeftCellGroupWidth - rowRight\n } : undefined\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_15__.resetLeftForCells)(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, null, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, {\n fixed: \"right\",\n style: rtl ? {\n right: 0 - rowRight\n } : {\n left: tableWidth.current - fixedRightCellGroupWidth\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_15__.resetLeftForCells)(fixedRightCells, hasVerticalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_14__.SCROLLBAR_WIDTH : 0))) : null, shouldRenderExpandedRow && renderRowExpanded(rowData));\n } else {\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, null, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)(cells)), shouldRenderExpandedRow && renderRowExpanded(rowData));\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), renderRowProp ? renderRowProp(rowNode, rowData) : rowNode);\n };\n\n var renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: tableHeaderRef,\n width: rowWidth,\n height: getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: headerHeight,\n width: tableWidth.current,\n top: top\n }; // Affix header\n\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('affix-header'),\n style: fixedStyle,\n ref: affixHeaderWrapperRef\n }, renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n role: \"rowgroup\",\n className: prefix('header-row-wrapper'),\n ref: headerWrapperRef\n }, renderRow(rowProps, headerCells)));\n };\n\n var shouldRenderExpandedRow = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(renderRowExpandedProp) && !isTree && rowKey && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n })) {\n return true;\n }\n\n return false;\n }, [expandedRowKeys, isTree, renderRowExpandedProp, rowKey]);\n var bindRowClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(rowData, event);\n };\n }, [onRowClick]);\n var bindRowContextMenu = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowContextMenu === null || onRowContextMenu === void 0 ? void 0 : onRowContextMenu(rowData, event);\n };\n }, [onRowContextMenu]);\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (treeRowKey, _rowIndex, rowData) {\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 === treeRowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(key);\n }\n }\n\n if (!open) {\n nextExpandedRowKeys.push(treeRowKey);\n }\n\n setExpandedRowKeys(nextExpandedRowKeys);\n onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange(!open, rowData);\n }, [expandedRowKeys, onExpandChange, setExpandedRowKeys]);\n /**\n * Records the status of merged rows.\n * { cellKey: [count,index]}\n */\n\n var rowSpanState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});\n\n var renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = rowKey && typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n\n var rowProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, props, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: bindTableRowsRef(props.key, rowData),\n onClick: bindRowClick(rowData),\n onContextMenu: bindRowContextMenu(rowData)\n });\n\n var expanded = expandedRowKeys.some(function (key) {\n return rowKey && key === rowData[rowKey];\n });\n var cells = [];\n\n for (var i = 0; i < bodyCells.length; i++) {\n var _cell$props2, _cell$props2$rowSpan, _rowSpanState$current, _cell$props3, _rowSpanState$current2;\n\n var cell = bodyCells[i];\n var rowSpan = (_cell$props2 = cell.props) === null || _cell$props2 === void 0 ? void 0 : (_cell$props2$rowSpan = _cell$props2.rowSpan) === null || _cell$props2$rowSpan === void 0 ? void 0 : _cell$props2$rowSpan.call(_cell$props2, rowData);\n\n var _rowHeight = rowSpan ? rowSpan * (props.height || 46) : props.height;\n\n var _cellKey = cell.props.dataKey || i; // Record the cell state of the merged row\n\n\n if (((_rowSpanState$current = rowSpanState.current[_cellKey]) === null || _rowSpanState$current === void 0 ? void 0 : _rowSpanState$current[1]) > 0) {\n rowSpanState.current[_cellKey][1] -= 1; // Restart counting when merged to the last cell.\n\n if (rowSpanState.current[_cellKey][1] === 0) {\n rowSpanState.current[_cellKey][0] = 0;\n }\n }\n\n if (rowSpan) {\n // The state of the initial merged cell\n rowSpanState.current[_cellKey] = [rowSpan, rowSpan];\n rowProps.rowSpan = rowSpan;\n rowProps.style = {\n overflow: 'inherit'\n };\n } // Cells marked as deleted when checking for merged cell.\n\n\n var removedCell = (_cell$props3 = cell.props) !== null && _cell$props3 !== void 0 && _cell$props3.rowSpan && !rowSpan && ((_rowSpanState$current2 = rowSpanState.current[_cellKey]) === null || _rowSpanState$current2 === void 0 ? void 0 : _rowSpanState$current2[0]) !== 0 ? true : false;\n cells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cell, {\n hasChildren: hasChildren,\n rowData: rowData,\n wordWrap: wordWrap,\n height: _rowHeight,\n rowIndex: props.key,\n depth: props.depth,\n renderTreeToggle: renderTreeToggle,\n onTreeToggle: handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded,\n rowSpan: rowSpan,\n removed: removedCell\n }));\n }\n\n return renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n\n var renderScrollbar = function renderScrollbar() {\n var height = getTableHeight();\n\n if (disabledScroll) {\n return null;\n }\n\n var scrollbars = [];\n\n if (hasHorizontalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__.default, {\n key: \"scrollbar\",\n tableId: id,\n style: {\n width: tableWidth.current\n },\n length: tableWidth.current,\n onScroll: onScrollHorizontal,\n scrollLength: contentWidth.current,\n ref: scrollbarXRef\n }));\n }\n\n if (hasVerticalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__.default, {\n vertical: true,\n key: \"vertical-scrollbar\",\n tableId: id,\n length: height - headerHeight,\n onScroll: onScrollVertical,\n scrollLength: contentHeight.current,\n ref: scrollbarYRef\n }));\n }\n\n return scrollbars;\n };\n\n var renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _visibleRows$current;\n\n var height = 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 visibleRows.current = [];\n\n if (data) {\n var top = 0; // Row position\n\n var minTop = Math.abs(scrollY.current);\n var maxTop = minTop + height + rowExpandedHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!renderRowExpandedProp || isCustomRowHeight || wordWrap; // If virtualized is enabled and the row height in the Table is variable,\n // you need to loop through the data to get the height of each row.\n\n if (isUncertainHeight && virtualized || !virtualized) {\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isSupportTouchEvent)()) {\n var coveredHeight = height * 3;\n minTop = Math.max(minTop - coveredHeight, 0);\n maxTop = maxTop + coveredHeight;\n }\n\n for (var index = 0; index < data.length; index++) {\n var _rowData = data[index];\n var maxHeight = tableRowsMaxHeight[index];\n var shouldRender = shouldRenderExpandedRow(_rowData);\n var nextRowHeight = 0;\n\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(_rowData);\n } else {\n nextRowHeight = maxHeight ? Math.max(maxHeight + _constants__WEBPACK_IMPORTED_MODULE_14__.CELL_PADDING_HEIGHT, rowHeight) : rowHeight;\n\n if (shouldRender) {\n nextRowHeight += rowExpandedHeight;\n }\n }\n\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n width: rowWidth,\n depth: _rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_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 visibleRows.current.push(renderRowData(bodyCells, _rowData, rowProps, shouldRender));\n }\n } else {\n /** virtualized */\n // If the row height of the Table is fixed, it is directly calculated by the row height and the number of rows,\n // thereby reducing the performance cost of traversing all data.\n var _nextRowHeight = getRowHeight();\n\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight) + 5, data.length); // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isSupportTouchEvent)()) {\n var coveredCount = Math.floor(height / _nextRowHeight * 3);\n startIndex = Math.max(startIndex - coveredCount, 0);\n endIndex = Math.min(endIndex + coveredCount, data.length);\n }\n\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 _rowData2 = data[_index];\n var _rowProps = {\n key: _index,\n depth: _rowData2[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_DEPTH],\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight\n };\n visibleRows.current.push(renderRowData(bodyCells, _rowData2, _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_2___default().createElement(\"div\", {\n ref: tableBodyRef,\n role: \"rowgroup\",\n className: prefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: onScrollBody\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n style: wheelStyles,\n className: prefix('body-wheel-area'),\n ref: wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, visibleRows.current, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_EmptyMessage__WEBPACK_IMPORTED_MODULE_12__.default, {\n locale: locale,\n renderEmpty: renderEmpty,\n addPrefix: prefix,\n loading: !!((_visibleRows$current = visibleRows.current) !== null && _visibleRows$current !== void 0 && _visibleRows$current.length) || loading\n }), renderScrollbar(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Loader__WEBPACK_IMPORTED_MODULE_11__.default, {\n locale: locale,\n loadAnimation: loadAnimation,\n loading: loading,\n addPrefix: prefix,\n renderLoading: renderLoading\n }));\n };\n\n var contextValue = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(function () {\n return {\n classPrefix: classPrefix,\n translateDOMPositionXY: translateDOMPositionXY.current,\n rtl: rtl,\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n };\n }, [classPrefix, hasCustomTreeCol, isTree, rtl]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_TableContext__WEBPACK_IMPORTED_MODULE_13__.default.Provider, {\n value: contextValue\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.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\": colCounts.current,\n \"aria-busy\": loading\n }, rest, {\n className: classes,\n style: styles,\n ref: tableRef\n }), showHeader && renderTableHeader(headerCells, rowWidth), children && renderTableBody(bodyCells, rowWidth), showHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_MouseArea__WEBPACK_IMPORTED_MODULE_10__.default, {\n ref: mouseAreaRef,\n addPrefix: prefix,\n headerHeight: headerHeight,\n height: getTableHeight()\n })));\n});\nTable.displayName = 'Table';\nTable.propTypes = {\n autoHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n fillHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n affixHeader: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n affixHorizontalScrollbar: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n bordered: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n classPrefix: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n children: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n cellBordered: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n data: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n defaultExpandAllRows: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n defaultExpandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n defaultSortType: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n disabledScroll: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n expandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n hover: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n height: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n headerHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n locale: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().object),\n loading: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n loadAnimation: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n minHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func)]),\n renderTreeToggle: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderRowExpanded: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderRow: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n rowExpandedHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n renderEmpty: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderLoading: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n rowClassName: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)]),\n rtl: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n style: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().object),\n sortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n sortType: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n showHeader: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n shouldUpdateScroll: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool)]),\n translate3d: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n wordWrap: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n width: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n isTree: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onRowContextMenu: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onScroll: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onSortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onExpandChange: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchStart: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchMove: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchEnd: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func)\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
9657
+ 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/@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/@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 dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/flatten */ \"./node_modules/lodash/flatten.js\");\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _MouseArea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MouseArea */ \"./node_modules/rsuite-table/es/MouseArea.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Loader */ \"./node_modules/rsuite-table/es/Loader.js\");\n/* harmony import */ var _EmptyMessage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./EmptyMessage */ \"./node_modules/rsuite-table/es/EmptyMessage.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n\n\nvar _excluded = [\"affixHeader\", \"children\", \"classPrefix\", \"className\", \"data\", \"defaultSortType\", \"width\", \"expandedRowKeys\", \"defaultExpandAllRows\", \"defaultExpandedRowKeys\", \"style\", \"id\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"loading\", \"locale\", \"showHeader\", \"sortColumn\", \"rowHeight\", \"sortType\", \"headerHeight\", \"minHeight\", \"height\", \"autoHeight\", \"fillHeight\", \"rtl\", \"translate3d\", \"rowKey\", \"virtualized\", \"rowClassName\", \"rowExpandedHeight\", \"disabledScroll\", \"affixHorizontalScrollbar\", \"loadAnimation\", \"shouldUpdateScroll\", \"renderRow\", \"renderRowExpanded\", \"renderLoading\", \"renderEmpty\", \"onSortColumn\", \"onScroll\", \"renderTreeToggle\", \"onRowClick\", \"onRowContextMenu\", \"onExpandChange\", \"onTouchStart\", \"onTouchMove\", \"onTouchEnd\"],\n _excluded2 = [\"depth\", \"rowIndex\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Filter those expanded nodes.\n * @param data\n * @param expandedRowKeys\n * @param rowKey\n * @returns\n */\nvar filterTreeData = function filterTreeData(data, expandedRowKeys, rowKey) {\n return (0,_utils__WEBPACK_IMPORTED_MODULE_15__.flattenData)(data).filter(function (rowData) {\n if (rowKey) {\n var parents = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.findAllParents)(rowData, rowKey);\n\n var _expanded = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.shouldShowRowByExpanded)(expandedRowKeys, parents);\n\n rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.EXPANDED_KEY] = _expanded;\n rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_DEPTH] = parents.length;\n return _expanded;\n }\n });\n};\n\nvar DATA_PLACEHOLDER = [];\nvar Table = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var affixHeader = props.affixHeader,\n children = props.children,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'rs-table' : _props$classPrefix,\n className = props.className,\n _props$data = props.data,\n dataProp = _props$data === void 0 ? DATA_PLACEHOLDER : _props$data,\n _props$defaultSortTyp = props.defaultSortType,\n defaultSortType = _props$defaultSortTyp === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_14__.SORT_TYPE.DESC : _props$defaultSortTyp,\n widthProp = props.width,\n expandedRowKeysProp = props.expandedRowKeys,\n defaultExpandAllRows = props.defaultExpandAllRows,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n style = props.style,\n id = props.id,\n isTree = props.isTree,\n _props$hover = props.hover,\n hover = _props$hover === void 0 ? true : _props$hover,\n bordered = props.bordered,\n cellBordered = props.cellBordered,\n wordWrap = props.wordWrap,\n loading = props.loading,\n _props$locale = props.locale,\n locale = _props$locale === void 0 ? {\n emptyMessage: 'No data found',\n loading: 'Loading...'\n } : _props$locale,\n _props$showHeader = props.showHeader,\n showHeader = _props$showHeader === void 0 ? true : _props$showHeader,\n sortColumn = props.sortColumn,\n _props$rowHeight = props.rowHeight,\n rowHeight = _props$rowHeight === void 0 ? 46 : _props$rowHeight,\n sortTypeProp = props.sortType,\n _props$headerHeight = props.headerHeight,\n headerHeightProp = _props$headerHeight === void 0 ? 40 : _props$headerHeight,\n _props$minHeight = props.minHeight,\n minHeight = _props$minHeight === void 0 ? 0 : _props$minHeight,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n autoHeight = props.autoHeight,\n fillHeight = props.fillHeight,\n rtlProp = props.rtl,\n _props$translate3d = props.translate3d,\n translate3d = _props$translate3d === void 0 ? true : _props$translate3d,\n rowKey = props.rowKey,\n virtualized = props.virtualized,\n rowClassName = props.rowClassName,\n _props$rowExpandedHei = props.rowExpandedHeight,\n rowExpandedHeight = _props$rowExpandedHei === void 0 ? 100 : _props$rowExpandedHei,\n disabledScroll = props.disabledScroll,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n loadAnimation = props.loadAnimation,\n _props$shouldUpdateSc = props.shouldUpdateScroll,\n shouldUpdateScroll = _props$shouldUpdateSc === void 0 ? true : _props$shouldUpdateSc,\n renderRowProp = props.renderRow,\n renderRowExpandedProp = props.renderRowExpanded,\n renderLoading = props.renderLoading,\n renderEmpty = props.renderEmpty,\n onSortColumn = props.onSortColumn,\n onScroll = props.onScroll,\n renderTreeToggle = props.renderTreeToggle,\n onRowClick = props.onRowClick,\n onRowContextMenu = props.onRowContextMenu,\n onExpandChange = props.onExpandChange,\n onTouchStart = props.onTouchStart,\n onTouchMove = props.onTouchMove,\n onTouchEnd = props.onTouchEnd,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(props, _excluded);\n\n var _useClassNames = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useClassNames)(classPrefix, typeof classPrefix !== 'undefined'),\n withClassPrefix = _useClassNames.withClassPrefix,\n mergeCls = _useClassNames.merge,\n prefix = _useClassNames.prefix; // Use `forceUpdate` to force the component to re-render after manipulating the DOM.\n\n\n var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_2__.useReducer)(function (x) {\n return x + 1;\n }, 0),\n forceUpdate = _useReducer[1];\n\n var _useControlled = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useControlled)(expandedRowKeysProp, defaultExpandAllRows ? (0,_utils__WEBPACK_IMPORTED_MODULE_15__.findRowKeys)(dataProp, rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(renderRowExpandedProp)) : defaultExpandedRowKeys || []),\n expandedRowKeys = _useControlled[0],\n setExpandedRowKeys = _useControlled[1];\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(function () {\n return isTree ? filterTreeData(dataProp, expandedRowKeys, rowKey) : dataProp;\n }),\n data = _useState[0],\n setData = _useState[1];\n\n if (isTree) {\n if (!rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n } else if (data.length > 0) {\n if (!data[0].hasOwnProperty(rowKey)) {\n throw new Error('The `rowKey` is not found in data');\n }\n }\n }\n\n var _useTableRows = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useTableRows)({\n data: dataProp,\n expandedRowKeys: expandedRowKeys,\n wordWrap: wordWrap,\n prefix: prefix\n }),\n tableRowsMaxHeight = _useTableRows.tableRowsMaxHeight,\n bindTableRowsRef = _useTableRows.bindTableRowsRef;\n\n var headerHeight = showHeader ? headerHeightProp : 0;\n var rtl = rtlProp || (0,_utils__WEBPACK_IMPORTED_MODULE_15__.isRTL)();\n\n var getRowHeight = function getRowHeight(rowData) {\n if (rowData === void 0) {\n rowData = {};\n }\n\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n };\n\n var translateDOMPositionXY = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_3__.getTranslateDOMPositionXY)({\n forceUseTransform: true,\n enable3DTransform: translate3d\n })); // Check for the existence of fixed columns in all column properties.\n\n var shouldFixedColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(children)).some(function (child) {\n var _child$props;\n\n return child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.fixed;\n }); // Check all column properties for the existence of rowSpan.\n\n var shouldRowSpanColumn = Array.from(lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(children)).some(function (child) {\n var _child$props2;\n\n return child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.rowSpan;\n });\n var visibleRows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)([]);\n var mouseAreaRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var affixHeaderWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var headerWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableBodyRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var wheelWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarXRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarYRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n\n var handleTableResizeChange = function handleTableResizeChange(_prevSize, event) {\n forceUpdate();\n /**\n * Reset the position of the scroll bar after the table size changes.\n */\n\n if (typeof shouldUpdateScroll === 'function') {\n onScrollTo(shouldUpdateScroll(event));\n } else if (shouldUpdateScroll) {\n var vertical = event === 'bodyHeightChanged';\n vertical ? onScrollTop(0) : onScrollLeft(0);\n }\n };\n\n var _useTableDimension = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useTableDimension)({\n data: dataProp,\n width: widthProp,\n rowHeight: rowHeight,\n tableRef: tableRef,\n headerWrapperRef: headerWrapperRef,\n prefix: prefix,\n affixHeader: affixHeader,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n headerHeight: headerHeight,\n height: height,\n minHeight: minHeight,\n autoHeight: autoHeight,\n fillHeight: fillHeight,\n children: children,\n expandedRowKeys: expandedRowKeys,\n showHeader: showHeader,\n onTableScroll: lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default()(function (coords) {\n return onScrollTo(coords);\n }, 100),\n onTableResizeChange: handleTableResizeChange\n }),\n contentHeight = _useTableDimension.contentHeight,\n contentWidth = _useTableDimension.contentWidth,\n minScrollY = _useTableDimension.minScrollY,\n minScrollX = _useTableDimension.minScrollX,\n scrollY = _useTableDimension.scrollY,\n scrollX = _useTableDimension.scrollX,\n tableWidth = _useTableDimension.tableWidth,\n tableOffset = _useTableDimension.tableOffset,\n headerOffset = _useTableDimension.headerOffset,\n setScrollY = _useTableDimension.setScrollY,\n setScrollX = _useTableDimension.setScrollX,\n getTableHeight = _useTableDimension.getTableHeight;\n\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useAffix)({\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n affixHeader: affixHeader,\n tableOffset: tableOffset,\n headerOffset: headerOffset,\n headerHeight: headerHeight,\n scrollbarXRef: scrollbarXRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef\n });\n\n var _usePosition = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.usePosition)({\n data: dataProp,\n height: height,\n tableWidth: tableWidth,\n tableRef: tableRef,\n prefix: prefix,\n translateDOMPositionXY: translateDOMPositionXY,\n wheelWrapperRef: wheelWrapperRef,\n headerWrapperRef: headerWrapperRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef,\n tableHeaderRef: tableHeaderRef,\n scrollX: scrollX,\n scrollY: scrollY,\n contentWidth: contentWidth,\n shouldFixedColumn: shouldFixedColumn\n }),\n forceUpdatePosition = _usePosition.forceUpdatePosition;\n\n var _useScrollListener = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useScrollListener)({\n rtl: rtl,\n data: dataProp,\n height: height,\n virtualized: virtualized,\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n headerHeight: headerHeight,\n autoHeight: autoHeight,\n tableBodyRef: tableBodyRef,\n scrollbarXRef: scrollbarXRef,\n scrollbarYRef: scrollbarYRef,\n disabledScroll: disabledScroll,\n loading: loading,\n tableRef: tableRef,\n contentWidth: contentWidth,\n tableWidth: tableWidth,\n scrollY: scrollY,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollX: scrollX,\n setScrollX: setScrollX,\n setScrollY: setScrollY,\n forceUpdatePosition: forceUpdatePosition,\n onScroll: onScroll,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd\n }),\n isScrolling = _useScrollListener.isScrolling,\n onScrollHorizontal = _useScrollListener.onScrollHorizontal,\n onScrollVertical = _useScrollListener.onScrollVertical,\n onScrollBody = _useScrollListener.onScrollBody,\n onScrollTop = _useScrollListener.onScrollTop,\n onScrollLeft = _useScrollListener.onScrollLeft,\n onScrollTo = _useScrollListener.onScrollTo;\n\n var _useCellDescriptor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useCellDescriptor)({\n children: children,\n rtl: rtl,\n mouseAreaRef: mouseAreaRef,\n tableRef: tableRef,\n minScrollX: minScrollX,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerHeight: headerHeight,\n showHeader: showHeader,\n sortType: sortTypeProp,\n defaultSortType: defaultSortType,\n sortColumn: sortColumn,\n prefix: prefix,\n onSortColumn: onSortColumn,\n // Force table update after column width change, so scrollbar re-renders.\n onHeaderCellResize: forceUpdate,\n rowHeight: rowHeight\n }),\n headerCells = _useCellDescriptor.headerCells,\n bodyCells = _useCellDescriptor.bodyCells,\n allColumnsWidth = _useCellDescriptor.allColumnsWidth,\n hasCustomTreeCol = _useCellDescriptor.hasCustomTreeCol;\n\n var colCounts = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0);\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useUpdateEffect)(function () {\n setData(isTree ? filterTreeData(dataProp, expandedRowKeys, rowKey) : dataProp);\n }, [dataProp, expandedRowKeys, rowKey, isTree]);\n (0,_utils__WEBPACK_IMPORTED_MODULE_15__.useUpdateEffect)(function () {\n if ((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) !== colCounts.current) {\n onScrollLeft(0);\n colCounts.current = (headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0;\n }\n }, [children]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return tableRef.current;\n },\n\n get body() {\n return wheelWrapperRef.current;\n },\n\n scrollTop: onScrollTop,\n scrollLeft: onScrollLeft\n };\n });\n var rowWidth = allColumnsWidth > tableWidth.current ? allColumnsWidth : tableWidth.current; // Whether to show vertical scroll bar\n\n var hasVerticalScrollbar = !autoHeight && contentHeight.current > getTableHeight() - headerHeight; // Whether to show the horizontal scroll bar\n\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var classes = mergeCls(className, withClassPrefix({\n bordered: bordered,\n hover: hover && !shouldRowSpanColumn,\n loading: loading,\n treetable: isTree,\n 'word-wrap': wordWrap,\n 'cell-bordered': cellBordered\n }));\n\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({\n width: widthProp || 'auto',\n height: getTableHeight()\n }, style);\n\n var renderRowExpanded = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n var styles = {\n height: rowExpandedHeight\n };\n\n if (typeof renderRowExpandedProp === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('row-expanded'),\n style: styles\n }, renderRowExpandedProp(rowData));\n }\n\n return null;\n }, [prefix, renderRowExpandedProp, rowExpandedHeight]);\n\n var renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var depth = props.depth,\n rowIndex = props.rowIndex,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.default)(props, _excluded2);\n\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData, rowIndex);\n } else {\n restRowProps.className = rowClassName;\n }\n\n var rowStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, props === null || props === void 0 ? void 0 : props.style);\n\n var rowRight = 0;\n\n if (rtl && contentWidth.current > tableWidth.current) {\n rowRight = tableWidth.current - contentWidth.current;\n rowStyles.right = rowRight;\n }\n\n var rowNode = null; // IF there are fixed columns, add a fixed group\n\n if (shouldFixedColumn && contentWidth.current > tableWidth.current) {\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 width = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n\n if (rtl) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += width;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += width;\n } else {\n scrollCells.push(cell);\n }\n }\n\n if (hasVerticalScrollbar && fixedRightCellGroupWidth) {\n fixedRightCellGroupWidth += _constants__WEBPACK_IMPORTED_MODULE_14__.SCROLLBAR_WIDTH;\n }\n\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: rtl ? {\n right: tableWidth.current - fixedLeftCellGroupWidth - rowRight\n } : undefined\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_15__.resetLeftForCells)(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, null, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, {\n fixed: \"right\",\n style: rtl ? {\n right: 0 - rowRight\n } : {\n left: tableWidth.current - fixedRightCellGroupWidth\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_15__.resetLeftForCells)(fixedRightCells, hasVerticalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_14__.SCROLLBAR_WIDTH : 0))) : null, shouldRenderExpandedRow && renderRowExpanded(rowData));\n } else {\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__.default, null, (0,_utils__WEBPACK_IMPORTED_MODULE_15__.mergeCells)(cells)), shouldRenderExpandedRow && renderRowExpanded(rowData));\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), renderRowProp ? renderRowProp(rowNode, rowData) : rowNode);\n };\n\n var renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: tableHeaderRef,\n width: rowWidth,\n height: getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0,\n rowIndex: -1\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: headerHeight,\n width: tableWidth.current,\n top: top\n }; // Affix header\n\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('affix-header'),\n style: fixedStyle,\n ref: affixHeaderWrapperRef\n }, renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n role: \"rowgroup\",\n className: prefix('header-row-wrapper'),\n ref: headerWrapperRef\n }, renderRow(rowProps, headerCells)));\n };\n\n var shouldRenderExpandedRow = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(renderRowExpandedProp) && !isTree && rowKey && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n })) {\n return true;\n }\n\n return false;\n }, [expandedRowKeys, isTree, renderRowExpandedProp, rowKey]);\n var bindRowClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(rowData, event);\n };\n }, [onRowClick]);\n var bindRowContextMenu = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowContextMenu === null || onRowContextMenu === void 0 ? void 0 : onRowContextMenu(rowData, event);\n };\n }, [onRowContextMenu]);\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (treeRowKey, _rowIndex, rowData) {\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 === treeRowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(key);\n }\n }\n\n if (!open) {\n nextExpandedRowKeys.push(treeRowKey);\n }\n\n setExpandedRowKeys(nextExpandedRowKeys);\n onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange(!open, rowData);\n }, [expandedRowKeys, onExpandChange, setExpandedRowKeys]);\n /**\n * Records the status of merged rows.\n * { cellKey: [count,index]}\n */\n\n var rowSpanState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});\n\n var renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = rowKey && typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n\n var rowProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, props, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: bindTableRowsRef(props.key, rowData),\n onClick: bindRowClick(rowData),\n onContextMenu: bindRowContextMenu(rowData)\n });\n\n var expanded = expandedRowKeys.some(function (key) {\n return rowKey && key === rowData[rowKey];\n });\n var cells = [];\n\n for (var i = 0; i < bodyCells.length; i++) {\n var _cell$props2, _cell$props2$rowSpan, _rowSpanState$current, _cell$props3, _rowSpanState$current2;\n\n var cell = bodyCells[i];\n var rowSpan = (_cell$props2 = cell.props) === null || _cell$props2 === void 0 ? void 0 : (_cell$props2$rowSpan = _cell$props2.rowSpan) === null || _cell$props2$rowSpan === void 0 ? void 0 : _cell$props2$rowSpan.call(_cell$props2, rowData);\n\n var _rowHeight = rowSpan ? rowSpan * (props.height || 46) : props.height;\n\n var _cellKey = cell.props.dataKey || i; // Record the cell state of the merged row\n\n\n if (((_rowSpanState$current = rowSpanState.current[_cellKey]) === null || _rowSpanState$current === void 0 ? void 0 : _rowSpanState$current[1]) > 0) {\n rowSpanState.current[_cellKey][1] -= 1; // Restart counting when merged to the last cell.\n\n if (rowSpanState.current[_cellKey][1] === 0) {\n rowSpanState.current[_cellKey][0] = 0;\n }\n }\n\n if (rowSpan) {\n // The state of the initial merged cell\n rowSpanState.current[_cellKey] = [rowSpan, rowSpan];\n rowProps.rowSpan = rowSpan;\n rowProps.style = {\n overflow: 'inherit'\n };\n } // Cells marked as deleted when checking for merged cell.\n\n\n var removedCell = (_cell$props3 = cell.props) !== null && _cell$props3 !== void 0 && _cell$props3.rowSpan && !rowSpan && ((_rowSpanState$current2 = rowSpanState.current[_cellKey]) === null || _rowSpanState$current2 === void 0 ? void 0 : _rowSpanState$current2[0]) !== 0 ? true : false;\n cells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cell, {\n hasChildren: hasChildren,\n rowData: rowData,\n rowIndex: props.rowIndex,\n wordWrap: wordWrap,\n height: _rowHeight,\n depth: props.depth,\n renderTreeToggle: renderTreeToggle,\n onTreeToggle: handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded,\n rowSpan: rowSpan,\n removed: removedCell\n }));\n }\n\n return renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n\n var renderScrollbar = function renderScrollbar() {\n var height = getTableHeight();\n\n if (disabledScroll) {\n return null;\n }\n\n var scrollbars = [];\n\n if (hasHorizontalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__.default, {\n key: \"scrollbar\",\n tableId: id,\n style: {\n width: tableWidth.current\n },\n length: tableWidth.current,\n onScroll: onScrollHorizontal,\n scrollLength: contentWidth.current,\n ref: scrollbarXRef\n }));\n }\n\n if (hasVerticalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__.default, {\n vertical: true,\n key: \"vertical-scrollbar\",\n tableId: id,\n length: height - headerHeight,\n onScroll: onScrollVertical,\n scrollLength: contentHeight.current,\n ref: scrollbarYRef\n }));\n }\n\n return scrollbars;\n };\n\n var renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _visibleRows$current;\n\n var height = 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 visibleRows.current = [];\n\n if (data) {\n var top = 0; // Row position\n\n var minTop = Math.abs(scrollY.current);\n var maxTop = minTop + height + rowExpandedHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!renderRowExpandedProp || isCustomRowHeight || wordWrap; // If virtualized is enabled and the row height in the Table is variable,\n // you need to loop through the data to get the height of each row.\n\n if (isUncertainHeight && virtualized || !virtualized) {\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isSupportTouchEvent)()) {\n var coveredHeight = height * 3;\n minTop = Math.max(minTop - coveredHeight, 0);\n maxTop = maxTop + coveredHeight;\n }\n\n for (var index = 0; index < data.length; index++) {\n var _rowData = data[index];\n var maxHeight = tableRowsMaxHeight[index];\n var shouldRender = shouldRenderExpandedRow(_rowData);\n var nextRowHeight = 0;\n\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(_rowData);\n } else {\n nextRowHeight = maxHeight ? Math.max(maxHeight + _constants__WEBPACK_IMPORTED_MODULE_14__.CELL_PADDING_HEIGHT, rowHeight) : rowHeight;\n\n if (shouldRender) {\n nextRowHeight += rowExpandedHeight;\n }\n }\n\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n rowIndex: index,\n width: rowWidth,\n depth: _rowData[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_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 visibleRows.current.push(renderRowData(bodyCells, _rowData, rowProps, shouldRender));\n }\n } else {\n /** virtualized */\n // If the row height of the Table is fixed, it is directly calculated by the row height and the number of rows,\n // thereby reducing the performance cost of traversing all data.\n var _nextRowHeight = getRowHeight();\n\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight) + 5, data.length); // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isSupportTouchEvent)()) {\n var coveredCount = Math.floor(height / _nextRowHeight * 3);\n startIndex = Math.max(startIndex - coveredCount, 0);\n endIndex = Math.min(endIndex + coveredCount, data.length);\n }\n\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 _rowData2 = data[_index];\n var _rowProps = {\n key: _index,\n rowIndex: _index,\n depth: _rowData2[_constants__WEBPACK_IMPORTED_MODULE_14__.TREE_DEPTH],\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight\n };\n visibleRows.current.push(renderRowData(bodyCells, _rowData2, _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_2___default().createElement(\"div\", {\n ref: tableBodyRef,\n role: \"rowgroup\",\n className: prefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: onScrollBody\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n style: wheelStyles,\n className: prefix('body-wheel-area'),\n ref: wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, visibleRows.current, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__.default, {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_EmptyMessage__WEBPACK_IMPORTED_MODULE_12__.default, {\n locale: locale,\n renderEmpty: renderEmpty,\n addPrefix: prefix,\n loading: !!((_visibleRows$current = visibleRows.current) !== null && _visibleRows$current !== void 0 && _visibleRows$current.length) || loading\n }), renderScrollbar(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Loader__WEBPACK_IMPORTED_MODULE_11__.default, {\n locale: locale,\n loadAnimation: loadAnimation,\n loading: loading,\n addPrefix: prefix,\n renderLoading: renderLoading\n }));\n };\n\n var contextValue = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(function () {\n return {\n classPrefix: classPrefix,\n translateDOMPositionXY: translateDOMPositionXY.current,\n rtl: rtl,\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n };\n }, [classPrefix, hasCustomTreeCol, isTree, rtl]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_TableContext__WEBPACK_IMPORTED_MODULE_13__.default.Provider, {\n value: contextValue\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.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\": colCounts.current,\n \"aria-busy\": loading\n }, rest, {\n className: classes,\n style: styles,\n ref: tableRef\n }), showHeader && renderTableHeader(headerCells, rowWidth), children && renderTableBody(bodyCells, rowWidth), showHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_MouseArea__WEBPACK_IMPORTED_MODULE_10__.default, {\n ref: mouseAreaRef,\n addPrefix: prefix,\n headerHeight: headerHeight,\n height: getTableHeight()\n })));\n});\nTable.displayName = 'Table';\nTable.propTypes = {\n autoHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n fillHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n affixHeader: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n affixHorizontalScrollbar: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n bordered: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n classPrefix: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n children: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n cellBordered: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n data: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n defaultExpandAllRows: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n defaultExpandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n defaultSortType: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n disabledScroll: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n expandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),\n hover: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n height: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n headerHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n locale: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().object),\n loading: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n loadAnimation: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n minHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number)]),\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func)]),\n renderTreeToggle: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderRowExpanded: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderRow: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n rowExpandedHeight: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n renderEmpty: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n renderLoading: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n rowClassName: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)]),\n rtl: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n style: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().object),\n sortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),\n sortType: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n showHeader: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n shouldUpdateScroll: prop_types__WEBPACK_IMPORTED_MODULE_16___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_16___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool)]),\n translate3d: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n wordWrap: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().any),\n width: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().number),\n virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n isTree: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),\n onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onRowContextMenu: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onScroll: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onSortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onExpandChange: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchStart: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchMove: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),\n onTouchEnd: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func)\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
9658
9658
 
9659
9659
  /***/ }),
9660
9660
 
@@ -9929,7 +9929,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
9929
9929
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9930
9930
 
9931
9931
  "use strict";
9932
- 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/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/utils/useControlled.js\");\n/* harmony import */ var _getTableColumns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _getColumnProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Attach rendering-related attributes to all cells of the form and cache them.\n * @param props\n * @returns\n */\nvar useCellDescriptor = function useCellDescriptor(props) {\n var children = props.children,\n rtl = props.rtl,\n mouseAreaRef = props.mouseAreaRef,\n tableRef = props.tableRef,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n tableWidth = props.tableWidth,\n headerHeight = props.headerHeight,\n showHeader = props.showHeader,\n sortTypeProp = props.sortType,\n defaultSortType = props.defaultSortType,\n sortColumn = props.sortColumn,\n rowHeight = props.rowHeight,\n onSortColumn = props.onSortColumn,\n onHeaderCellResize = props.onHeaderCellResize,\n prefix = props.prefix;\n\n var _useControlled = (0,_useControlled__WEBPACK_IMPORTED_MODULE_8__.default)(sortTypeProp, defaultSortType),\n sortType = _useControlled[0],\n setSortType = _useControlled[1];\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),\n cacheData = _useState[0],\n setCacheData = _useState[1];\n\n var clearCache = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {\n setCacheData(null);\n }, []);\n var setColumnResizing = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (resizing) {\n if (!tableRef.current) {\n return;\n }\n\n if (resizing) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__.default)(tableRef.current, prefix('column-resizing'));\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__.default)(tableRef.current, prefix('column-resizing'));\n }\n }, [prefix, tableRef]);\n var columnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__.default)(function () {\n clearCache();\n }, [children, sortColumn, sortType, tableWidth.current, scrollX.current, minScrollX.current]);\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__.default)(function () {\n columnWidths.current = {};\n }, [children]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (columnWidth, _cursorDelta, dataKey, index) {\n columnWidths.current[dataKey + \"_\" + index + \"_width\"] = columnWidth;\n setColumnResizing(false);\n\n if (mouseAreaRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__.default)(mouseAreaRef.current, {\n display: 'none'\n });\n }\n\n clearCache();\n onHeaderCellResize === null || onHeaderCellResize === void 0 ? void 0 : onHeaderCellResize(columnWidth, dataKey);\n }, [clearCache, mouseAreaRef, onHeaderCellResize, setColumnResizing]);\n var handleColumnResizeMove = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n\n if (rtl) {\n mouseAreaLeft += minScrollX.current + _constants__WEBPACK_IMPORTED_MODULE_7__.SCROLLBAR_WIDTH;\n dir = 'right';\n }\n\n if (!fixed) {\n x = mouseAreaLeft + (rtl ? -scrollX.current : scrollX.current);\n }\n\n if (mouseAreaRef.current) {\n var _addStyle;\n\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__.default)(mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n }\n }, [minScrollX, mouseAreaRef, rtl, scrollX]);\n var handleColumnResizeStart = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n setColumnResizing(true);\n handleColumnResizeMove(width, left, fixed);\n }, [handleColumnResizeMove, setColumnResizing]);\n var handleSortColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (dataKey) {\n var nextSortType = sortType;\n\n if (sortColumn === dataKey) {\n nextSortType = sortType === _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC ? _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.DESC : _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC;\n setSortType(nextSortType);\n }\n\n onSortColumn === null || onSortColumn === void 0 ? void 0 : onSortColumn(dataKey, nextSortType);\n }, [onSortColumn, setSortType, sortColumn, sortType]);\n\n if (cacheData) {\n return cacheData;\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 if (!children) {\n var _cacheCell = {\n columns: [],\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n setCacheData(_cacheCell);\n return _cacheCell;\n }\n\n var columns = (0,_getTableColumns__WEBPACK_IMPORTED_MODULE_9__.default)(children);\n var count = columns.length;\n\n var _getTotalByColumns = (0,_getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__.default)(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n\n react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(columns, function (column, index) {\n if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(column)) {\n var _columnWidths$current;\n\n var columnChildren = column.props.children;\n var columnProps = (0,_getColumnProps__WEBPACK_IMPORTED_MODULE_11__.default)(column);\n var _width = columnProps.width,\n resizable = columnProps.resizable,\n flexGrow = columnProps.flexGrow,\n minWidth = columnProps.minWidth,\n onResize = columnProps.onResize,\n treeCol = columnProps.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 headerCell = columnChildren[0];\n var cell = columnChildren[1];\n var cellWidth = ((_columnWidths$current = columnWidths.current) === null || _columnWidths$current === void 0 ? void 0 : _columnWidths$current[cell.props.dataKey + \"_\" + index + \"_width\"]) || _width || 0;\n\n if (tableWidth.current && flexGrow && totalFlexGrow) {\n cellWidth = Math.max((tableWidth.current - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n }\n\n var cellProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, lodash_omit__WEBPACK_IMPORTED_MODULE_5___default()(columnProps, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: cellWidth,\n height: typeof rowHeight === 'function' ? rowHeight() : rowHeight,\n firstColumn: index === 0,\n lastColumn: index === count - 1\n });\n\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // Resizable column\n // `index` is used to define the serial number when dragging the column width\n index: index,\n dataKey: cell.props.dataKey,\n isHeaderCell: true,\n minWidth: columnProps.minWidth,\n sortable: columnProps.sortable,\n onSortColumn: handleSortColumn,\n sortType: sortType,\n sortColumn: sortColumn,\n flexGrow: flexGrow\n };\n\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_6___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: handleColumnResizeEnd,\n onColumnResizeStart: handleColumnResizeStart,\n onColumnResizeMove: handleColumnResizeMove\n });\n }\n\n headerCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(headerCell, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, cellProps, headerCellProps)));\n }\n\n bodyCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(cell, cellProps));\n left += cellWidth;\n }\n });\n var cacheCell = {\n columns: columns,\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n setCacheData(cacheCell);\n return cacheCell;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (useCellDescriptor);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useCellDescriptor.js?");
9932
+ 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/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/utils/useControlled.js\");\n/* harmony import */ var _getTableColumns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _getColumnProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _flushSync__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./flushSync */ \"./node_modules/rsuite-table/es/utils/flushSync.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Attach rendering-related attributes to all cells of the form and cache them.\n * @param props\n * @returns\n */\nvar useCellDescriptor = function useCellDescriptor(props) {\n var children = props.children,\n rtl = props.rtl,\n mouseAreaRef = props.mouseAreaRef,\n tableRef = props.tableRef,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n tableWidth = props.tableWidth,\n headerHeight = props.headerHeight,\n showHeader = props.showHeader,\n sortTypeProp = props.sortType,\n defaultSortType = props.defaultSortType,\n sortColumn = props.sortColumn,\n rowHeight = props.rowHeight,\n onSortColumn = props.onSortColumn,\n onHeaderCellResize = props.onHeaderCellResize,\n prefix = props.prefix;\n\n var _useControlled = (0,_useControlled__WEBPACK_IMPORTED_MODULE_8__.default)(sortTypeProp, defaultSortType),\n sortType = _useControlled[0],\n setSortType = _useControlled[1];\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),\n cacheData = _useState[0],\n setCacheData = _useState[1];\n\n var clearCache = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {\n setCacheData(null);\n }, []);\n var setColumnResizing = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (resizing) {\n if (!tableRef.current) {\n return;\n }\n\n if (resizing) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__.default)(tableRef.current, prefix('column-resizing'));\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__.default)(tableRef.current, prefix('column-resizing'));\n }\n }, [prefix, tableRef]);\n var columnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__.default)(function () {\n clearCache();\n }, [children, sortColumn, sortType, tableWidth.current, scrollX.current, minScrollX.current]);\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__.default)(function () {\n columnWidths.current = {};\n }, [children]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (columnWidth, _cursorDelta, dataKey, index) {\n columnWidths.current[dataKey + \"_\" + index + \"_width\"] = columnWidth;\n setColumnResizing(false);\n\n if (mouseAreaRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__.default)(mouseAreaRef.current, {\n display: 'none'\n });\n } // fix: https://github.com/rsuite/rsuite-table/issues/398\n\n\n (0,_flushSync__WEBPACK_IMPORTED_MODULE_13__.default)(function () {\n return clearCache();\n });\n onHeaderCellResize === null || onHeaderCellResize === void 0 ? void 0 : onHeaderCellResize(columnWidth, dataKey);\n }, [clearCache, mouseAreaRef, onHeaderCellResize, setColumnResizing]);\n var handleColumnResizeMove = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n\n if (rtl) {\n mouseAreaLeft += minScrollX.current + _constants__WEBPACK_IMPORTED_MODULE_7__.SCROLLBAR_WIDTH;\n dir = 'right';\n }\n\n if (!fixed) {\n x = mouseAreaLeft + (rtl ? -scrollX.current : scrollX.current);\n }\n\n if (mouseAreaRef.current) {\n var _addStyle;\n\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__.default)(mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n }\n }, [minScrollX, mouseAreaRef, rtl, scrollX]);\n var handleColumnResizeStart = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n setColumnResizing(true);\n handleColumnResizeMove(width, left, fixed);\n }, [handleColumnResizeMove, setColumnResizing]);\n var handleSortColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (dataKey) {\n var nextSortType = sortType;\n\n if (sortColumn === dataKey) {\n nextSortType = sortType === _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC ? _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.DESC : _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC;\n setSortType(nextSortType);\n }\n\n onSortColumn === null || onSortColumn === void 0 ? void 0 : onSortColumn(dataKey, nextSortType);\n }, [onSortColumn, setSortType, sortColumn, sortType]);\n\n if (cacheData) {\n return cacheData;\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 if (!children) {\n var _cacheCell = {\n columns: [],\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n setCacheData(_cacheCell);\n return _cacheCell;\n }\n\n var columns = (0,_getTableColumns__WEBPACK_IMPORTED_MODULE_9__.default)(children);\n var count = columns.length;\n\n var _getTotalByColumns = (0,_getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__.default)(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n\n react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(columns, function (column, index) {\n if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(column)) {\n var _columnWidths$current;\n\n var columnChildren = column.props.children;\n var columnProps = (0,_getColumnProps__WEBPACK_IMPORTED_MODULE_11__.default)(column);\n var _width = columnProps.width,\n resizable = columnProps.resizable,\n flexGrow = columnProps.flexGrow,\n minWidth = columnProps.minWidth,\n onResize = columnProps.onResize,\n treeCol = columnProps.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 headerCell = columnChildren[0];\n var cell = columnChildren[1];\n var cellWidth = ((_columnWidths$current = columnWidths.current) === null || _columnWidths$current === void 0 ? void 0 : _columnWidths$current[cell.props.dataKey + \"_\" + index + \"_width\"]) || _width || 0;\n\n if (tableWidth.current && flexGrow && totalFlexGrow) {\n cellWidth = Math.max((tableWidth.current - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n }\n\n var cellProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, lodash_omit__WEBPACK_IMPORTED_MODULE_5___default()(columnProps, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: cellWidth,\n height: typeof rowHeight === 'function' ? rowHeight() : rowHeight,\n firstColumn: index === 0,\n lastColumn: index === count - 1\n });\n\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // Resizable column\n // `index` is used to define the serial number when dragging the column width\n index: index,\n dataKey: cell.props.dataKey,\n isHeaderCell: true,\n minWidth: columnProps.minWidth,\n sortable: columnProps.sortable,\n onSortColumn: handleSortColumn,\n sortType: sortType,\n sortColumn: sortColumn,\n flexGrow: flexGrow\n };\n\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_6___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: handleColumnResizeEnd,\n onColumnResizeStart: handleColumnResizeStart,\n onColumnResizeMove: handleColumnResizeMove\n });\n }\n\n headerCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(headerCell, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, cellProps, headerCellProps)));\n }\n\n bodyCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(cell, cellProps));\n left += cellWidth;\n }\n });\n var cacheCell = {\n columns: columns,\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n setCacheData(cacheCell);\n return cacheCell;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (useCellDescriptor);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useCellDescriptor.js?");
9933
9933
 
9934
9934
  /***/ }),
9935
9935
 
@@ -10072,7 +10072,7 @@ eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs
10072
10072
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10073
10073
 
10074
10074
  "use strict";
10075
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ArrayType\": function() { return /* binding */ ArrayType; },\n/* harmony export */ \"default\": function() { return /* binding */ getArrayType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\n\n\nvar ArrayType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(ArrayType, _MixedType);\n\n function ArrayType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'array') || this;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(v) {\n return Array.isArray(v);\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n var _proto = ArrayType.prototype;\n\n _proto.rangeLength = function rangeLength(minLength, maxLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.rangeLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return value.length >= minLength && value.length <= maxLength;\n },\n errorMessage: errorMessage,\n params: {\n minLength: minLength,\n maxLength: maxLength\n }\n });\n\n return this;\n };\n\n _proto.minLength = function minLength(_minLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.minLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return value.length >= _minLength;\n },\n errorMessage: errorMessage,\n params: {\n minLength: _minLength\n }\n });\n\n return this;\n };\n\n _proto.maxLength = function maxLength(_maxLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.maxLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return value.length <= _maxLength;\n },\n errorMessage: errorMessage,\n params: {\n maxLength: _maxLength\n }\n });\n\n return this;\n };\n\n _proto.unrepeatable = function unrepeatable(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.unrepeatable;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(items) {\n var hash = {};\n\n for (var i in items) {\n if (hash[items[i]]) {\n return false;\n }\n\n hash[items[i]] = true;\n }\n\n return true;\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.of = function of(type) {\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(items, data, filedName) {\n var checkResults = items.map(function (value, index) {\n var name = Array.isArray(filedName) ? [].concat(filedName, [\"[\" + index + \"]\"]) : [filedName, \"[\" + index + \"]\"];\n return type.check(value, data, name);\n });\n var hasError = !!checkResults.find(function (item) {\n return item === null || item === void 0 ? void 0 : item.hasError;\n });\n return {\n hasError: hasError,\n array: checkResults\n };\n }\n });\n\n return this;\n };\n\n return ArrayType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getArrayType(errorMessage) {\n return new ArrayType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/ArrayType.js?");
10075
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ArrayType\": function() { return /* binding */ ArrayType; },\n/* harmony export */ \"default\": function() { return /* binding */ getArrayType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\nclass ArrayType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n constructor(errorMessage) {\n super('array');\n super.pushRule({\n onValid: v => Array.isArray(v),\n errorMessage: errorMessage || this.locale.type\n });\n }\n rangeLength(minLength, maxLength, errorMessage = this.locale.rangeLength) {\n super.pushRule({\n onValid: (value) => value.length >= minLength && value.length <= maxLength,\n errorMessage,\n params: { minLength, maxLength }\n });\n return this;\n }\n minLength(minLength, errorMessage = this.locale.minLength) {\n super.pushRule({\n onValid: value => value.length >= minLength,\n errorMessage,\n params: { minLength }\n });\n return this;\n }\n maxLength(maxLength, errorMessage = this.locale.maxLength) {\n super.pushRule({\n onValid: value => value.length <= maxLength,\n errorMessage,\n params: { maxLength }\n });\n return this;\n }\n unrepeatable(errorMessage = this.locale.unrepeatable) {\n super.pushRule({\n onValid: items => {\n const hash = {};\n for (const i in items) {\n if (hash[items[i]]) {\n return false;\n }\n hash[items[i]] = true;\n }\n return true;\n },\n errorMessage\n });\n return this;\n }\n of(type) {\n super.pushRule({\n onValid: (items, data, filedName) => {\n const checkResults = items.map((value, index) => {\n const name = Array.isArray(filedName)\n ? [...filedName, `[${index}]`]\n : [filedName, `[${index}]`];\n return type.check(value, data, name);\n });\n const hasError = !!checkResults.find(item => item?.hasError);\n return {\n hasError,\n array: checkResults\n };\n }\n });\n return this;\n }\n}\nfunction getArrayType(errorMessage) {\n return new ArrayType(errorMessage);\n}\n//# sourceMappingURL=ArrayType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/ArrayType.js?");
10076
10076
 
10077
10077
  /***/ }),
10078
10078
 
@@ -10083,7 +10083,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10083
10083
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10084
10084
 
10085
10085
  "use strict";
10086
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BooleanType\": function() { return /* binding */ BooleanType; },\n/* harmony export */ \"default\": function() { return /* binding */ getBooleanType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\n\n\nvar BooleanType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(BooleanType, _MixedType);\n\n function BooleanType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'boolean') || this;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(v) {\n return typeof v === 'boolean';\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n return BooleanType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getBooleanType(errorMessage) {\n return new BooleanType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/BooleanType.js?");
10086
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BooleanType\": function() { return /* binding */ BooleanType; },\n/* harmony export */ \"default\": function() { return /* binding */ getBooleanType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\nclass BooleanType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n constructor(errorMessage) {\n super('boolean');\n super.pushRule({\n onValid: v => typeof v === 'boolean',\n errorMessage: errorMessage || this.locale.type\n });\n }\n}\nfunction getBooleanType(errorMessage) {\n return new BooleanType(errorMessage);\n}\n//# sourceMappingURL=BooleanType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/BooleanType.js?");
10087
10087
 
10088
10088
  /***/ }),
10089
10089
 
@@ -10094,7 +10094,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10094
10094
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10095
10095
 
10096
10096
  "use strict";
10097
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"DateType\": function() { return /* binding */ DateType; },\n/* harmony export */ \"default\": function() { return /* binding */ getDateType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\n\n\nvar DateType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(DateType, _MixedType);\n\n function DateType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'date') || this;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(value) {\n return !/Invalid|NaN/.test(new Date(value).toString());\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n var _proto = DateType.prototype;\n\n _proto.range = function range(min, max, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.range;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return new Date(value) >= new Date(min) && new Date(value) <= new Date(max);\n },\n errorMessage: errorMessage,\n params: {\n min: min,\n max: max\n }\n });\n\n return this;\n };\n\n _proto.min = function min(_min, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.min;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return new Date(value) >= new Date(_min);\n },\n errorMessage: errorMessage,\n params: {\n min: _min\n }\n });\n\n return this;\n };\n\n _proto.max = function max(_max, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.max;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return new Date(value) <= new Date(_max);\n },\n errorMessage: errorMessage,\n params: {\n max: _max\n }\n });\n\n return this;\n };\n\n return DateType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getDateType(errorMessage) {\n return new DateType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/DateType.js?");
10097
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"DateType\": function() { return /* binding */ DateType; },\n/* harmony export */ \"default\": function() { return /* binding */ getDateType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\nclass DateType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n constructor(errorMessage) {\n super('date');\n super.pushRule({\n onValid: value => !/Invalid|NaN/.test(new Date(value).toString()),\n errorMessage: errorMessage || this.locale.type\n });\n }\n range(min, max, errorMessage = this.locale.range) {\n super.pushRule({\n onValid: value => new Date(value) >= new Date(min) && new Date(value) <= new Date(max),\n errorMessage,\n params: { min, max }\n });\n return this;\n }\n min(min, errorMessage = this.locale.min) {\n super.pushRule({\n onValid: value => new Date(value) >= new Date(min),\n errorMessage,\n params: { min }\n });\n return this;\n }\n max(max, errorMessage = this.locale.max) {\n super.pushRule({\n onValid: value => new Date(value) <= new Date(max),\n errorMessage,\n params: { max }\n });\n return this;\n }\n}\nfunction getDateType(errorMessage) {\n return new DateType(errorMessage);\n}\n//# sourceMappingURL=DateType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/DateType.js?");
10098
10098
 
10099
10099
  /***/ }),
10100
10100
 
@@ -10105,7 +10105,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10105
10105
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10106
10106
 
10107
10107
  "use strict";
10108
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"MixedType\": function() { return /* binding */ MixedType; },\n/* harmony export */ \"default\": function() { return /* binding */ getMixedType; }\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./node_modules/schema-typed/es/utils/index.js\");\n/* harmony import */ var _locales__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locales */ \"./node_modules/schema-typed/es/locales/index.js\");\n\n\nvar MixedType = /*#__PURE__*/function () {\n function MixedType(name) {\n this.typeName = void 0;\n this.required = false;\n this.requiredMessage = '';\n this.trim = false;\n this.emptyAllowed = false;\n this.rules = [];\n this.priorityRules = [];\n this.schemaSpec = void 0;\n this.value = void 0;\n this.locale = void 0;\n this.typeName = name;\n this.locale = Object.assign(name ? _locales__WEBPACK_IMPORTED_MODULE_1__.default[name] : {}, _locales__WEBPACK_IMPORTED_MODULE_1__.default.mixed);\n }\n\n var _proto = MixedType.prototype;\n\n _proto.setSchemaOptions = function setSchemaOptions(schemaSpec, value) {\n this.schemaSpec = schemaSpec;\n this.value = value;\n };\n\n _proto.check = function check(value, data, fieldName) {\n if (value === void 0) {\n value = this.value;\n }\n\n if (this.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkRequired)(value, this.trim, this.emptyAllowed)) {\n return {\n hasError: true,\n errorMessage: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.formatErrorMessage)(this.requiredMessage, {\n name: fieldName\n })\n };\n }\n\n var validator = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createValidator)(data, fieldName);\n var checkStatus = validator(value, this.priorityRules);\n\n if (checkStatus) {\n return checkStatus;\n }\n\n if (!this.required && (0,_utils__WEBPACK_IMPORTED_MODULE_0__.isEmpty)(value)) {\n return {\n hasError: false\n };\n }\n\n return validator(value, this.rules) || {\n hasError: false\n };\n };\n\n _proto.checkAsync = function checkAsync(value, data, fieldName) {\n var _this = this;\n\n if (value === void 0) {\n value = this.value;\n }\n\n if (this.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkRequired)(value, this.trim, this.emptyAllowed)) {\n return Promise.resolve({\n hasError: true,\n errorMessage: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.formatErrorMessage)(this.requiredMessage, {\n name: fieldName\n })\n });\n }\n\n var validator = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createValidatorAsync)(data, fieldName);\n return new Promise(function (resolve) {\n return validator(value, _this.priorityRules).then(function (checkStatus) {\n if (checkStatus) {\n resolve(checkStatus);\n }\n }).then(function () {\n if (!_this.required && (0,_utils__WEBPACK_IMPORTED_MODULE_0__.isEmpty)(value)) {\n resolve({\n hasError: false\n });\n }\n }).then(function () {\n return validator(value, _this.rules);\n }).then(function (checkStatus) {\n if (checkStatus) {\n resolve(checkStatus);\n }\n\n resolve({\n hasError: false\n });\n });\n });\n };\n\n _proto.pushRule = function pushRule(rule) {\n var _this$rules, _this$rules$;\n\n var onValid = rule.onValid,\n errorMessage = rule.errorMessage,\n priority = rule.priority,\n params = rule.params;\n var nextRule = {\n onValid: onValid,\n params: params,\n errorMessage: errorMessage || ((_this$rules = this.rules) === null || _this$rules === void 0 ? void 0 : (_this$rules$ = _this$rules[0]) === null || _this$rules$ === void 0 ? void 0 : _this$rules$.errorMessage)\n };\n\n if (priority) {\n this.priorityRules.push(nextRule);\n } else {\n this.rules.push(nextRule);\n }\n };\n\n _proto.addRule = function addRule(onValid, errorMessage, priority) {\n this.pushRule({\n onValid: onValid,\n errorMessage: errorMessage,\n priority: priority\n });\n return this;\n };\n\n _proto.isRequired = function isRequired(errorMessage, trim) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isRequired;\n }\n\n if (trim === void 0) {\n trim = true;\n }\n\n this.required = true;\n this.trim = trim;\n this.requiredMessage = errorMessage;\n return this;\n };\n\n _proto.isRequiredOrEmpty = function isRequiredOrEmpty(errorMessage, trim) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isRequiredOrEmpty;\n }\n\n if (trim === void 0) {\n trim = true;\n }\n\n this.required = true;\n this.trim = trim;\n this.emptyAllowed = true;\n this.requiredMessage = errorMessage;\n return this;\n }\n /**\n * Define data verification rules based on conditions.\n * @param validator\n * @example\n * MixedType().when(schema => {\n * return schema.filed1.check() ? NumberType().min(5) : NumberType().min(0);\n * });\n */\n ;\n\n _proto.when = function when(condition) {\n var _this2 = this;\n\n this.addRule(function (value, data, filedName) {\n return condition(_this2.schemaSpec).check(value, data, filedName);\n }, undefined, true);\n return this;\n };\n\n return MixedType;\n}();\nfunction getMixedType() {\n return new MixedType();\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/MixedType.js?");
10108
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"MixedType\": function() { return /* binding */ MixedType; },\n/* harmony export */ \"default\": function() { return /* binding */ getMixedType; }\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./node_modules/schema-typed/es/utils/index.js\");\n/* harmony import */ var _locales__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locales */ \"./node_modules/schema-typed/es/locales/index.js\");\n\n\nclass MixedType {\n typeName;\n required = false;\n requiredMessage = '';\n trim = false;\n emptyAllowed = false;\n rules = [];\n priorityRules = [];\n schemaSpec;\n value;\n locale;\n constructor(name) {\n this.typeName = name;\n this.locale = Object.assign(name ? _locales__WEBPACK_IMPORTED_MODULE_1__.default[name] : {}, _locales__WEBPACK_IMPORTED_MODULE_1__.default.mixed);\n }\n setSchemaOptions(schemaSpec, value) {\n this.schemaSpec = schemaSpec;\n this.value = value;\n }\n check(value = this.value, data, fieldName) {\n if (this.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkRequired)(value, this.trim, this.emptyAllowed)) {\n return {\n hasError: true,\n errorMessage: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.formatErrorMessage)(this.requiredMessage, { name: fieldName })\n };\n }\n const validator = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createValidator)(data, fieldName);\n const checkStatus = validator(value, this.priorityRules);\n if (checkStatus) {\n return checkStatus;\n }\n if (!this.required && (0,_utils__WEBPACK_IMPORTED_MODULE_0__.isEmpty)(value)) {\n return { hasError: false };\n }\n return validator(value, this.rules) || { hasError: false };\n }\n checkAsync(value = this.value, data, fieldName) {\n if (this.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_0__.checkRequired)(value, this.trim, this.emptyAllowed)) {\n return Promise.resolve({\n hasError: true,\n errorMessage: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.formatErrorMessage)(this.requiredMessage, { name: fieldName })\n });\n }\n const validator = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createValidatorAsync)(data, fieldName);\n return new Promise(resolve => validator(value, this.priorityRules)\n .then((checkStatus) => {\n if (checkStatus) {\n resolve(checkStatus);\n }\n })\n .then(() => {\n if (!this.required && (0,_utils__WEBPACK_IMPORTED_MODULE_0__.isEmpty)(value)) {\n resolve({ hasError: false });\n }\n })\n .then(() => validator(value, this.rules))\n .then((checkStatus) => {\n if (checkStatus) {\n resolve(checkStatus);\n }\n resolve({ hasError: false });\n }));\n }\n pushRule(rule) {\n const { onValid, errorMessage, priority, params } = rule;\n const nextRule = {\n onValid,\n params,\n isAsync: rule.isAsync,\n errorMessage: errorMessage || this.rules?.[0]?.errorMessage\n };\n if (priority) {\n this.priorityRules.push(nextRule);\n }\n else {\n this.rules.push(nextRule);\n }\n }\n addRule(onValid, errorMessage, priority) {\n this.pushRule({ onValid, errorMessage, priority });\n return this;\n }\n addAsyncRule(onValid, errorMessage, priority) {\n this.pushRule({ onValid, isAsync: true, errorMessage, priority });\n return this;\n }\n isRequired(errorMessage = this.locale.isRequired, trim = true) {\n this.required = true;\n this.trim = trim;\n this.requiredMessage = errorMessage;\n return this;\n }\n isRequiredOrEmpty(errorMessage = this.locale.isRequiredOrEmpty, trim = true) {\n this.required = true;\n this.trim = trim;\n this.emptyAllowed = true;\n this.requiredMessage = errorMessage;\n return this;\n }\n /**\n * Define data verification rules based on conditions.\n * @param validator\n * @example\n * MixedType().when(schema => {\n * return schema.filed1.check() ? NumberType().min(5) : NumberType().min(0);\n * });\n */\n when(condition) {\n this.addRule((value, data, filedName) => {\n return condition(this.schemaSpec).check(value, data, filedName);\n }, undefined, true);\n return this;\n }\n}\nfunction getMixedType() {\n return new MixedType();\n}\n//# sourceMappingURL=MixedType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/MixedType.js?");
10109
10109
 
10110
10110
  /***/ }),
10111
10111
 
@@ -10116,7 +10116,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10116
10116
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10117
10117
 
10118
10118
  "use strict";
10119
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"NumberType\": function() { return /* binding */ NumberType; },\n/* harmony export */ \"default\": function() { return /* binding */ getNumberType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\n\n\n\nfunction toNumber(value) {\n return +value;\n}\n\nvar NumberType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(NumberType, _MixedType);\n\n function NumberType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'number') || this;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(value) {\n return /^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.test(value + '');\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n var _proto = NumberType.prototype;\n\n _proto.isInteger = function isInteger(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isInteger;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return /^-?\\d+$/.test(value + '');\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.pattern = function pattern(regexp, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.pattern;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return regexp.test(value + '');\n },\n errorMessage: errorMessage,\n params: {\n regexp: regexp\n }\n });\n\n return this;\n };\n\n _proto.isOneOf = function isOneOf(values, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isOneOf;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return values.includes(toNumber(value));\n },\n errorMessage: errorMessage,\n params: {\n values: values\n }\n });\n\n return this;\n };\n\n _proto.range = function range(min, max, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.range;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return toNumber(value) >= min && toNumber(value) <= max;\n },\n errorMessage: errorMessage,\n params: {\n min: min,\n max: max\n }\n });\n\n return this;\n };\n\n _proto.min = function min(_min, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.min;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return toNumber(value) >= _min;\n },\n errorMessage: errorMessage,\n params: {\n min: _min\n }\n });\n\n return this;\n };\n\n _proto.max = function max(_max, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.max;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return toNumber(value) <= _max;\n },\n errorMessage: errorMessage,\n params: {\n max: _max\n }\n });\n\n return this;\n };\n\n return NumberType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getNumberType(errorMessage) {\n return new NumberType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/NumberType.js?");
10119
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"NumberType\": function() { return /* binding */ NumberType; },\n/* harmony export */ \"default\": function() { return /* binding */ getNumberType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\nfunction toNumber(value) {\n return +value;\n}\nclass NumberType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n constructor(errorMessage) {\n super('number');\n super.pushRule({\n onValid: value => /^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.test(value + ''),\n errorMessage: errorMessage || this.locale.type\n });\n }\n isInteger(errorMessage = this.locale.isInteger) {\n super.pushRule({\n onValid: value => /^-?\\d+$/.test(value + ''),\n errorMessage\n });\n return this;\n }\n pattern(regexp, errorMessage = this.locale.pattern) {\n super.pushRule({\n onValid: value => regexp.test(value + ''),\n errorMessage,\n params: { regexp }\n });\n return this;\n }\n isOneOf(values, errorMessage = this.locale.isOneOf) {\n super.pushRule({\n onValid: value => values.includes(toNumber(value)),\n errorMessage,\n params: { values }\n });\n return this;\n }\n range(min, max, errorMessage = this.locale.range) {\n super.pushRule({\n onValid: value => toNumber(value) >= min && toNumber(value) <= max,\n errorMessage,\n params: { min, max }\n });\n return this;\n }\n min(min, errorMessage = this.locale.min) {\n super.pushRule({\n onValid: value => toNumber(value) >= min,\n errorMessage,\n params: { min }\n });\n return this;\n }\n max(max, errorMessage = this.locale.max) {\n super.pushRule({\n onValid: value => toNumber(value) <= max,\n errorMessage,\n params: { max }\n });\n return this;\n }\n}\nfunction getNumberType(errorMessage) {\n return new NumberType(errorMessage);\n}\n//# sourceMappingURL=NumberType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/NumberType.js?");
10120
10120
 
10121
10121
  /***/ }),
10122
10122
 
@@ -10127,7 +10127,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10127
10127
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10128
10128
 
10129
10129
  "use strict";
10130
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ObjectType\": function() { return /* binding */ ObjectType; },\n/* harmony export */ \"default\": function() { return /* binding */ getObjectType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./node_modules/schema-typed/es/utils/index.js\");\n\n\n\n\nvar ObjectType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(ObjectType, _MixedType);\n\n function ObjectType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'object') || this;\n _this.objectTypeSchemaSpec = void 0;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(v) {\n return typeof v === 'object';\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n var _proto = ObjectType.prototype;\n\n _proto.check = function check(value, data, fieldName) {\n if (value === void 0) {\n value = this.value;\n }\n\n var check = function check(value, data, type) {\n if (type.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_3__.checkRequired)(value, type.trim, type.emptyAllowed)) {\n return {\n hasError: true,\n errorMessage: type.requiredMessage\n };\n }\n\n if (type.objectTypeSchemaSpec && typeof value === 'object') {\n var checkResultObject = {};\n var hasError = false;\n Object.entries(type.objectTypeSchemaSpec).forEach(function (_ref) {\n var k = _ref[0],\n v = _ref[1];\n var checkResult = check(value[k], value, v);\n\n if (checkResult !== null && checkResult !== void 0 && checkResult.hasError) {\n hasError = true;\n }\n\n checkResultObject[k] = checkResult;\n });\n return {\n hasError: hasError,\n object: checkResultObject\n };\n }\n\n var validator = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.createValidator)(data, fieldName);\n var checkStatus = validator(value, type.priorityRules);\n\n if (checkStatus) {\n return checkStatus;\n }\n\n if (!type.required && (0,_utils__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(value)) {\n return {\n hasError: false\n };\n }\n\n return validator(value, type.rules) || {\n hasError: false\n };\n };\n\n return check(value, data, this);\n };\n\n _proto.checkAsync = function checkAsync(value, data, fieldName) {\n var _this2 = this;\n\n if (value === void 0) {\n value = this.value;\n }\n\n var check = function check(value, data, type) {\n if (type.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_3__.checkRequired)(value, type.trim, type.emptyAllowed)) {\n return Promise.resolve({\n hasError: true,\n errorMessage: _this2.requiredMessage\n });\n }\n\n var validator = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.createValidatorAsync)(data, fieldName);\n return new Promise(function (resolve) {\n if (type.objectTypeSchemaSpec && typeof value === 'object') {\n var checkResult = {};\n var checkAll = [];\n var keys = [];\n Object.entries(type.objectTypeSchemaSpec).forEach(function (_ref2) {\n var k = _ref2[0],\n v = _ref2[1];\n checkAll.push(check(value[k], value, v));\n keys.push(k);\n });\n return Promise.all(checkAll).then(function (values) {\n values.forEach(function (v, index) {\n checkResult[keys[index]] = v;\n });\n resolve({\n object: checkResult\n });\n });\n }\n\n return validator(value, type.priorityRules).then(function (checkStatus) {\n if (checkStatus) {\n resolve(checkStatus);\n }\n }).then(function () {\n if (!type.required && (0,_utils__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(value)) {\n resolve({\n hasError: false\n });\n }\n }).then(function () {\n return validator(value, type.rules);\n }).then(function (checkStatus) {\n if (checkStatus) {\n resolve(checkStatus);\n }\n\n resolve({\n hasError: false\n });\n });\n });\n };\n\n return check(value, data, this);\n }\n /**\n * @example\n * ObjectType().shape({\n * name: StringType(),\n * age: NumberType()\n * })\n */\n ;\n\n _proto.shape = function shape(fields) {\n this.objectTypeSchemaSpec = fields;\n return this;\n };\n\n return ObjectType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getObjectType(errorMessage) {\n return new ObjectType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/ObjectType.js?");
10130
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ObjectType\": function() { return /* binding */ ObjectType; },\n/* harmony export */ \"default\": function() { return /* binding */ getObjectType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./node_modules/schema-typed/es/utils/index.js\");\n\n\nclass ObjectType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n objectTypeSchemaSpec;\n constructor(errorMessage) {\n super('object');\n super.pushRule({\n onValid: v => typeof v === 'object',\n errorMessage: errorMessage || this.locale.type\n });\n }\n check(value = this.value, data, fieldName) {\n const check = (value, data, type) => {\n if (type.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_1__.checkRequired)(value, type.trim, type.emptyAllowed)) {\n return { hasError: true, errorMessage: type.requiredMessage };\n }\n if (type.objectTypeSchemaSpec && typeof value === 'object') {\n const checkResultObject = {};\n let hasError = false;\n Object.entries(type.objectTypeSchemaSpec).forEach(([k, v]) => {\n const checkResult = check(value[k], value, v);\n if (checkResult?.hasError) {\n hasError = true;\n }\n checkResultObject[k] = checkResult;\n });\n return { hasError, object: checkResultObject };\n }\n const validator = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.createValidator)(data, fieldName);\n const checkStatus = validator(value, type.priorityRules);\n if (checkStatus) {\n return checkStatus;\n }\n if (!type.required && (0,_utils__WEBPACK_IMPORTED_MODULE_1__.isEmpty)(value)) {\n return { hasError: false };\n }\n return validator(value, type.rules) || { hasError: false };\n };\n return check(value, data, this);\n }\n checkAsync(value = this.value, data, fieldName) {\n const check = (value, data, type) => {\n if (type.required && !(0,_utils__WEBPACK_IMPORTED_MODULE_1__.checkRequired)(value, type.trim, type.emptyAllowed)) {\n return Promise.resolve({ hasError: true, errorMessage: this.requiredMessage });\n }\n const validator = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.createValidatorAsync)(data, fieldName);\n return new Promise(resolve => {\n if (type.objectTypeSchemaSpec && typeof value === 'object') {\n const checkResult = {};\n const checkAll = [];\n const keys = [];\n Object.entries(type.objectTypeSchemaSpec).forEach(([k, v]) => {\n checkAll.push(check(value[k], value, v));\n keys.push(k);\n });\n return Promise.all(checkAll).then(values => {\n values.forEach((v, index) => {\n checkResult[keys[index]] = v;\n });\n resolve({ object: checkResult });\n });\n }\n return validator(value, type.priorityRules)\n .then((checkStatus) => {\n if (checkStatus) {\n resolve(checkStatus);\n }\n })\n .then(() => {\n if (!type.required && (0,_utils__WEBPACK_IMPORTED_MODULE_1__.isEmpty)(value)) {\n resolve({ hasError: false });\n }\n })\n .then(() => validator(value, type.rules))\n .then((checkStatus) => {\n if (checkStatus) {\n resolve(checkStatus);\n }\n resolve({ hasError: false });\n });\n });\n };\n return check(value, data, this);\n }\n /**\n * @example\n * ObjectType().shape({\n * name: StringType(),\n * age: NumberType()\n * })\n */\n shape(fields) {\n this.objectTypeSchemaSpec = fields;\n return this;\n }\n}\nfunction getObjectType(errorMessage) {\n return new ObjectType(errorMessage);\n}\n//# sourceMappingURL=ObjectType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/ObjectType.js?");
10131
10131
 
10132
10132
  /***/ }),
10133
10133
 
@@ -10138,7 +10138,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10138
10138
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10139
10139
 
10140
10140
  "use strict";
10141
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Schema\": function() { return /* binding */ Schema; },\n/* harmony export */ \"SchemaModel\": function() { return /* binding */ SchemaModel; }\n/* harmony export */ });\nvar Schema = /*#__PURE__*/function () {\n function Schema(schema) {\n this.spec = void 0;\n this.data = void 0;\n this.spec = schema;\n }\n\n var _proto = Schema.prototype;\n\n _proto.getFieldType = function getFieldType(fieldName) {\n var _this$spec;\n\n return (_this$spec = this.spec) === null || _this$spec === void 0 ? void 0 : _this$spec[fieldName];\n };\n\n _proto.getKeys = function getKeys() {\n return Object.keys(this.spec);\n };\n\n _proto.setSchemaOptionsForAllType = function setSchemaOptionsForAllType(data) {\n var _this = this;\n\n if (data === this.data) {\n return;\n }\n\n Object.entries(this.spec).forEach(function (_ref) {\n var key = _ref[0],\n type = _ref[1];\n type.setSchemaOptions(_this.spec, data === null || data === void 0 ? void 0 : data[key]);\n });\n this.data = data;\n };\n\n _proto.checkForField = function checkForField(fieldName, data) {\n this.setSchemaOptionsForAllType(data);\n var fieldChecker = this.spec[fieldName];\n\n if (!fieldChecker) {\n // fieldValue can be anything if no schema defined\n return {\n hasError: false\n };\n }\n\n return fieldChecker.check(data[fieldName], data, fieldName);\n };\n\n _proto.checkForFieldAsync = function checkForFieldAsync(fieldName, data) {\n this.setSchemaOptionsForAllType(data);\n var fieldChecker = this.spec[fieldName];\n\n if (!fieldChecker) {\n // fieldValue can be anything if no schema defined\n return Promise.resolve({\n hasError: false\n });\n }\n\n return fieldChecker.checkAsync(data[fieldName], data, fieldName);\n };\n\n _proto.check = function check(data) {\n var _this2 = this;\n\n var checkResult = {};\n Object.keys(this.spec).forEach(function (key) {\n if (typeof data === 'object') {\n checkResult[key] = _this2.checkForField(key, data);\n }\n });\n return checkResult;\n };\n\n _proto.checkAsync = function checkAsync(data) {\n var _this3 = this;\n\n var checkResult = {};\n var promises = [];\n var keys = [];\n Object.keys(this.spec).forEach(function (key) {\n keys.push(key);\n promises.push(_this3.checkForFieldAsync(key, data));\n });\n return Promise.all(promises).then(function (values) {\n for (var i = 0; i < values.length; i += 1) {\n checkResult[keys[i]] = values[i];\n }\n\n return checkResult;\n });\n };\n\n return Schema;\n}();\nfunction SchemaModel(o) {\n return new Schema(o);\n}\n\nSchemaModel.combine = function combine() {\n for (var _len = arguments.length, specs = new Array(_len), _key = 0; _key < _len; _key++) {\n specs[_key] = arguments[_key];\n }\n\n return new Schema(specs.map(function (model) {\n return model.spec;\n }).reduce(function (accumulator, currentValue) {\n return Object.assign(accumulator, currentValue);\n }, {}));\n};\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/Schema.js?");
10141
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Schema\": function() { return /* binding */ Schema; },\n/* harmony export */ \"SchemaModel\": function() { return /* binding */ SchemaModel; }\n/* harmony export */ });\nclass Schema {\n spec;\n data;\n constructor(schema) {\n this.spec = schema;\n }\n getFieldType(fieldName) {\n return this.spec?.[fieldName];\n }\n getKeys() {\n return Object.keys(this.spec);\n }\n setSchemaOptionsForAllType(data) {\n if (data === this.data) {\n return;\n }\n Object.entries(this.spec).forEach(([key, type]) => {\n type.setSchemaOptions(this.spec, data?.[key]);\n });\n this.data = data;\n }\n checkForField(fieldName, data) {\n this.setSchemaOptionsForAllType(data);\n const fieldChecker = this.spec[fieldName];\n if (!fieldChecker) {\n // fieldValue can be anything if no schema defined\n return { hasError: false };\n }\n return fieldChecker.check(data[fieldName], data, fieldName);\n }\n checkForFieldAsync(fieldName, data) {\n this.setSchemaOptionsForAllType(data);\n const fieldChecker = this.spec[fieldName];\n if (!fieldChecker) {\n // fieldValue can be anything if no schema defined\n return Promise.resolve({ hasError: false });\n }\n return fieldChecker.checkAsync(data[fieldName], data, fieldName);\n }\n check(data) {\n const checkResult = {};\n Object.keys(this.spec).forEach(key => {\n if (typeof data === 'object') {\n checkResult[key] = this.checkForField(key, data);\n }\n });\n return checkResult;\n }\n checkAsync(data) {\n const checkResult = {};\n const promises = [];\n const keys = [];\n Object.keys(this.spec).forEach((key) => {\n keys.push(key);\n promises.push(this.checkForFieldAsync(key, data));\n });\n return Promise.all(promises).then(values => {\n for (let i = 0; i < values.length; i += 1) {\n checkResult[keys[i]] = values[i];\n }\n return checkResult;\n });\n }\n}\nfunction SchemaModel(o) {\n return new Schema(o);\n}\nSchemaModel.combine = function combine(...specs) {\n return new Schema(specs\n .map(model => model.spec)\n .reduce((accumulator, currentValue) => Object.assign(accumulator, currentValue), {}));\n};\n//# sourceMappingURL=Schema.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/Schema.js?");
10142
10142
 
10143
10143
  /***/ }),
10144
10144
 
@@ -10149,7 +10149,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10149
10149
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10150
10150
 
10151
10151
  "use strict";
10152
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"StringType\": function() { return /* binding */ StringType; },\n/* harmony export */ \"default\": function() { return /* binding */ getStringType; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ \"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\n\n\nvar StringType = /*#__PURE__*/function (_MixedType) {\n (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(StringType, _MixedType);\n\n function StringType(errorMessage) {\n var _this;\n\n _this = _MixedType.call(this, 'string') || this;\n\n _MixedType.prototype.pushRule.call((0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_0__.default)(_this), {\n onValid: function onValid(v) {\n return typeof v === 'string';\n },\n errorMessage: errorMessage || _this.locale.type\n });\n\n return _this;\n }\n\n var _proto = StringType.prototype;\n\n _proto.containsLetter = function containsLetter(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.containsLetter;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return /[a-zA-Z]/.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.containsUppercaseLetter = function containsUppercaseLetter(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.containsUppercaseLetter;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return /[A-Z]/.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.containsLowercaseLetter = function containsLowercaseLetter(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.containsLowercaseLetter;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return /[a-z]/.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.containsLetterOnly = function containsLetterOnly(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.containsLetterOnly;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return /^[a-zA-Z]+$/.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.containsNumber = function containsNumber(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.containsNumber;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return /[0-9]/.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.isOneOf = function isOneOf(values, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isOneOf;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return !!~values.indexOf(v);\n },\n errorMessage: errorMessage,\n params: {\n values: values\n }\n });\n\n return this;\n };\n\n _proto.isEmail = function isEmail(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isEmail;\n }\n\n // http://emailregex.com/\n var regexp = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return regexp.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.isURL = function isURL(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isURL;\n }\n\n var regexp = new RegExp(\"^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$\", 'i');\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return regexp.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.isHex = function isHex(errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.isHex;\n }\n\n var regexp = /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i;\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return regexp.test(v);\n },\n errorMessage: errorMessage\n });\n\n return this;\n };\n\n _proto.pattern = function pattern(regexp, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.pattern;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(v) {\n return regexp.test(v);\n },\n errorMessage: errorMessage,\n params: {\n regexp: regexp\n }\n });\n\n return this;\n };\n\n _proto.rangeLength = function rangeLength(minLength, maxLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.rangeLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return value.length >= minLength && value.length <= maxLength;\n },\n errorMessage: errorMessage,\n params: {\n minLength: minLength,\n maxLength: maxLength\n }\n });\n\n return this;\n };\n\n _proto.minLength = function minLength(_minLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.minLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return Array.from(value).length >= _minLength;\n },\n errorMessage: errorMessage,\n params: {\n minLength: _minLength\n }\n });\n\n return this;\n };\n\n _proto.maxLength = function maxLength(_maxLength, errorMessage) {\n if (errorMessage === void 0) {\n errorMessage = this.locale.maxLength;\n }\n\n _MixedType.prototype.pushRule.call(this, {\n onValid: function onValid(value) {\n return Array.from(value).length <= _maxLength;\n },\n errorMessage: errorMessage,\n params: {\n maxLength: _maxLength\n }\n });\n\n return this;\n };\n\n return StringType;\n}(_MixedType__WEBPACK_IMPORTED_MODULE_2__.MixedType);\nfunction getStringType(errorMessage) {\n return new StringType(errorMessage);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/StringType.js?");
10152
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"StringType\": function() { return /* binding */ StringType; },\n/* harmony export */ \"default\": function() { return /* binding */ getStringType; }\n/* harmony export */ });\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n\nclass StringType extends _MixedType__WEBPACK_IMPORTED_MODULE_0__.MixedType {\n constructor(errorMessage) {\n super('string');\n super.pushRule({\n onValid: v => typeof v === 'string',\n errorMessage: errorMessage || this.locale.type\n });\n }\n containsLetter(errorMessage = this.locale.containsLetter) {\n super.pushRule({\n onValid: v => /[a-zA-Z]/.test(v),\n errorMessage\n });\n return this;\n }\n containsUppercaseLetter(errorMessage = this.locale.containsUppercaseLetter) {\n super.pushRule({\n onValid: v => /[A-Z]/.test(v),\n errorMessage\n });\n return this;\n }\n containsLowercaseLetter(errorMessage = this.locale.containsLowercaseLetter) {\n super.pushRule({\n onValid: v => /[a-z]/.test(v),\n errorMessage\n });\n return this;\n }\n containsLetterOnly(errorMessage = this.locale.containsLetterOnly) {\n super.pushRule({\n onValid: v => /^[a-zA-Z]+$/.test(v),\n errorMessage\n });\n return this;\n }\n containsNumber(errorMessage = this.locale.containsNumber) {\n super.pushRule({\n onValid: v => /[0-9]/.test(v),\n errorMessage\n });\n return this;\n }\n isOneOf(values, errorMessage = this.locale.isOneOf) {\n super.pushRule({\n onValid: v => !!~values.indexOf(v),\n errorMessage,\n params: { values }\n });\n return this;\n }\n isEmail(errorMessage = this.locale.isEmail) {\n // http://emailregex.com/\n const regexp = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n super.pushRule({\n onValid: v => regexp.test(v),\n errorMessage\n });\n return this;\n }\n isURL(errorMessage = this.locale.isURL) {\n const regexp = new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$', 'i');\n super.pushRule({\n onValid: v => regexp.test(v),\n errorMessage\n });\n return this;\n }\n isHex(errorMessage = this.locale.isHex) {\n const regexp = /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i;\n super.pushRule({\n onValid: v => regexp.test(v),\n errorMessage\n });\n return this;\n }\n pattern(regexp, errorMessage = this.locale.pattern) {\n super.pushRule({\n onValid: v => regexp.test(v),\n errorMessage,\n params: { regexp }\n });\n return this;\n }\n rangeLength(minLength, maxLength, errorMessage = this.locale.rangeLength) {\n super.pushRule({\n onValid: value => value.length >= minLength && value.length <= maxLength,\n errorMessage,\n params: { minLength, maxLength }\n });\n return this;\n }\n minLength(minLength, errorMessage = this.locale.minLength) {\n super.pushRule({\n onValid: value => Array.from(value).length >= minLength,\n errorMessage,\n params: { minLength }\n });\n return this;\n }\n maxLength(maxLength, errorMessage = this.locale.maxLength) {\n super.pushRule({\n onValid: value => Array.from(value).length <= maxLength,\n errorMessage,\n params: { maxLength }\n });\n return this;\n }\n}\nfunction getStringType(errorMessage) {\n return new StringType(errorMessage);\n}\n//# sourceMappingURL=StringType.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/StringType.js?");
10153
10153
 
10154
10154
  /***/ }),
10155
10155
 
@@ -10160,7 +10160,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10160
10160
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10161
10161
 
10162
10162
  "use strict";
10163
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"SchemaModel\": function() { return /* reexport safe */ _Schema__WEBPACK_IMPORTED_MODULE_0__.SchemaModel; },\n/* harmony export */ \"Schema\": function() { return /* reexport safe */ _Schema__WEBPACK_IMPORTED_MODULE_0__.Schema; },\n/* harmony export */ \"MixedType\": function() { return /* reexport safe */ _MixedType__WEBPACK_IMPORTED_MODULE_1__.default; },\n/* harmony export */ \"StringType\": function() { return /* reexport safe */ _StringType__WEBPACK_IMPORTED_MODULE_2__.default; },\n/* harmony export */ \"NumberType\": function() { return /* reexport safe */ _NumberType__WEBPACK_IMPORTED_MODULE_3__.default; },\n/* harmony export */ \"ArrayType\": function() { return /* reexport safe */ _ArrayType__WEBPACK_IMPORTED_MODULE_4__.default; },\n/* harmony export */ \"DateType\": function() { return /* reexport safe */ _DateType__WEBPACK_IMPORTED_MODULE_5__.default; },\n/* harmony export */ \"ObjectType\": function() { return /* reexport safe */ _ObjectType__WEBPACK_IMPORTED_MODULE_6__.default; },\n/* harmony export */ \"BooleanType\": function() { return /* reexport safe */ _BooleanType__WEBPACK_IMPORTED_MODULE_7__.default; }\n/* harmony export */ });\n/* harmony import */ var _Schema__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Schema */ \"./node_modules/schema-typed/es/Schema.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n/* harmony import */ var _StringType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StringType */ \"./node_modules/schema-typed/es/StringType.js\");\n/* harmony import */ var _NumberType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NumberType */ \"./node_modules/schema-typed/es/NumberType.js\");\n/* harmony import */ var _ArrayType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ArrayType */ \"./node_modules/schema-typed/es/ArrayType.js\");\n/* harmony import */ var _DateType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DateType */ \"./node_modules/schema-typed/es/DateType.js\");\n/* harmony import */ var _ObjectType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ObjectType */ \"./node_modules/schema-typed/es/ObjectType.js\");\n/* harmony import */ var _BooleanType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BooleanType */ \"./node_modules/schema-typed/es/BooleanType.js\");\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/index.js?");
10163
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"SchemaModel\": function() { return /* reexport safe */ _Schema__WEBPACK_IMPORTED_MODULE_0__.SchemaModel; },\n/* harmony export */ \"Schema\": function() { return /* reexport safe */ _Schema__WEBPACK_IMPORTED_MODULE_0__.Schema; },\n/* harmony export */ \"MixedType\": function() { return /* reexport safe */ _MixedType__WEBPACK_IMPORTED_MODULE_1__.default; },\n/* harmony export */ \"StringType\": function() { return /* reexport safe */ _StringType__WEBPACK_IMPORTED_MODULE_2__.default; },\n/* harmony export */ \"NumberType\": function() { return /* reexport safe */ _NumberType__WEBPACK_IMPORTED_MODULE_3__.default; },\n/* harmony export */ \"ArrayType\": function() { return /* reexport safe */ _ArrayType__WEBPACK_IMPORTED_MODULE_4__.default; },\n/* harmony export */ \"DateType\": function() { return /* reexport safe */ _DateType__WEBPACK_IMPORTED_MODULE_5__.default; },\n/* harmony export */ \"ObjectType\": function() { return /* reexport safe */ _ObjectType__WEBPACK_IMPORTED_MODULE_6__.default; },\n/* harmony export */ \"BooleanType\": function() { return /* reexport safe */ _BooleanType__WEBPACK_IMPORTED_MODULE_7__.default; }\n/* harmony export */ });\n/* harmony import */ var _Schema__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Schema */ \"./node_modules/schema-typed/es/Schema.js\");\n/* harmony import */ var _MixedType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MixedType */ \"./node_modules/schema-typed/es/MixedType.js\");\n/* harmony import */ var _StringType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StringType */ \"./node_modules/schema-typed/es/StringType.js\");\n/* harmony import */ var _NumberType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NumberType */ \"./node_modules/schema-typed/es/NumberType.js\");\n/* harmony import */ var _ArrayType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ArrayType */ \"./node_modules/schema-typed/es/ArrayType.js\");\n/* harmony import */ var _DateType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DateType */ \"./node_modules/schema-typed/es/DateType.js\");\n/* harmony import */ var _ObjectType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ObjectType */ \"./node_modules/schema-typed/es/ObjectType.js\");\n/* harmony import */ var _BooleanType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BooleanType */ \"./node_modules/schema-typed/es/BooleanType.js\");\n\n\n\n\n\n\n\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/index.js?");
10164
10164
 
10165
10165
  /***/ }),
10166
10166
 
@@ -10171,7 +10171,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10171
10171
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10172
10172
 
10173
10173
  "use strict";
10174
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixed: {\n isRequired: '${name} is a required field',\n isRequiredOrEmpty: '${name} is a required field'\n },\n array: {\n type: '${name} must be an array',\n rangeLength: '${name} must contain ${minLength} to ${maxLength} items',\n minLength: '${name} field must have at least ${minLength} items',\n maxLength: '${name} field must have less than or equal to ${maxLength} items',\n unrepeatable: '${name} must have non-repeatable items'\n },\n \"boolean\": {\n type: '${name} must be a boolean'\n },\n date: {\n type: '${name} must be a date',\n min: '${name} field must be later than ${min}',\n max: '${name} field must be at earlier than ${max}',\n range: '${name} field must be between ${min} and ${max}'\n },\n number: {\n type: '${name} must be a number',\n isInteger: '${name} must be an integer',\n pattern: '${name} is invalid',\n isOneOf: '${name} must be one of the following values: ${values}',\n range: '${name} field must be between ${min} and ${max}',\n min: '${name} must be greater than or equal to ${min}',\n max: '${name} must be less than or equal to ${max}'\n },\n string: {\n type: '${name} must be a string',\n containsLetter: '${name} field must contain letters',\n containsUppercaseLetter: '${name} must be a upper case string',\n containsLowercaseLetter: '${name} must be a lowercase string',\n containsLetterOnly: '${name} must all be letters',\n containsNumber: '${name} field must contain numbers',\n isOneOf: '${name} must be one of the following values: ${values}',\n isEmail: '${name} must be a valid email',\n isURL: '${name} must be a valid URL',\n isHex: '${name} must be a valid hexadecimal',\n pattern: '${name} is invalid',\n rangeLength: '${name} must contain ${minLength} to ${maxLength} characters',\n minLength: '${name} must be at least ${minLength} characters',\n maxLength: '${name} must be at most ${maxLength} characters'\n },\n object: {\n type: '${name} must be an object'\n }\n});\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/locales/default.js?");
10174
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixed: {\n isRequired: '${name} is a required field',\n isRequiredOrEmpty: '${name} is a required field'\n },\n array: {\n type: '${name} must be an array',\n rangeLength: '${name} must contain ${minLength} to ${maxLength} items',\n minLength: '${name} field must have at least ${minLength} items',\n maxLength: '${name} field must have less than or equal to ${maxLength} items',\n unrepeatable: '${name} must have non-repeatable items'\n },\n boolean: {\n type: '${name} must be a boolean'\n },\n date: {\n type: '${name} must be a date',\n min: '${name} field must be later than ${min}',\n max: '${name} field must be at earlier than ${max}',\n range: '${name} field must be between ${min} and ${max}'\n },\n number: {\n type: '${name} must be a number',\n isInteger: '${name} must be an integer',\n pattern: '${name} is invalid',\n isOneOf: '${name} must be one of the following values: ${values}',\n range: '${name} field must be between ${min} and ${max}',\n min: '${name} must be greater than or equal to ${min}',\n max: '${name} must be less than or equal to ${max}'\n },\n string: {\n type: '${name} must be a string',\n containsLetter: '${name} field must contain letters',\n containsUppercaseLetter: '${name} must be a upper case string',\n containsLowercaseLetter: '${name} must be a lowercase string',\n containsLetterOnly: '${name} must all be letters',\n containsNumber: '${name} field must contain numbers',\n isOneOf: '${name} must be one of the following values: ${values}',\n isEmail: '${name} must be a valid email',\n isURL: '${name} must be a valid URL',\n isHex: '${name} must be a valid hexadecimal',\n pattern: '${name} is invalid',\n rangeLength: '${name} must contain ${minLength} to ${maxLength} characters',\n minLength: '${name} must be at least ${minLength} characters',\n maxLength: '${name} must be at most ${maxLength} characters'\n },\n object: {\n type: '${name} must be an object'\n }\n});\n//# sourceMappingURL=default.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/locales/default.js?");
10175
10175
 
10176
10176
  /***/ }),
10177
10177
 
@@ -10182,7 +10182,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
10182
10182
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10183
10183
 
10184
10184
  "use strict";
10185
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default */ \"./node_modules/schema-typed/es/locales/default.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_default__WEBPACK_IMPORTED_MODULE_0__.default);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/locales/index.js?");
10185
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default */ \"./node_modules/schema-typed/es/locales/default.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_default__WEBPACK_IMPORTED_MODULE_0__.default);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/locales/index.js?");
10186
10186
 
10187
10187
  /***/ }),
10188
10188
 
@@ -10193,7 +10193,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _def
10193
10193
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10194
10194
 
10195
10195
  "use strict";
10196
- eval("__webpack_require__.r(__webpack_exports__);\nfunction basicEmptyCheck(value) {\n return typeof value === 'undefined' || value === null;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (basicEmptyCheck);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/basicEmptyCheck.js?");
10196
+ eval("__webpack_require__.r(__webpack_exports__);\nfunction basicEmptyCheck(value) {\n return typeof value === 'undefined' || value === null;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (basicEmptyCheck);\n//# sourceMappingURL=basicEmptyCheck.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/basicEmptyCheck.js?");
10197
10197
 
10198
10198
  /***/ }),
10199
10199
 
@@ -10204,7 +10204,7 @@ eval("__webpack_require__.r(__webpack_exports__);\nfunction basicEmptyCheck(valu
10204
10204
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10205
10205
 
10206
10206
  "use strict";
10207
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basicEmptyCheck */ \"./node_modules/schema-typed/es/utils/basicEmptyCheck.js\");\n/* harmony import */ var _isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isEmpty */ \"./node_modules/schema-typed/es/utils/isEmpty.js\");\n\n\n\nfunction checkRequired(value, trim, emptyAllowed) {\n // String trim\n if (trim && typeof value === 'string') {\n value = value.replace(/(^\\s*)|(\\s*$)/g, '');\n }\n\n if (emptyAllowed) {\n return !(0,_basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__.default)(value);\n } // Array\n\n\n if (Array.isArray(value)) {\n return !!value.length;\n }\n\n return !(0,_isEmpty__WEBPACK_IMPORTED_MODULE_1__.default)(value);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (checkRequired);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/checkRequired.js?");
10207
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basicEmptyCheck */ \"./node_modules/schema-typed/es/utils/basicEmptyCheck.js\");\n/* harmony import */ var _isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isEmpty */ \"./node_modules/schema-typed/es/utils/isEmpty.js\");\n\n\nfunction checkRequired(value, trim, emptyAllowed) {\n // String trim\n if (trim && typeof value === 'string') {\n value = value.replace(/(^\\s*)|(\\s*$)/g, '');\n }\n if (emptyAllowed) {\n return !(0,_basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__.default)(value);\n }\n // Array\n if (Array.isArray(value)) {\n return !!value.length;\n }\n return !(0,_isEmpty__WEBPACK_IMPORTED_MODULE_1__.default)(value);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (checkRequired);\n//# sourceMappingURL=checkRequired.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/checkRequired.js?");
10208
10208
 
10209
10209
  /***/ }),
10210
10210
 
@@ -10215,7 +10215,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bas
10215
10215
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10216
10216
 
10217
10217
  "use strict";
10218
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createValidator\": function() { return /* binding */ createValidator; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\n\n/**\n * Create a data validator\n * @param data\n */\n\nfunction createValidator(data, name) {\n return function (value, rules) {\n for (var i = 0; i < rules.length; i += 1) {\n var _rules$i = rules[i],\n onValid = _rules$i.onValid,\n errorMessage = _rules$i.errorMessage,\n params = _rules$i.params;\n var checkResult = onValid(value, data, name);\n\n if (checkResult === false) {\n return {\n hasError: true,\n errorMessage: (0,_formatErrorMessage__WEBPACK_IMPORTED_MODULE_1__.default)(errorMessage, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, params, {\n name: Array.isArray(name) ? name.join('.') : name\n }))\n };\n } else if (typeof checkResult === 'object' && (checkResult.hasError || checkResult.array)) {\n return checkResult;\n }\n }\n\n return null;\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createValidator);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/createValidator.js?");
10218
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createValidator\": function() { return /* binding */ createValidator; }\n/* harmony export */ });\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\nfunction isObj(o) {\n return o != null && (typeof o === 'object' || typeof o == 'function');\n}\nfunction isPromiseLike(v) {\n return v instanceof Promise || (isObj(v) && typeof v.then === 'function');\n}\n/**\n * Create a data validator\n * @param data\n */\nfunction createValidator(data, name) {\n return (value, rules) => {\n for (let i = 0; i < rules.length; i += 1) {\n const { onValid, errorMessage, params, isAsync } = rules[i];\n if (isAsync)\n continue;\n const checkResult = onValid(value, data, name);\n if (checkResult === false) {\n return {\n hasError: true,\n errorMessage: (0,_formatErrorMessage__WEBPACK_IMPORTED_MODULE_0__.default)(errorMessage, {\n ...params,\n name: Array.isArray(name) ? name.join('.') : name\n })\n };\n }\n else if (isPromiseLike(checkResult)) {\n throw new Error('synchronous validator had an async result, you should probably call \"checkAsync()\"');\n }\n else if (typeof checkResult === 'object' && (checkResult.hasError || checkResult.array)) {\n return checkResult;\n }\n }\n return null;\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createValidator);\n//# sourceMappingURL=createValidator.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/createValidator.js?");
10219
10219
 
10220
10220
  /***/ }),
10221
10221
 
@@ -10226,7 +10226,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10226
10226
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10227
10227
 
10228
10228
  "use strict";
10229
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createValidatorAsync\": function() { return /* binding */ createValidatorAsync; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\n\n/**\n * Create a data asynchronous validator\n * @param data\n */\n\nfunction createValidatorAsync(data, name) {\n function check(errorMessage) {\n return function (checkResult) {\n if (checkResult === false) {\n return {\n hasError: true,\n errorMessage: errorMessage\n };\n } else if (typeof checkResult === 'object' && (checkResult.hasError || checkResult.array)) {\n return checkResult;\n }\n\n return null;\n };\n }\n\n return function (value, rules) {\n var promises = rules.map(function (rule) {\n var onValid = rule.onValid,\n errorMessage = rule.errorMessage,\n params = rule.params;\n return Promise.resolve(onValid(value, data, name)).then(check((0,_formatErrorMessage__WEBPACK_IMPORTED_MODULE_1__.default)(errorMessage, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, params, {\n name: Array.isArray(name) ? name.join('.') : name\n }))));\n });\n return Promise.all(promises).then(function (results) {\n return results.find(function (item) {\n return item && (item === null || item === void 0 ? void 0 : item.hasError);\n });\n });\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createValidatorAsync);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/createValidatorAsync.js?");
10229
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createValidatorAsync\": function() { return /* binding */ createValidatorAsync; }\n/* harmony export */ });\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\n/**\n * Create a data asynchronous validator\n * @param data\n */\nfunction createValidatorAsync(data, name) {\n function check(errorMessage) {\n return (checkResult) => {\n if (checkResult === false) {\n return { hasError: true, errorMessage };\n }\n else if (typeof checkResult === 'object' && (checkResult.hasError || checkResult.array)) {\n return checkResult;\n }\n return null;\n };\n }\n return (value, rules) => {\n const promises = rules.map(rule => {\n const { onValid, errorMessage, params } = rule;\n return Promise.resolve(onValid(value, data, name)).then(check((0,_formatErrorMessage__WEBPACK_IMPORTED_MODULE_0__.default)(errorMessage, {\n ...params,\n name: Array.isArray(name) ? name.join('.') : name\n })));\n });\n return Promise.all(promises).then(results => results.find((item) => item && item?.hasError));\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (createValidatorAsync);\n//# sourceMappingURL=createValidatorAsync.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/createValidatorAsync.js?");
10230
10230
 
10231
10231
  /***/ }),
10232
10232
 
@@ -10237,7 +10237,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10237
10237
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10238
10238
 
10239
10239
  "use strict";
10240
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ formatErrorMessage; }\n/* harmony export */ });\n/**\n * formatErrorMessage('${name} is a required field', {name: 'email'});\n * output: 'email is a required field'\n */\nfunction formatErrorMessage(errorMessage, params) {\n if (typeof errorMessage === 'string') {\n return errorMessage.replace(/\\$\\{\\s*(\\w+)\\s*\\}/g, function (_, key) {\n return (params === null || params === void 0 ? void 0 : params[key]) || \"[\" + key + \"]\";\n });\n }\n\n return errorMessage;\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/formatErrorMessage.js?");
10240
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ formatErrorMessage; }\n/* harmony export */ });\n/**\n * formatErrorMessage('${name} is a required field', {name: 'email'});\n * output: 'email is a required field'\n */\nfunction formatErrorMessage(errorMessage, params) {\n if (typeof errorMessage === 'string') {\n return errorMessage.replace(/\\$\\{\\s*(\\w+)\\s*\\}/g, (_, key) => {\n return params?.[key] || `[${key}]`;\n });\n }\n return errorMessage;\n}\n//# sourceMappingURL=formatErrorMessage.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/formatErrorMessage.js?");
10241
10241
 
10242
10242
  /***/ }),
10243
10243
 
@@ -10248,7 +10248,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10248
10248
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10249
10249
 
10250
10250
  "use strict";
10251
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"basicEmptyCheck\": function() { return /* reexport safe */ _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__.default; },\n/* harmony export */ \"checkRequired\": function() { return /* reexport safe */ _checkRequired__WEBPACK_IMPORTED_MODULE_1__.default; },\n/* harmony export */ \"createValidator\": function() { return /* reexport safe */ _createValidator__WEBPACK_IMPORTED_MODULE_2__.default; },\n/* harmony export */ \"createValidatorAsync\": function() { return /* reexport safe */ _createValidatorAsync__WEBPACK_IMPORTED_MODULE_3__.default; },\n/* harmony export */ \"isEmpty\": function() { return /* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.default; },\n/* harmony export */ \"formatErrorMessage\": function() { return /* reexport safe */ _formatErrorMessage__WEBPACK_IMPORTED_MODULE_5__.default; }\n/* harmony export */ });\n/* harmony import */ var _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basicEmptyCheck */ \"./node_modules/schema-typed/es/utils/basicEmptyCheck.js\");\n/* harmony import */ var _checkRequired__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./checkRequired */ \"./node_modules/schema-typed/es/utils/checkRequired.js\");\n/* harmony import */ var _createValidator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createValidator */ \"./node_modules/schema-typed/es/utils/createValidator.js\");\n/* harmony import */ var _createValidatorAsync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createValidatorAsync */ \"./node_modules/schema-typed/es/utils/createValidatorAsync.js\");\n/* harmony import */ var _isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isEmpty */ \"./node_modules/schema-typed/es/utils/isEmpty.js\");\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/index.js?");
10251
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"basicEmptyCheck\": function() { return /* reexport safe */ _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__.default; },\n/* harmony export */ \"checkRequired\": function() { return /* reexport safe */ _checkRequired__WEBPACK_IMPORTED_MODULE_1__.default; },\n/* harmony export */ \"createValidator\": function() { return /* reexport safe */ _createValidator__WEBPACK_IMPORTED_MODULE_2__.default; },\n/* harmony export */ \"createValidatorAsync\": function() { return /* reexport safe */ _createValidatorAsync__WEBPACK_IMPORTED_MODULE_3__.default; },\n/* harmony export */ \"isEmpty\": function() { return /* reexport safe */ _isEmpty__WEBPACK_IMPORTED_MODULE_4__.default; },\n/* harmony export */ \"formatErrorMessage\": function() { return /* reexport safe */ _formatErrorMessage__WEBPACK_IMPORTED_MODULE_5__.default; }\n/* harmony export */ });\n/* harmony import */ var _basicEmptyCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basicEmptyCheck */ \"./node_modules/schema-typed/es/utils/basicEmptyCheck.js\");\n/* harmony import */ var _checkRequired__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./checkRequired */ \"./node_modules/schema-typed/es/utils/checkRequired.js\");\n/* harmony import */ var _createValidator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createValidator */ \"./node_modules/schema-typed/es/utils/createValidator.js\");\n/* harmony import */ var _createValidatorAsync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createValidatorAsync */ \"./node_modules/schema-typed/es/utils/createValidatorAsync.js\");\n/* harmony import */ var _isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isEmpty */ \"./node_modules/schema-typed/es/utils/isEmpty.js\");\n/* harmony import */ var _formatErrorMessage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatErrorMessage */ \"./node_modules/schema-typed/es/utils/formatErrorMessage.js\");\n\n\n\n\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/index.js?");
10252
10252
 
10253
10253
  /***/ }),
10254
10254
 
@@ -10259,7 +10259,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
10259
10259
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10260
10260
 
10261
10261
  "use strict";
10262
- eval("__webpack_require__.r(__webpack_exports__);\nfunction isEmpty(value) {\n return typeof value === 'undefined' || value === null || value === '';\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isEmpty);\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/isEmpty.js?");
10262
+ eval("__webpack_require__.r(__webpack_exports__);\nfunction isEmpty(value) {\n return typeof value === 'undefined' || value === null || value === '';\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (isEmpty);\n//# sourceMappingURL=isEmpty.js.map\n\n//# sourceURL=webpack://rsuite/./node_modules/schema-typed/es/utils/isEmpty.js?");
10263
10263
 
10264
10264
  /***/ }),
10265
10265