import{a as o,c as y,d as f,g as V,h as k,n as h}from"./VImg-601f5a2c.js";import{z as c,aR as C,aL as P,ab as S,p as z,ah as A,y as R,B as x,J as u}from"./index-9b57d2d5.js";import{m as B,e as I,c as T,f as D,a as F,g as _,V as b,i as J}from"./index-a0309372.js";function j(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",e=arguments.length>2?arguments[2]:void 0;return c()({name:e??C(P(a.replace(/__/g,"-"))),props:{tag:{type:String,default:l},...o()},setup(t,r){let{slots:s}=r;return()=>{var n;return S(t.tag,{class:[a,t.class],style:t.style},(n=s.default)==null?void 0:n.call(s))}}})}const L=z({start:Boolean,end:Boolean,icon:A,image:String,text:String,...o(),...B(),...y(),...I(),...f(),...R(),...T({variant:"flat"})},"VAvatar"),q=c()({name:"VAvatar",props:L(),setup(a,l){let{slots:e}=l;const{themeClasses:t}=x(a),{colorClasses:r,colorStyles:s,variantClasses:n}=D(a),{densityClasses:m}=F(a),{roundedClasses:v}=V(a),{sizeClasses:g,sizeStyles:d}=_(a);return k(()=>u(a.tag,{class:["v-avatar",{"v-avatar--start":a.start,"v-avatar--end":a.end},t.value,r.value,m.value,v.value,g.value,n.value,a.class],style:[s.value,d.value,a.style]},{default:()=>{var i;return[a.image?u(h,{key:"image",src:a.image,alt:"",cover:!0},null):a.icon?u(b,{key:"icon",icon:a.icon},null):((i=e.default)==null?void 0:i.call(e))??a.text,J(!1,"v-avatar")]}})),{}}});export{q as V,j as c};
