decord/beta/source/modules/guilds_bar/usePendingFolderGuildIds.tsx

72 lines
2.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 11345
// Function ID: 11346
// Name: usePendingFolderGuildIds
2026-10-12 16:32:48 +00:00
// Dependencies: [4940, 2087, 558, 576, 504, 2]
2026-10-02 13:37:24 +00:00
// Exports: getPendingFolderGuildIds
2026-10-12 16:32:48 +00:00
// Module 11345 (usePendingFolderGuildIds)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import UserGuildJoinRequestStore from "UserGuildJoinRequestStore" /* 4940 */;
import GuildStore from "GuildStore" /* 2087 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-02 13:37:24 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-12 16:32:48 +00:00
const f108152 = (item) => null == closure_0[item];
2026-10-02 13:37:24 +00:00
function getPendingFolderGuildIds() {
2026-10-01 14:13:23 +00:00
let obj;
let obj2;
let tmp = arg0;
if (arg0 === undefined) {
const items = [UserGuildJoinRequestStore, GuildStore];
tmp = items;
}
[obj, obj2] = tmp;
const guildIds = obj.computeGuildIds();
const guilds = obj2.getGuilds();
2026-10-12 16:32:48 +00:00
return guildIds.filter(f108152);
2026-10-02 13:37:24 +00:00
}
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function usePendingFolderGuildIds() {
2026-10-02 13:37:24 +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-12 16:32:48 +00:00
return guildIds.filter(f108152);
2026-10-02 13:37:24 +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-12 16:32:48 +00:00
}) : (function usePendingFolderGuildIds() {
2026-10-02 13:37:24 +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-12 16:32:48 +00:00
return guildIds.filter(f108152);
2026-10-02 13:37:24 +00:00
});
});
const result = size.fileFinishedImporting("modules/guilds_bar/usePendingFolderGuildIds.tsx");
export default tmp2;
export { getPendingFolderGuildIds };