"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 shared_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.js");
const _hoisted_1 = ["width", "height"];
const _hoisted_2 = ["fill", "points"];
const _hoisted_3 = ["width", "height"];
const _hoisted_4 = ["fill"];
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const border = ["left-top", "right-top", "left-bottom", "right-bottom"];
    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", {
        class: "go-border-box",
        style: shared_esmBundler.normalizeStyle(`box-shadow: inset 0 0 25px 3px ${reactivity_esmBundler.unref(colors)[0]}`)
      }, [
        (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: `
        4, 0 ${reactivity_esmBundler.unref(w) - 4}, 0 ${reactivity_esmBundler.unref(w)}, 4 ${reactivity_esmBundler.unref(w)}, ${reactivity_esmBundler.unref(h) - 4} ${reactivity_esmBundler.unref(w) - 4}, ${reactivity_esmBundler.unref(h)}
        4, ${reactivity_esmBundler.unref(h)} 0, ${reactivity_esmBundler.unref(h) - 4} 0, 4
      `
          }, null, 8, _hoisted_2)
        ], 8, _hoisted_1)),
        (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, runtimeCore_esmBundler.renderList(border, (item) => {
          return runtimeCore_esmBundler.createElementVNode("svg", {
            width: reactivity_esmBundler.unref(w),
            height: reactivity_esmBundler.unref(h),
            key: item,
            class: shared_esmBundler.normalizeClass(`border-item ${item}`)
          }, [
            runtimeCore_esmBundler.createElementVNode("polygon", {
              fill: reactivity_esmBundler.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);
    };
  }
});
exports.default = _sfc_main;
