821 lines
43 KiB
TypeScript
821 lines
43 KiB
TypeScript
/* Metro module 16163; source: modules/global_discovery_servers/GlobalDiscoveryServersFeaturedSearchManager.tsx; dependencies: [5, 7, 6, 15, 17, 18, 12551, 9114, 661, 16164, 694, 507, 1468, 16165, 6946, 4860, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import GlobalDiscoveryServersSearchResultsStore from './GlobalDiscoveryServersSearchResultsStore.tsx'; /* Metro dependency 12551 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as GlobalDiscoveryServersConstantsModule from './GlobalDiscoveryServersConstants.tsx'; /* Metro dependency 9114 */
|
|
|
|
function _fun124934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:6, offset: 0x025c78ce, size: 313 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun124938(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersFeaturedSearchManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_124935() { // fn#124935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:226, offset: 0x025c7a07, 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_124935_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun124938(a0) { // fn#124938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:425, offset: 0x025c7a69, size: 42 bytes, params: 2, frame: 14
|
|
const GlobalDiscoveryServersFeaturedSearchManager2 = GlobalDiscoveryServersFeaturedSearchManager;
|
|
Inherits(GlobalDiscoveryServersFeaturedSearchManager2, a0);
|
|
return CreateClass(GlobalDiscoveryServersFeaturedSearchManager2);
|
|
function GlobalDiscoveryServersFeaturedSearchManager(a0) { // fn#124939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:437, offset: 0x025c7a93, size: 241 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_6;
|
|
binding(this, GlobalDiscoveryServersFeaturedSearchManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_8(GlobalDiscoveryServersFeaturedSearchManager);
|
|
binding = env1_7;
|
|
if (_isNativeReflectConstruct_124935()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_8(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_124940};
|
|
const Set = global.Set;
|
|
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
const set = new Set();
|
|
value.queue = set instanceof Object ? set : value4;
|
|
value.isFetchEnabled = false;
|
|
value.handleConnectionOpen = handleConnectionOpen_124941;
|
|
value.fetchFeaturedGuilds = _fun124943();
|
|
value.fetchCategoryFeaturedGuilds = _fun124947();
|
|
return value;
|
|
function GlobalDiscoveryServersFeaturedSearchManagerPOST_CONNECTION_OPEN() { // fn#124940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:784, owner: GlobalDiscoveryServersFeaturedSearchManager.POST_CONNECTION_OPEN, offset: 0x00eed68e, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.handleConnectionOpen();
|
|
}
|
|
|
|
function GlobalDiscoveryServersFeaturedSearchManagerHandleConnectionOpen() { // fn#124941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:873, owner: GlobalDiscoveryServersFeaturedSearchManager.handleConnectionOpen, offset: 0x025c7b84, size: 44 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
binding.isFetchEnabled = true;
|
|
binding.queue.forEach(_fun124942);
|
|
function _fun124942(a0) { // fn#124942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:915, offset: 0x025c7bb0, size: 62 bytes, params: 2, frame: 12
|
|
if (a0 === DISCOVERY_ALL_CATEGORIES_ID) {
|
|
value = environment.__proto__;
|
|
env1_0.fetchFeaturedGuilds();
|
|
} else {
|
|
value = environment.__proto__;
|
|
env1_0.fetchCategoryFeaturedGuilds({categoryId: a0});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun124943() { // fn#124943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:1021, offset: 0x025c7bee, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env2_4(_fun124945);
|
|
return _fun124946;
|
|
function* _fun124945(a0) { // fn#124945, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:1041, offset: 0x025c7c1d, size: 569 bytes, params: 2, frame: 22
|
|
var forceRefresh;
|
|
var r2;
|
|
var isFetchEnabled;
|
|
var queue;
|
|
var add;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
var getLastFetchTimestamp;
|
|
var object;
|
|
var value5;
|
|
var value6;
|
|
var isStaleFeaturedGuilds;
|
|
var value7;
|
|
var dispatch;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var HTTP;
|
|
var get;
|
|
var binding3;
|
|
var GUILD_DISCOVERY;
|
|
var binding4;
|
|
var value9;
|
|
var stringify;
|
|
var object2;
|
|
var value10;
|
|
var GlobalDiscoveryServersLimits;
|
|
var FEATURED_DEFAULT_LIMIT;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var body;
|
|
var total;
|
|
var guilds;
|
|
var map;
|
|
var binding5;
|
|
var value15;
|
|
var fromDiscoverableGuildServer;
|
|
var value16;
|
|
var value17;
|
|
var error;
|
|
var binding6;
|
|
var value18;
|
|
var binding7;
|
|
var trackGuildDiscoveryGetFeaturedGuildsFailed;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort69: while (true) {
|
|
exceptionLanding68: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
isFetchEnabled = GlobalDiscoveryServersFeaturedSearchManager.isFetchEnabled;
|
|
if (isFetchEnabled) {
|
|
reducibleJoin5: while (true) {
|
|
if (a0 == null) {
|
|
forceRefresh = undefined;
|
|
break reducibleJoin5;
|
|
}
|
|
forceRefresh = a0.forceRefresh;
|
|
break reducibleJoin5;
|
|
}
|
|
value3 = forceRefresh != null;
|
|
r2 = value3 && forceRefresh;
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_10;
|
|
getLastFetchTimestamp = binding.getLastFetchTimestamp;
|
|
value5 = Reflect.apply(getLastFetchTimestamp, binding, [{categoryId: env4_11}]);
|
|
if (!r2) {
|
|
value6 = env4_0(env4_3[9]);
|
|
isStaleFeaturedGuilds = value6.isStaleFeaturedGuilds;
|
|
reducibleJoin8: while (true) {
|
|
if (Reflect.apply(isStaleFeaturedGuilds, value6, [value5])) {
|
|
break reducibleJoin8;
|
|
}
|
|
break reduciblePort69;
|
|
}
|
|
}
|
|
binding = env4_1;
|
|
value7 = binding(env4_3[10]);
|
|
dispatch = value7.dispatch;
|
|
Reflect.apply(dispatch, value7, [{'type': 'GLOBAL_DISCOVERY_SERVERS_SEARCH_START', 'categoryId': null,
|
|
'reset': true, categoryId: env4_11}]);
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding2 = env4_3;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
HTTP = value8.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding3 = env4_12;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
GUILD_DISCOVERY = binding3.GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.url = GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding4 = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
property = binding2[12];
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value9 = binding4(property);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
stringify = value9.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object2.offset = 0;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
property = binding2[13];
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
GlobalDiscoveryServersLimits = value10.GlobalDiscoveryServersLimits;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
FEATURED_DEFAULT_LIMIT = GlobalDiscoveryServersLimits.FEATURED_DEFAULT_LIMIT;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object2.limit = FEATURED_DEFAULT_LIMIT;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(stringify, value9, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.query = value11;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
yield value12;
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
if (value14) {
|
|
return value13;
|
|
}
|
|
try {
|
|
body = value13.body;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
total = body.total;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
body = value13.body;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
guilds = body.guilds;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
map = guilds.map;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding5 = env4_3;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
property = binding5[9];
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
fromDiscoverableGuildServer = value15.fromDiscoverableGuildServer;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(map, guilds, [fromDiscoverableGuildServer]);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
property = binding5[10];
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value17 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
dispatch = value17.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.type = 'GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding = env4_11;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.categoryId = binding;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.guilds = value16;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object.total = total;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value17, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
break reduciblePort69;
|
|
}
|
|
queue = GlobalDiscoveryServersFeaturedSearchManager.queue;
|
|
add = queue.add;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
Reflect.apply(add, queue, [env4_11]);
|
|
break reduciblePort69;
|
|
}
|
|
binding = env4_1;
|
|
binding6 = env4_3;
|
|
value18 = binding(binding6[10]);
|
|
dispatch = value18.dispatch;
|
|
binding = env4_11;
|
|
Reflect.apply(dispatch, value18, [{type: 'GLOBAL_DISCOVERY_SERVERS_SEARCH_FAILURE', categoryId: binding,
|
|
error: error}]);
|
|
binding7 = env4_2;
|
|
value = binding7(binding6[14]);
|
|
trackGuildDiscoveryGetFeaturedGuildsFailed = value.trackGuildDiscoveryGetFeaturedGuildsFailed;
|
|
Reflect.apply(trackGuildDiscoveryGetFeaturedGuildsFailed, value, [{categoryId: binding}]);
|
|
break reduciblePort69;
|
|
}
|
|
}
|
|
|
|
function _fun124946() { // fn#124946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:1867, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun124947() { // fn#124947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:1943, offset: 0x025c7e56, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env2_4(_fun124949);
|
|
return _fun124950;
|
|
async function _fun124949({categoryId, forceRefresh}) { // fn#124949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:1963, offset: 0x025c7e8e, size: 544 bytes, params: 2, frame: 23
|
|
var isFetchEnabled;
|
|
var queue;
|
|
var add;
|
|
var binding;
|
|
var getLastFetchTimestamp;
|
|
var object;
|
|
var value4;
|
|
var value5;
|
|
var isStaleFeaturedGuilds;
|
|
var value6;
|
|
var dispatch;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var get;
|
|
var GUILD_DISCOVERY;
|
|
var value8;
|
|
var stringify;
|
|
var object2;
|
|
var items2;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var body;
|
|
var total;
|
|
var guilds;
|
|
var map;
|
|
var binding3;
|
|
var value13;
|
|
var fromDiscoverableGuildServer;
|
|
var value14;
|
|
var value15;
|
|
var error;
|
|
var binding4;
|
|
var value16;
|
|
var trackGuildDiscoveryGetFeaturedGuildsFailed;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reducibleJoin3: while (true) {
|
|
if (forceRefresh !== undefined) {
|
|
break reducibleJoin3;
|
|
}
|
|
value = false;
|
|
forceRefresh = value;
|
|
break reducibleJoin3;
|
|
}
|
|
await undefined;
|
|
if (true) {
|
|
reduciblePort66: while (true) {
|
|
exceptionLanding65: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
isFetchEnabled = GlobalDiscoveryServersFeaturedSearchManager.isFetchEnabled;
|
|
if (isFetchEnabled) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_10;
|
|
getLastFetchTimestamp = binding.getLastFetchTimestamp;
|
|
value4 = Reflect.apply(getLastFetchTimestamp, binding, [{categoryId: categoryId}]);
|
|
if (!forceRefresh) {
|
|
value5 = env4_0(env4_3[9]);
|
|
isStaleFeaturedGuilds = value5.isStaleFeaturedGuilds;
|
|
reducibleJoin9: while (true) {
|
|
if (Reflect.apply(isStaleFeaturedGuilds, value5, [value4])) {
|
|
break reducibleJoin9;
|
|
}
|
|
break reduciblePort66;
|
|
}
|
|
}
|
|
binding = env4_1;
|
|
value6 = binding(env4_3[10]);
|
|
dispatch = value6.dispatch;
|
|
Reflect.apply(dispatch, value6, [{'type': 'GLOBAL_DISCOVERY_SERVERS_SEARCH_START',
|
|
'categoryId': null,
|
|
'reset': true, categoryId: categoryId}]);
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding2 = env4_3;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env4_12;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
GUILD_DISCOVERY = binding.GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.url = GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = binding2[12];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
stringify = value8.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
items2[0] = categoryId;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object2.categories = items2;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(stringify, value8, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.query = value9;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
await value10;
|
|
try {
|
|
value11 = undefined;
|
|
value12 = false;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
if (value12) {
|
|
return value11;
|
|
}
|
|
try {
|
|
body = value11.body;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
total = body.total;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
body = value11.body;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
guilds = body.guilds;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
map = guilds.map;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding3 = env4_3;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = binding3[9];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
fromDiscoverableGuildServer = value13.fromDiscoverableGuildServer;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(map, guilds, [fromDiscoverableGuildServer]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
property = binding3[10];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
dispatch = value15.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.type = 'GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.categoryId = categoryId;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.guilds = value14;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object.total = total;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value15, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
break reduciblePort66;
|
|
}
|
|
queue = GlobalDiscoveryServersFeaturedSearchManager.queue;
|
|
add = queue.add;
|
|
Reflect.apply(add, queue, [categoryId]);
|
|
break reduciblePort66;
|
|
}
|
|
binding = env4_1;
|
|
binding4 = env4_3;
|
|
value16 = binding(binding4[10]);
|
|
dispatch = value16.dispatch;
|
|
Reflect.apply(dispatch, value16, [{type: 'GLOBAL_DISCOVERY_SERVERS_SEARCH_FAILURE', categoryId: categoryId,
|
|
error: error}]);
|
|
binding = env4_2;
|
|
value = binding(binding4[14]);
|
|
trackGuildDiscoveryGetFeaturedGuildsFailed = value.trackGuildDiscoveryGetFeaturedGuildsFailed;
|
|
Reflect.apply(trackGuildDiscoveryGetFeaturedGuildsFailed, value, [{categoryId: categoryId}]);
|
|
break reduciblePort66;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun124950() { // fn#124950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16371:2708, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun124934, 16163, [5, 7, 6, 15, 17, 18, 12551, 9114, 661, 16164, 694, 507, 1468, 16165, 6946, 4860,
|
|
2]) /* metro module 16163, dependencies: [5, 7, 6, 15, 17, 18, 12551, 9114, 661, 16164, 694, 507, 1468, 16165, 6946, 4860, 2] */;
|