Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
58 lines
1.9 KiB
TypeScript
58 lines
1.9 KiB
TypeScript
// Module ID: 10000
|
|
// Function ID: 10001
|
|
// Name: usePendingFolderGuildIds
|
|
// Dependencies: [4581, 2067, 558, 568, 504, 2]
|
|
// Exports: getPendingFolderGuildIds
|
|
|
|
// Module 10000 (usePendingFolderGuildIds)
|
|
import initialize from "initialize" /* 504 */;
|
|
import c from "c" /* 568 */;
|
|
import UserGuildJoinRequestStore from "UserGuildJoinRequestStore" /* 4581 */;
|
|
import GuildStore from "GuildStore" /* 2067 */;
|
|
|
|
require = fn;
|
|
const ReactCompilerGating = fn(558);
|
|
function getPendingFolderGuildIds() {
|
|
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((item) => null == closure_0[item]);
|
|
}
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guilds_bar/usePendingFolderGuildIds.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
const cResult = c.c(2);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
let items = [UserGuildJoinRequestStore, GuildStore];
|
|
const fn = function u() {
|
|
const items = [UserGuildJoinRequestStore, GuildStore];
|
|
[obj, obj2] = items;
|
|
const guildIds = obj.computeGuildIds();
|
|
const guilds = obj2.getGuilds();
|
|
return guildIds.filter((item) => null == closure_0[item]);
|
|
};
|
|
cResult[0] = items;
|
|
cResult[1] = fn;
|
|
tmp4 = items;
|
|
tmp5 = fn;
|
|
} else {
|
|
[tmp4, tmp5] = cResult;
|
|
}
|
|
return initialize.useStateFromStoresArray(tmp4, tmp5);
|
|
}) : (() => {
|
|
let items = [UserGuildJoinRequestStore, GuildStore];
|
|
return initialize.useStateFromStoresArray(items, () => {
|
|
const items = [UserGuildJoinRequestStore, GuildStore];
|
|
[obj, obj2] = items;
|
|
const guildIds = obj.computeGuildIds();
|
|
const guilds = obj2.getGuilds();
|
|
return guildIds.filter((item) => null == closure_0[item]);
|
|
});
|
|
});
|
|
export { getPendingFolderGuildIds };
|