import "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import { defineComponent, openBlock, createElementBlock, createElementVNode as createBaseVNode } from "../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
import { toRefs, unref } from "../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
import { toDisplayString, normalizeStyle } from "../../../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.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 _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  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, [
          createBaseVNode("polyline", {
            "stroke-width": "4",
            fill: "transparent",
            stroke: unref(colors)[0],
            points: "10, 0 19, 10 10, 20"
          }, null, 8, _hoisted_2),
          createBaseVNode("polyline", {
            "stroke-width": "2",
            fill: "transparent",
            stroke: unref(colors)[1],
            points: "2, 0 11, 10 2, 20"
          }, null, 8, _hoisted_3)
        ])),
        createBaseVNode("span", {
          style: normalizeStyle(`color: ${unref(textColor)};font-size: ${unref(textSize)}px`)
        }, toDisplayString(unref(dataset)), 5),
        (openBlock(), createElementBlock("svg", _hoisted_4, [
          createBaseVNode("polyline", {
            "stroke-width": "4",
            fill: "transparent",
            stroke: unref(colors)[0],
            points: "11, 0 2, 10 11, 20"
          }, null, 8, _hoisted_5),
          createBaseVNode("polyline", {
            "stroke-width": "2",
            fill: "transparent",
            stroke: unref(colors)[1],
            points: "19, 0 10, 10 19, 20"
          }, null, 8, _hoisted_6)
        ]))
      ], 4);
    };
  }
});
export {
  _sfc_main as default
};
