Build 533169stable
Module 96511
2,226 characters · in aca7018765200529.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>m});var i=n(284009),l=n.n(i),s=n(698441),a=n(71393),r=n(994500),o=n(287809),d=n(240248),c=n(427262),u=n(322387),h=n(652215),A=n(985018);function _(e){let{username:t,applicationId:n,renderApplication:i,withApplication:l,withDefault:s}=e;return null!=n?A.intl.format(l,{username:t,applicationName:()=>i(n)}):A.intl.format(s,{username:t})}function m(e){let{item:t,renderApplication:n}=e,i=t.other_user?.id??h.dJq,m=c.Ay.getName(o.default.getUser(t.other_user?.id)),p=t.applicationId;switch(t.type){case u.Uo.FRIEND_REQUESTS_GROUPED:let g=c.Ay.getName(o.default.getUser(t.other_users?.[0]?.id)),f=c.Ay.getName(o.default.getUser(t.other_users?.[1]?.id)),E=Math.max((t.other_users?.length??0)-2,0);return A.intl.format(A.t.g5xyIC,{user:g,user2:f,count:E});case u.Uo.MOBILE_NATIVE_UPDATE_AVAILABLE:let x=t.local_id?.split("_").pop()??"unknown";return`Update to build ${x} available!`;case u.hW.FRIEND_SUGGESTION_CREATED:r.A.getRelationshipType(i),h.eA$.PENDING_OUTGOING;break;case u.hW.GUILD_SCHEDULED_EVENT_STARTED:let I=t.guild_scheduled_event_id,C=null!=I?s.Ay.getGuildScheduledEvent(I):null,N=C?.name,T=a.A.getGuild(C?.guild_id)?.name,S=(0,s.AZ)(C??void 0);return(0,d.uJ)(T)||(0,d.uJ)(N)||!S?t.body??"":A.intl.format(A.t.AyvfXR,{event_name:N,guild_name:T});case u.Uo.INCOMING_FRIEND_REQUESTS:return _({username:m,applicationId:p,renderApplication:n,withApplication:A.t["9Dgf1L"],withDefault:A.t.uIomXw});case u.Uo.INCOMING_FRIEND_REQUESTS_ACCEPTED:return _({username:m,applicationId:p,renderApplication:n,withApplication:A.t.nnC1q9,withDefault:A.t["5Uzkdp"]});case u.hW.FRIEND_REQUEST_ACCEPTED:return _({username:m,applicationId:p,renderApplication:n,withApplication:A.t.jXlYiF,withDefault:A.t.McYRBk});case u.Uo.INCOMING_GAME_FRIEND_REQUESTS_ACCEPTED:return l()(null!=p,`Expected application id for ${t.type}`),A.intl.format(A.t["BB/0vn"],{username:m,applicationName:()=>n(p)});case u.Uo.INCOMING_GAME_FRIEND_REQUESTS:return l()(null!=p,`Expected application id for ${t.type}`),A.intl.format(A.t["7cqOLI"],{username:m,applicationName:()=>n(p)});case u.hW.GAME_FRIEND_REQUEST_ACCEPTED:if(null==p)return t.body;return A.intl.format(A.t.Wi64vN,{username:m,applicationName:()=>n(p)})}return t.body??""}}