"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _antd = require("antd");

var _propTypes = _interopRequireDefault(require("prop-types"));

var _utils = require("@vtx/utils");

require("./style");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _getUrlParam = (0, _utils.getUrlParam)(),
    tenantId = _getUrlParam.tenantId,
    userId = _getUrlParam.userId,
    token = _getUrlParam.token;

var VmCarHistory = function VmCarHistory(props) {
  var carId = props.carId,
      setVisible = props.setVisible;
  var url = "".concat(origin, "/carHistory/#/index?tenantId=").concat(tenantId, "&userId=").concat(userId, "&token=").concat(token, "&carId=").concat(carId);
  return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
    visible: true,
    footer: null,
    onCancel: function onCancel() {
      return setVisible(false);
    },
    width: '100%',
    maximize: false,
    wrapClassName: 'modal-view-wrap',
    bodyStyle: {
      background: 'linear-gradient(0deg, rgba(106, 113, 111, 0.5), rgba(50, 58, 58, 0))',
      color: '#fff',
      height: '768px',
      borderRadius: '10px',
      width: '100%',
      padding: 0
    }
  }, /*#__PURE__*/_react["default"].createElement("iframe", {
    style: {
      width: '100%',
      minHeight: '768px',
      height: '100%',
      border: 0
    },
    src: url
  }));
};

VmCarHistory.propTypes = {
  carId: _propTypes["default"].string,
  setVisible: _propTypes["default"].func
};
var _default = VmCarHistory;
exports["default"] = _default;
//# sourceMappingURL=index.js.map
