1import{aj as h,J as z,a_ as C,M as c,O as l,N as _,ap as k,ao as q,a1 as a,aH as B,at as m,Y as n,av as j,aB as G,au as N,Z as A,bi as b,bn as I,bz as w}from"./Ci6g-eB0.js";const M={slots:{root:"inline-flex flex-row-reverse justify-end",base:"relative rounded-full ring-bg first:me-0"},variants:{size:{"3xs":{base:"ring -me-0.5"},"2xs":{base:"ring -me-0.5"},xs:{base:"ring -me-0.5"},sm:{base:"ring-2 -me-1.5"},md:{base:"ring-2 -me-1.5"},lg:{base:"ring-2 -me-1.5"},xl:{base:"ring-3 -me-2"},"2xl":{base:"ring-3 -me-2"},"3xl":{base:"ring-3 -me-2"}}},defaultVariants:{size:"md"}},P={__name:"UAvatarGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},max:{type:[Number,String],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){const e=f,d=h(),g=z(),u=C("avatarGroup",e),i=a(()=>b({extend:b(M),...g.ui?.avatarGroup||{}})({size:e.size})),o=a(()=>typeof e.max=="string"?Number.parseInt(e.max,10):e.max),s=a(()=>{let t=d.default?.();return t?.length&&(t=t.flatMap(r=>typeof r.type=="symbol"?typeof r.children=="string"?void 0:r.children:r).filter(Boolean)),t||[]}),p=a(()=>s.value.length?!o.value||o.value<=0?[...s.value].reverse():[...s.value].slice(0,o.value).reverse():[]),v=a(()=>s.value.length?s.value.length-p.value.length:0);return I(w,a(()=>({size:e.size}))),(t,r)=>(l(),c(n(A),{as:f.as,"data-slot":"root",class:m(i.value.root({class:[n(u)?.root,e.class]}))},{default:_(()=>[v.value>0?(l(),c(B,{key:0,text:`+${v.value}`,"data-slot":"base",class:m(i.value.base({class:n(u)?.base}))},null,8,["text","class"])):k("",!0),(l(!0),q(N,null,j(p.value,(x,y)=>(l(),c(G(x),{key:y,"data-slot":"base",class:m(i.value.base({class:n(u)?.base}))},null,8,["class"]))),128))]),_:1},8,["as","class"]))}};export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.