71 lines
2.2 KiB
TypeScript
71 lines
2.2 KiB
TypeScript
// Module ID: 12143
|
|
// Function ID: 12144
|
|
// Name: usePendingFolderGuildIds
|
|
// Dependencies: [4940, 2087, 558, 576, 504, 2]
|
|
// Exports: getPendingFolderGuildIds
|
|
|
|
// Module 12143 (usePendingFolderGuildIds)
|
|
import react from "react" /* 576 */;
|
|
import UserGuildJoinRequestStore from "UserGuildJoinRequestStore" /* 4940 */;
|
|
import GuildStore from "GuildStore" /* 2087 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let tmp;
|
|
const get_initialized = tmp(504);
|
|
const f111884 = (item) => null == closure_0[item];
|
|
function getPendingFolderGuildIds() {
|
|
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();
|
|
return guildIds.filter(f111884);
|
|
}
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function usePendingFolderGuildIds() {
|
|
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();
|
|
return guildIds.filter(f111884);
|
|
};
|
|
cResult[0] = items;
|
|
cResult[1] = fn;
|
|
tmp4 = items;
|
|
tmp5 = fn;
|
|
} else {
|
|
[tmp4, tmp5] = cResult;
|
|
}
|
|
const tmpResult = get_initialized;
|
|
return tmpResult.useStateFromStoresArray(tmp4, tmp5);
|
|
}) : (function usePendingFolderGuildIds() {
|
|
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();
|
|
return guildIds.filter(f111884);
|
|
});
|
|
});
|
|
const result = size.fileFinishedImporting("modules/guilds_bar/usePendingFolderGuildIds.tsx");
|
|
|
|
export default tmp2;
|
|
export { getPendingFolderGuildIds };
|