"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _vtxDatagrid = _interopRequireDefault(require("@vtx/components/lib/vtx-datagrid"));
var _vtxPageLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-page-layout"));
var _ExportOutlined = _interopRequireDefault(require("@ant-design/icons/lib/icons/ExportOutlined"));
var _PlusOutlined = _interopRequireDefault(require("@ant-design/icons/PlusOutlined"));
var _DeleteOutlined = _interopRequireDefault(require("@ant-design/icons/DeleteOutlined"));
var _useDeleteRows = _interopRequireDefault(require("@/hooks/useDeleteRows"));
var _button = _interopRequireDefault(require("antd/lib/button"));
var _message = _interopRequireDefault(require("antd/lib/message"));
var _menu = _interopRequireDefault(require("antd/lib/menu"));
var _dropdown = _interopRequireDefault(require("antd/lib/dropdown"));
var _PublicService = _interopRequireDefault(require("../../_mapUtil/PublicService"));
var _request = _interopRequireDefault(require("../../_mapUtil/request"));
var _exportMethod = _interopRequireDefault(require("./exportMethod"));
var _index = _interopRequireDefault(require("./index.less"));
var _importBtn = _interopRequireDefault(require("./importBtn"));
var _moment = _interopRequireDefault(require("moment"));
var _Download = _interopRequireDefault(require("@/utils/Download"));
var _ExportNew = _interopRequireDefault(require("./ExportNew"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
var TableLayout = _vtxPageLayout["default"].TableLayout,
  ButtonWrap = _vtxPageLayout["default"].ButtonWrap;
function MyTable(props) {
  var _useState = (0, _react.useState)([]),
    _useState2 = _slicedToArray(_useState, 2),
    selectedRowKeys = _useState2[0],
    setSelectedRowKeys = _useState2[1];
  var _props$tableProps = props.tableProps,
    tableProps = _props$tableProps === void 0 ? {} : _props$tableProps,
    run = props.run,
    refresh = props.refresh,
    loading = props.loading,
    params = props.params,
    _props$toolbarTilte = props.toolbarTilte,
    toolbarTilte = _props$toolbarTilte === void 0 ? '' : _props$toolbarTilte,
    _props$top = props.top,
    top = _props$top === void 0 ? 10 : _props$top,
    customContent = props.customContent,
    _props$rowKey = props.rowKey,
    rowKey = _props$rowKey === void 0 ? 'id' : _props$rowKey,
    _props$contentStyle = props.contentStyle,
    contentStyle = _props$contentStyle === void 0 ? {} : _props$contentStyle,
    _props$toolbar = props.toolbar,
    toolbar = _props$toolbar === void 0 ? true : _props$toolbar,
    _props$showButtons = props.showButtons,
    showButtons = _props$showButtons === void 0 ? true : _props$showButtons,
    _props$showRowSelecti = props.showRowSelection,
    showRowSelection = _props$showRowSelecti === void 0 ? true : _props$showRowSelecti,
    _props$isAccess = props.isAccess,
    isAccess = _props$isAccess === void 0 ? false : _props$isAccess,
    _getCheckboxProps = props.getCheckboxProps,
    getSelectedKeys = props.getSelectedKeys,
    _props$cockpit = props.cockpit,
    cockpit = _props$cockpit === void 0 ? false : _props$cockpit,
    mulitDelParams = props.mulitDelParams,
    _props$hideEllipsis = props.hideEllipsis,
    hideEllipsis = _props$hideEllipsis === void 0 ? false : _props$hideEllipsis,
    _props$validateAdd = props.validateAdd,
    validateAdd = _props$validateAdd === void 0 ? true : _props$validateAdd,
    _props$validateDelete = props.validateDelete,
    validateDelete = _props$validateDelete === void 0 ? true : _props$validateDelete,
    _props$validateImport = props.validateImport,
    validateImport = _props$validateImport === void 0 ? true : _props$validateImport,
    _props$validateExport = props.validateExport,
    validateExport = _props$validateExport === void 0 ? true : _props$validateExport,
    _props$validateNewExp = props.validateNewExport,
    validateNewExport = _props$validateNewExp === void 0 ? true : _props$validateNewExp,
    columns = props.columns,
    _props$newExport = props.newExport,
    newExport = _props$newExport === void 0 ? false : _props$newExport,
    _props$addTitle = props.addTitle,
    addTitle = _props$addTitle === void 0 ? '' : _props$addTitle,
    _props$pagination = props.pagination,
    pagination = _props$pagination === void 0 ? true : _props$pagination,
    _props$indexColumn = props.indexColumn,
    indexColumn = _props$indexColumn === void 0 ? true : _props$indexColumn;
  // 触发查询时清空列表选中项
  (0, _react.useEffect)(function () {
    if (selectedRowKeys.length > 0) {
      setSelectedRowKeys([]);
    }
  }, [loading]);
  // 按钮权限验证
  var accessAdd = isAccess ? _PublicService["default"].checkAuth('ADD') : true;
  var accessDelete = isAccess ? _PublicService["default"].checkAuth('DELETE') : true;
  var importDelete = isAccess ? _PublicService["default"].checkAuth('IMPORT') : true;
  if (!hideEllipsis) {
    props.columns.map(function (item) {
      item.ellipsis = true;
    });
  }
  if (columns && columns.length) {
    var _loopData = function loopData(data) {
      if (data && data.length) {
        data.map(function (item) {
          if (item.options && !item.render) {
            item.render = function (text) {
              if (text !== undefined) {
                return _PublicService["default"].selectLabel(item.options, text);
              }
            };
          }
          if (item.format && !item.render) {
            item.render = function (text) {
              if (text) {
                return (0, _moment["default"])(text).format(item.format);
              }
            };
          }

          // 排序  方法(配置项增加排序类型sortType字段给定具体的排序类型 time: 时间排序、number：数值排序)
          if (item.sortType && item.sortType === 'time') {
            item.sorter = function (a, b) {
              return ((0, _moment["default"])(a[item.dataIndex]).valueOf() || 0) - ((0, _moment["default"])(b[item.dataIndex]).valueOf() || 0);
            };
          } else if (item.sortType && item.sortType === 'number') {
            item.sorter = function (a, b) {
              var _a = String(a[item.dataIndex]) ? a[item.dataIndex] : -10000;
              var _b = String(b[item.dataIndex]) ? b[item.dataIndex] : -10000;
              return Number(_a) - Number(_b);
            };
          }
          if (item.children && item.children.length) {
            _loopData(item.children);
          }
        });
      }
    };
    _loopData(columns);
  }
  var _ref = (tableProps === null || tableProps === void 0 ? void 0 : tableProps.pagination) || {},
    current = _ref.current,
    pageSize = _ref.pageSize,
    total = _ref.total;
  var dataGridProps = _objectSpread(_objectSpread({}, tableProps), {}, {
    toolbar: toolbar,
    toolbarTilte: toolbarTilte,
    columns: props.columns || [],
    startIndex: !tableProps.pagination ? 1 : (current - 1) * pageSize + 1,
    rowKey: rowKey,
    indexColumn: indexColumn,
    // //提交需删除
    // autoFit: false,
    mulitDelParams: mulitDelParams,
    rowSelection: showRowSelection ? {
      selectedRowKeys: selectedRowKeys,
      onChange: function onChange(selectedRowKeys, record) {
        setSelectedRowKeys(selectedRowKeys);
        getSelectedKeys && getSelectedKeys(selectedRowKeys, record);
      },
      getCheckboxProps: function getCheckboxProps(record) {
        return _getCheckboxProps && _getCheckboxProps(record);
      }
    } : null,
    onRowSelectionClear: function onRowSelectionClear() {
      return setSelectedRowKeys([]);
    },
    onRefresh: refresh
  });
  var onDelete = function onDelete(ids) {
    // const idList = JSON.stringify(ids);
    return _request["default"].post(props.deleteUrl, {
      body: mulitDelParams ? _defineProperty({}, mulitDelParams, ids) : ids
    })
    // .post(props.deleteUrl, { body: mulitDelParams ? idList : { [mulitDelParams]: idList } })
    .then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0') {
        _message["default"].success('删除成功');
        refresh();
        setSelectedRowKeys([]);
        return true;
      } else {
        _message["default"].error(res && res.msg || '删除失败');
      }
    });
  };

  // 删除
  var deleteRows = (0, _useDeleteRows["default"])(function (ids) {
    onDelete(ids);
  }, {
    current: current || 1,
    pageSize: pageSize || 10,
    total: total || 0,
    formData: params && params[1] || null,
    fetch: run
  });

  // 渲染按钮
  function renderBtnItem(_ref3) {
    var text = _ref3.text,
      onClick = _ref3.onClick,
      color = _ref3.color,
      icon = _ref3.icon,
      _ref3$animation = _ref3.animation,
      animation = _ref3$animation === void 0 ? false : _ref3$animation,
      type = _ref3.type,
      style = _ref3.style;
    return /*#__PURE__*/_react["default"].createElement(_button["default"], {
      icon: icon,
      onClick: onClick,
      className: _index["default"].functionItem,
      type: type,
      style: style
    }, /*#__PURE__*/_react["default"].createElement("span", null, text));
  }

  // 导入
  function menuImport() {
    var _props$importConfig = props.importConfig,
      importConfig = _props$importConfig === void 0 ? {} : _props$importConfig;
    // const uploadProps = {
    //   name: 'file',
    //   action: importBtnUrl,
    //   accept: '.xls, .xlsx',
    //   headers: {'Authorization': `Bearer ${token}`},
    //   showUploadList: false,
    //   onChange(info) {
    //     if (info.file.status !== 'uploading') {
    //       console.log(info.file, info.fileList);
    //     }
    //     if (info.file.status === 'done') {
    //       message.success(`${info.file.name} 上传成功`);
    //     } else if (info.file.status === 'error') {
    //       message.error(`${info.file.name} 上传失败`);
    //     }
    //   },
    //   onSuccess(info) {
    //     if (info.rc !== 0) {
    //       message.error(info.err || info.message);
    //     } else {
    //       message.success('文件上传成功');
    //       upSuccess && upSuccess();
    //     }
    //   },
    // };
    if (importConfig.hasOwnProperty('uploadURL') && importConfig.uploadURL) {
      return /*#__PURE__*/_react["default"].createElement(_importBtn["default"], _extends({}, importConfig, {
        title: toolbarTilte,
        refresh: refresh
      }));
    }
  }

  // 导入 下载模板需带token，伏泰组件不支持
  // function menuImport() {
  //   const [visible, setVisible] = useState(false);
  //   let { importConfig = {} } = props;
  //   let { showImport } = importConfig;
  //   let { token } = getUrlParam();
  //   if (importConfig.templateURL) {
  //     importConfig.templateURL = importConfig.templateURL + `?Authorization: Bearer ${token}`
  //   }
  //   if (showImport) {
  //     return (
  //       <>
  //         <Button onClick={() => setVisible(true)}>
  //           导入
  //         </Button>
  //         {visible && (
  //           <VtxImport
  //             visible={visible}
  //             accept='application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv'
  //             close={() => setVisible(false)}
  //             afterUpload={(data) => {
  //               if (String(data?.result) === '0') {
  //                 setVisible(false)
  //                 message.success(data?.msg)
  //               }
  //             }}
  //             {...importConfig}
  //           />
  //         )}
  //       </>
  //     )
  //   }
  // }

  // 导出
  function renderExport() {
    var _props$exportConfig = props.exportConfig,
      exportConfig = _props$exportConfig === void 0 ? {} : _props$exportConfig,
      _props$exportList = props.exportList,
      exportList = _props$exportList === void 0 ? [] : _props$exportList,
      _props$overlayShow = props.overlayShow,
      overlayShow = _props$overlayShow === void 0 ? true : _props$overlayShow;
    var showExport = exportConfig.showExport,
      getExtraParams = exportConfig.getExtraParams,
      downloadURL = exportConfig.downloadURL,
      _exportConfig$method = exportConfig.method,
      method = _exportConfig$method === void 0 ? 'GET' : _exportConfig$method;
    var _tableProps$dataSourc = tableProps.dataSource,
      dataSource = _tableProps$dataSourc === void 0 ? [] : _tableProps$dataSourc;
    var list = exportList.length ? exportList : [{
      name: '导出选中行',
      key: 'select'
    }, {
      name: '导出当前页',
      key: 'page'
    }, {
      name: '导出全部',
      key: 'all'
    }];
    if (showExport) {
      var exportBtns = function exportBtns(key) {
        var params = getExtraParams ? getExtraParams(key) : {};
        if (downloadURL) {
          (0, _exportMethod["default"])({
            url: downloadURL,
            selectedRows: selectedRowKeys,
            tableData: dataSource,
            type: key,
            params: params,
            method: method
          });
        }
      };
      var overlay = /*#__PURE__*/_react["default"].createElement(_menu["default"], {
        onClick: function onClick(_ref4) {
          var key = _ref4.key;
          return exportBtns(key);
        }
      }, list.map(function (item, index) {
        return /*#__PURE__*/_react["default"].createElement(_menu["default"].Item, {
          key: item.key
        }, !!index && /*#__PURE__*/_react["default"].createElement("span", {
          className: _index["default"].exportLine
        }, " "), item.name);
      }));
      return overlayShow ? /*#__PURE__*/_react["default"].createElement(_dropdown["default"], {
        overlay: overlay,
        trigger: ['click']
      }, renderBtnItem({
        text: '导出',
        color: '#39BBFF',
        icon: /*#__PURE__*/_react["default"].createElement(_ExportOutlined["default"], null)
      })) : renderBtnItem({
        text: '导出',
        color: '#39BBFF',
        icon: /*#__PURE__*/_react["default"].createElement(_ExportOutlined["default"], null),
        onClick: exportBtns('all')
      });
    }
  }
  //cctv 导出
  function renderNewExport() {
    var _props$newExportConfi = props.newExportConfig,
      newExportConfig = _props$newExportConfi === void 0 ? {} : _props$newExportConfi,
      _props$exportList2 = props.exportList,
      exportList = _props$exportList2 === void 0 ? [] : _props$exportList2,
      _props$overlayShow2 = props.overlayShow,
      overlayShow = _props$overlayShow2 === void 0 ? true : _props$overlayShow2;
    var showExport = newExportConfig.showExport,
      downloadURL = newExportConfig.downloadURL,
      _newExportConfig$meth = newExportConfig.method,
      method = _newExportConfig$meth === void 0 ? 'GET' : _newExportConfig$meth;
    var list = exportList.length ? exportList : [{
      name: '导出选中行',
      key: 'select'
    }
    // { name: '导出当前页', key: 'page' },
    // { name: '导出全部', key: 'all' },
    ];
    if (showExport) {
      var exportBtns = function exportBtns(key) {
        if (downloadURL && selectedRowKeys && selectedRowKeys.length) {
          for (var i = 0; i < selectedRowKeys.length; i++) {
            (0, _Download["default"])({
              url: downloadURL,
              params: [selectedRowKeys[i]],
              method: method
            });
          }
        }
      };
      var overlay = /*#__PURE__*/_react["default"].createElement(_menu["default"], {
        onClick: function onClick(_ref5) {
          var key = _ref5.key;
          return exportBtns(key);
        }
      }, list.map(function (item, index) {
        return /*#__PURE__*/_react["default"].createElement(_menu["default"].Item, {
          key: item.key
        }, !!index && /*#__PURE__*/_react["default"].createElement("span", {
          className: _index["default"].exportLine
        }, " "), item.name);
      }));
      return overlayShow ? /*#__PURE__*/_react["default"].createElement(_dropdown["default"], {
        overlay: overlay,
        trigger: ['click']
      }, renderBtnItem({
        text: '导出',
        color: '#39BBFF',
        icon: /*#__PURE__*/_react["default"].createElement(_ExportOutlined["default"], null)
      })) : renderBtnItem({
        text: '导出',
        color: '#39BBFF',
        icon: /*#__PURE__*/_react["default"].createElement(_ExportOutlined["default"], null),
        onClick: exportBtns('all')
      });
    }
  }

  // 新导出
  function renderOtherExport() {
    var _props$exportConfig2 = props.exportConfig,
      exportConfig = _props$exportConfig2 === void 0 ? {} : _props$exportConfig2;
    var showNewExport = exportConfig.showNewExport,
      _exportConfig$newExpo = exportConfig.newExportConfig,
      newExportConfig = _exportConfig$newExpo === void 0 ? {} : _exportConfig$newExpo,
      getExtraNewParams = exportConfig.getExtraNewParams;
    var params = getExtraNewParams && getExtraNewParams();
    var exportProps = _objectSpread(_objectSpread({
      selectedRowKeys: selectedRowKeys,
      tableData: tableProps.dataSource
    }, newExportConfig), params);
    if (showNewExport) {
      return /*#__PURE__*/_react["default"].createElement(_ExportNew["default"], exportProps);
    }
  }
  function renderButtons() {
    var _props$extraBtn = props.extraBtn,
      extraBtn = _props$extraBtn === void 0 ? [] : _props$extraBtn,
      _props$extraBeforeBtn = props.extraBeforeBtn,
      extraBeforeBtn = _props$extraBeforeBtn === void 0 ? [] : _props$extraBeforeBtn,
      hideAddBtn = props.hideAddBtn,
      hideDeleteBtn = props.hideDeleteBtn;
    return /*#__PURE__*/_react["default"].createElement(ButtonWrap, null, extraBeforeBtn && extraBeforeBtn.length > 0 && extraBeforeBtn.map(function (item, index) {
      if (item.render) {
        return item.render();
      } else {
        if (item.visible) {
          return /*#__PURE__*/_react["default"].createElement("span", {
            key: index,
            style: {
              marginRight: 8
            }
          }, renderBtnItem(item));
        }
      }
    }), !hideAddBtn && accessAdd && validateAdd && /*#__PURE__*/_react["default"].createElement(_button["default"], {
      icon: /*#__PURE__*/_react["default"].createElement(_PlusOutlined["default"], null),
      type: "primary",
      onClick: function onClick() {
        props.onModalShow && props.onModalShow(addTitle ? addTitle : '新增', {});
      }
    }, addTitle ? addTitle : '新增'), !hideDeleteBtn && accessDelete && validateDelete && /*#__PURE__*/_react["default"].createElement(_button["default"], {
      icon: /*#__PURE__*/_react["default"].createElement(_DeleteOutlined["default"], null),
      danger: true,
      ghost: true,
      disabled: selectedRowKeys.length == 0,
      onClick: function onClick() {
        return deleteRows.model(selectedRowKeys);
      }
    }, "\u5220\u9664"), newExport && renderNewExport(), validateExport && renderExport(), validateNewExport && renderOtherExport(), importDelete && validateImport && menuImport(), extraBtn && extraBtn.length > 0 && extraBtn.map(function (item, index) {
      return /*#__PURE__*/_react["default"].createElement("span", {
        key: index,
        style: {
          marginLeft: 8
        }
      }, renderBtnItem(item));
    }));
  }
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, cockpit ? /*#__PURE__*/_react["default"].createElement("div", {
    className: _index["default"].cockpitTable,
    style: contentStyle
  }, /*#__PURE__*/_react["default"].createElement(_vtxDatagrid["default"], _extends({}, dataGridProps, {
    buttonGroup: showButtons ? renderButtons() : null
  }))) : /*#__PURE__*/_react["default"].createElement(TableLayout.Content, {
    style: contentStyle
  }, customContent && customContent(), /*#__PURE__*/_react["default"].createElement(TableLayout.Table, {
    top: top
  }, /*#__PURE__*/_react["default"].createElement(_vtxDatagrid["default"], _extends({}, dataGridProps, {
    buttonGroup: showButtons ? renderButtons() : null
    // pagination={pagination}
  })))));
}
var _default = exports["default"] = MyTable;
//# sourceMappingURL=index.js.map
