169 lines
9.0 KiB
TypeScript
169 lines
9.0 KiB
TypeScript
/* Metro module 9965; source: modules/game_profile/GameProfileStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun78015(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:6, offset: 0x01e160e0, size: 447 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_5 = {};
|
|
const env0_6 = {};
|
|
const env0_7 = {};
|
|
const env0_8 = {};
|
|
const env0_9 = {};
|
|
const env0_10 = {};
|
|
const env0_11 = {};
|
|
const env0_12 = {};
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
let value = _fun78019(Store);
|
|
value.displayName = 'GameProfileStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS: GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS,
|
|
GAME_PROFILE_GET_SIMILAR_GAMES_ERROR: GAME_PROFILE_GET_SIMILAR_GAMES_ERROR,
|
|
GAME_PROFILE_GET_SHOP_COLLECTION_START: GAME_PROFILE_GET_SHOP_COLLECTION_START,
|
|
GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS: GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS,
|
|
GAME_PROFILE_GET_SHOP_COLLECTION_ERROR: GAME_PROFILE_GET_SHOP_COLLECTION_ERROR,
|
|
GAME_PROFILE_GET_ANNOUNCEMENTS_START: GAME_PROFILE_GET_ANNOUNCEMENTS_START,
|
|
GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS: GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS,
|
|
GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR: GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR,
|
|
GAME_PROFILE_SET_PENDING_RETURN: GAME_PROFILE_SET_PENDING_RETURN,
|
|
GAME_PROFILE_CLEAR_PENDING_RETURN: GAME_PROFILE_CLEAR_PENDING_RETURN});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_profile/GameProfileStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_78016() { // fn#78016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:148, offset: 0x01e1629f, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_78016_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun78019(a0) { // fn#78019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:398, offset: 0x01e16301, size: 286 bytes, params: 2, frame: 16
|
|
const closure = GameProfileStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'getSimilarGames', value: value_78021}, {key: 'getSimilarGamesError',
|
|
value: value_78022}, {key: 'getShopCollectionSkuIds', value: value_78023}, {key: 'hasShopCollectionBeenFetched',
|
|
value: value_78024}, {key: 'isShopCollectionFetching', value: value_78025}, {key: 'getAnnouncements',
|
|
value: value_78026}, {key: 'hasAnnouncementsBeenFetched', value: value_78027}, {key: 'isAnnouncementsFetching',
|
|
value: value_78028}, {key: 'getPendingReturn', value: value_78029}]);
|
|
}
|
|
|
|
function GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS({gameId, games}) { // fn#78030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1419, offset: 0x01e1649f, size: 30 bytes, params: 2, frame: 3
|
|
env0_5[gameId] = games;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_SIMILAR_GAMES_ERROR({gameId, error}) { // fn#78031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1522, offset: 0x01e164bd, size: 29 bytes, params: 2, frame: 3
|
|
env0_6[gameId] = error;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_SHOP_COLLECTION_START({collectionId}) { // fn#78032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1625, offset: 0x01e164da, size: 26 bytes, params: 2, frame: 3
|
|
env0_9[collectionId] = true;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS({collectionId, skuIds}) { // fn#78033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1731, offset: 0x01e164f4, size: 50 bytes, params: 2, frame: 4
|
|
env0_7[collectionId] = skuIds;
|
|
env0_8[collectionId] = true;
|
|
env0_9[collectionId] = false;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_SHOP_COLLECTION_ERROR({collectionId}) { // fn#78034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1861, offset: 0x01e16526, size: 36 bytes, params: 2, frame: 4
|
|
env0_8[collectionId] = true;
|
|
env0_9[collectionId] = false;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_ANNOUNCEMENTS_START({gameId}) { // fn#78035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1971, offset: 0x01e1654a, size: 26 bytes, params: 2, frame: 3
|
|
env0_12[gameId] = true;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS({gameId, messages, channelId, guildId}) { // fn#78036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2068, offset: 0x01e16564, size: 75 bytes, params: 2, frame: 7
|
|
env0_10[gameId] = {messages: messages, channelId: channelId, guildId: guildId};
|
|
env0_11[gameId] = true;
|
|
env0_12[gameId] = false;
|
|
}
|
|
|
|
function GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR({gameId}) { // fn#78037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2246, offset: 0x01e165af, size: 36 bytes, params: 2, frame: 4
|
|
env0_11[gameId] = true;
|
|
env0_12[gameId] = false;
|
|
}
|
|
|
|
function GAME_PROFILE_SET_PENDING_RETURN({gameId, channelId, initialScrollOffset}) { // fn#78038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2344, offset: 0x01e165d3, size: 121 bytes, params: 2, frame: 9
|
|
var object;
|
|
let binding = env0_13;
|
|
const gameId = binding?.gameId;
|
|
if (gameId !== gameId) {
|
|
env0_13 = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset};
|
|
} else {
|
|
binding = env0_13;
|
|
var channelId = binding?.channelId;
|
|
if (channelId !== channelId) {
|
|
env0_13 = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset};
|
|
return undefined;
|
|
}
|
|
binding = env0_13;
|
|
var initialScrollOffset = binding?.initialScrollOffset;
|
|
if (initialScrollOffset === initialScrollOffset) {
|
|
return false;
|
|
}
|
|
object = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset};
|
|
}
|
|
}
|
|
|
|
function GAME_PROFILE_CLEAR_PENDING_RETURN({gameId}) { // fn#78039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2646, offset: 0x01e1664c, size: 48 bytes, params: 2, frame: 4
|
|
if (env0_13 == null) {
|
|
return false;
|
|
}
|
|
if (env0_13.gameId !== gameId) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function value_78024(a0) { // fn#78024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:904, offset: 0x01e1642f, size: 28 bytes, params: 2, frame: 3
|
|
const value = environment.__proto__;
|
|
const property = env1_8[a0];
|
|
return property != null && property;
|
|
}
|
|
|
|
function value_78025(a0) { // fn#78025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:987, offset: 0x01e1644b, size: 28 bytes, params: 2, frame: 3
|
|
const value = environment.__proto__;
|
|
const property = env1_9[a0];
|
|
return property != null && property;
|
|
}
|
|
|
|
function value_78027(a0) { // fn#78027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1129, offset: 0x01e16467, size: 28 bytes, params: 2, frame: 3
|
|
const value = environment.__proto__;
|
|
const property = env1_11[a0];
|
|
return property != null && property;
|
|
}
|
|
|
|
function value_78028(a0) { // fn#78028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1211, offset: 0x01e16483, size: 28 bytes, params: 2, frame: 3
|
|
const value = environment.__proto__;
|
|
const property = env1_12[a0];
|
|
return property != null && property;
|
|
}
|
|
|