'use strict';

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

var vue = require('vue');
require('../../../utils/index.cjs');
var useConfigInject = require('../../config-provider/src/hooks/useConfigInject.cjs');
var props = require('./props.cjs');
var props$1 = require('../../../utils/vue/props.cjs');

var ACardMeta = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ACardMeta",
  props: props.cardMetaProps(),
  slots: Object,
  setup(props, {
    slots
  }) {
    const {
      prefixCls
    } = useConfigInject.default("card", props);
    return () => {
      const classString = {
        [`${prefixCls.value}-meta`]: true
      };
      const avatar = props$1.getPropsSlot(slots, props, "avatar");
      const title = props$1.getPropsSlot(slots, props, "title");
      const description = props$1.getPropsSlot(slots, props, "description");
      const avatarDom = avatar ? vue.createVNode("div", {
        "class": `${prefixCls.value}-meta-avatar`
      }, [avatar]) : null;
      const titleDom = title ? vue.createVNode("div", {
        "class": `${prefixCls.value}-meta-title`
      }, [title]) : null;
      const descriptionDom = description ? vue.createVNode("div", {
        "class": `${prefixCls.value}-meta-description`
      }, [description]) : null;
      const MetaDetail = titleDom || descriptionDom ? vue.createVNode("div", {
        "class": `${prefixCls.value}-meta-detail`
      }, [titleDom, descriptionDom]) : null;
      return vue.createVNode("div", {
        "class": classString
      }, [avatarDom, MetaDetail]);
    };
  }
});

exports.default = ACardMeta;
//# sourceMappingURL=Meta.cjs.map
