315 lines
11 KiB
TypeScript
315 lines
11 KiB
TypeScript
/* Metro module 5202; source: modules/games/GameActionCreators.tsx; dependencies: [5, 5199, 661, 507, 694, 4041, 22, 2] */
|
|
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 env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const gameStore = importDefault(5199) /* metro dependency 5199: GameStore */;
|
|
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
const BatchInvocationManager = (require(4041) /* metro dependency 4041: Timers */).BatchInvocationManager;
|
|
const batchInvocationManager = new BatchInvocationManager(_fun45942(), function(a0) {
|
|
return !GameStore.hasNoData(a0);
|
|
});
|
|
(require(2) /* metro dependency 2 */).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 env0_3(_fun45938).apply(this, arguments);
|
|
}
|
|
|
|
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 env0_3(_fun45941).apply(this, arguments);
|
|
}
|
|
|
|
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 = env0_3(_fun45944);
|
|
return _fun45945;
|
|
}
|
|
|
|
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 object3;
|
|
var GAMES;
|
|
var object4;
|
|
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 {
|
|
object3 = {};
|
|
} 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 {
|
|
object3.url = GAMES;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.game_ids = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.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 {
|
|
object3.query = object4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.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, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.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 {
|
|
object3.gameIds = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.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, [object3]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.dispatch({type: 'GAME_FETCH_FAILURE', gameIds: a0});
|
|
}
|
|
}
|
|
}
|
|
|
|
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* _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)]);
|
|
}
|
|
}
|
|
|