"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = void 0;
var _react = _interopRequireWildcard(require("react")),
  _amosAntd = require("amos-antd"),
  _amosFramework = require("amos-framework"),
  _TubeEquipNum = _interopRequireDefault(require("./statistics/TubeEquipNum")),
  _Task = _interopRequireDefault(require("./statistics/Task")),
  _AccountInfo = _interopRequireDefault(require("./statistics/AccountInfo")),
  _Alarm = _interopRequireDefault(require("./statistics/Alarm")),
  _EquipInterface = _interopRequireDefault(require("./statistics/EquipInterface")),
  _EquipProtocol = _interopRequireDefault(require("./statistics/EquipProtocol")),
  _PrototypeEquip = _interopRequireDefault(require("./statistics/PrototypeEquip")),
  _outterUrlConsts = require("../../../consts/outterUrlConsts");

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}

function _getRequireWildcardCache() {
  if ("function" != typeof WeakMap) return null;
  var e = new WeakMap;
  return _getRequireWildcardCache = function() {
    return e
  }, e
}

function _interopRequireWildcard(e) {
  if (e && e.__esModule) return e;
  if (null === e || "object" !== _typeof(e) && "function" != typeof e) return {
    default: e
  };
  var t = _getRequireWildcardCache();
  if (t && t.has(e)) return t.get(e);
  var r, a, o = {},
    n = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (r in e) Object.prototype.hasOwnProperty.call(e, r) && ((a = n ? Object.getOwnPropertyDescriptor(e, r) : null) && (a.get || a.set) ? Object.defineProperty(o, r, a) : o[r] = e[r]);
  return o.default = e, t && t.set(e, o), o
}

function _typeof(e) {
  return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
    return typeof e
  } : function(e) {
    return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
  })(e)
}

function _classCallCheck(e, t) {
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}

function _defineProperties(e, t) {
  for (var r = 0; r < t.length; r++) {
    var a = t[r];
    a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  }
}

function _createClass(e, t, r) {
  return t && _defineProperties(e.prototype, t), r && _defineProperties(e, r), e
}

function _inherits(e, t) {
  if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
  e.prototype = Object.create(t && t.prototype, {
    constructor: {
      value: e,
      writable: !0,
      configurable: !0
    }
  }), t && _setPrototypeOf(e, t)
}

function _setPrototypeOf(e, t) {
  return (_setPrototypeOf = Object.setPrototypeOf || function(e, t) {
    return e.__proto__ = t, e
  })(e, t)
}

function _createSuper(r) {
  var a = _isNativeReflectConstruct();
  return function() {
    var e, t = _getPrototypeOf(r);
    return _possibleConstructorReturn(this, a ? (e = _getPrototypeOf(this).constructor, Reflect.construct(t, arguments, e)) : t.apply(this, arguments))
  }
}

function _possibleConstructorReturn(e, t) {
  return !t || "object" !== _typeof(t) && "function" != typeof t ? _assertThisInitialized(e) : t
}

function _assertThisInitialized(e) {
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return e
}

function _isNativeReflectConstruct() {
  if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
  if (Reflect.construct.sham) return !1;
  if ("function" == typeof Proxy) return !0;
  try {
    return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0
  } catch (e) {
    return !1
  }
}

function _getPrototypeOf(e) {
  return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
    return e.__proto__ || Object.getPrototypeOf(e)
  })(e)
}
require("./index.scss");
var Overview = function() {
  _inherits(r, _react.Component);
  var t = _createSuper(r);

  function r(e) {
    return _classCallCheck(this, r), t.call(this, e)
  }
  return _createClass(r, [{
    key: "render",
    value: function() {
      return _react.default.createElement(_amosFramework.Scrollbars, null, _react.default.createElement("div", {
        className: "overview-container",
        style: {
          width: "100%",
          height: "100%"
        }
      }, _react.default.createElement("div", {
        className: "overview-left"
      }, _react.default.createElement("div", {
        className: "overview-item overview-tubeequipnum"
      }, _react.default.createElement(_amosAntd.Card, {
        title: "纳管设备数量统计"
      }, _react.default.createElement(_TubeEquipNum.default, null))), _react.default.createElement("div", {
        className: "overview-item overview-task"
      }, _react.default.createElement(_amosAntd.Card, {
        title: "任务统计"
      }, _react.default.createElement(_Task.default, null)))), _react.default.createElement("div", {
        className: "overview-right"
      }, _react.default.createElement("div", {
        className: "overview-item overview-alarm"
      }, _react.default.createElement(_amosAntd.Card, {
        title: "告警统计"
      }, _react.default.createElement(_Alarm.default, null))), _react.default.createElement("div", {
        className: "overview-item overview-equipinterface"
      }, _react.default.createElement(_amosAntd.Card, {
        title: _react.default.createElement("span", null, "通信方式统计")
      }, _react.default.createElement(_EquipInterface.default, null))), _react.default.createElement("div", {
        className: "overview-item overview-equipprotocol"
      }, _react.default.createElement(_amosAntd.Card, {
        title: _react.default.createElement("span", null, "通信协议统计")
      }, _react.default.createElement(_EquipProtocol.default, null))), _react.default.createElement("div", {
        className: "overview-item overview-prototypeequip"
      }, _react.default.createElement(_amosAntd.Card, {
        title: "原型设备统计"
      }, _react.default.createElement(_PrototypeEquip.default, null))))))
    }
  }]), r
}();
Overview.displayName = "Overview";
var _default = Overview;
exports.default = Overview, module.exports = exports.default;
