decord/source/modules/game_profile/GameProfileStore.tsx

176 lines
5 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8638
// Function ID: 68465
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 566, 686, 2]
2026-07-24 07:16:23 +00:00
// Module 8638 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import set from "set";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let dispatcher = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return dispatcher;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
let closure_5 = {};
let closure_6 = {};
let closure_7 = {};
let closure_8 = {};
let closure_9 = {};
let closure_10 = {};
let closure_11 = {};
2026-07-23 10:11:24 +00:00
let c12 = null;
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class GameProfileStore {
constructor() {
self = this;
tmp = GameProfileStore(this, GameProfileStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(GameProfileStore);
tmp2 = outer1_2;
if (outer1_13()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(GameProfileStore, Store);
let obj = {
key: "getSimilarGames",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_5[arg0];
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , , , , , ];
obj = {
key: "getShopCollectionSkuIds",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_6[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "hasShopCollectionBeenFetched",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_7[arg0] && outer1_7[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "isShopCollectionFetching",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_8[arg0] && outer1_8[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "getAnnouncements",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_9[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[5] = {
key: "hasAnnouncementsBeenFetched",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_10[arg0] && outer1_10[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[6] = {
key: "isAnnouncementsFetching",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_11[arg0] && outer1_11[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[7] = {
key: "getPendingReturn",
value() {
2026-07-23 10:11:24 +00:00
return outer1_12;
2026-07-20 16:05:17 +00:00
}
};
return callback(GameProfileStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "GameProfileStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS: function handleGetSimilarGamesSuccess(gameId) {
closure_5[gameId.gameId] = gameId.games;
},
GAME_PROFILE_GET_SHOP_COLLECTION_START: function handleGetShopCollectionStart(collectionId) {
closure_8[collectionId.collectionId] = true;
},
GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS: function handleGetShopCollectionSuccess(collectionId) {
collectionId = collectionId.collectionId;
closure_6[collectionId] = collectionId.skuIds;
closure_7[collectionId] = true;
closure_8[collectionId] = false;
},
GAME_PROFILE_GET_SHOP_COLLECTION_ERROR: function handleGetShopCollectionError(collectionId) {
collectionId = collectionId.collectionId;
closure_7[collectionId] = true;
closure_8[collectionId] = false;
},
GAME_PROFILE_GET_ANNOUNCEMENTS_START: function handleGetAnnouncementsStart(gameId) {
closure_11[gameId.gameId] = true;
},
GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS: function handleGetAnnouncementsSuccess(gameId) {
gameId = gameId.gameId;
closure_9[gameId] = { messages: gameId.messages, channelId: gameId.channelId, guildId: gameId.guildId };
closure_10[gameId] = true;
closure_11[gameId] = false;
},
GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR: function handleGetAnnouncementsError(gameId) {
gameId = gameId.gameId;
closure_10[gameId] = true;
closure_11[gameId] = false;
},
GAME_PROFILE_SET_PENDING_RETURN: function handleSetPendingReturn(arg0) {
let channelId;
let gameId;
let initialScrollOffset;
({ gameId, channelId, initialScrollOffset } = arg0);
gameId = undefined;
if (null != _null) {
gameId = _null.gameId;
}
if (gameId === gameId) {
channelId = undefined;
if (null != _null) {
channelId = _null.channelId;
}
if (channelId === channelId) {
initialScrollOffset = undefined;
if (null != _null) {
initialScrollOffset = _null.initialScrollOffset;
}
if (initialScrollOffset === initialScrollOffset) {
return false;
}
}
}
2026-07-23 10:11:24 +00:00
_null = { gameId, channelId, initialScrollOffset };
2026-07-20 16:05:17 +00:00
},
GAME_PROFILE_CLEAR_PENDING_RETURN: function handleClearPendingReturn(arg0) {
if (null != _null) {
if (_null.gameId === tmp) {
2026-07-23 10:11:24 +00:00
_null = null;
2026-07-20 16:05:17 +00:00
}
}
return false;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/game_profile/GameProfileStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;