import { defineComponent, toRefs, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, toDisplayString } from "vue";
import "./index.vue_vue_type_style_index_0_scoped_true_lang.mjs";
import _export_sfc from "../../../../_virtual/plugin-vue_export-helper.mjs";
const _hoisted_1 = {
  width: 20,
  height: 20
};
const _hoisted_2 = ["stroke"];
const _hoisted_3 = ["stroke"];
const _hoisted_4 = {
  width: 20,
  height: 20
};
const _hoisted_5 = ["stroke"];
const _hoisted_6 = ["stroke"];
const __default__ = defineComponent({ name: "EDecorates03" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { w, h } = toRefs(props.chartConfig.attr);
    const { colors, dataset, textSize, textColor } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", {
        class: "go-border-03",
        style: normalizeStyle(`width: ${unref(w)}px; height: ${unref(h)}px`)
      }, [
        (openBlock(), createElementBlock("svg", _hoisted_1, [
          createElementVNode("polyline", {
            "stroke-width": "4",
            fill: "transparent",
            stroke: unref(colors)[0],
            points: "10, 0 19, 10 10, 20"
          }, null, 8, _hoisted_2),
          createElementVNode("polyline", {
            "stroke-width": "2",
            fill: "transparent",
            stroke: unref(colors)[1],
            points: "2, 0 11, 10 2, 20"
          }, null, 8, _hoisted_3)
        ])),
        createElementVNode("span", {
          style: normalizeStyle(`color: ${unref(textColor)};font-size: ${unref(textSize)}px`)
        }, toDisplayString(unref(dataset)), 5),
        (openBlock(), createElementBlock("svg", _hoisted_4, [
          createElementVNode("polyline", {
            "stroke-width": "4",
            fill: "transparent",
            stroke: unref(colors)[0],
            points: "11, 0 2, 10 11, 20"
          }, null, 8, _hoisted_5),
          createElementVNode("polyline", {
            "stroke-width": "2",
            fill: "transparent",
            stroke: unref(colors)[1],
            points: "19, 0 10, 10 19, 20"
          }, null, 8, _hoisted_6)
        ]))
      ], 4);
    };
  }
});
var _EDecorates03 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-314241d8"]]);
export { _EDecorates03 as default };
