import{g as f,a as d,aA as g,B as y,aB as R,p as v,F as P,m as C,aC as m,aD as _,aE as G,aF as T,aa as F,ab as U,aG as x,u as D,aH as K,al as M,aI as J,ae as H,af as W,aJ as Y,ag as q,c as i,aK as Q,V as X,ah as Z,n as p,b as ee}from"./index-C5GbdPxY.js";import{V as te}from"./VImg-BlqLjeEy.js";function me(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",t=arguments.length>2?arguments[2]:void 0;return f()({name:t??g(R(e.replace(/__/g,"-"))),props:{tag:{type:String,default:s},...d()},setup(n,a){let{slots:l}=a;return()=>{var o;return y(n.tag,{class:[e,n.class],style:n.style},(o=l.default)==null?void 0:o.call(l))}}})}const h=m.reduce((e,s)=>(e[s]={type:[Boolean,String,Number],default:!1},e),{}),N=m.reduce((e,s)=>{const t="offset"+g(s);return e[t]={type:[String,Number],default:null},e},{}),j=m.reduce((e,s)=>{const t="order"+g(s);return e[t]={type:[String,Number],default:null},e},{}),k={col:Object.keys(h),offset:Object.keys(N),order:Object.keys(j)};function ae(e,s,t){let n=e;if(!(t==null||t===!1)){if(s){const a=s.replace(e,"");n+=`-${a}`}return e==="col"&&(n="v-"+n),e==="col"&&(t===""||t===!0)||(n+=`-${t}`),n.toLowerCase()}}const ne=["auto","start","end","center","baseline","stretch"],se=v({cols:{type:[Boolean,String,Number],default:!1},...h,offset:{type:[String,Number],default:null},...N,order:{type:[String,Number],default:null},...j,alignSelf:{type:String,default:null,validator:e=>ne.includes(e)},...d(),...C()},"VCol"),ye=f()({name:"VCol",props:se(),setup(e,s){let{slots:t}=s;const n=P(()=>{const a=[];let l;for(l in k)k[l].forEach(r=>{const u=e[r],c=ae(l,r,u);c&&a.push(c)});const o=a.some(r=>r.startsWith("v-col-"));return a.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>{var a;return y(e.tag,{class:[n.value,e.class],style:e.style},(a=t.default)==null?void 0:a.call(t))}}}),S=["start","end","center"],A=["space-between","space-around","space-evenly"];function V(e,s){return m.reduce((t,n)=>{const a=e+g(n);return t[a]=s(),t},{})}const le=[...S,"baseline","stretch"],L=e=>le.includes(e),$=V("align",()=>({type:String,default:null,validator:L})),oe=[...S,...A],w=e=>oe.includes(e),E=V("justify",()=>({type:String,default:null,validator:w})),re=[...S,...A,"stretch"],I=e=>re.includes(e),B=V("alignContent",()=>({type:String,default:null,validator:I})),b={align:Object.keys($),justify:Object.keys(E),alignContent:Object.keys(B)},ue={align:"align",justify:"justify",alignContent:"align-content"};function ce(e,s,t){let n=ue[e];if(t!=null){if(s){const a=s.replace(e,"");n+=`-${a}`}return n+=`-${t}`,n.toLowerCase()}}const ie=v({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:L},...$,justify:{type:String,default:null,validator:w},...E,alignContent:{type:String,default:null,validator:I},...B,...d(),...C()},"VRow"),ve=f()({name:"VRow",props:ie(),setup(e,s){let{slots:t}=s;const n=P(()=>{const a=[];let l;for(l in b)b[l].forEach(o=>{const r=e[o],u=ce(l,o,r);u&&a.push(u)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>{var a;return y(e.tag,{class:["v-row",n.value,e.class],style:e.style},(a=t.default)==null?void 0:a.call(t))}}}),fe=v({start:Boolean,end:Boolean,icon:q,image:String,text:String,...Y(),...d(),...W(),...H(),...J(),...C(),...M(),...K({variant:"flat"})},"VAvatar"),Ce=f()({name:"VAvatar",props:fe(),setup(e,s){let{slots:t}=s;const{themeClasses:n}=_(e),{borderClasses:a}=G(e),{colorClasses:l,colorStyles:o,variantClasses:r}=T(e),{densityClasses:u}=F(e),{roundedClasses:c}=U(e),{sizeClasses:z,sizeStyles:O}=x(e);return D(()=>i(e.tag,{class:ee(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},n.value,a.value,l.value,u.value,c.value,z.value,r.value,e.class]),style:p([o.value,O.value,e.style])},{default:()=>[t.default?i(Z,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[t.default()]}):e.image?i(te,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?i(X,{key:"icon",icon:e.icon},null):e.text,Q(!1,"v-avatar")]})),{}}});export{ve as V,ye as a,Ce as b,me as c};
