"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("../../../hooks/use-namespace/index.js");
const useGlobalConfig = require("../../config-provider/src/hooks/use-global-config.js");
const card = require("./card.js");
const Vue = require("vue");
var card_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Vue.defineComponent({
  name: "ElCard",
  __name: "card",
  props: card.cardProps,
  setup(__props) {
    const globalConfig = useGlobalConfig.useGlobalConfig("card");
    const ns = index.useNamespace("card");
    return (_ctx, _cache) => {
      var _a;
      return Vue.openBlock(), Vue.createElementBlock("div", { class: Vue.normalizeClass([Vue.unref(ns).b(), Vue.unref(ns).is(`${__props.shadow || ((_a = Vue.unref(globalConfig)) == null ? void 0 : _a.shadow) || "always"}-shadow`)]) }, [
        _ctx.$slots.header || __props.header ? (Vue.openBlock(), Vue.createElementBlock("div", {
          key: 0,
          class: Vue.normalizeClass([Vue.unref(ns).e("header"), __props.headerClass])
        }, [Vue.renderSlot(_ctx.$slots, "header", {}, () => [Vue.createTextVNode(Vue.toDisplayString(__props.header), 1)])], 2)) : Vue.createCommentVNode("v-if", true),
        Vue.createElementVNode("div", {
          class: Vue.normalizeClass([Vue.unref(ns).e("body"), __props.bodyClass]),
          style: Vue.normalizeStyle(__props.bodyStyle)
        }, [Vue.renderSlot(_ctx.$slots, "default")], 6),
        _ctx.$slots.footer || __props.footer ? (Vue.openBlock(), Vue.createElementBlock("div", {
          key: 1,
          class: Vue.normalizeClass([Vue.unref(ns).e("footer"), __props.footerClass])
        }, [Vue.renderSlot(_ctx.$slots, "footer", {}, () => [Vue.createTextVNode(Vue.toDisplayString(__props.footer), 1)])], 2)) : Vue.createCommentVNode("v-if", true)
      ], 2);
    };
  }
});
exports.default = card_vue_vue_type_script_setup_true_lang_default;
