"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;
