import{g as d,j as u,P as x,N as o,Q as z,R as v,E as c,G as s}from"./entry.9e31e8a4.js";import{t as y}from"./tw-merge.27ca352e.js";import C from"./Avatar.b92bd51d.js";import{u as G,d as h,e as _}from"./ui.config.7ae255de.js";import"./Icon.fe8c0e68.js";import"./_plugin-vue_export-helper.c27b6911.js";const m=c(s.ui.strategy,s.ui.avatar,h),b=c(s.ui.strategy,s.ui.avatarGroup,_),P=d({inheritAttrs:!1,props:{size:{type:String,default:null,validator(a){return Object.keys(m.size).includes(a)}},max:{type:Number,default:null},ui:{type:Object,default:void 0}},setup(a,{slots:f}){const{ui:t,attrs:p}=G("avatarGroup",a.ui,b,{mergeWrapper:!0}),i=u(()=>x(f)),r=u(()=>typeof a.max=="string"?parseInt(a.max,10):a.max),g=u(()=>i.value.map((l,n)=>{const e={};return!a.max||r.value&&n<r.value?(a.size&&(e.size=a.size),e.class=l.props.class||"",e.class=y(o(e.class,t.value.ring,t.value.margin),e.class),z(l,e)):r.value!==void 0&&n===r.value?v(C,{size:a.size||m.default.size,text:`+${i.value.length-r.value}`,class:o(t.value.ring,t.value.margin)}):null}).filter(Boolean).reverse());return()=>v("div",{class:t.value.wrapper,...p.value},g.value)}});export{P as default};
