Loading
function(e,t,n){"use strict";n.d(t,{$X:()=>ea,K7:()=>en,MK:()=>ee,N5:()=>Y,R_:()=>Q,Rq:()=>el,Xr:()=>ei,Xy:()=>q,Y8:()=>er,Yq:()=>eu,Zc:()=>X,er:()=>$,fM:()=>z,fg:()=>es,iT:()=>ed,iq:()=>Z,mG:()=>ec,sp:()=>et,tR:()=>J,zi:()=>eo});var i,r=n(627968),s=n(64700),a=n(503698),o=n.n(a),l=n(989349),u=n.n(l),c=n(681154),d=n(974690),_=n(379834),h=n(990078),f=n(834730),p=n(983851),E=n(661531),m=n(183623),g=n(323384),A=n(687966),I=n(177953),T=n(432017),S=n(246913),y=n(291747),C=n(417270),N=n(768622),v=n(369606),R=n(825860),O=n(605323),b=n(748562),D=n(306788),L=n(47167),w=n(619517),M=n(927813),P=n(403362),x=n(935208),k=n(20805),U=n(202195),G=n(751765),F=n(299846),V=n(693879);n(424994);var B=n(375708),j=n(164123);let H={[c.ContentInventoryEntryType.TOP_ARTIST]:[er],[c.ContentInventoryEntryType.PLAYED_GAME]:[Z,X,q,ea,J,en,es,et,ee],[c.ContentInventoryEntryType.TOP_GAME]:[ei],[c.ContentInventoryEntryType.WATCHED_MEDIA]:[eo,el],[c.ContentInventoryEntryType.LAUNCHED_ACTIVITY]:[Z,X,q,ea,es,ee]};var Y=((i={})[i.CARD=0]="CARD",i[i.POPOUT=1]="POPOUT",i[i.STREAMING_POPOUT=2]="STREAMING_POPOUT",i[i.GAME_PROFILE=3]="GAME_PROFILE",i[i.USER_PROFILE=4]="USER_PROFILE",i[i.EMBED=5]="EMBED",i[i.LEADERBOARD_POPOUT=6]="LEADERBOARD_POPOUT",i[i.OVERLAY=7]="OVERLAY",i[i.FRIENDS_POPOUT=8]="FRIENDS_POPOUT",i[i.APP_LAUNCHER=9]="APP_LAUNCHER",i[i.VOICE_USER_POPOUT=10]="VOICE_USER_POPOUT",i);let W=s.createContext({});function K(){return s.useContext(W)}function $(e){let{children:t,...n}=e;return(0,r.jsx)("div",{className:j.fC,...n,children:t})}function z(e){let{Icon:t,text:n,iconColor:i,tooltipText:s,showTooltip:a}=e,{defaultTextColor:o,defaultIconColor:l,location:u}=K();return(0,r.jsx)(h.m,{text:s,shouldShow:a,children:(0,r.jsxs)($,{children:[(0,r.jsx)(t,{size:"xxs",color:i??l}),(0,r.jsx)(f.E,{variant:"text-xs/normal",color:o,className:j.KT,scaleFontToUserSetting:5===u,children:n})]})})}function q(e){let{entry:t}=e,{channel:n}=(0,U.A)(t),{location:i}=K(),s=(0,L.Ay)(n);return null==n||(0,P.S1)(i,[1,2,3,4])?null:(0,r.jsx)(z,{Icon:p.H,text:s})}function Z(e){let{entry:t,hovered:n}=e,{defaultTextColor:i,defaultIconColor:s,location:a}=K(),o=(0,G.Hd)(t)&&(0,P.S1)(a,[0,4,7,9]),l=o?E.A.colors.TEXT_FEEDBACK_POSITIVE:s,{streamPreviewUrl:u}=(0,U.A)(t),c=null!=u?m.F:(0,k.yl)(t)?g.k:A._;return(0,r.jsxs)($,{children:[(0,r.jsx)(c,{size:"xxs",color:l}),(0,r.jsx)(V.A,{entry:t,textColor:o?"text-feedback-positive":i,hovered:n,scaleFontToUserSetting:5===a})]})}function X(e){let{entry:t}=e,{defaultTextColor:n,defaultIconColor:i}=K(),{state:s,party:a}=(0,F.u)(t),o=(0,G.gF)(s,a);return null==o?null:(0,r.jsxs)($,{children:[(0,r.jsx)(I.n,{size:"xxs",color:i}),(0,r.jsx)(f.E,{variant:"text-xs/normal",color:n,lineClamp:1,children:o})]})}function Q(e){let{entry:t,hovered:n}=e,{defaultTextColor:i,defaultIconColor:s,location:a}=K(),o=(0,G.Hd)(t)&&(0,P.S1)(a,[0,4]),l=o?E.A.colors.TEXT_FEEDBACK_POSITIVE:s;return(0,r.jsxs)("div",{className:j.fC,children:[(0,r.jsx)(T.T,{size:"xxs",color:l}),(0,r.jsx)(V.A,{entry:t,textColor:o?"text-feedback-positive":i,hovered:n})]})}function J(e){let{entry:t}=e,{location:n}=K(),i=(0,P.S1)(n,[0,3])?E.A.colors.STATUS_POSITIVE:void 0;return(0,G.Rf)(t)?(0,r.jsx)(z,{Icon:S.P,text:B.intl.string(B.t.keY6mW),iconColor:i}):null}function ee(e){let{entry:t}=e,{location:n}=K();if(!(0,G.L7)(t))return null;let i=(0,G.JM)(t),{text:s,tooltipText:a}=(0,G.Pj)(t);return null==s?null:(0,r.jsx)(z,{Icon:y.x,text:s,tooltipText:a,showTooltip:0===n&&!i})}function et(e){let{entry:t}=e,{location:n}=K(),i=0!==n,s=(0,G.KH)(t);if(null==s)return null;let a=(0,G.us)(s);return(0,r.jsx)(z,{Icon:C.m,showTooltip:!i,tooltipText:a,text:i?a:B.intl.string(B.t.adnLsB)})}function en(e){let{entry:t}=e,{location:n}=K(),i=(0,G.iy)(t);return(0,G.BZ)(t)?(0,r.jsx)(z,{Icon:N.g,showTooltip:0===n,text:B.intl.formatToPlainString(B.t["Klie/P"],{days:i}),tooltipText:B.intl.formatToPlainString(B.t.PwMe0s,{days:i})}):null}function ei(e){let{entry:t}=e,{location:n}=K(),i=0!==n,s=(0,G.ty)(t);if(null==s)return null;let a=i?B.t.C0AxoR:B.t.SDRHgr;return(0,r.jsx)(z,{Icon:v.O,text:(0,r.jsxs)(r.Fragment,{children:[B.intl.string(B.t["/50eHi"]),i?" \u2014 ":": ",B.intl.format(a,{hours:Math.round(s/M.A.Seconds.HOUR)})]})})}function er(e){let{entry:t}=e,{location:n}=K(),i=(0,G.Pv)(t,d.K.AGGREGATE_COUNT)?.count;if(null==i)return null;let s=(0,P.S1)(n,[1,2,5])?B.intl.formatToPlainString(B.t.HtifnG,{count:i}):B.intl.formatToPlainString(B.t["jq/Bmu"],{count:i});return(0,r.jsx)(z,{Icon:v.O,text:s})}function es(e){let{entry:t}=e,{location:n}=K();if(3===n)return null;let i=(0,G.CZ)(t);return null==i||i===_.m.TRENDING_TYPE_UNSPECIFIED?null:(0,r.jsx)(z,{Icon:R.Y,text:B.intl.string(B.t.kAlUsy)})}function ea(e){let{entry:t}=e,{location:n}=K();if(3===n)return null;let i=x.default.extractTimestamp(t.extra.application_id);return u()().diff(u()(i),"days")>7?null:(0,r.jsx)(z,{Icon:O.f,text:B.intl.string(B.t.vYuyWf)})}function eo(e){let{entry:t,hovered:n}=e,{defaultTextColor:i,defaultIconColor:s,location:a}=K(),o=(0,G.Hd)(t)&&4===a,l=o?E.A.colors.TEXT_FEEDBACK_POSITIVE:s;return(0,r.jsxs)("div",{className:j.fC,children:[(0,r.jsx)(b.U,{size:"xxs",color:l}),(0,r.jsx)(V.A,{entry:t,textColor:o?"text-feedback-positive":i,hovered:n})]})}function el(e){let{entry:t}=e,n=(0,G.kR)(t.extra.media_assets_large_text);return null==n?null:(0,r.jsx)(z,{Icon:D.K,text:n})}function eu(e){let{entry:t}=e,{defaultTextColor:n,location:i}=K();if(!("applicationWidgetPreview"in t)||null==t.applicationWidgetPreview)return null;let{previewIcon:s,previewTextShort:a}=t.applicationWidgetPreview.previewData;return(0,r.jsxs)($,{children:[null!=s&&(0,r.jsx)("div",{className:j.dQ,children:(0,r.jsx)(w.Ay,{src:s.proxyUrl,width:s.width,height:s.height,responsive:!0})}),(0,r.jsx)(f.E,{variant:"text-xs/normal",color:n,className:j.KT,scaleFontToUserSetting:5===i,children:a})]})}function ec(e){let t,{location:n,children:i,className:s}=e;return t=(0,P.S1)(n,[1,5,6])?{defaultTextColor:"content-inventory-overlay-text-secondary",defaultIconColor:E.A.colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY}:2===n?{defaultTextColor:"interactive-text-default"}:3===n?{defaultTextColor:"text-muted"}:4===n?{defaultTextColor:"text-subtle",defaultIconColor:E.A.colors.TEXT_SUBTLE}:{defaultTextColor:"text-subtle"},(0,r.jsx)(W.Provider,{value:{location:n,...t},children:(0,r.jsx)("div",{className:o()(j.cV,{[j.u3]:0===n,[j.BQ]:(0,P.S1)(n,[1,2,10]),[j.DY]:3===n},s),children:i})})}function ed(e){let{entry:t,location:n,className:i}=e,s=function(e){switch(e.content_type){case c.ContentInventoryEntryType.TOP_ARTIST:return H[e.content_type].map((t,n)=>(0,r.jsx)(t,{entry:e},n));case c.ContentInventoryEntryType.PLAYED_GAME:return H[e.content_type].map((t,n)=>(0,r.jsx)(t,{entry:e},n));case c.ContentInventoryEntryType.TOP_GAME:return H[e.content_type].map((t,n)=>(0,r.jsx)(t,{entry:e},n));case c.ContentInventoryEntryType.WATCHED_MEDIA:return H[e.content_type].map((t,n)=>(0,r.jsx)(t,{entry:e},n));case c.ContentInventoryEntryType.LAUNCHED_ACTIVITY:return H[e.content_type].map((t,n)=>(0,r.jsx)(t,{entry:e},n));default:return null}}(t);return null==s?null:(0,r.jsx)(ec,{location:n,className:i,children:s})}}