"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(e) { return e && e.__esModule ? e : { "default": e }; }
var TABS = [{
  key: 'overview',
  title: '综合总览'
}];
var VtxFaciityModal = function VtxFaciityModal(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,
    customMapInfo = props.customMapInfo;
  var PREFIX = 'facility';
  // 基础设施基本信息
  var basicInfo = _api.overViewService.estateStatistics({
    id: id
  });
  var tabContents = {
    overview: (/*#__PURE__*/_react["default"].createElement(_components.OverView, {
      classPrefix: PREFIX,
      id: id,
      basicInfo: basicInfo,
      customMapInfo: customMapInfo
    }))
  };
  return /*#__PURE__*/_react["default"].createElement(_vtxBaseModal["default"], {
    title: (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.name) || title,
    theme: theme,
    tabs: TABS,
    contents: tabContents,
    visible: visible,
    onCancel: onCancel
  });
};
var _default = exports["default"] = VtxFaciityModal;
//# sourceMappingURL=index.js.map
