"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = BaseInner;
var _react = _interopRequireDefault(require("react"));
var _components = require("@vtx/components");
var _antd = require("antd");
var _utils = require("@vtx/utils");
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function BaseInner(_ref) {
  var photos = _ref.photos,
    data = _ref.data;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-top--base"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-top-img"
  }, photos.length ? (/*#__PURE__*/_react["default"].createElement(_components.VtxImage.PreviewGroup, null, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
    style: {
      width: '315px',
      height: '240px',
      overflow: 'hidden'
    }
  }, photos.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_components.VtxImage, {
      key: item.id,
      src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat((0, _utils.getVtxToken)('token')),
      alt: item.name,
      isDark: true,
      style: {
        maxHeight: '240px',
        overflow: 'hidden'
      }
    });
  })))) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null))), /*#__PURE__*/_react["default"].createElement("div", {
    className: 'base-top--base-list'
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u57FA\u672C\u4FE1\u606F"
  }), /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
    data: data,
    horizontal: true,
    ellipsis: true
  })));
}
//# sourceMappingURL=BaseInner.js.map
