import{V as X}from"./DSnRMG2T.js";import{g as f,a as g,b as t,ah as B,n as x,p as k,aw as C,az as p,c as l,F as I,h,d as b,Q as A,I as u,bB as T,R as P,b4 as Y,ba as q,bX as G,bA as J,bO as K,as as Z,cR as $,ap as ee,bW as ae,af as te,w as ne,l as de,aF as le,aA as ie,aW as se,bF as ce,av as re,bY as ue,ax as oe,cS as me,ay as ve,bQ as ye,aT as be,au as fe,bf as ge,bP as ke,f as Ce,aC as pe}from"#entry";import{c as Ve}from"./BML-0xFj.js";import{V as S,a as Ie}from"./CIr4U5gS.js";import{V as he}from"./DArAxlee.js";const Ae=k({opacity:[Number,String],...p(),...C()},"VCardSubtitle"),Pe=f()({name:"VCardSubtitle",props:Ae(),setup(e,i){let{slots:n}=i;return g(()=>t(e.tag,{class:x(["v-card-subtitle",e.class]),style:B([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Se=Ve("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},...p(),...T(),...C()},"VCardItem"),xe=f()({name:"VCardItem",props:Be(),setup(e,i){let{slots:n}=i;return g(()=>{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),y=!!(e.subtitle!=null||n.subtitle);return t(e.tag,{class:x(["v-card-item",e.class]),style:B(e.style)},{default:()=>[o&&l("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?t(b,{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)]}),y&&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(b,{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)])])]})}),{}}}),Te=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},...ge(),...p(),...T(),...fe(),...be(),...ye(),...ve(),...me(),...oe(),...ue(),...C(),...re(),...ce({variant:"elevated"})},"VCard"),Fe=f()({name:"VCard",directives:{vRipple:P},props:Te(),setup(e,i){let{attrs:n,slots:a}=i;const{themeClasses:o}=Y(e),{borderClasses:c}=q(e),{colorClasses:m,colorStyles:v,variantClasses:y}=G(e),{densityClasses:R}=J(e),{dimensionStyles:L}=ie(e),{elevationClasses:N}=se(e),{loaderClasses:_}=K(e),{locationStyles:D}=Z(e),{positionClasses:F}=$(e),{roundedClasses:w}=ee(e),r=ae(e,n),V=pe(void 0);return te(()=>e.loading,(s,d)=>{V.value=!s&&typeof d=="string"?d:typeof s=="boolean"?void 0:s},{immediate:!0}),g(()=>{const s=e.link!==!1&&r.isLink.value,d=!e.disabled&&e.link!==!1&&(e.link||r.isClickable.value),z=s?"a":e.tag,O=!!(a.title||e.title!=null),E=!!(a.subtitle||e.subtitle!=null),M=O||E,Q=!!(a.append||e.appendAvatar||e.appendIcon),W=!!(a.prepend||e.prependAvatar||e.prependIcon),j=!!(a.image||e.image),H=M||W||Q,U=!!(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,R.value,N.value,_.value,F.value,w.value,y.value,e.class],style:[v.value,L.value,D.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(b,{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:V.value},{default:a.loader}),H&&t(xe,{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}),U&&t(he,{key:"text"},{default:()=>[a.text?.()??e.text]}),a.default?.(),a.actions&&t(X,null,{default:a.actions}),Ce(d,"v-card")]}),[[P,d&&e.ripple]])}),{}}});export{Fe as V,Se as a,Pe as b};
