import{g as p,E as r,G as d,j as u,H as g,Q as x,O as o,R as z,S as v}from"./entry.eb978f24.js";import y from"./Avatar.a7ca17e7.js";import"./_plugin-vue_export-helper.c27b6911.js";const _=p({props:{size:{type:String,default:null,validator(a){return Object.keys(r.ui.avatar.size).includes(a)}},max:{type:Number,default:null},ui:{type:Object,default:()=>r.ui.avatarGroup}},setup(a,{slots:c}){const m=d(),e=u(()=>g({},a.ui,m.ui.avatarGroup)),l=u(()=>x(c)),t=u(()=>typeof a.max=="string"?parseInt(a.max,10):a.max),f=u(()=>l.value.map((n,i)=>{const s={};return!a.max||t.value&&i<t.value?(a.size&&(s.size=a.size),s.class=n.props.class||"",s.class+=` ${o(e.value.ring,e.value.margin)}`,z(n,s)):t.value!==void 0&&i===t.value?v(y,{size:a.size,text:`+${l.value.length-t.value}`,class:o(e.value.ring,e.value.margin)}):null}).filter(Boolean).reverse());return()=>v("div",{class:e.value.wrapper},f.value)}});export{_ as default};
