"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
var _api = require("../../api");
require("./index.less");
var _JBXX = _interopRequireDefault(require("./JBXX"));
var _CZZ = _interopRequireDefault(require("./CZZ"));
var _CTL = _interopRequireDefault(require("./CTL"));
var _LDXX = _interopRequireDefault(require("./LDXX"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var BaseInfo = function BaseInfo(props) {
  var id = props.id,
    baseInfo = props.baseInfo,
    info = props.info;
  var _useSettings = (0, _useSettings2["default"])(),
    isDark = _useSettings.isDark,
    _useSettings$theme = _useSettings.theme,
    theme = _useSettings$theme === void 0 ? 'light' : _useSettings$theme;
  var isDeepTheme = isDark || theme === 'blue';
  var _BaseService$useCtlfx = _api.BaseService.useCtlfxAndLd(id),
    ctlfxAndLdData = _BaseService$useCtlfx.ctlfxAndLdData;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base ".concat(theme)
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-left"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-left-top jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_JBXX["default"], {
    baseInfo: baseInfo,
    info: info
  }))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-right"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-right-top"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-right-top-left jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_CZZ["default"], {
    id: id
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-right-top-right jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_CTL["default"], {
    isDeepTheme: isDeepTheme,
    ctlfxAndLdData: ctlfxAndLdData
  }))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-gcxm-base-right-bottom jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_LDXX["default"], {
    theme: theme,
    id: id,
    ctlfxAndLdData: ctlfxAndLdData
  }))));
};
var _default = exports["default"] = BaseInfo;
//# sourceMappingURL=index.js.map
