Build 533169stable
Module 614170
1,671 characters · in c8222e778476c33e.jsDependencies
Source Raw
function(e,n,t){t.d(n,{A:()=>k});var i=t(627968);t(64700);var l=t(311907),a=t(857071),r=t(69407),s=t(446600),c=t(734057),o=t(71393),d=t(576705),u=t(383501),g=t(287809),A=t(707592),h=t(698441),m=t(485394),x=t(961022),C=t(794782),v=t(9448),p=t(974930),N=t(691012),E=t(895202),f=t(482857),j=t(652215);function k(e){let{guildEvent:n,truncate:t,onActionTaken:k,className:y,isNew:G}=e,{id:_,guild_id:I,channel_id:b,creator_id:T,name:P,description:L,entity_type:S,image:M,recurrence_rule:w}=n,D=(0,p.G3)(n),B=(0,l.bG)([h.Ay],()=>h.Ay.isInterestedInEventRecurrence(_,D),[_,D]),U=(0,l.bG)([a.A],()=>a.A.isLurking(I),[I]),R=(0,l.bG)([s.A],()=>s.A.getStageInstanceByChannel(b),[b]),V=(0,l.bG)([o.A],()=>o.A.getGuild(I),[I]),O=(0,l.bG)([c.A],()=>c.A.getChannel(b),[b]),K=(0,l.bG)([g.default],()=>g.default.getUser(T),[T]),{speakers:H}=(0,x.A)({id:b,data:{guild:null,instance:R,speakers:[],participantCount:0},context:{guildId:I,instance:R}}),J=(0,l.bG)([u.A],()=>u.A.getChannelId()),z=(0,h.Fd)(n),q=J===b&&null!=J&&z,F=H.filter(e=>e.type===r.wY.VOICE),X=F.length,W=(0,l.bG)([d.A],()=>d.A.can(j.xBc.CONNECT,O),[O]),Q=(0,m.Ay)(n),Y=null!=V,Z=(0,f.A)({guild:V,channel:O,guildScheduledEvent:n,isActive:z,recurrenceId:D,onActionTaken:k}),$=U?void 0:e=>(0,A.uR)({eventId:_,recurrenceId:e});return(0,i.jsx)(E.A,{guild:V,channel:O,creator:K,name:P,entityType:S,description:L??void 0,location:(0,v.oF)(n)??void 0,imageSource:null!=M?(0,N.A)(n):void 0,imageLocation:E.c.THUMBNAIL,isActive:z,isUserLurking:U,isJoined:q,isMember:Y,speakers:F,canConnect:W,speakerCount:X,rsvped:B,canInvite:Q,...Z,className:y,onClick:$,truncate:t,isNew:G,guildEvent:n,recurrenceRule:(0,C.Sn)(w),recurrenceId:D})}}