"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
var _vmCharts = require("../../../vm-charts");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var getPieOption = function getPieOption() {
  return {
    tooltip: {
      trigger: 'item'
    },
    legend: {
      top: 'center',
      left: '45%',
      type: 'scroll',
      orient: 'vertical',
      formatter: function formatter(name) {
        return "{a|".concat(name, "}{a|20\u6B21}{a|\u5747\u503C\uFF1A30\u6B21}");
      },
      textStyle: {
        color: '#fff',
        rich: {
          a: {
            width: 60
          }
        }
      }
    },
    series: [{
      name: 'Access From',
      type: 'pie',
      radius: ['50%', '70%'],
      center: ['25%', '50%'],
      avoidLabelOverlap: false,
      labelLine: {
        show: false
      },
      label: {
        show: false
      },
      data: [{
        value: 1048,
        name: 'Search'
      }, {
        value: 735,
        name: 'Direct'
      }, {
        value: 580,
        name: 'Email'
      }, {
        value: 484,
        name: 'Union'
      }, {
        value: 300,
        name: 'Video'
      }]
    }]
  };
};
var MY = function MY(_ref) {
  var _ref$classPrefix = _ref.classPrefix,
    classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-ldb")
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-ldb-item")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u5DE5\u5355\u5904\u7406\u6548\u7387"
  }), /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      flex: 1,
      display: 'flex'
    }
  }, /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/_react["default"].createElement(_vmCharts.Gauge1, null)))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-ldb-item")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u6EE1\u6EA2\u5783\u573E\u7C7B\u578B\u5360\u6BD4"
  }), /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
    option: getPieOption(),
    style: {
      width: '100%',
      height: '100%'
    }
  }))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-ldb-item")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u6EE1\u6EA2\u65F6\u6BB5\u5206\u5E03"
  }), /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/_react["default"].createElement(_vmCharts.Distribute1, null))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(classPrefix, "-ldb-item")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u6EE1\u6EA2\u4E00\u5468\u53D8\u5316\u8D8B\u52BF"
  }), /*#__PURE__*/_react["default"].createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/_react["default"].createElement(_vmCharts.Line1, null))));
};
var _default = MY;
exports["default"] = _default;
//# sourceMappingURL=MY.js.map
