"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const runtimeCore_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const reactivity_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _hoisted_1 = { class: "go-border-04" };
const _hoisted_2 = ["width", "height"];
const _hoisted_3 = ["stroke", "points"];
const _hoisted_4 = ["stroke", "points"];
const _hoisted_5 = ["stroke", "points"];
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { w, h } = reactivity_esmBundler.toRefs(props.chartConfig.attr);
    const { colors, reverse } = reactivity_esmBundler.toRefs(props.chartConfig.option);
    const xPos = (pos) => {
      if (!reverse.value)
        return pos;
      return w.value - pos;
    };
    return (_ctx, _cache) => {
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock("div", _hoisted_1, [
        (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock("svg", {
          width: reactivity_esmBundler.unref(w),
          height: reactivity_esmBundler.unref(h)
        }, [
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            "stroke-width": "2",
            fill: "transparent",
            points: `${xPos(0)}, 0 ${xPos(30)}, ${reactivity_esmBundler.unref(h) / 2}`
          }, null, 8, _hoisted_3),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            "stroke-width": "2",
            fill: "transparent",
            points: `${xPos(20)}, 0 ${xPos(50)}, ${reactivity_esmBundler.unref(h) / 2} ${xPos(reactivity_esmBundler.unref(w))}, ${reactivity_esmBundler.unref(h) / 2}`
          }, null, 8, _hoisted_4),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[1],
            fill: "transparent",
            "stroke-width": "3",
            points: `${xPos(0)}, ${reactivity_esmBundler.unref(h) - 3}, ${xPos(200)}, ${reactivity_esmBundler.unref(h) - 3}`
          }, null, 8, _hoisted_5)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
exports.default = _sfc_main;
