import{V as W}from"./BgQ5eU58.js";import{au as g,cw as f,a3 as t,bo as B,bm as T,bI as k,bb as C,a_ as V,W as l,F as I,r as h,q as y,c0 as A,f as u,a$ as x,i as P,bL as $,ca as G,cM as J,cd as K,cp as Q,cr as X,cu as Y,cz as ee,co as ae,cP as te,cT as ne,bi as de,U as le,ce as ie,cg as se,be as ce,bc as re,b9 as ue,b8 as oe,b7 as me,b6 as ve,b5 as be,b2 as ye,b0 as ge,aZ as fe,L as ke,at as Ce,bZ as Ve}from"#entry";import{c as pe}from"./BKDgfSxC.js";import{V as S,a as Ie}from"./Cp3UUybv.js";import{V as he}from"./R1_j74h_.js";const Ae=k({opacity:[Number,String],...V(),...C()},"VCardSubtitle"),Pe=g()({name:"VCardSubtitle",props:Ae(),setup(e,i){let{slots:n}=i;return f(()=>t(e.tag,{class:T(["v-card-subtitle",e.class]),style:B([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Se=pe("v-card-title"),Be=k({appendAvatar:String,appendIcon:u,prependAvatar:String,prependIcon:u,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...V(),...x(),...C()},"VCardItem"),Te=g()({name:"VCardItem",props:Be(),setup(e,i){let{slots:n}=i;return f(()=>{const a=!!(e.prependAvatar||e.prependIcon),o=!!(a||n.prepend),c=!!(e.appendAvatar||e.appendIcon),m=!!(c||n.append),v=!!(e.title!=null||n.title),b=!!(e.subtitle!=null||n.subtitle);return t(e.tag,{class:T(["v-card-item",e.class]),style:B(e.style)},{default:()=>[o&&l("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?t(y,{key:"prepend-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):l(I,null,[e.prependAvatar&&t(S,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&t(h,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),l("div",{class:"v-card-item__content"},[v&&t(Se,{key:"title"},{default:()=>[n.title?.()??A(e.title)]}),b&&t(Pe,{key:"subtitle"},{default:()=>[n.subtitle?.()??A(e.subtitle)]}),n.default?.()]),m&&l("div",{key:"append",class:"v-card-item__append"},[n.append?t(y,{key:"append-defaults",disabled:!c,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):l(I,null,[e.appendIcon&&t(h,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&t(S,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),xe=k({appendAvatar:String,appendIcon:u,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:u,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...fe(),...V(),...x(),...ge(),...ye(),...be(),...ve(),...me(),...oe(),...ue(),...C(),...re(),...ce({variant:"elevated"})},"VCard"),we=g()({name:"VCard",directives:{vRipple:P},props:xe(),setup(e,i){let{attrs:n,slots:a}=i;const{themeClasses:o}=$(e),{borderClasses:c}=G(e),{colorClasses:m,colorStyles:v,variantClasses:b}=J(e),{densityClasses:L}=K(e),{dimensionStyles:_}=ie(e),{elevationClasses:N}=se(e),{loaderClasses:D}=Q(e),{locationStyles:R}=X(e),{positionClasses:w}=Y(e),{roundedClasses:F}=ee(e),r=ae(e,n),p=Ve(void 0);return te(()=>e.loading,(s,d)=>{p.value=!s&&typeof d=="string"?d:typeof s=="boolean"?void 0:s},{immediate:!0}),f(()=>{const s=e.link!==!1&&r.isLink.value,d=!e.disabled&&e.link!==!1&&(e.link||r.isClickable.value),z=s?"a":e.tag,M=!!(a.title||e.title!=null),E=!!(a.subtitle||e.subtitle!=null),O=M||E,U=!!(a.append||e.appendAvatar||e.appendIcon),Z=!!(a.prepend||e.prependAvatar||e.prependIcon),j=!!(a.image||e.image),q=O||Z||U,H=!!(a.text||e.text!=null);return ne(t(z,de(r.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":d},o.value,c.value,m.value,L.value,N.value,D.value,w.value,F.value,b.value,e.class],style:[v.value,_.value,R.value,{"--v-card-height":le(e.height)},e.style],onClick:d&&r.navigate.value,tabindex:e.disabled?-1:void 0}),{default:()=>[j&&l("div",{key:"image",class:"v-card__image"},[a.image?t(y,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):t(Ie,{key:"image-img",cover:!0,src:e.image},null)]),t(ke,{name:"v-card",active:!!e.loading,color:p.value},{default:a.loader}),q&&t(Te,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:a.item,prepend:a.prepend,title:a.title,subtitle:a.subtitle,append:a.append}),H&&t(he,{key:"text"},{default:()=>[a.text?.()??e.text]}),a.default?.(),a.actions&&t(W,null,{default:a.actions}),Ce(d,"v-card")]}),[[P,d&&e.ripple]])}),{}}});export{we as V,Pe as a,Se as b};
