Files
kefu/deploy/token-usage-20260917/payload/admin-web/apps/web-antd/dist/js/card-D3WO92mr.js
T
2026-09-21 10:34:06 +08:00

17 lines
18 KiB
JavaScript

import{D as e,Z as t,g as n,k as r}from"./runtime-core.esm-bundler-DkysjgTd.js";import{r as i}from"./en_US-Cv9hrLhb.js";import{Q as a,Tt as o,ct as s,d as c,ft as l,g as u,l as d,m as f,rt as p,t as m,tt as h,u as g,vt as _}from"./useConfigInject-z_xeO0pP.js";import{t as v}from"./initDefaultProps-D8Mki4gM.js";import{t as y}from"./Keyframes-K60KFfv3.js";import{t as b}from"./omit-C0ksMpVM.js";import{t as x}from"./vue-types-CFReUAWV.js";import{t as ee}from"./devWarning-DlchpATv.js";import{r as te}from"./vnode-CRVBf7wj.js";import{t as ne}from"./isPlainObject-iVjSthyR.js";import{P as S}from"./console-2d_MKq1R.js";var C=e=>{let{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:a,cardHeadTabsMarginBottom:o}=e;return i(i({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${a}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:`transparent`,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},c()),{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":i(i({display:`inline-block`,flex:1},u),{[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:o,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},w=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
${i}px 0 0 0 ${n},
0 ${i}px 0 0 ${n},
${i}px ${i}px 0 0 ${n},
${i}px 0 0 0 ${n} inset,
0 ${i}px 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},T=e=>{let{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o}=e;return i(i({margin:0,padding:0,listStyle:`none`,background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,display:`flex`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},c()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:`${a*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`}}})},E=e=>i(i({margin:`-${e.marginXXS}px 0`,display:`flex`},c()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":i({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},u),"&-description":{color:e.colorTextDescription}}),re=e=>{let{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},D=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},O=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadow:o,cardPaddingBase:s}=e;return{[t]:i(i({},f(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:C(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:``,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:i({padding:s,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},c()),[`${t}-grid`]:w(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:T(e),[`${t}-meta`]:E(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:re(e),[`${t}-loading`]:D(e),[`${t}-rtl`]:{direction:`rtl`}}},k=e=>{let{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:`flex`,alignItems:`center`}}}}},A=g(`Card`,e=>{let t=d(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[O(t),k(t)]}),j=r({compatConfig:{MODE:3},name:`SkeletonTitle`,props:{prefixCls:String,width:{type:[Number,String]}},setup(t){return()=>{let{prefixCls:n,width:r}=t,i=typeof r==`number`?`${r}px`:r;return e(`h3`,{class:n,style:{width:i}},null)}}}),M=r({compatConfig:{MODE:3},name:`SkeletonParagraph`,props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup(t){let n=e=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n};return()=>{let{prefixCls:r,rows:i}=t,a=[...Array(i)].map((t,r)=>{let i=n(r);return e(`li`,{key:r,style:{width:typeof i==`number`?`${i}px`:i}},null)});return e(`ul`,{class:r},[a])}}}),N=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),P=t=>{let{prefixCls:n,size:r,shape:i}=t,a=_({[`${n}-lg`]:r===`large`,[`${n}-sm`]:r===`small`}),o=_({[`${n}-circle`]:i===`circle`,[`${n}-square`]:i===`square`,[`${n}-round`]:i===`round`}),s=typeof r==`number`?{width:`${r}px`,height:`${r}px`,lineHeight:`${r}px`}:{};return e(`span`,{class:_(n,a,o),style:s},null)};P.displayName=`SkeletonElement`;var F=new y(`ant-skeleton-loading`,{"0%":{transform:`translateX(-37.5%)`},"100%":{transform:`translateX(37.5%)`}}),I=e=>({height:e,lineHeight:`${e}px`}),L=e=>i({width:e},I(e)),R=e=>({position:`relative`,zIndex:0,overflow:`hidden`,background:`transparent`,"&::after":{position:`absolute`,top:0,insetInlineEnd:`-150%`,bottom:0,insetInlineStart:`-150%`,background:e.skeletonLoadingBackground,animationName:F,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`,content:`""`}}),z=e=>i({width:e*5,minWidth:e*5},I(e)),B=e=>{let{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[`${t}`]:i({display:`inline-block`,verticalAlign:`top`,background:n},L(r)),[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:i({},L(a)),[`${t}${t}-sm`]:i({},L(o))}},V=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,color:s}=e;return{[`${r}`]:i({display:`inline-block`,verticalAlign:`top`,background:s,borderRadius:n},z(t)),[`${r}-lg`]:i({},z(a)),[`${r}-sm`]:i({},z(o))}},H=e=>i({width:e},I(e)),U=e=>{let{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:a}=e;return{[`${t}`]:i(i({display:`flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`top`,background:r,borderRadius:a},H(n*2)),{[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:i(i({},H(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}}),[`${t}${t}-circle`]:{borderRadius:`50%`}}},W=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},G=e=>i({width:e*2,minWidth:e*2},I(e)),ie=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,color:s}=e;return i(i(i(i(i({[`${n}`]:i({display:`inline-block`,verticalAlign:`top`,background:s,borderRadius:t,width:r*2,minWidth:r*2},G(r))},W(e,r,n)),{[`${n}-lg`]:i({},G(a))}),W(e,a,`${n}-lg`)),{[`${n}-sm`]:i({},G(o))}),W(e,o,`${n}-sm`))},ae=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,color:f,padding:p,marginSM:m,borderRadius:h,skeletonTitleHeight:g,skeletonBlockRadius:_,skeletonParagraphLineHeight:v,controlHeightXS:y,skeletonParagraphMarginTop:b}=e;return{[`${t}`]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[`${n}`]:i({display:`inline-block`,verticalAlign:`top`,background:f},L(l)),[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:i({},L(u)),[`${n}-sm`]:i({},L(d))},[`${t}-content`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[`${r}`]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:m,[`+ ${a}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:i(i(i(i({display:`inline-block`,width:`auto`},ie(e)),B(e)),V(e)),U(e)),[`${t}${t}-block`]:{width:`100%`,[`${o}`]:{width:`100%`},[`${s}`]:{width:`100%`}},[`${t}${t}-active`]:{[`
${r},
${a} > li,
${n},
${o},
${s},
${c}
`]:i({},R(e))}}},K=g(`Skeleton`,e=>{let{componentCls:t}=e;return[ae(d(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),oe=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function q(e){return e&&typeof e==`object`?e:{}}function se(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function ce(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function le(e,t){let n={};return(!e||!t)&&(n.width=`61%`),n.rows=!e&&t?3:2,n}var J=r({compatConfig:{MODE:3},name:`ASkeleton`,props:v(oe(),{avatar:!1,title:!0,paragraph:!0}),setup(t,n){let{slots:r}=n,{prefixCls:a,direction:o}=m(`skeleton`,t),[s,c]=K(a);return()=>{var n;let{loading:l,avatar:u,title:d,paragraph:f,active:p,round:m}=t,h=a.value;if(l||t.loading===void 0){let t=!!u||u===``,n=!!d||d===``,r=!!f||f===``,a;if(t){let t=i(i({prefixCls:`${h}-avatar`},se(n,r)),q(u));a=e(`div`,{class:`${h}-header`},[e(P,t,null)])}let l;if(n||r){let a;if(n){let n=i(i({prefixCls:`${h}-title`},ce(t,r)),q(d));a=e(j,n,null)}let o;if(r){let r=i(i({prefixCls:`${h}-paragraph`},le(t,n)),q(f));o=e(M,r,null)}l=e(`div`,{class:`${h}-content`},[a,o])}let g=_(h,{[`${h}-with-avatar`]:t,[`${h}-active`]:p,[`${h}-rtl`]:o.value===`rtl`,[`${h}-round`]:m,[c.value]:!0});return s(e(`div`,{class:g},[a,l]))}return(n=r.default)==null?void 0:n.call(r)}}}),Y=r({compatConfig:{MODE:3},name:`ASkeletonButton`,props:v(i(i({},N()),{size:String,block:Boolean}),{size:`default`}),setup(t){let{prefixCls:r}=m(`skeleton`,t),[i,a]=K(r),s=n(()=>_(r.value,`${r.value}-element`,{[`${r.value}-active`]:t.active,[`${r.value}-block`]:t.block},a.value));return()=>i(e(`div`,{class:s.value},[e(P,o(o({},t),{},{prefixCls:`${r.value}-button`}),null)]))}}),X=r({compatConfig:{MODE:3},name:`ASkeletonInput`,props:i(i({},b(N(),[`shape`])),{size:String,block:Boolean}),setup(t){let{prefixCls:r}=m(`skeleton`,t),[i,a]=K(r),s=n(()=>_(r.value,`${r.value}-element`,{[`${r.value}-active`]:t.active,[`${r.value}-block`]:t.block},a.value));return()=>i(e(`div`,{class:s.value},[e(P,o(o({},t),{},{prefixCls:`${r.value}-input`}),null)]))}}),ue=`M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z`,de=r({compatConfig:{MODE:3},name:`ASkeletonImage`,props:b(N(),[`size`,`shape`,`active`]),setup(t){let{prefixCls:r}=m(`skeleton`,t),[i,a]=K(r),o=n(()=>_(r.value,`${r.value}-element`,a.value));return()=>i(e(`div`,{class:o.value},[e(`div`,{class:`${r.value}-image`},[e(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,class:`${r.value}-image-svg`},[e(`path`,{d:ue,class:`${r.value}-image-path`},null)])])]))}}),fe=r({compatConfig:{MODE:3},name:`ASkeletonAvatar`,props:v(i(i({},N()),{shape:String}),{size:`default`,shape:`circle`}),setup(t){let{prefixCls:r}=m(`skeleton`,t),[i,a]=K(r),s=n(()=>_(r.value,`${r.value}-element`,{[`${r.value}-active`]:t.active},a.value));return()=>i(e(`div`,{class:s.value},[e(P,o(o({},t),{},{prefixCls:`${r.value}-avatar`}),null)]))}});J.Button=Y,J.Avatar=fe,J.Input=X,J.Image=de,J.Title=j,J.install=function(e){return e.component(J.name,J),e.component(J.Button.name,Y),e.component(J.Avatar.name,fe),e.component(J.Input.name,X),e.component(J.Image.name,de),e.component(J.Title.name,j),e};var pe=J,{TabPane:me}=S,Z=r({compatConfig:{MODE:3},name:`ACard`,inheritAttrs:!1,props:{prefixCls:String,title:x.any,extra:x.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:x.any,tabList:{type:Array},tabBarExtraContent:x.any,activeTabKey:String,defaultActiveTabKey:String,cover:x.any,onTabChange:{type:Function}},slots:Object,setup(n,r){let{slots:i,attrs:a}=r,{prefixCls:s,direction:c,size:u}=m(`card`,n),[d,f]=A(s),g=n=>n.map((r,i)=>t(r)&&!l(r)||!t(r)?e(`li`,{style:{width:`${100/n.length}%`},key:`action-${i}`},[e(`span`,null,[r])]):null),_=e=>{var t;(t=n.onTabChange)==null||t.call(n,e)},v=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t;return e.forEach(e=>{e&&ne(e.type)&&e.type.__ANT_CARD_GRID&&(t=!0)}),t};return()=>{var t,r,l,m,y,b;let{headStyle:x={},bodyStyle:ne={},loading:C,bordered:w=!0,type:T,tabList:E,hoverable:re,activeTabKey:D,defaultActiveTabKey:O,tabBarExtraContent:k=h((t=i.tabBarExtraContent)==null?void 0:t.call(i)),title:A=h((r=i.title)==null?void 0:r.call(i)),extra:j=h((l=i.extra)==null?void 0:l.call(i)),actions:M=h((m=i.actions)==null?void 0:m.call(i)),cover:N=h((y=i.cover)==null?void 0:y.call(i))}=n,P=p((b=i.default)==null?void 0:b.call(i)),F=s.value,I={[`${F}`]:!0,[f.value]:!0,[`${F}-loading`]:C,[`${F}-bordered`]:w,[`${F}-hoverable`]:!!re,[`${F}-contain-grid`]:v(P),[`${F}-contain-tabs`]:E&&E.length,[`${F}-${u.value}`]:u.value,[`${F}-type-${T}`]:!!T,[`${F}-rtl`]:c.value===`rtl`},L=e(pe,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[P]}),R=D!==void 0,z={size:`large`,[R?`activeKey`:`defaultActiveKey`]:R?D:O,onChange:_,class:`${F}-head-tabs`},B,V=E&&E.length?e(S,z,{default:()=>[E.map(t=>{let{tab:n,slots:r}=t,a=r==null?void 0:r.tab;ee(!r,`Card`,"tabList slots is deprecated, Please use `customTab` instead.");let o=n===void 0?i[a]?i[a](t):null:n;return o=te(i,`customTab`,t,()=>[o]),e(me,{tab:o,key:t.key,disabled:t.disabled},null)})],rightExtra:k?()=>k:null}):null;(A||j||V)&&(B=e(`div`,{class:`${F}-head`,style:x},[e(`div`,{class:`${F}-head-wrapper`},[A&&e(`div`,{class:`${F}-head-title`},[A]),j&&e(`div`,{class:`${F}-extra`},[j])]),V]));let H=N?e(`div`,{class:`${F}-cover`},[N]):null,U=e(`div`,{class:`${F}-body`,style:ne},[C?L:P]),W=M&&M.length?e(`ul`,{class:`${F}-actions`},[g(M)]):null;return d(e(`div`,o(o({ref:`cardContainerRef`},a),{},{class:[I,a.class]}),[B,H,P&&P.length?U:null,W]))}}}),Q=r({compatConfig:{MODE:3},name:`ACardMeta`,props:{prefixCls:String,title:a(),description:a(),avatar:a()},slots:Object,setup(t,n){let{slots:r}=n,{prefixCls:i}=m(`card`,t);return()=>{let n={[`${i.value}-meta`]:!0},a=s(r,t,`avatar`),o=s(r,t,`title`),c=s(r,t,`description`),l=a?e(`div`,{class:`${i.value}-meta-avatar`},[a]):null,u=o?e(`div`,{class:`${i.value}-meta-title`},[o]):null,d=c?e(`div`,{class:`${i.value}-meta-description`},[c]):null,f=u||d?e(`div`,{class:`${i.value}-meta-detail`},[u,d]):null;return e(`div`,{class:n},[l,f])}}}),$=r({compatConfig:{MODE:3},name:`ACardGrid`,__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(t,r){let{slots:i}=r,{prefixCls:a}=m(`card`,t),o=n(()=>({[`${a.value}-grid`]:!0,[`${a.value}-grid-hoverable`]:t.hoverable}));return()=>{var t;return e(`div`,{class:o.value},[(t=i.default)==null?void 0:t.call(i)])}}});Z.Meta=Q,Z.Grid=$,Z.install=function(e){return e.component(Z.name,Z),e.component(Q.name,Q),e.component($.name,$),e};var he=Z;export{J as n,he as t};