import { defineComponent, useCssVars, unref, toRefs, openBlock, createElementBlock, createElementVNode, createVNode, Fragment, renderList } from "vue";
import _sfc_main$1 from "../../../NComponents/configCommon/refConfig.mjs";
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 = { class: "com_12_1" };
const _hoisted_4 = { class: "com_12_2" };
const __default__ = defineComponent({ name: "EComponent17" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    useCssVars((_ctx) => ({
      "0f705860": unref(boxBGC)
    }));
    const { titleConfig, imageConfig, valueConfig, dataset, titleConfig2, unitConfig, boxBGC } = toRefs(
      props.chartConfig.option
    );
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode("div", _hoisted_2, [
          createElementVNode("div", _hoisted_3, [
            createVNode(_sfc_main$1, {
              type: "img",
              config: { ...unref(imageConfig) },
              class: "img"
            }, null, 8, ["config"]),
            createVNode(_sfc_main$1, {
              type: "text",
              config: { ...unref(titleConfig), text: unref(dataset).title },
              class: "title"
            }, null, 8, ["config"])
          ]),
          createElementVNode("div", _hoisted_4, [
            (openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataset).children, (jtem) => {
              return openBlock(), createElementBlock("div", null, [
                createVNode(_sfc_main$1, {
                  type: "text",
                  config: { ...unref(titleConfig2), text: jtem.key }
                }, null, 8, ["config"]),
                createVNode(_sfc_main$1, {
                  type: "number",
                  config: { ...unref(valueConfig), text: jtem.value }
                }, null, 8, ["config"]),
                createVNode(_sfc_main$1, {
                  type: "text",
                  config: { ...unref(unitConfig), text: jtem.unit }
                }, null, 8, ["config"])
              ]);
            }), 256))
          ])
        ])
      ]);
    };
  }
});
var _EComponent17 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7517e2a7"]]);
export { _EComponent17 as default };
