import { _ as __extends } from './index.js';
import { b as bindLifecycle } from './bindLifecycle.js';
import { BaseQuery, BaseTableOld, BaseListOld } from '@lm_fe/components_m';
import { APP_CONFIG } from '@lm_fe/env';
import 'react';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/get';
import '@lm_fe/utils';
import 'lodash/orderBy';
import 'lodash/map';
import '@lm_fe/components';
import 'antd/es/collapse/style';
import 'antd/es/collapse';
import 'antd/es/badge/style';
import 'antd/es/badge';
import 'antd/es/button/style';
import 'antd/es/button';
import 'lodash/assign';
import '@ant-design/icons';
import '@lm_fe/service';
import '@lm_fe/pages';
import './hoist-non-react-statics.cjs.js';
var tableColumns = [{
  title: '姓名',
  dataIndex: 'name',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  align: 'center'
}, {
  title: '证件号码',
  dataIndex: 'idNo',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  align: 'center'
}, {
  title: '手机号码',
  dataIndex: 'telephone',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  align: 'center'
}, {
  title: '预约课程数',
  dataIndex: 'reservationNum',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  align: 'center'
}, {
  title: '取消次数',
  dataIndex: 'cancelNum',
  ellipsis: true,
  width: 100,
  align: 'center'
}, {
  title: '已完成课程',
  dataIndex: 'signNum',
  ellipsis: true,
  width: 0.5 * APP_CONFIG.CELL_WIDTH_SMALL,
  align: 'center'
}];
var queryFormDescriptions = {
  'pregnancy.idNO': {
    label: '证件号码',
    inputType: 'input',
    filterType: '',
    style: {
      width: 150
    }
  },
  'pregnancy.name': {
    label: '姓名',
    inputType: 'input',
    filterType: '',
    style: {
      width: 150
    }
  }
};
var Query = function (_super) {
  __extends(Query, _super);
  function Query() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.state = {
      queryFormDescriptions: queryFormDescriptions
    };
    return _this;
  }
  return Query;
}(BaseQuery);
var RepositoryTable = function (_super) {
  __extends(RepositoryTable, _super);
  function RepositoryTable() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return RepositoryTable;
}(BaseTableOld);
var List = function (_super) {
  __extends(List, _super);
  function List() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  List.defaultProps = {
    baseUrl: '/api/courses/statistics',
    baseTitle: '个人统计',
    needPagination: true,
    showQuery: true,
    showAdd: false,
    tableColumns: tableColumns,
    rowKey: 'id',
    Table: RepositoryTable,
    Query: Query,
    className: 'personal-statistics-list-container'
  };
  return List;
}(BaseListOld);
var List$1 = bindLifecycle(List);
export { List$1 as default };
//# sourceMappingURL=pages.pregnant-school.personal-statistics.js.map
