Module 241215

1,624 characters · in 8852cca078952daf.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>x});var i=n(477900),l=n(17928),a=n(939249),s=n(367513),r=n(313961),o=n(267102),c=n(699707),d=n(461782),u=n(734057),h=n(309010),p=n(920639),m=n(889426),A=n(652215),f=n(804362);let x=function(e){let{channelId:t,popoutType:n,width:x,height:g}=e,C=(0,o.Us)(),y=(0,l.bG)([r.A],()=>r.A.getSelectedParticipant(t)),j=(0,l.bG)([u.A],()=>u.A.getChannel(t)),v=(0,l.bG)([h.Ay],()=>null!=j&&h.Ay.getVoiceChannelId()===j.id),{participants:E,layout:N,participantsOpen:I}=(0,l.cf)([r.A],()=>{let e=null!=j?r.A.getLayout(j.id,C):A.DUB.NORMAL;return{participants:r.A.getParticipants(t),layout:C===A.BRT.POPOUT&&e!==A.DUB.FULL_SCREEN?A.DUB.NO_CHAT:e,participantsOpen:r.A.getParticipantsOpen(t)}}),b=(0,l.yK)([r.A],()=>[...r.A.getStreamParticipants(t),...r.A.getVideoParticipants(t)]);if(null==y||null==j)return null;function T(e,n){null!=j&&(n.preventDefault(),n.stopPropagation(),y?.id===e.id?(s.A.selectParticipant(j.id,null),(0,p.n0)({interactionType:"call_tile_collapsed",channelId:t})):s.A.selectParticipant(j.id,e.id))}return(0,i.jsx)(a.D,{style:{width:x,height:g},className:f.L,onClick:function(){null!=j&&(s.A.selectParticipant(j.id,null),(0,p.n0)({interactionType:"call_tile_collapsed",channelId:t}))},children:(0,i.jsx)(d.Ay,{timeout:2e3,children:e=>(0,i.jsx)(c.A,{onSelectParticipant:T,selectedParticipant:y,popoutType:n,channel:j,width:x,height:g,inCall:v,participants:E,layout:N,filteredParticipants:b,idle:e.idle,showParticipants:I,onContextMenuParticipant:(e,n,i,l)=>(0,m.A)({participant:e,event:n,minimalContextMenu:i,entrypoint:l,channelId:t,appContext:C,location:"GuildRoomVideoOverlay"})})})})}}