Module 874739

1,744 characters · in d229bff08458881c.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>y});var i=n(477900),l=n(582128),a=n(17928),s=n(456412),r=n(878549),o=n(198052),c=n(493387),d=n(235986),u=n(625494),h=n(484191),p=n(665450),m=n(526369),A=n(699707),f=n(713397),x=n(652215),g=n(806931),C=n(804273);let y=(0,s.A)(e=>{let{participants:t,filteredParticipants:n,selectedParticipant:s,participantsVersion:y,layout:j,onSelectParticipant:I,onContextMenuParticipant:N,onFullscreenParticipant:v,channel:E,hasConnectPermission:b,className:_,inCall:T,showParticipants:S=!0,width:R,height:L,idle:O,mode:P,popoutType:M,awaitingRemoteSessionInfo:w,callContainerDimensions:U}=e;l.useEffect(()=>{u._.dispatch(x.jej.REMEASURE_TARGET)},[R,L,U.width,U.height]);let D=l.useMemo(()=>n.filter(e=>e.type!==g.lp.ACTIVITY||!e.participants.some(e=>(0,r.S)(e))),[n,y]),V=(0,a.bG)([o.A],()=>o.A.getVoiceParticipantsHidden(E.id),[E.id]);if(w?.channelId===E.id)return(0,i.jsx)(p.A,{height:L});if(E?.isGuildVocalOrThread()&&!T)return(0,i.jsx)(h.A,{channel:E,participants:t,hasConnectPermission:b});if(n=T?n:t,P===x._Of.VOICE)return(0,i.jsx)(c.A,{guildId:E.guild_id,width:R,className:C.Er,participants:t,onContextMenu:N});if(null==s){if(0===n.length){let e=t.length>0&&!V;return(0,i.jsx)(f.A,{channelId:E.id,allPoppedOut:e})}return(0,i.jsx)(d.A,{className:C.HA,justify:d.A.Justify.CENTER,align:d.A.Align.CENTER,children:(0,i.jsx)(m.A,{channel:E,className:C.g9,participants:D,totalNumberOfParticipants:t.length,onClick:I,onDoubleClick:v,onContextMenu:N,inCall:T,popoutType:M})})}return(0,i.jsx)(A.A,{onFullscreenParticipant:v,onContextMenuParticipant:N,onSelectParticipant:I,selectedParticipant:s,filteredParticipants:D,participants:t,popoutType:M,className:_,idle:O,height:L,width:R,layout:j,inCall:T,channel:E,showParticipants:S})})}