Module 501838

1,605 characters · in 5658262d78defcf8.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(t,e,r){r.d(e,{mn:()=>A,px:()=>_,qx:()=>p,rY:()=>f,tR:()=>h,w:()=>I}),r(321073);var i=r(582128),n=r(17928),l=r(517164),s=r(20805),u=r(952818),a=r(321191),o=r(71393),d=r(290863),c=r(832163),S=r(533562);function A(t){let{userIds:e}=t;return(0,n.yK)([l.A,c.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=c.A.getApplicationIdFromDetectableId(e.extra.application_id);null!=r&&t.push(r)}return t},[e])}function h(t){return(0,n.yK)([a.A,c.A],()=>{let e=[];for(let r of t){let t=a.A.getMutualGuilds(r);if(null!=t){for(let r of t)if(c.A.getStorefrontGuildIds().has(r.guild.id)){let t=c.A.getApplicationIdFromGuildId(r.guild.id);null!=t&&e.push(t)}}}return e},[t])}function I(t){let{userIds:e}=t,r=(0,n.yK)([d.A,c.A],()=>{let t=[];for(let r of e)for(let e of d.A.getActivities(r))if(null!=e.application_id){let r=c.A.getApplicationIdFromDetectableId(e.application_id);null!=r&&t.push(r)}return t},[e]),l=(0,S.W)();return i.useMemo(()=>null!=l?[...r,l]:r,[r,l])}function p(){return(0,n.yK)([u.Ay,c.A],()=>{let t=[];for(let e of u.Ay.getGamesSeen(!1,!1))if(null!=e.id){let r=c.A.getApplicationIdFromDetectableId(e.id);null!=r&&t.push(r)}return t})}function f(){return(0,n.yK)([u.Ay,c.A],()=>{let t=[];for(let e of u.Ay.getRunningGames())if(null!=e.id&&u.Ay.isDetectionEnabled(e)){let r=c.A.getApplicationIdFromDetectableId(e.id);null!=r&&t.push(r)}return t},[])}function _(){let t=(0,n.bG)([o.A],()=>o.A.getGuildIds());return(0,n.yK)([c.A],()=>{let e=[];for(let r of t){let t=c.A.getApplicationIdFromGuildId(r);null!=t&&e.push(t)}return e},[t])}}