"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _vtxBaseModal = _interopRequireDefault(require("../vtx-base-modal"));
var _components = require("./components");
var _api = require("./api");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var TABS = [{
  key: 'overview',
  title: '综合总览'
}, {
  key: 'wggs',
  title: '违规人公示'
}, {
  key: 'tfrd',
  title: '居民投放热度'
}, {
  key: 'wgxw',
  title: '居民违规行为'
}, {
  key: 'alarm',
  title: '报警事件分析'
}, {
  key: 'video',
  title: '视频监控'
}, {
  key: 'device',
  title: '设备自检'
}];
var VtxHousingEstateModal = function VtxHousingEstateModal(props) {
  var _props$visible = props.visible,
    visible = _props$visible === void 0 ? false : _props$visible,
    onCancel = props.onCancel,
    _props$theme = props.theme,
    theme = _props$theme === void 0 ? 'dark' : _props$theme,
    _props$title = props.title,
    title = _props$title === void 0 ? '' : _props$title,
    id = props.id;
  var PREFIX = 'estate';
  var throwPoints = _api.overViewService.throwPoints({
    housingEstateId: id
  });
  var tabContents = {
    overview: /*#__PURE__*/_react["default"].createElement(_components.OverView, {
      classPrefix: PREFIX,
      id: id,
      throwPoints: throwPoints
    }),
    wggs: /*#__PURE__*/_react["default"].createElement(_components.WGGS, {
      classPrefix: PREFIX
    }),
    tfrd: /*#__PURE__*/_react["default"].createElement(_components.TFRD, {
      classPrefix: PREFIX,
      id: id
    }),
    alarm: /*#__PURE__*/_react["default"].createElement(_components.Alarm, {
      classPrefix: PREFIX
    }),
    wgxw: /*#__PURE__*/_react["default"].createElement(_components.WGXW, {
      classPrefix: PREFIX,
      id: id
    }),
    video: /*#__PURE__*/_react["default"].createElement(_components.SPJK, {
      classPrefix: PREFIX
    })
    // device: <SBZJ classPrefix={PREFIX} />
  };

  return /*#__PURE__*/_react["default"].createElement(_vtxBaseModal["default"], {
    title: title,
    theme: theme,
    tabs: TABS,
    contents: tabContents,
    visible: visible,
    onCancel: onCancel
  });
};
var _default = VtxHousingEstateModal;
exports["default"] = _default;
//# sourceMappingURL=index.js.map
