import{c as d,w as V,o as g,e as f,s as y,r as k,x as P,m as C,p as S,b as x,z,V as A,g as I,f as B}from"./index-W86lZ1ks.js";import{u as h,a as D,m as R}from"./dimensions-g-Hg75km.js";import{s as T,x as b,y as w,e,A as F,am as N}from"./index-BrhME0Dw.js";const O=b({start:Boolean,end:Boolean,icon:N,image:String,text:String,...x(),...R(),...S(),...C(),...P(),...D(),...F(),...k({variant:"flat"})},"VAvatar"),G=T()({name:"VAvatar",props:O(),setup(a,t){let{slots:s}=t;const{themeClasses:n}=w(a),{borderClasses:o}=d(a),{colorClasses:l,colorStyles:r,variantClasses:u}=V(a),{densityClasses:c}=g(a),{roundedClasses:i}=f(a),{sizeClasses:m,sizeStyles:v}=y(a);return h(()=>e(a.tag,{class:["v-avatar",{"v-avatar--start":a.start,"v-avatar--end":a.end},n.value,o.value,l.value,c.value,i.value,m.value,u.value,a.class],style:[r.value,v.value,a.style]},{default:()=>[s.default?e(B,{key:"content-defaults",defaults:{VImg:{cover:!0,src:a.image},VIcon:{icon:a.icon}}},{default:()=>[s.default()]}):a.image?e(A,{key:"image",src:a.image,alt:"",cover:!0},null):a.icon?e(I,{key:"icon",icon:a.icon},null):a.text,z(!1,"v-avatar")]})),{}}});export{G as V};
