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]=`882f2170-9653-44ff-bd2b-e2fb179c8c1a`,e._sentryDebugIdIdentifier=`sentry-dbid-882f2170-9653-44ff-bd2b-e2fb179c8c1a`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,L as n,Oi as r,Q as i,Qh as a,Zm as o,_r as s,ng as c,pi as l}from"./entry.client-mpghtlrl.js";import{c as u}from"./xds-react-components-ihgca01z.js";var d=t(),f=e(l(),1),p=c(),m=4,h=e=>{let t=(0,d.c)(34),r,a,o,s,c,l;t[0]===e?(r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]):({className:a,peopleData:o,gamerpicImageConstraints:r,fallbackPadding:s,innerContentClassName:c,...l}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l);let m=i(r),h;t[7]!==m.className||t[8]!==a?(h=(0,f.default)(m.className,a),t[7]=m.className,t[8]=a,t[9]=h):h=t[9];let g=h,_;t[10]===o?_=t[11]:(_=o??[],t[10]=o,t[11]=_);let v;if(t[12]!==r||t[13]!==m||t[14]!==s||t[15]!==_){let e;t[17]!==r||t[18]!==m||t[19]!==s?(e=e=>(0,p.jsx)(n,{alt:e?.gamertag.uniqueGamertag,gamerpicImageConstraints:r,gamerpicUrl:e?.gamerpicUrl,isGroupImage:!0,responsiveItemStyles:m,fallbackPadding:s}),t[17]=r,t[18]=m,t[19]=s,t[20]=e):e=t[20],v=_.map(e),t[12]=r,t[13]=m,t[14]=s,t[15]=_,t[16]=v}else v=t[16];let y=v,b=!o||o.length===0;if(b){let e;t[21]!==r||t[22]!==m||t[23]!==s?(e=Array.from({length:2}).map((e,t)=>(0,p.jsx)(n,{gamerpicImageConstraints:r,isGroupImage:!0,responsiveItemStyles:m,fallbackPadding:s},t)),t[21]=r,t[22]=m,t[23]=s,t[24]=e):e=t[24],y=e}let x=m.style,S=y,C;t[25]!==b||t[26]!==c?(C=(0,f.default)(c,{"border border-gamerpic-content-fallback":b}),t[25]=b,t[26]=c,t[27]=C):C=t[27];let w;return t[28]!==g||t[29]!==m.style||t[30]!==y||t[31]!==C||t[32]!==l?(w=(0,p.jsx)(u,{className:g,style:x,gamerpicImageComponents:S,innerContentClassName:C,...l}),t[28]=g,t[29]=m.style,t[30]=y,t[31]=C,t[32]=l,t[33]=w):w=t[33],w},g=s(h,({xuids:e,...t})=>{let{profile:n}=o(),r=e.length<=m?e:e.slice(0,m),{data:i}=a(n.queries.people.getActiveUserQuery().getOptions({xuids:r}));return{peopleData:i,...t}}),_=r(({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{h as n,_ as t};