import "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import { defineComponent, openBlock, createElementBlock, createElementVNode as createBaseVNode } from "../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
import { toRefs, unref } from "../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
import { normalizeStyle } from "../../../../../../node_modules/.pnpm/@vue_shared@3.3.4/node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
const _hoisted_1 = ["width"];
const _hoisted_2 = ["stroke", "points"];
const _hoisted_3 = ["stroke", "points"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { w, h } = toRefs(props.chartConfig.attr);
    const { colors, dur, lineHeight } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", {
        class: "go-decorates-2",
        style: normalizeStyle(`width:${unref(w)}px; height: ${unref(lineHeight)}px animation-duration:${unref(dur)}s`)
      }, [
        (openBlock(), createElementBlock("svg", {
          width: unref(w),
          height: 3
        }, [
          createBaseVNode("polyline", {
            stroke: unref(colors)[0],
            points: `0, 2.5 ${unref(w)}, 2.5`
          }, null, 8, _hoisted_2),
          createBaseVNode("polyline", {
            stroke: unref(colors)[1],
            "stroke-width": "3",
            "stroke-dasharray": "20, 80",
            "stroke-dashoffset": "-30",
            points: `0, 2.5 ${unref(w)}, 2.5`
          }, null, 8, _hoisted_3)
        ], 8, _hoisted_1))
      ], 4);
    };
  }
});
export {
  _sfc_main as default
};
