"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");
var _moment = _interopRequireDefault(require("moment"));
require("./index.less");
var _JBXX = _interopRequireDefault(require("./JBXX"));
var _YXXX = _interopRequireDefault(require("./YXXX"));
var _SSXX = _interopRequireDefault(require("./SSXX"));
var _YXFX = _interopRequireDefault(require("./YXFX"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var BaseInfo = function BaseInfo(props) {
  var id = props.id,
    baseInfo = props.baseInfo,
    _props$info = props.info,
    info = _props$info === void 0 ? {} : _props$info;
  var _useSettings = (0, _useSettings2["default"])(),
    _useSettings$theme = _useSettings.theme,
    theme = _useSettings$theme === void 0 ? 'light' : _useSettings$theme;
  var _BaseService$useZlOth = _api.BaseService.useZlOtherInfo(id, (0, _moment["default"])().format('YYYY-MM-DD'), (0, _moment["default"])().format('YYYY-MM-DD'), window.location.origin),
    zlOtherInfoData = _BaseService$useZlOth.zlOtherInfoData;
  var _ref = zlOtherInfoData || {},
    qrCode = _ref.qrCode,
    sxzczzCount = _ref.sxzczzCount;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base ".concat(theme)
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-left"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-left-top jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_JBXX["default"], {
    baseInfo: baseInfo,
    qrCode: qrCode
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-left-bottom jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_SSXX["default"], {
    info: info,
    sxzczzCount: sxzczzCount
  }))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-right"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-right-top jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_YXXX["default"], {
    id: id
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "jzlj-car-base-right-bottom jzlj-card"
  }, /*#__PURE__*/_react["default"].createElement(_YXFX["default"], {
    theme: theme,
    id: id
  }))));
};
var _default = exports["default"] = BaseInfo;
//# sourceMappingURL=index.js.map
