import { defineComponent, toRefs, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, Fragment, renderList, normalizeClass } 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 = ["width", "height"];
const _hoisted_2 = ["fill", "points"];
const _hoisted_3 = ["width", "height"];
const _hoisted_4 = ["fill"];
const __default__ = defineComponent({ name: "EBorder05" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const border = ["left-top", "right-top", "left-bottom", "right-bottom"];
    const { w, h } = toRefs(props.chartConfig.attr);
    const { colors, backgroundColor } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", {
        class: "go-border-box",
        style: normalizeStyle(`box-shadow: inset 0 0 25px 3px ${unref(colors)[0]}`)
      }, [
        (openBlock(), createElementBlock("svg", {
          width: unref(w),
          height: unref(h)
        }, [
          createElementVNode("polygon", {
            fill: unref(backgroundColor),
            points: `
        4, 0 ${unref(w) - 4}, 0 ${unref(w)}, 4 ${unref(w)}, ${unref(h) - 4} ${unref(w) - 4}, ${unref(h)}
        4, ${unref(h)} 0, ${unref(h) - 4} 0, 4
      `
          }, null, 8, _hoisted_2)
        ], 8, _hoisted_1)),
        (openBlock(), createElementBlock(Fragment, null, renderList(border, (item) => {
          return createElementVNode("svg", {
            width: unref(w),
            height: unref(h),
            key: item,
            class: normalizeClass(`border-item ${item}`)
          }, [
            createElementVNode("polygon", {
              fill: unref(colors)[1],
              points: "40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"
            }, null, 8, _hoisted_4)
          ], 10, _hoisted_3);
        }), 64))
      ], 4);
    };
  }
});
var _EBorder05 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-673fe1d9"]]);
export { _EBorder05 as default };
