import{f as y,E as o,i,Q as x,N as z,O as v,R as C,S as c,C as f,D as s}from"./entry.2xM5grDS.js";import{_ as h,a as w}from"./Avatar.AyoIKaT6.js";import{u as G}from"./selectMenu.72ERhOvP.js";import"./Icon.sNzKdesA.js";import"./Icon.rhzHF9SY.js";import"./index.aIcZnwHK.js";import"./_plugin-vue_export-helper.x3n3nnut.js";const _={wrapper:"inline-flex flex-row-reverse justify-end",ring:"ring-2 ring-white dark:ring-gray-900",margin:"-me-1.5 first:me-0"},m=f(s.ui.strategy,s.ui.avatar,w),b=f(s.ui.strategy,s.ui.avatarGroup,_),R=y({inheritAttrs:!1,props:{size:{type:String,default:null,validator(a){return Object.keys(m.size).includes(a)}},max:{type:Number,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(a,{slots:g}){const{ui:t,attrs:p}=G("avatarGroup",o(a,"ui"),b,o(a,"class")),n=i(()=>x(g)),r=i(()=>typeof a.max=="string"?parseInt(a.max,10):a.max),d=i(()=>n.value.map((l,u)=>{const e={};return!a.max||r.value&&u<r.value?(a.size&&(e.size=a.size),e.class=l.props.class||"",e.class=z(v(e.class,t.value.ring,t.value.margin),e.class),C(l,e)):r.value!==void 0&&u===r.value?c(h,{size:a.size||m.default.size,text:`+${n.value.length-r.value}`,class:v(t.value.ring,t.value.margin)}):null}).filter(Boolean).reverse());return()=>c("div",{class:t.value.wrapper,...p.value},d.value)}});export{R as default};
