Build 555975stable
Module 501838
1,572 characters · in 1ab2d0b4471f679c.jsDependencies
Source Raw
function(t,e,r){r.d(e,{mn:()=>p,px:()=>f,qx:()=>h,rY:()=>_,tR:()=>S,w:()=>I}),r(321073);var i=r(17928),l=r(517164),s=r(20805),n=r(952818),u=r(841595),o=r(71393),a=r(290863),d=r(832163),c=r(533562);function p(t){let{userIds:e}=t;return(0,i.yK)([l.A,d.A],()=>{let t=[];for(let r of e)for(let e of l.A.getUserOutbox(r)?.entries??[])if(null!=e&&(0,s.zD)(e)){let r=d.A.getApplicationIdFromDetectableId(e.extra.application_id);null!=r&&t.push(r)}return t},[e])}function S(t){return(0,i.yK)([u.A,d.A],()=>{let e=[];for(let r of t){let t=u.A.getMutualGuilds(r);if(null!=t){for(let r of t)if(d.A.getStorefrontGuildIds().has(r.guild.id)){let t=d.A.getApplicationIdFromGuildId(r.guild.id);null!=t&&e.push(t)}}}return e},[t])}function I(t){let{userIds:e}=t,r=(0,i.yK)([a.A,d.A],()=>{let t=[];for(let r of e)for(let e of a.A.getActivities(r))if(null!=e.application_id){let r=d.A.getApplicationIdFromDetectableId(e.application_id);null!=r&&t.push(r)}return t},[e]),l=(0,c.W)();return null!=l?[...r,l]:r}function h(){return(0,i.yK)([n.Ay,d.A],()=>{let t=[];for(let e of n.Ay.getGamesSeen(!1,!1))if(null!=e.id){let r=d.A.getApplicationIdFromDetectableId(e.id);null!=r&&t.push(r)}return t})}function _(){return(0,i.yK)([n.Ay,d.A],()=>{let t=[];for(let e of n.Ay.getRunningGames())if(null!=e.id&&n.Ay.isDetectionEnabled(e)){let r=d.A.getApplicationIdFromDetectableId(e.id);null!=r&&t.push(r)}return t},[])}function f(){let t=(0,i.bG)([o.A],()=>o.A.getGuildIds());return(0,i.yK)([d.A],()=>{let e=[];for(let r of t){let t=d.A.getApplicationIdFromGuildId(r);null!=t&&e.push(t)}return e},[t])}}