804 lines
30 KiB
TypeScript
804 lines
30 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] */
|
|
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});
|
|
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
|
const globalDiscoveryServersSearchResultsStore = importDefault(12551) /* metro dependency 12551: GlobalDiscoveryServersSearchResultsStore */;
|
|
const env0_11 = (require(9114) /* metro dependency 9114: GlobalDiscoveryServersConstants */).DISCOVERY_ALL_CATEGORIES_ID;
|
|
const env0_12 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun124938(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 closure = GlobalDiscoveryServersFeaturedSearchManager;
|
|
env0_9(closure, a0);
|
|
return env0_5(closure);
|
|
}
|
|
|
|
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 items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_8(GlobalDiscoveryServersFeaturedSearchManager);
|
|
binding = env1_7;
|
|
if (_isNativeReflectConstruct_124935()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_8(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
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 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 _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 _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;
|
|
}
|
|
|
|
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* _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 object3;
|
|
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 object4;
|
|
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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding3 = env4_12;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
GUILD_DISCOVERY = binding3.GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.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 {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object4.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 {
|
|
object4.limit = FEATURED_DEFAULT_LIMIT;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(stringify, value9, [object4]);
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.query = value11;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(get, HTTP, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.type = 'GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
binding = env4_11;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.categoryId = binding;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.guilds = value16;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
object3.total = total;
|
|
} catch (error) {
|
|
break exceptionLanding68;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value17, [object3]);
|
|
} 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;
|
|
}
|
|
}
|
|
|
|
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 object3;
|
|
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 object4;
|
|
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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
binding = env4_12;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
GUILD_DISCOVERY = binding.GUILD_DISCOVERY;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.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 {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
items2[0] = categoryId;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object4.categories = items2;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(stringify, value8, [object4]);
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.query = value9;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(get, HTTP, [object3]);
|
|
} 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 {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.type = 'GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.categoryId = categoryId;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.guilds = value14;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
object3.total = total;
|
|
} catch (error) {
|
|
break exceptionLanding65;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value15, [object3]);
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
|