import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, Fragment, renderList, toDisplayString, createCommentVNode } from 'vue';

"use strict";
const _hoisted_1 = { class: "me-resource-card" };
const _hoisted_2 = { class: "header" };
const _hoisted_3 = {
  key: 0,
  class: "body"
};
const _hoisted_4 = { class: "value" };
const _hoisted_5 = { class: "label" };
const __default__ = defineComponent({
  name: "me-resource-card"
});
var script = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    footerList: { type: Array, required: false, default: () => [] }
  },
  setup(__props) {
    const props = __props;
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode("div", _hoisted_2, [
          renderSlot(_ctx.$slots, "header"),
          renderSlot(_ctx.$slots, "header-menu")
        ]),
        __props.footerList?.length ? (openBlock(), createElementBlock("div", _hoisted_3, [
          renderSlot(_ctx.$slots, "footer", {}, () => [
            (openBlock(true), createElementBlock(
              Fragment,
              null,
              renderList(__props.footerList, (item, index) => {
                return openBlock(), createElementBlock("div", {
                  class: "item",
                  key: item?.id || index
                }, [
                  createElementVNode(
                    "div",
                    _hoisted_4,
                    toDisplayString(item.value) + " " + toDisplayString(item.unit),
                    1
                    /* TEXT */
                  ),
                  createElementVNode(
                    "div",
                    _hoisted_5,
                    toDisplayString(item.label),
                    1
                    /* TEXT */
                  )
                ]);
              }),
              128
              /* KEYED_FRAGMENT */
            ))
          ])
        ])) : createCommentVNode("v-if", true)
      ]);
    };
  }
});

export { script as default };
//# sourceMappingURL=resource-card.vue2.mjs.map
