"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 = ["fill"];
const _hoisted_5 = ["fill", "cx"];
const _hoisted_6 = ["fill", "cx", "cy"];
const _hoisted_7 = ["fill", "cy"];
const _hoisted_8 = ["stroke", "points"];
const _hoisted_9 = ["stroke", "points"];
const _hoisted_10 = ["stroke", "points"];
const _hoisted_11 = ["stroke", "points"];
const _hoisted_12 = ["stroke"];
const _hoisted_13 = ["stroke"];
const _hoisted_14 = ["stroke", "points"];
const _hoisted_15 = ["stroke", "points"];
const _hoisted_16 = ["stroke", "points"];
const _hoisted_17 = ["stroke", "points"];
const _hoisted_18 = ["stroke", "points"];
const _hoisted_19 = ["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: ` 9, 7 ${reactivity_esmBundler.unref(w) - 9}, 7 ${reactivity_esmBundler.unref(w) - 9}, ${reactivity_esmBundler.unref(h) - 7} 9, ${reactivity_esmBundler.unref(h) - 7}`
          }, null, 8, _hoisted_3),
          runtimeCore_esmBundler.createElementVNode("circle", {
            fill: reactivity_esmBundler.unref(colors)[1],
            cx: "5",
            cy: "5",
            r: "2"
          }, null, 8, _hoisted_4),
          runtimeCore_esmBundler.createElementVNode("circle", {
            fill: reactivity_esmBundler.unref(colors)[1],
            cx: reactivity_esmBundler.unref(w) - 5,
            cy: "5",
            r: "2"
          }, null, 8, _hoisted_5),
          runtimeCore_esmBundler.createElementVNode("circle", {
            fill: reactivity_esmBundler.unref(colors)[1],
            cx: reactivity_esmBundler.unref(w) - 5,
            cy: reactivity_esmBundler.unref(h) - 5,
            r: "2"
          }, null, 8, _hoisted_6),
          runtimeCore_esmBundler.createElementVNode("circle", {
            fill: reactivity_esmBundler.unref(colors)[1],
            cx: "5",
            cy: reactivity_esmBundler.unref(h) - 5,
            r: "2"
          }, null, 8, _hoisted_7),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `10, 4 ${reactivity_esmBundler.unref(w) - 10}, 4`
          }, null, 8, _hoisted_8),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `10, ${reactivity_esmBundler.unref(h) - 4} ${reactivity_esmBundler.unref(w) - 10}, ${reactivity_esmBundler.unref(h) - 4}`
          }, null, 8, _hoisted_9),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `5, 70 5, ${reactivity_esmBundler.unref(h) - 70}`
          }, null, 8, _hoisted_10),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `${reactivity_esmBundler.unref(w) - 5}, 70 ${reactivity_esmBundler.unref(w) - 5}, ${reactivity_esmBundler.unref(h) - 70}`
          }, null, 8, _hoisted_11),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `3, 10, 3, 50`
          }, null, 8, _hoisted_12),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `7, 30 7, 80`
          }, null, 8, _hoisted_13),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `${reactivity_esmBundler.unref(w) - 3}, 10 ${reactivity_esmBundler.unref(w) - 3}, 50`
          }, null, 8, _hoisted_14),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `${reactivity_esmBundler.unref(w) - 7}, 30 ${reactivity_esmBundler.unref(w) - 7}, 80`
          }, null, 8, _hoisted_15),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `3, ${reactivity_esmBundler.unref(h) - 10} 3, ${reactivity_esmBundler.unref(h) - 50}`
          }, null, 8, _hoisted_16),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `7, ${reactivity_esmBundler.unref(h) - 30} 7, ${reactivity_esmBundler.unref(h) - 80}`
          }, null, 8, _hoisted_17),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `${reactivity_esmBundler.unref(w) - 3}, ${reactivity_esmBundler.unref(h) - 10} ${reactivity_esmBundler.unref(w) - 3}, ${reactivity_esmBundler.unref(h) - 50}`
          }, null, 8, _hoisted_18),
          runtimeCore_esmBundler.createElementVNode("polyline", {
            stroke: reactivity_esmBundler.unref(colors)[0],
            points: `${reactivity_esmBundler.unref(w) - 7}, ${reactivity_esmBundler.unref(h) - 30} ${reactivity_esmBundler.unref(w) - 7}, ${reactivity_esmBundler.unref(h) - 80}`
          }, null, 8, _hoisted_19)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
exports.default = _sfc_main;
