'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

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

exports.default = script;
//# sourceMappingURL=resource-card.vue2.js.map
