"use strict";

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

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

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

var _vmGasModal = _interopRequireDefault(require("../vm-gas-modal"));

var _UserFJMBaseContent = _interopRequireDefault(require("./UserFJMBaseContent"));

var _securityCheckRecord = _interopRequireDefault(require("./securityCheckRecord"));

var _excluded = ["info"];

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

function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var TABS_BASE = 'gas-user-base';
var TABS_SECURITYCHECKRECORD = 'gas-user-security-check-record';

var UserFJMModal = function UserFJMModal(_ref) {
  var info = _ref.info,
      resetProps = _objectWithoutProperties(_ref, _excluded);

  var tabs = [{
    value: '详情',
    content: /*#__PURE__*/_react["default"].createElement(_UserFJMBaseContent["default"], {
      info: info
    }),
    key: TABS_BASE
  }, {
    value: '入户安检记录',
    content: /*#__PURE__*/_react["default"].createElement(_securityCheckRecord["default"], {
      id: info.id
    }),
    key: TABS_SECURITYCHECKRECORD
  }];
  return /*#__PURE__*/_react["default"].createElement(_vmGasModal["default"], _extends({
    tabs: tabs,
    title: "\u7528\u6237\uFF08\u975E\u5C45\u6C11\uFF09"
  }, resetProps));
};

UserFJMModal.propTypes = {
  info: _propTypes["default"].object
};
var _default = UserFJMModal;
exports["default"] = _default;
//# sourceMappingURL=userFJMModal.js.map
