"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.option = void 0;
var rich = {
    white: {
      color: "black",
      align: "center",
      padding: [5, 0]
    }
  },
  placeHolderStyle = {
    normal: {
      label: {
        show: !1
      },
      labelLine: {
        show: !1
      },
      color: "rgba(0, 0, 0, 0)",
      borderColor: "rgba(0, 0, 0, 0)",
      borderWidth: 0
    }
  },
  dataInfo = function(o, e) {
    for (var r = [], l = [{
        name: "公开设备",
        value: o,
        color: "#0099cc"
      }, {
        name: "私有设备",
        value: e,
        color: "#ff9900"
      }], a = 0; a < l.length; a++) r.push({
      value: l[a].value,
      name: l[a].name,
      itemStyle: {
        normal: {
          borderWidth: 4,
          shadowBlur: 10,
          color: "black",
          borderColor: l[a].color,
          shadowColor: "rgba(142, 152, 241, 0.6)"
        }
      }
    }, {
      value: 0,
      name: "",
      itemStyle: placeHolderStyle
    });
    return r
  },
  seriesObj = function(o, e) {
    return [{
      name: "",
      type: "pie",
      clockWise: !1,
      radius: [33, 36],
      hoverAnimation: !1,
      itemStyle: {
        normal: {
          label: {
            show: !1
          },
          labelLine: {
            show: !1
          }
        }
      },
      data: dataInfo(o, e)
    }]
  },
  option = function(o, e) {
    return {
      tooltip: {
        show: !1
      },
      legend: {
        show: !1
      },
      toolbox: {
        show: !1
      },
      series: seriesObj(o, e)
    }
  };
exports.option = option;
