"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-box" };
const _hoisted_2 = ["width", "height"];
const _hoisted_3 = ["fill", "points"];
const _hoisted_4 = ["stroke", "points"];
const _hoisted_5 = ["stroke", "points"];
const _hoisted_6 = ["stroke", "points"];
const _hoisted_7 = ["stroke"];
const _hoisted_8 = ["stroke"];
const _hoisted_9 = ["stroke"];
const _hoisted_10 = ["stroke"];
const _hoisted_11 = ["stroke"];
const _hoisted_12 = ["stroke", "points"];
const _hoisted_13 = ["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, backgroundColor } = reactivity_esmBundler.toRefs(props.chartConfig.option);
    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("polygon", {
            fill: reactivity_esmBundler.unref(backgroundColor),
            points: `
        ${reactivity_esmBundler.unref(w) - 15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24
        16, 42 16, ${reactivity_esmBundler.unref(h) - 32} 41, ${reactivity_esmBundler.unref(h) - 7} ${reactivity_esmBundler.unref(w) - 15}, ${reactivity_esmBundler.unref(h) - 7}
      `
          }, null, 8, _hoisted_3),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-1",
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `145, ${reactivity_esmBundler.unref(h) - 5} 40, ${reactivity_esmBundler.unref(h) - 5} 10, ${reactivity_esmBundler.unref(h) - 35}
          10, 40 40, 5 150, 5 170, 20 ${reactivity_esmBundler.unref(w) - 15}, 20`
          }, null, 8, _hoisted_4),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[1],
            class: "go-border-line-2",
            points: `245, ${reactivity_esmBundler.unref(h) - 1} 36, ${reactivity_esmBundler.unref(h) - 1} 14, ${reactivity_esmBundler.unref(h) - 23}
          14, ${reactivity_esmBundler.unref(h) - 100}`
          }, null, 8, _hoisted_5),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-3",
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `7, ${reactivity_esmBundler.unref(h) - 40} 7, ${reactivity_esmBundler.unref(h) - 75}`
          }, null, 8, _hoisted_6),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-4",
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `28, 24 13, 41 13, 64`
          }, null, 8, _hoisted_7),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-5",
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `5, 45 5, 140`
          }, null, 8, _hoisted_8),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-6",
            stroke: reactivity_esmBundler.unref(colors)[1],
            points: `14, 75 14, 180`
          }, null, 8, _hoisted_9),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-7",
            stroke: reactivity_esmBundler.unref(colors)[1],
            points: `55, 11 147, 11 167, 26 250, 26`
          }, null, 8, _hoisted_10),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-8",
            stroke: reactivity_esmBundler.unref(colors)[1],
            points: `158, 5 173, 16`
          }, null, 8, _hoisted_11),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-9",
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `200, 17 ${reactivity_esmBundler.unref(w) - 10}, 17`
          }, null, 8, _hoisted_12),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            class: "go-border-line-10",
            stroke: reactivity_esmBundler.unref(colors)[1],
            points: `385, 17 ${reactivity_esmBundler.unref(w) - 10}, 17`
          }, null, 8, _hoisted_13)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
exports.default = _sfc_main;
