2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 11304
|
|
|
|
|
// Function ID: 11305
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: usePendingFolderGuildIds
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [4901, 2086, 558, 576, 504, 2]
|
2026-10-03 08:58:59 +00:00
|
|
|
// Exports: getPendingFolderGuildIds
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 11304 (usePendingFolderGuildIds)
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 576 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import UserGuildJoinRequestStore from "UserGuildJoinRequestStore" /* 4901 */;
|
2026-10-08 09:57:35 +00:00
|
|
|
import GuildStore from "GuildStore" /* 2086 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp;
|
|
|
|
|
const get_initialized = tmp(504);
|
2026-10-09 10:00:15 +00:00
|
|
|
const f107634 = (item) => null == closure_0[item];
|
2026-10-03 08:58:59 +00:00
|
|
|
function getPendingFolderGuildIds() {
|
|
|
|
|
let obj;
|
|
|
|
|
let obj2;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [UserGuildJoinRequestStore, GuildStore];
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp = items;
|
|
|
|
|
}
|
|
|
|
|
[obj, obj2] = tmp;
|
|
|
|
|
const guildIds = obj.computeGuildIds();
|
2026-09-10 05:38:07 +00:00
|
|
|
const guilds = obj2.getGuilds();
|
2026-10-09 10:00:15 +00:00
|
|
|
return guildIds.filter(f107634);
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
2026-10-08 09:57:35 +00:00
|
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function usePendingFolderGuildIds() {
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp4;
|
|
|
|
|
let tmp5;
|
|
|
|
|
const obj = react;
|
|
|
|
|
const cResult = obj.c(2);
|
|
|
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
let items = [UserGuildJoinRequestStore, GuildStore];
|
|
|
|
|
const fn = function u() {
|
|
|
|
|
let obj;
|
|
|
|
|
let obj2;
|
|
|
|
|
const items = [UserGuildJoinRequestStore, GuildStore];
|
|
|
|
|
[obj, obj2] = items;
|
|
|
|
|
const guildIds = obj.computeGuildIds();
|
|
|
|
|
const guilds = obj2.getGuilds();
|
2026-10-09 10:00:15 +00:00
|
|
|
return guildIds.filter(f107634);
|
2026-10-03 08:58:59 +00:00
|
|
|
};
|
|
|
|
|
cResult[0] = items;
|
|
|
|
|
cResult[1] = fn;
|
|
|
|
|
tmp4 = items;
|
|
|
|
|
tmp5 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
[tmp4, tmp5] = cResult;
|
|
|
|
|
}
|
|
|
|
|
const tmpResult = get_initialized;
|
|
|
|
|
return tmpResult.useStateFromStoresArray(tmp4, tmp5);
|
2026-10-08 09:57:35 +00:00
|
|
|
}) : (function usePendingFolderGuildIds() {
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = get_initialized;
|
|
|
|
|
let items = [UserGuildJoinRequestStore, GuildStore];
|
|
|
|
|
return obj.useStateFromStoresArray(items, () => {
|
|
|
|
|
let obj;
|
|
|
|
|
let obj2;
|
|
|
|
|
const items = [UserGuildJoinRequestStore, GuildStore];
|
|
|
|
|
[obj, obj2] = items;
|
|
|
|
|
const guildIds = obj.computeGuildIds();
|
|
|
|
|
const guilds = obj2.getGuilds();
|
2026-10-09 10:00:15 +00:00
|
|
|
return guildIds.filter(f107634);
|
2026-10-03 08:58:59 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("modules/guilds_bar/usePendingFolderGuildIds.tsx");
|
|
|
|
|
|
|
|
|
|
export default tmp2;
|
|
|
|
|
export { getPendingFolderGuildIds };
|