try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d0f35006-b308-419c-a690-6033eb5c1b97`,e._sentryDebugIdIdentifier=`sentry-dbid-d0f35006-b308-419c-a690-6033eb5c1b97`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{l as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Dg as r,Fg as i,R as a,b as o,dn as s,mr as c,or as l,sh as u}from"./entry.client-dr7r6s9a.js";var d=i(),f=e(l(),1),p=n(),m=4,h=e=>{let n=(0,d.c)(34),r,i,s,c,l,u;n[0]===e?(r=n[1],i=n[2],s=n[3],c=n[4],l=n[5],u=n[6]):({className:i,peopleData:s,gamerpicImageConstraints:r,fallbackPadding:c,innerContentClassName:l,...u}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=c,n[5]=l,n[6]=u);let m=a(r),h;n[7]!==m.className||n[8]!==i?(h=(0,f.default)(m.className,i),n[7]=m.className,n[8]=i,n[9]=h):h=n[9];let g=h,_;n[10]===s?_=n[11]:(_=s??[],n[10]=s,n[11]=_);let v;if(n[12]!==r||n[13]!==m||n[14]!==c||n[15]!==_){let e;n[17]!==r||n[18]!==m||n[19]!==c?(e=e=>(0,p.jsx)(o,{alt:e?.gamertag.uniqueGamertag,gamerpicImageConstraints:r,gamerpicUrl:e?.gamerpicUrl,isGroupImage:!0,responsiveItemStyles:m,fallbackPadding:c}),n[17]=r,n[18]=m,n[19]=c,n[20]=e):e=n[20],v=_.map(e),n[12]=r,n[13]=m,n[14]=c,n[15]=_,n[16]=v}else v=n[16];let y=v,b=!s||s.length===0;if(b){let e;n[21]!==r||n[22]!==m||n[23]!==c?(e=Array.from({length:2}).map((e,t)=>(0,p.jsx)(o,{gamerpicImageConstraints:r,isGroupImage:!0,responsiveItemStyles:m,fallbackPadding:c},t)),n[21]=r,n[22]=m,n[23]=c,n[24]=e):e=n[24],y=e}let x=m.style,S=y,C;n[25]!==b||n[26]!==l?(C=(0,f.default)(l,{"border border-gamerpic-content-fallback":b}),n[25]=b,n[26]=l,n[27]=C):C=n[27];let w;return n[28]!==g||n[29]!==m.style||n[30]!==y||n[31]!==C||n[32]!==u?(w=(0,p.jsx)(t,{className:g,style:x,gamerpicImageComponents:S,innerContentClassName:C,...u}),n[28]=g,n[29]=m.style,n[30]=y,n[31]=C,n[32]=u,n[33]=w):w=n[33],w},g=s(h,({xuids:e,...t})=>{let{profile:n}=u(),i=e.length<=m?e:e.slice(0,m),{data:a}=r(n.queries.people.getActiveUserQuery().getOptions({xuids:i}));return{peopleData:a,...t}}),_=c(({xuids:e,gamerpicImageConstraints:t,className:n,...r})=>{let i=g.useComponent();return e.length===0?(0,p.jsx)(h,{className:n,peopleData:[],gamerpicImageConstraints:t,...r}):(0,p.jsx)(i,{xuids:e,className:n,gamerpicImageConstraints:t,...r})},`ResponsiveGroupGamerpic`);export{_ as t};