Loading
function(e,i,t){var n=t(477900),l=t(582128),s=t(503698),a=t.n(s),r=t(834730),d=t(597601),o=t(866665),u=t(265872),c=t(367513),A=t(442433),m=t(597798),g=t(401843),h=t(296216),f=t(793574),p=t(480890),I=t(47167),v=t(643501),S=t(916641),_=t(652896),x=t(279250),y=t(346846),E=t(342296),N=t(293277),C=t(46653),b=t(71393),j=t(576705),T=t(287809),G=t(977997),O=t(772800);t(281405);var P=t(544105),V=t(55010),w=t(792996),k=t(321313);let R=(0,h.J)(function(e){let{collapsed:i,user:s,channel:r,mute:d,localMute:h,localVideoDisabled:R,deaf:U,video:M,embeddedApplication:D,serverMute:L,serverDeaf:F,nick:z,ringing:B,speaking:K,playingSoundboard:Y,disconnected:q,connecting:H,connectUserDragSource:$,canDrag:W,isStreaming:Z,isWatching:J,isGuest:X,priority:Q,showPreview:ee,hidePreview:ei,shouldShowHoverPopout:et,otherClientSessionType:en,voicePlatform:el,isSelfOnOtherClient:es=!1,tabIndex:ea,isSelf:er,application:ed,game:eo,soundboardMuted:eu}=e,ec=(0,I.Ay)(r),eA=l.useRef(null),[em,eg]=l.useState(!1),eh=l.useRef(null);function ef(){eg(!em)}function ep(e){eI()}function eI(){clearTimeout(eh.current),ei?.(s.id)}let ev=W?null:{draggable:!0,onDragStart:function(e){e.preventDefault(),e.stopPropagation()}};function eS(){if(!Z||!(0,x.eo)(r,G.A,b.A,j.A,v.default)[0])return;let e={streamType:V.U4.GUILD,ownerId:s.id,channelId:r.id,guildId:r.guild_id};C.default.getId()!==s.id&&m.default.selectVoiceChannel(r.id),J?((0,y.A)(e),c.A.selectParticipant(e.channelId,(0,_._z)(e))):(0,g.Nl)(e),ei?.(s.id)}function e_(e){(0,A.L3)(e,async()=>{let{default:e}=await Promise.all([t.e(339715),t.e(24312),t.e(622936),t.e(216947),t.e(463317),t.e(834552),t.e(993103),t.e(708757),t.e(585968),t.e(893190),t.e(713708),t.e(21921),t.e(885533),t.e(189673),t.e(676418),t.e(571210),t.e(166495),t.e(576432),t.e(797558),t.e(830221),t.e(451162),t.e(229787),t.e(88342),t.e(576665),t.e(311802),t.e(698965),t.e(235313),t.e(624198),t.e(715038),t.e(579245),t.e(252229),t.e(245996),t.e(939171),t.e(144472),t.e(700792),t.e(552172),t.e(529422),t.e(823427),t.e(242204),t.e(307059),t.e(309291),t.e(495861),t.e(343116),t.e(470314),t.e(70515),t.e(404524),t.e(654148),t.e(666939),t.e(281165),t.e(184841)]).then(t.bind(t,107632));return i=>(0,n.jsx)(e,{...i,user:s,guildId:r.guild_id,channel:r,showMediaItems:!0,showStageChannelItems:r.isGuildStageVoice(),onInteraction:(0,p.s)("GuildChannelUserContextMenu",f.A.VOICE_USER,{targetUserId:s.id})})})}l.useEffect(()=>()=>{clearTimeout(eh.current)},[]);let ex=(0,n.jsx)("div",{className:k.kZ,"data-dnd-name":ec,...ev,onMouseEnter:es?void 0:function(){em||(eh.current=setTimeout(()=>ee?.(s.id),100))},onMouseLeave:es?void 0:eI,children:(0,n.jsx)(E.A,{clickTrap:s?.id===T.default.getCurrentUser()?.id&&em,targetElementRef:eA,user:s,guildId:r.guild_id,channelId:r.id,newAnalyticsLocations:[f.A.VOICE_USER],shouldShow:em,onRequestClose:()=>eg(!1),children:e=>{let t,l;return t=P.hv.has(en??""),l={user:s,speaking:K,playingSoundboard:Y,disconnected:q,connecting:H,mute:d,localMute:h,localVideoDisabled:R,isStreaming:Z,isGuest:X,video:M,priority:Q,ringing:B,deaf:U,nick:z,collapsed:i,overlap:i,serverMute:L,serverDeaf:F,tabIndex:ea,otherClientSessionType:en,voicePlatform:el,embeddedApplication:D,avatarContainerClass:a()({[k.dj]:!0}),disabled:es&&!t,selected:em,onClick:t?void 0:ef,onDoubleClick:eS,onContextMenu:e_,guildId:r.guild_id,isSelf:er,application:ed,game:eo,channelId:r.id,soundboardMuted:eu},es?(0,n.jsx)(o.m,{text:(0,S.A)(en)??w.intl.string(w.t.IyYqqY),children:(0,n.jsx)(N.Ay,{ref:eA,...l})}):(0,n.jsx)(u.Y,{targetElementRef:eA,position:"right",renderPopout:e=>{let{setPopoutRef:i}=e;return(0,n.jsx)(O.A,{channel:r,user:s,onAction:eI,onWatchStream:Z?eS:void 0,setPopoutRef:i})},shouldShow:et&&!em,onRequestClose:ep,spacing:17,children:()=>(0,n.jsx)(N.Ay,{...l,ref:eA,onMouseDown:e.onMouseDown,onKeyDown:e.onKeyDown})})}})});return W?$(ex):ex});t.d(i,{},{Ay:R,LR:function(e){let{numUsers:i}=e;return(0,n.jsx)("div",{className:k.BN,children:(0,n.jsxs)(r.E,{color:"text-muted",variant:"body-sm/medium",children:["+",i]})})},aI:function(e){let{numAudience:i,collapsed:t}=e,l=t?i:w.intl.formatToPlainString(w.t["+v2pN2"],{count:i});return(0,n.jsxs)("div",{className:a()(k.yJ,{[k.Nr]:t}),children:[(0,n.jsx)("div",{className:k.$L,children:(0,n.jsx)(d.HeadphonesIcon,{size:"md",color:"currentColor",className:k.wG})}),(0,n.jsx)(r.E,{color:"text-muted",variant:"body-sm/medium",children:l})]})}})}