324 lines
14 KiB
TypeScript
324 lines
14 KiB
TypeScript
/* Metro module 5202; source: modules/games/GameActionCreators.tsx; dependencies: [5, 5199, 661, 507, 694, 4041, 22, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import GameStore from './GameStore.tsx'; /* Metro dependency 5199 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as TimersModule from '../../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
|
|
|
|
function _fun45934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:6, offset: 0x0119b90d, size: 237 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const requestGames = function() {
|
|
return _requestGames.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const BatchInvocationManager = (TimersModule).BatchInvocationManager;
|
|
const batchInvocationManager = new BatchInvocationManager(_fun45942(), function(a0) {
|
|
return !GameStore.hasNoData(a0);
|
|
});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/games/GameActionCreators.tsx');
|
|
exports.fetchGamesWithSupplementalData = function() {
|
|
return _fetchGamesWithSupplementalData.apply(this, arguments);
|
|
};
|
|
function _requestGames() { // fn#45936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:203, offset: 0x0119b9fa, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun45938).apply(this, arguments);
|
|
function* _fun45938(a0) { // fn#45938, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:252, offset: 0x0119ba33, size: 234 bytes, params: 2, frame: 18
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var GAMES;
|
|
var object2;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var body;
|
|
var binding3;
|
|
var value7;
|
|
var dispatch;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
GAMES = binding.GAMES;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.url = GAMES;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.game_ids = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.with_supplemental_data = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.query = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[4];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value7.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'GAME_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.gameIds = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.games = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value7, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fetchGamesWithSupplementalData() { // fn#45939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:798, offset: 0x0119bb1d, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun45941).apply(this, arguments);
|
|
function* _fun45941(a0) { // fn#45941, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:883, offset: 0x0119bb56, size: 60 bytes, params: 2, frame: 12
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (a0.length !== 0) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_6;
|
|
yield binding.queue(a0);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun45942() { // fn#45942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:582, offset: 0x0119bb92, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = Module00005(_fun45944);
|
|
return _fun45945;
|
|
function* _fun45944(a0) { // fn#45944, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:602, offset: 0x0119bbbb, size: 144 bytes, params: 2, frame: 19
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
var binding2 = env2_2;
|
|
binding(binding2[4]).dispatch({type: 'GAME_FETCH', gameIds: a0});
|
|
var Promise = global.Promise;
|
|
var all = Promise.all;
|
|
var value5 = binding(binding2[6]).chunk(a0, 20);
|
|
yield Reflect.apply(all, Promise, [value5.map(env2_7)]);
|
|
}
|
|
}
|
|
|
|
function _fun45945() { // fn#45945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5380:730, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun45934, 5202, [5, 5199, 661, 507, 694, 4041, 22,
|
|
2]) /* metro module 5202, dependencies: [5, 5199, 661, 507, 694, 4041, 22, 2] */;
|