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); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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); }
import VtxBaseModal from "../vtx-base-modal";
import { BaseInfo } from "./components";
import "./style";
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
var TABS_BASE = 'base';
var VtxZgModal = function VtxZgModal(props) {
  var id = props.id,
    title = props.title,
    theme = props.theme,
    source = props.source,
    visible = props.visible,
    onCancel = props.onCancel,
    tabChose = props.tabChose;
  var tabs = [{
    key: TABS_BASE,
    title: '总览信息'
  }];
  var contents = _defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
    id: id
  }));
  return /*#__PURE__*/_jsx(_Fragment, {
    children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
      id: id,
      type: "facility",
      source: source,
      title: title,
      width: 1250,
      top: 10,
      theme: theme,
      visible: visible,
      onCancel: onCancel,
      tabs: tabs,
      tabChose: tabChose,
      contents: contents
    })
  });
};
export default VtxZgModal;