import{a as b,h as y,V as g,m as z,k as H,b as J,c as $,d as q,u as G,l as K,f as Q,g as U,n as W}from"./VImg-601f5a2c.js";import{z as f,I as X,J as n,p as A,ah as u,y as Y,B as Z,c as h,a6 as ee,ak as ae}from"./index-9b57d2d5.js";import{c as p,V as I}from"./VAvatar-089c55ac.js";import{m as P,j as te,s as ne,v as de,d as ie,c as le,R as se,f as re,a as ce,k as ue,w as oe,x as ve,h as me,L as ke,i as ge}from"./index-a0309372.js";const be=f()({name:"VCardActions",props:b(),setup(e,i){let{slots:t}=i;return X({VBtn:{slim:!0,variant:"text"}}),y(()=>{var a;return n("div",{class:["v-card-actions",e.class],style:e.style},[(a=t.default)==null?void 0:a.call(t)])}),{}}}),ye=p("v-card-subtitle"),fe=p("v-card-title"),pe=A({appendAvatar:String,appendIcon:u,prependAvatar:String,prependIcon:u,subtitle:[String,Number],title:[String,Number],...b(),...P()},"VCardItem"),Ce=f()({name:"VCardItem",props:pe(),setup(e,i){let{slots:t}=i;return y(()=>{var s;const a=!!(e.prependAvatar||e.prependIcon),o=!!(a||t.prepend),l=!!(e.appendAvatar||e.appendIcon),v=!!(l||t.append),m=!!(e.title!=null||t.title),k=!!(e.subtitle!=null||t.subtitle);return n("div",{class:["v-card-item",e.class],style:e.style},[o&&n("div",{key:"prepend",class:"v-card-item__prepend"},[t.prepend?n(g,{key:"prepend-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},t.prepend):a&&n(I,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),n("div",{class:"v-card-item__content"},[m&&n(fe,{key:"title"},{default:()=>{var d;return[((d=t.title)==null?void 0:d.call(t))??e.title]}}),k&&n(ye,{key:"subtitle"},{default:()=>{var d;return[((d=t.subtitle)==null?void 0:d.call(t))??e.subtitle]}}),(s=t.default)==null?void 0:s.call(t)]),v&&n("div",{key:"append",class:"v-card-item__append"},[t.append?n(g,{key:"append-defaults",disabled:!l,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},t.append):l&&n(I,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),Ve=p("v-card-text"),he=A({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:[String,Number],text:[String,Number],title:[String,Number],...z(),...b(),...P(),...H(),...J(),...te(),...ne(),...de(),...$(),...ie(),...q(),...Y(),...le({variant:"elevated"})},"VCard"),xe=f()({name:"VCard",directives:{Ripple:se},props:he(),setup(e,i){let{attrs:t,slots:a}=i;const{themeClasses:o}=Z(e),{borderClasses:l}=G(e),{colorClasses:v,colorStyles:m,variantClasses:k}=re(e),{densityClasses:s}=ce(e),{dimensionStyles:d}=K(e),{elevationClasses:S}=Q(e),{loaderClasses:x}=ue(e),{locationStyles:B}=oe(e),{positionClasses:L}=ve(e),{roundedClasses:T}=U(e),r=me(e,t),D=h(()=>e.link!==!1&&r.isLink.value),c=h(()=>!e.disabled&&e.link!==!1&&(e.link||r.isClickable.value));return y(()=>{const _=D.value?"a":e.tag,N=!!(a.title||e.title!=null),R=!!(a.subtitle||e.subtitle!=null),j=N||R,w=!!(a.append||e.appendAvatar||e.appendIcon),E=!!(a.prepend||e.prependAvatar||e.prependIcon),F=!!(a.image||e.image),M=j||E||w,O=!!(a.text||e.text!=null);return ee(n(_,{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":c.value},o.value,l.value,v.value,s.value,S.value,x.value,L.value,T.value,k.value,e.class],style:[m.value,d.value,B.value,e.style],href:r.href.value,onClick:c.value&&r.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var C;return[F&&n("div",{key:"image",class:"v-card__image"},[a.image?n(g,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):n(W,{key:"image-img",cover:!0,src:e.image},null)]),n(ke,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:a.loader}),M&&n(Ce,{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}),O&&n(Ve,{key:"text"},{default:()=>{var V;return[((V=a.text)==null?void 0:V.call(a))??e.text]}}),(C=a.default)==null?void 0:C.call(a),a.actions&&n(be,null,{default:a.actions}),ge(c.value,"v-card")]}}),[[ae("ripple"),c.value&&e.ripple]])}),{}}});export{fe as V,Ve as a,xe as b,be as c,Ce as d};
