Module 874739

1,744 characters · in 6757987e401f8e1f.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),f=n(699707),A=n(713397),x=n(652215),g=n(806931),C=n(562200);let y=(0,s.A)(e=>{let{participants:t,filteredParticipants:n,selectedParticipant:s,participantsVersion:y,layout:j,onSelectParticipant:I,onContextMenuParticipant:v,onFullscreenParticipant:E,channel:N,hasConnectPermission:b,className:_,inCall:T,showParticipants:R=!0,width:S,height:L,idle:O,mode:P,popoutType:w,awaitingRemoteSessionInfo:M,callContainerDimensions:D}=e;l.useEffect(()=>{u._.dispatch(x.jej.REMEASURE_TARGET)},[S,L,D.width,D.height]);let U=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(N.id),[N.id]);if(M?.channelId===N.id)return(0,i.jsx)(p.A,{height:L});if(N?.isGuildVocalOrThread()&&!T)return(0,i.jsx)(h.A,{channel:N,participants:t,hasConnectPermission:b});if(n=T?n:t,P===x._Of.VOICE)return(0,i.jsx)(c.A,{guildId:N.guild_id,width:S,className:C.Er,participants:t,onContextMenu:v});if(null==s){if(0===n.length){let e=t.length>0&&!V;return(0,i.jsx)(A.A,{channelId:N.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:N,className:C.g9,participants:U,totalNumberOfParticipants:t.length,onClick:I,onDoubleClick:E,onContextMenu:v,inCall:T,popoutType:w})})}return(0,i.jsx)(f.A,{onFullscreenParticipant:E,onContextMenuParticipant:v,onSelectParticipant:I,selectedParticipant:s,filteredParticipants:U,participants:t,popoutType:w,className:_,idle:O,height:L,width:S,layout:j,inCall:T,channel:N,showParticipants:R})})}