import{C as o}from"./index.abdcab42.js";import{a as y,C as M,M as d,c1 as v,j as i,y as u,f as D}from"./index.0d073eaa.js";var G=function(){return{prefixCls:String,title:u.any,description:u.any,avatar:u.any}},f=y({name:"ACardMeta",props:G(),slots:["title","description","avatar"],setup:function(r,s){var n=s.slots,l=M("card",r),e=l.prefixCls;return function(){var c=d({},"".concat(e.value,"-meta"),!0),a=v(n,r,"avatar"),p=v(n,r,"title"),C=v(n,r,"description"),P=a?i("div",{class:"".concat(e.value,"-meta-avatar")},[a]):null,g=p?i("div",{class:"".concat(e.value,"-meta-title")},[p]):null,_=C?i("div",{class:"".concat(e.value,"-meta-description")},[C]):null,x=g||_?i("div",{class:"".concat(e.value,"-meta-detail")},[g,_]):null;return i("div",{class:c},[P,x])}}}),j=function(){return{prefixCls:String,hoverable:{type:Boolean,default:!0}}},m=y({name:"ACardGrid",__ANT_CARD_GRID:!0,props:j(),setup:function(r,s){var n=s.slots,l=M("card",r),e=l.prefixCls,c=D(function(){var a;return a={},d(a,"".concat(e.value,"-grid"),!0),d(a,"".concat(e.value,"-grid-hoverable"),r.hoverable),a});return function(){var a;return i("div",{class:c.value},[(a=n.default)===null||a===void 0?void 0:a.call(n)])}}});o.Meta=f;o.Grid=m;o.install=function(t){return t.component(o.name,o),t.component(f.name,f),t.component(m.name,m),t};
