import { defineComponent, toRefs, openBlock, createElementBlock, Fragment, renderList, unref, createElementVNode, normalizeStyle, createTextVNode, toDisplayString } 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: "com_16" };
const _hoisted_2 = { class: "com_12" };
const _hoisted_3 = ["src"];
const _hoisted_4 = {
  class: "com_12_2",
  style: {}
};
const __default__ = defineComponent({ name: "EComponent16" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { titleStyle, dataset } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        (openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataset), (item) => {
          return openBlock(), createElementBlock("div", _hoisted_2, [
            createElementVNode("div", {
              class: "com_12_1",
              style: normalizeStyle({ ...unref(titleStyle) })
            }, [
              createElementVNode("img", {
                src: item.imgSrc,
                alt: ""
              }, null, 8, _hoisted_3),
              createTextVNode(" " + toDisplayString(item.key), 1)
            ], 4),
            createElementVNode("div", _hoisted_4, [
              (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (jtem) => {
                return openBlock(), createElementBlock("div", null, [
                  createElementVNode("span", null, toDisplayString(jtem.key), 1),
                  createElementVNode("span", null, [
                    createTextVNode(toDisplayString(jtem.value) + " ", 1),
                    createElementVNode("span", null, toDisplayString(jtem.unit), 1)
                  ])
                ]);
              }), 256))
            ])
          ]);
        }), 256))
      ]);
    };
  }
});
var _EComponent16 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-516557f9"]]);
export { _EComponent16 as default };
