"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/charts/index.ts
var charts_exports = {};
__export(charts_exports, {
  EchartDefaultProps: () => EchartDefaultProps,
  HorizontalBarChart: () => HorizontalBarChart
});
module.exports = __toCommonJS(charts_exports);

// src/charts/horizontal-bar-chart.tsx
var import_jsx_runtime = require("react/jsx-runtime");
function HorizontalBarChart(props) {
  const { total, value, backgroundColor, barColor, height } = props;
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
    "div",
    {
      className: "tipp_horizontal-bar-chart bar-wrapper",
      style: { height, backgroundColor },
      children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
        "div",
        {
          style: {
            width: `${Math.round(value / total * 100)}%`,
            height: "100%"
          },
          children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
        }
      )
    }
  );
}

// src/charts/chart-theme.json
var chart_theme_default = {
  version: 1,
  themeName: "customed",
  theme: {
    seriesCnt: "5",
    backgroundColor: "rgba(0,0,0,0)",
    titleColor: "#1c2024",
    subtitleColor: "#8d8d8d",
    textColorShow: false,
    textColor: "#333",
    markTextColor: "#ffffff",
    color: [
      "#ffe629",
      "#3e63dd",
      "#ec9455",
      "#5bb98b",
      "#cb1d63",
      "#3ba272",
      "#fc8452",
      "#9a60b4",
      "#ea7ccc"
    ],
    borderColor: "#8d8d8d",
    borderWidth: 0,
    visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
    legendTextColor: "#1c2024",
    kColor: "#eb5454",
    kColor0: "#47b262",
    kBorderColor: "#eb5454",
    kBorderColor0: "#47b262",
    kBorderWidth: 1,
    lineWidth: 2,
    symbolSize: 4,
    symbol: "emptyCircle",
    symbolBorderWidth: 1,
    lineSmooth: false,
    graphLineWidth: 1,
    graphLineColor: "#aaa",
    mapLabelColor: "#000",
    mapLabelColorE: "rgb(100,0,0)",
    mapBorderColor: "#444",
    mapBorderColorE: "#444",
    mapBorderWidth: 0.5,
    mapBorderWidthE: 1,
    mapAreaColor: "#eee",
    mapAreaColorE: "rgba(255,215,0,0.8)",
    axes: [
      {
        type: "all",
        name: "\u901A\u7528\u5750\u6807\u8F74",
        axisLineShow: true,
        axisLineColor: "#6E7079",
        axisTickShow: true,
        axisTickColor: "#6E7079",
        axisLabelShow: true,
        axisLabelColor: "#6E7079",
        splitLineShow: true,
        splitLineColor: ["#E0E6F1"],
        splitAreaShow: false,
        splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
      },
      {
        type: "category",
        name: "\u7C7B\u76EE\u5750\u6807\u8F74",
        axisLineShow: true,
        axisLineColor: "#6E7079",
        axisTickShow: true,
        axisTickColor: "#6E7079",
        axisLabelShow: true,
        axisLabelColor: "#6E7079",
        splitLineShow: false,
        splitLineColor: ["#E0E6F1"],
        splitAreaShow: false,
        splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
      },
      {
        type: "value",
        name: "\u6570\u503C\u5750\u6807\u8F74",
        axisLineShow: false,
        axisLineColor: "#6E7079",
        axisTickShow: false,
        axisTickColor: "#6E7079",
        axisLabelShow: true,
        axisLabelColor: "#6E7079",
        splitLineShow: true,
        splitLineColor: ["#E0E6F1"],
        splitAreaShow: false,
        splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
      },
      {
        type: "log",
        name: "\u5BF9\u6570\u5750\u6807\u8F74",
        axisLineShow: false,
        axisLineColor: "#6E7079",
        axisTickShow: false,
        axisTickColor: "#6E7079",
        axisLabelShow: true,
        axisLabelColor: "#6E7079",
        splitLineShow: true,
        splitLineColor: ["#E0E6F1"],
        splitAreaShow: false,
        splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
      },
      {
        type: "time",
        name: "\u65F6\u95F4\u5750\u6807\u8F74",
        axisLineShow: true,
        axisLineColor: "#6E7079",
        axisTickShow: true,
        axisTickColor: "#6E7079",
        axisLabelShow: true,
        axisLabelColor: "#6E7079",
        splitLineShow: false,
        splitLineColor: ["#E0E6F1"],
        splitAreaShow: false,
        splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
      }
    ],
    axisSeperateSetting: true,
    toolboxColor: "#8d8d8d",
    toolboxEmphasisColor: "#1c2024",
    tooltipAxisColor: "#cccccc",
    tooltipAxisWidth: 1,
    timelineLineColor: "#dae1f5",
    timelineLineWidth: 2,
    timelineItemColor: "#a4b1d7",
    timelineItemColorE: "#ffffff",
    timelineCheckColor: "#316bf3",
    timelineCheckBorderColor: "#ffffff",
    timelineItemBorderWidth: 1,
    timelineControlColor: "#a4b1d7",
    timelineControlBorderColor: "#a4b1d7",
    timelineControlBorderWidth: 1,
    timelineLabelColor: "#a4b1d7"
  }
};

// src/charts/chart-default-props.tsx
var EchartDefaultProps = {
  opts: { renderer: "svg" },
  theme: chart_theme_default,
  option: {
    textStyle: { fontFamily: "Noto Sans KR" },
    tooltip: { textStyle: { fontSize: 16 } }
  }
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  EchartDefaultProps,
  HorizontalBarChart
});
//# sourceMappingURL=index.cjs.map