Build 600590stable
Module 322789
2,627 characters · in ec2f972b6b5b13b5.jsDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>M,n:()=>O});var l=n(477900),i=n(582128),s=n(696292),r=n(554146),a=n(939249),o=n(414499),u=n(661531),c=n(834730),d=n(812993),h=n(146779),m=n(627363),f=n(131607),p=n(409626),g=n(692969),x=n(932413),A=n(975732),C=n(964195),E=n(939341),I=n(99066),y=n(291594),v=n(263577),S=n(506326),N=n(868065),_=n(424994),T=n(518477),j=n(375708),b=n(273783),R=n(804779);let O=[S.iq,S.Zc,S.Xy,S.$X,S.tR,S.K7,S.fg,S.sp,S.MK],M=i.memo(function(e){let{entry:t,channel:n,selected:i,hovered:M,isFirstApplicationOccurrence:L,trackRankingItemInteraction:w}=e,{largeImage:k}=(0,E.nO)({entry:t,showCoverImage:!1,trackingSource:"memberlist_gaming_content_row"}),{data:P}=(0,m.YY)(t.extra.application_id),D=(0,h.JC)(P)&&L,U=D?[r.M.CLOUD_PLAY_NEW_BADGE]:[],[G]=(0,f.kn)(U),V=(0,I.dN)("MemberListGamingContent"),F=(0,g.A)({location:"Member List Activity Card",applicationId:V?t.extra.application_id:void 0,source:p.GameProfileSources.ActivityCard,trackEntryPointImpression:V,sourceUserId:t.author_id},{onOpened:()=>w(_.PA.OPENED_GAME_PROFILE)}),H=V?F:void 0,B=j.intl.formatToPlainString(j.t["9sZWVp"],{gameName:t.extra.game_name}),W=(0,l.jsx)(v.V,{alt:k?.text??k?.alt,src:k?.src,size:48,className:R.xn,showTooltip:k?.text!=null}),K=(0,l.jsx)(N.ZB,{children:t.extra.game_name});return(0,l.jsxs)(N.Zp,{selected:i,usesCardRows:!0,children:[(0,l.jsx)(x.A,{applicationId:t.extra.application_id,questContent:s.u.MEMBERS_LIST_CARD,children:e=>(0,l.jsxs)(N.dM,{ref:e,children:[(0,l.jsxs)(N.UA,{children:[(0,l.jsx)(N.Hp,{entry:t,channelId:n.id,guildId:n.guild_id}),null!=H?(0,l.jsx)(y.A,{className:b.N4,onClick:H,children:K}):K,(0,l.jsx)(S.mG,{location:S.N5.CARD,children:O.map((e,n)=>(0,l.jsx)(e,{entry:t,hovered:M},n))})]}),null!=H?(0,l.jsx)(a.D,{className:b.vi,onClick:H,"aria-label":B,children:W}):W]})}),D&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N.ik,{}),(0,l.jsxs)(N.dM,{className:b.DK,children:[(0,l.jsxs)("div",{className:b.tJ,children:[(0,l.jsx)(o.h,{color:u.A.colors.ICON_SUBTLE,size:"xxs"}),(0,l.jsx)(c.E,{variant:"text-xs/normal",color:"text-subtle",children:j.intl.string(j.t["5HiF2i"])})]}),G===r.M.CLOUD_PLAY_NEW_BADGE&&(0,l.jsx)(d.Lp,{text:j.intl.string(j.t.y2b7CA),color:u.A.colors.BACKGROUND_BRAND.css})]})]}),"applicationWidgetPreview"in t&&null!=t.applicationWidgetPreview&&(0,l.jsx)(C.F,{userId:t.author_id,widgetApplicationId:t.applicationWidgetPreview.widgetApplicationId,hasWidget:t.applicationWidgetPreview.hasWidget,className:b.AB,compactViewMore:!0,onClickViewMore:()=>{w(_.PA.APPLICATION_WIDGET_PREVIEW_VIEW_MORE),(0,A.openUserProfileModal)({userId:t.author_id,tabSection:T.RP.WIDGETS})}})]})})}