import{u as w,A as r,a as A}from"./Avatar.85cb2dd6.js";import{d as I,a9 as $,g as k,aE as D,bO as E,aw as G,ay as O,b as l,cH as _,ac as c}from"./index.6b1213c6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="138c5534-8527-45fa-a50b-0b24d211dd47",e._sentryDebugIdIdentifier="sentry-dbid-138c5534-8527-45fa-a50b-0b24d211dd47")}catch{}})();const j=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),N=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:j(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:h}=$("avatar",e),i=k(()=>`${y.value}-group`),[g,b]=w(y);return D(()=>{const d={size:e.size,shape:e.shape};A(d)}),()=>{const{maxPopoverPlacement:d="top",maxCount:a,maxStyle:x,maxPopoverTrigger:S="hover",shape:C}=e,v={[i.value]:!0,[`${i.value}-rtl`]:h.value==="rtl",[`${t.class}`]:!!t.class,[b.value]:!0},P=E(m,e),s=G(P).map((o,p)=>O(o,{key:`avatar-key-${p}`})),u=s.length;if(a&&a<u){const o=s.slice(0,a),p=s.slice(a,u);return o.push(l(_,{key:"avatar-popover-key",content:p,trigger:S,placement:d,overlayClassName:`${i.value}-popover`},{default:()=>[l(r,{style:x,shape:C},{default:()=>[`+${u-a}`]})]})),g(l("div",c(c({},t),{},{class:v,style:t.style}),[o]))}return g(l("div",c(c({},t),{},{class:v,style:t.style}),[s]))}}}),f=N;r.Group=f;r.install=function(e){return e.component(r.name,r),e.component(f.name,f),e};export{f as G};
//# sourceMappingURL=index.b230dc7b.js.map
