decord/source/modules/guild_profile/GuildPopoutStore.tsx

119 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13039
// Function ID: 100884
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1194, 6632, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 13039 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _startLurking from "_startLurking";
import initialize from "initialize";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_8 = { UNSET: "unset", FETCHING: "fetching", FAILED: "failed", SUCCEEDED: "succeeded" };
let closure_9 = { guilds: {} };
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class GuildPopoutStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, GuildPopoutStore);
obj = outer1_5(GuildPopoutStore);
tmp2 = outer1_4;
if (outer1_10()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_5;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(GuildPopoutStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_7);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , ];
obj = {
key: "isFetchingGuild",
value(arg0) {
let tmp2 = null != tmp;
if (tmp2) {
2026-07-23 10:11:24 +00:00
tmp2 = tmp.fetchState === outer1_8.FETCHING;
2026-07-20 16:05:17 +00:00
}
return tmp2;
}
};
items[1] = obj;
obj = {
key: "getGuild",
value(arg0) {
let guild = null;
2026-07-23 10:11:24 +00:00
if (null != outer1_9.guilds[arg0]) {
2026-07-20 16:05:17 +00:00
guild = tmp.guild;
}
return guild;
}
};
items[2] = obj;
items[3] = {
key: "hasFetchFailed",
value(arg0) {
let tmp2 = null != tmp;
if (tmp2) {
2026-07-23 10:11:24 +00:00
tmp2 = tmp.fetchState === outer1_8.FAILED;
2026-07-20 16:05:17 +00:00
}
return tmp2;
}
};
return callback(GuildPopoutStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "GuildPopoutStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GUILD_POPOUT_FETCH_START: function handleFetchStart(guildId) {
guildId = guildId.guildId;
const obj = {};
const merged = Object.assign(closure_9.guilds[guildId]);
obj["fetchState"] = constants.FETCHING;
closure_9.guilds[guildId] = obj;
},
GUILD_POPOUT_FETCH_SUCCESS: function handleFetchSuccess(guildId) {
guildId = guildId.guildId;
2026-07-25 08:10:48 +00:00
let obj = require(6632) /* _startLurking */;
2026-07-20 16:05:17 +00:00
obj = {};
const discoverableGuild = obj.makeDiscoverableGuild(guildId.guild);
const merged = Object.assign(closure_9.guilds[guildId]);
obj["guild"] = discoverableGuild;
obj["fetchState"] = constants.SUCCEEDED;
closure_9.guilds[guildId] = obj;
},
GUILD_POPOUT_FETCH_FAILURE: function handleFetchFailure(guildId) {
guildId = guildId.guildId;
const obj = {};
const merged = Object.assign(closure_9.guilds[guildId]);
obj["fetchState"] = constants.FAILED;
closure_9.guilds[guildId] = obj;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/guild_profile/GuildPopoutStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;