import{u as w,A as r,a as A}from"./Avatar.85f5d775.js";import{d as I,a8 as $,f as k,aC as D,bM as G,au as _,aw as j,b as l,cH as E,ab as c}from"./vue-router.c536fc2b.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]="f2e6d0b0-3fbd-40d4-92de-0d2e50c0b3fb",e._sentryDebugIdIdentifier="sentry-dbid-f2e6d0b0-3fbd-40d4-92de-0d2e50c0b3fb")}catch{}})();const N=()=>({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"}}),O=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:N(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:b}=$("avatar",e),d=k(()=>`${y.value}-group`),[v,h]=w(y);return D(()=>{const i={size:e.size,shape:e.shape};A(i)}),()=>{const{maxPopoverPlacement:i="top",maxCount:a,maxStyle:x,maxPopoverTrigger:C="hover",shape:S}=e,g={[d.value]:!0,[`${d.value}-rtl`]:b.value==="rtl",[`${t.class}`]:!!t.class,[h.value]:!0},P=G(m,e),s=_(P).map((o,f)=>j(o,{key:`avatar-key-${f}`})),u=s.length;if(a&&a<u){const o=s.slice(0,a),f=s.slice(a,u);return o.push(l(E,{key:"avatar-popover-key",content:f,trigger:C,placement:i,overlayClassName:`${d.value}-popover`},{default:()=>[l(r,{style:x,shape:S},{default:()=>[`+${u-a}`]})]})),v(l("div",c(c({},t),{},{class:g,style:t.style}),[o]))}return v(l("div",c(c({},t),{},{class:g,style:t.style}),[s]))}}}),p=O;r.Group=p;r.install=function(e){return e.component(r.name,r),e.component(p.name,p),e};export{p as G};
//# sourceMappingURL=index.66bfc7d1.js.map
