Module 874739

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