import { defineComponent, toRefs, openBlock, createElementBlock, unref, createElementVNode } 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 = { 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", "points"];
const _hoisted_8 = ["stroke", "points"];
const _hoisted_9 = ["stroke", "points"];
const __default__ = defineComponent({ name: "EBorder12" });
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, backgroundColor } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        (openBlock(), createElementBlock("svg", {
          width: unref(w),
          height: unref(h)
        }, [
          createElementVNode("polygon", {
            fill: unref(backgroundColor),
            points: `
        10, 22 ${unref(w) - 22}, 22 ${unref(w) - 22}, ${unref(h) - 86} ${unref(w) - 84}, ${unref(h) - 24} 10, ${unref(h) - 24}
      `
          }, null, 8, _hoisted_3),
          createElementVNode("polyline", {
            class: "bv-bb5-line-1",
            stroke: unref(colors)[0],
            points: `8, 5 ${unref(w) - 5}, 5 ${unref(w) - 5}, ${unref(h) - 100}
          ${unref(w) - 100}, ${unref(h) - 5} 8, ${unref(h) - 5} 8, 5`
          }, null, 8, _hoisted_4),
          createElementVNode("polyline", {
            class: "bv-bb5-line-2",
            stroke: unref(colors)[1],
            points: `3, 5 ${unref(w) - 20}, 5 ${unref(w) - 20}, ${unref(h) - 60}
          ${unref(w) - 74}, ${unref(h) - 5} 3, ${unref(h) - 5} 3, 5`
          }, null, 8, _hoisted_5),
          createElementVNode("polyline", {
            class: "bv-bb5-line-3",
            stroke: unref(colors)[1],
            points: `50, 13 ${unref(w) - 35}, 13`
          }, null, 8, _hoisted_6),
          createElementVNode("polyline", {
            class: "bv-bb5-line-4",
            stroke: unref(colors)[1],
            points: `15, 20 ${unref(w) - 35}, 20`
          }, null, 8, _hoisted_7),
          createElementVNode("polyline", {
            class: "bv-bb5-line-5",
            stroke: unref(colors)[1],
            points: `15, ${unref(h) - 20} ${unref(w) - 110}, ${unref(h) - 20}`
          }, null, 8, _hoisted_8),
          createElementVNode("polyline", {
            class: "bv-bb5-line-6",
            stroke: unref(colors)[1],
            points: `15, ${unref(h) - 13} ${unref(w) - 110}, ${unref(h) - 13}`
          }, null, 8, _hoisted_9)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
var _EBorder12 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-72bc1ee4"]]);
export { _EBorder12 as default };
