Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,94 @@
|
||||
/* Metro module 9114; source: modules/global_discovery_servers/GlobalDiscoveryServersConstants.tsx; dependencies: [672, 1244, 2] */
|
||||
function _fun71413(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9299:6, offset: 0x01d1f118, size: 696 bytes, params: 8, frame: 28
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {FEATURED: 'featured', GAMING: 'gaming', MUSIC: 'music', ENTERTAINMENT: 'entertainment', TECH: 'tech',
|
||||
EDUCATION: 'education', HUBS: 'hubs'};
|
||||
const Set = global.Set;
|
||||
const HUBS = object2.HUBS;
|
||||
const set = new Set([HUBS]);
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const value2 = 10 * MINUTE;
|
||||
const object3 = {Clans: -3};
|
||||
object3[-3] = 'Clans';
|
||||
object3.Hub = -2;
|
||||
object3[-2] = 'Hub';
|
||||
object3.Communities = -1;
|
||||
object3[-1] = 'Communities';
|
||||
object3.Activity = 1;
|
||||
object3[1] = 'Activity';
|
||||
object3.Music = 2;
|
||||
object3[2] = 'Music';
|
||||
object3.Television = 3;
|
||||
object3[3] = 'Television';
|
||||
object3.Science = 5;
|
||||
object3[5] = 'Science';
|
||||
object3.Education = 6;
|
||||
object3[6] = 'Education';
|
||||
const Activity = object3.Activity;
|
||||
const items2 = [Activity];
|
||||
const Music = object3.Music;
|
||||
items2[1] = Music;
|
||||
const Television = object3.Television;
|
||||
items2[2] = Television;
|
||||
const Science = object3.Science;
|
||||
items2[3] = Science;
|
||||
const Education = object3.Education;
|
||||
items2[4] = Education;
|
||||
const env0_2 = ['en-GB'];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersConstants.tsx');
|
||||
exports.DEFAULT_DISCOVERY_CATEGORY_ID = 0;
|
||||
exports.OTHER_DISCOVERY_CATEGORY_ID = 13;
|
||||
exports.DISCOVERY_ALL_CATEGORIES_ID = -1;
|
||||
exports.HUBS_CATEGORY_ID = -2;
|
||||
exports.RAPIDASH_GUILDS_CATEGORY_ID = -3;
|
||||
exports.GlobalDiscoveryServerTab = object2;
|
||||
exports.GlobalDiscoveryServerEntrypoint = {UNKNOWN: 'unknown', GUILDS_BAR: 'guilds_bar', RTC_PANEL: 'rtc_panel',
|
||||
PROFILE: 'profile', GAME_LINK: 'game_link', EMBED: 'embed'};
|
||||
exports.SEARCH_DISABLED_SERVER_TABS = set;
|
||||
exports.EMPTY_GUILD_IDS = [];
|
||||
exports.SEARCH_RESULTS_FEATURED_PREFIX = 'f';
|
||||
exports.SEARCH_RESULTS_QUERY_PREFIX = 'q';
|
||||
exports.SEARCH_RESULTS_CATEGORY_PREFIX = 'c';
|
||||
exports.SEARCH_RESULTS_LANGUAGE_CODE_PREFIX = 'l';
|
||||
exports.FEATURED_GUILDS_CACHE_DURATION = value2;
|
||||
exports.FEATURED_GUILDS_SEARCH_OPTIONS = {categoryId: -1};
|
||||
exports.CategoryId = object3;
|
||||
exports.DISCOVERY_SIDEBAR_CATEGORIES = items2;
|
||||
exports.getLanguageOptions = getLanguageOptions;
|
||||
}
|
||||
|
||||
function getLanguageOptions() { // fn#71414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9299:1456, offset: 0x01d1f3d0, size: 73 bytes, params: 1, frame: 12
|
||||
let value = require(1244) /* metro dependency 1244: indexNative */;
|
||||
value = value.getLanguages();
|
||||
value = value.filter(_fun71415);
|
||||
return value.map(_fun71416);
|
||||
}
|
||||
|
||||
function _fun71415({code}) { // fn#71415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9299:1524, offset: 0x01d1f419, size: 30 bytes, params: 2, frame: 11
|
||||
const binding = env1_2;
|
||||
return !binding.includes(code);
|
||||
}
|
||||
|
||||
function _fun71416(a0) { // fn#71416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9299:1554, offset: 0x01d1f437, size: 107 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var object2;
|
||||
var intl;
|
||||
let value = a0;
|
||||
if (value.code !== 'en-US') {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, undefined);
|
||||
value = environment.__proto__;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LQLMGP);
|
||||
object2['name'] = value;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
+803
@@ -0,0 +1,803 @@
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
/* Metro module 12549; source: modules/global_discovery_servers/GlobalDiscoveryServersSearchCountsStore.tsx; dependencies: [15, 17, 18, 6, 7, 4131, 566, 694, 2] */
|
||||
function _fun95919(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:6, offset: 0x02151dfe, size: 392 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const Map = global.Map;
|
||||
let map = new Map();
|
||||
const env0_8 = _fun95925();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun95930(Store).displayName = 'GlobalDiscoveryServersSearchCountStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_95938,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_START: GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_START,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_SUCCESS: GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_SUCCESS,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_FAILURE: GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_FAILURE,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR: GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersSearchCountsStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_95920() { // fn#95920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:148, offset: 0x02151f86, 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_95920_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function getOrCreateSearchCountState(a0) { // fn#95923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:829, offset: 0x02151fe8, size: 67 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value4;
|
||||
const value2 = env0_7.get(a0);
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value4 = new env0_8();
|
||||
}
|
||||
env0_7.set(a0, r0);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function withSearchCountState(a0, a1) { // fn#95924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:924, offset: 0x0215202b, size: 41 bytes, params: 3, frame: 12
|
||||
var r0;
|
||||
let value = env0_7.get(a0);
|
||||
const value2 = null;
|
||||
if (value2 != value) {
|
||||
value = a1(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun95925() { // fn#95925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:357, offset: 0x02152054, size: 115 bytes, params: 1, frame: 15
|
||||
return env0_6(SearchCountState, [{key: 'handleSearchCountStart', value: function() {
|
||||
this.error = null;
|
||||
this.isFetching = true;
|
||||
}}, {key: 'handleSearchCountSuccess', value: function(a0) {
|
||||
this.counts = a0;
|
||||
this.isFetching = false;
|
||||
this.isInitialFetchComplete = true;
|
||||
}}, {key: 'handleSearchCountFailure', value: value_95929}]);
|
||||
}
|
||||
|
||||
function _fun95930(a0) { // fn#95930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1005, offset: 0x0215217e, size: 126 bytes, params: 2, frame: 16
|
||||
const closure = GlobalDiscoveryServersSearchCountStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_6(closure, [{key: 'getIsInitialFetchComplete', value: function(a0) {
|
||||
return withSearchCountState(a0, _fun95933);
|
||||
}}, {key: 'getIsFetchingCounts', value: function(a0) {
|
||||
return withSearchCountState(a0, _fun95935);
|
||||
}}, {key: 'getCounts', value: function(a0) {
|
||||
return withSearchCountState(a0, _fun95937);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function CONNECTION_OPEN_95938() { // fn#95938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1803, offset: 0x021522cf, size: 21 bytes, params: 1, frame: 9
|
||||
env0_7.clear();
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_START({query}) { // fn#95939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1890, offset: 0x021522e4, size: 37 bytes, params: 2, frame: 11
|
||||
getOrCreateSearchCountState(query).handleSearchCountStart();
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_SUCCESS({query, categoryCounts}) { // fn#95940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:2058, offset: 0x02152309, size: 44 bytes, params: 2, frame: 12
|
||||
getOrCreateSearchCountState(query).handleSearchCountSuccess(categoryCounts);
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_FAILURE({query, error}) { // fn#95941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:2248, offset: 0x02152335, size: 43 bytes, params: 2, frame: 12
|
||||
getOrCreateSearchCountState(query).handleSearchCountFailure(error);
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR({ignoreQueries}) { // fn#95942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:2421, offset: 0x02152360, size: 71 bytes, params: 2, frame: 12
|
||||
const Set = global.Set;
|
||||
const set = new Set(ignoreQueries);
|
||||
env0_7.forEach(_fun95943);
|
||||
}
|
||||
|
||||
function SearchCountState() { // fn#95926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:378, offset: 0x021520c7, size: 55 bytes, params: 1, frame: 13
|
||||
env1_5(this, SearchCountState);
|
||||
this.isInitialFetchComplete = false;
|
||||
this.isFetching = false;
|
||||
this.error = null;
|
||||
this.counts = null;
|
||||
}
|
||||
|
||||
function value_95929(a0) { // fn#95929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:755, offset: 0x02152135, size: 73 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
this.error = new APIError(a0);
|
||||
this.isFetching = false;
|
||||
}
|
||||
|
||||
function GlobalDiscoveryServersSearchCountStore() { // fn#95931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1017, offset: 0x021521fc, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_5(this, GlobalDiscoveryServersSearchCountStore);
|
||||
const value3 = env1_3(GlobalDiscoveryServersSearchCountStore);
|
||||
return env1_2(this, _isNativeReflectConstruct_95920() ? global.Reflect.construct(value3, arguments,
|
||||
env1_3(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_95932(a0) { // fn#95932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1440, offset: 0x0215226d, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchCountState(a0, function(a0) {
|
||||
return a0.isInitialFetchComplete;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95934(a0) { // fn#95934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1548, offset: 0x0215228a, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchCountState(a0, function(a0) {
|
||||
return a0.isFetching;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95936(a0) { // fn#95936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:1634, offset: 0x021522a7, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchCountState(a0, function(a0) {
|
||||
return a0.counts;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun95943(a0, a1) { // fn#95943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12739:2517, offset: 0x021523a7, size: 44 bytes, params: 3, frame: 11
|
||||
const binding = env0_0;
|
||||
if (!binding.has(a1)) {
|
||||
value = environment.__proto__;
|
||||
env1_7.delete(a1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 12550; source: modules/global_discovery_servers/GlobalDiscoveryServersSearchLayoutStore.tsx; dependencies: [6, 7, 15, 17, 18, 12549, 12551, 566, 694, 2] */
|
||||
function _fun95944(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12740:6, offset: 0x021523d3, size: 324 bytes, params: 8, frame: 19
|
||||
const closure = function() {
|
||||
env0_7 = [];
|
||||
};
|
||||
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 globalDiscoveryServersSearchCountsStore = importDefault(12549) /* metro dependency 12549: GlobalDiscoveryServersSearchCountsStore */;
|
||||
const globalDiscoveryServersSearchResultsStore = importDefault(12551) /* metro dependency 12551: GlobalDiscoveryServersSearchResultsStore */;
|
||||
let env0_7 = [];
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun95949(Store);
|
||||
value.displayName = 'GlobalDiscoveryServersSearchLayoutStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_LAYOUT_RESET: closure,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_COUNT_SUCCESS: function({query}) {
|
||||
var value2 = GlobalDiscoveryServersSearchCountsStore.getCounts(query);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
env0_7 = value2;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersSearchLayoutStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_95945() { // fn#95945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12740:168, offset: 0x02152517, 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_95945_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun95949(a0) { // fn#95949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12740:398, offset: 0x02152588, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = GlobalDiscoveryServersSearchLayoutStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(GlobalDiscoveryServersSearchCountsStore, GlobalDiscoveryServersSearchResultsStore);
|
||||
}}, {key: 'getVisibleTabs', value: value_95952}]);
|
||||
}
|
||||
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
/* Metro module 12551; source: modules/global_discovery_servers/GlobalDiscoveryServersSearchResultsStore.tsx; dependencies: [15, 17, 18, 6, 7, 9114, 4131, 566, 694, 2] */
|
||||
function _fun95954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:6, offset: 0x02152638, size: 489 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const getSearchStateId = function(a0) {
|
||||
return [SEARCH_RESULTS_QUERY_PREFIX, a0.query, SEARCH_RESULTS_CATEGORY_PREFIX, a0.categoryId,
|
||||
SEARCH_RESULTS_LANGUAGE_CODE_PREFIX, a0.languageCode].join('-');
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const globalDiscoveryServersConstantsModule = require(9114) /* metro dependency 9114: GlobalDiscoveryServersConstants */;
|
||||
const env0_7 = globalDiscoveryServersConstantsModule.SEARCH_RESULTS_QUERY_PREFIX;
|
||||
const env0_8 = globalDiscoveryServersConstantsModule.SEARCH_RESULTS_CATEGORY_PREFIX;
|
||||
const env0_9 = globalDiscoveryServersConstantsModule.SEARCH_RESULTS_LANGUAGE_CODE_PREFIX;
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
map = new Map();
|
||||
const env0_12 = _fun95961();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun95967(Store).displayName = 'GlobalDiscoveryServersSearchResultsStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_95986,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_START: GLOBAL_DISCOVERY_SERVERS_SEARCH_START,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS: GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_FAILURE: GLOBAL_DISCOVERY_SERVERS_SEARCH_FAILURE,
|
||||
GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR: GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR_95991,
|
||||
GUILD_PROFILE_FETCH_SUCCESS: GUILD_PROFILE_FETCH_SUCCESS_95993});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersSearchResultsStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_95955() { // fn#95955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:265, offset: 0x02152821, 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_95955_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function getOrCreateSearchState_95959(a0) { // fn#95959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:1308, offset: 0x021528d3, size: 94 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var value5;
|
||||
const searchStateId = getSearchStateId(a0);
|
||||
let binding = env0_10;
|
||||
const value3 = binding.get(searchStateId);
|
||||
if (value3 != null) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
binding = env0_12;
|
||||
({}).query = a0.query;
|
||||
value5 = new binding();
|
||||
}
|
||||
env0_10.set(searchStateId, r0);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function withSearchState_95960(a0, a1) { // fn#95960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:1437, offset: 0x02152931, size: 50 bytes, params: 3, frame: 12
|
||||
var r0;
|
||||
let value = env0_10.get(getSearchStateId(a0));
|
||||
const value3 = null;
|
||||
if (value3 != value) {
|
||||
value = a1(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun95961() { // fn#95961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:577, offset: 0x02152963, size: 109 bytes, params: 1, frame: 15
|
||||
return env0_6(SearchState_95962, [{key: 'handleSearchStart', value: function() {
|
||||
this.error = null;
|
||||
this.isFetching = true;
|
||||
}}, {key: 'handleSearchFailure', value: value_95964}, {key: 'handleSearchSuccess', value: value_95965}]);
|
||||
}
|
||||
|
||||
function _fun95967(a0) { // fn#95967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:1535, offset: 0x02152b26, size: 276 bytes, params: 2, frame: 16
|
||||
const closure = GlobalDiscoveryServersSearchResultsStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_6(closure, [{key: 'getGuild', value: value_95969}, {key: 'getGuildIds', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95971);
|
||||
}}, {key: 'getIsFetching', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95973);
|
||||
}}, {key: 'getIsInitialFetchComplete', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95975);
|
||||
}}, {key: 'getOffset', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95977);
|
||||
}}, {key: 'getTotal', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95979);
|
||||
}}, {key: 'getLastFetchTimestamp', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95981);
|
||||
}}, {key: 'getError', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95983);
|
||||
}}, {key: 'getErrorMessage', value: function(a0) {
|
||||
return withSearchState_95960(a0, _fun95985);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function CONNECTION_OPEN_95986() { // fn#95986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2845, offset: 0x02152d6d, size: 35 bytes, params: 1, frame: 10
|
||||
env0_10.clear();
|
||||
env0_11.clear();
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_START({query, categoryId, languageCode, reset}) { // fn#95987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2936, offset: 0x02152d90, size: 113 bytes, params: 2, frame: 16
|
||||
if (reset) {
|
||||
env0_10.delete(getSearchStateId({query: query, categoryId: categoryId, languageCode: languageCode}));
|
||||
}
|
||||
getOrCreateSearchState_95959({query: query, categoryId: categoryId, languageCode: languageCode}).handleSearchStart();
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_SUCCESS({query, categoryId, languageCode, total, guilds}) { // fn#95988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3232, offset: 0x02152e01, size: 108 bytes, params: 2, frame: 15
|
||||
const orCreateSearchState_95959 = getOrCreateSearchState_95959({query: query, categoryId: categoryId,
|
||||
languageCode: languageCode});
|
||||
orCreateSearchState_95959.handleSearchSuccess({total: total, guilds: guilds});
|
||||
guilds.forEach(_fun95989);
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_FAILURE({query, categoryId, languageCode, error}) { // fn#95990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3514, offset: 0x02152e8b, size: 70 bytes, params: 2, frame: 14
|
||||
getOrCreateSearchState_95959({query: query, categoryId: categoryId,
|
||||
languageCode: languageCode}).handleSearchFailure(error);
|
||||
}
|
||||
|
||||
function GLOBAL_DISCOVERY_SERVERS_SEARCH_CLEAR_95991({ignoreQueries}) { // fn#95991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3736, offset: 0x02152ed1, size: 71 bytes, params: 2, frame: 12
|
||||
const Set = global.Set;
|
||||
const set = new Set(ignoreQueries);
|
||||
env0_10.forEach(_fun95992);
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_FETCH_SUCCESS_95993({guildId, profile}) { // fn#95993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3917, offset: 0x02152f59, size: 122 bytes, params: 2, frame: 18
|
||||
let binding = env0_11;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
binding = env0_11;
|
||||
const set = binding.set;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
let memberCount = profile.memberCount;
|
||||
memberCount = memberCount ?? value2.memberCount;
|
||||
object2['memberCount'] = memberCount;
|
||||
object2['presenceCount'] = profile.onlineCount ?? value2.presenceCount;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
|
||||
function SearchState_95962({query}) { // fn#95962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:598, offset: 0x021529d0, size: 92 bytes, params: 2, frame: 15
|
||||
env1_5(this, SearchState_95962);
|
||||
this.guildIds = [];
|
||||
this.error = null;
|
||||
this.offset = null;
|
||||
this.total = null;
|
||||
this.isFetching = false;
|
||||
this.isInitialFetchComplete = false;
|
||||
this.lastFetchTimestamp = null;
|
||||
this.query = query;
|
||||
}
|
||||
|
||||
function value_95964(a0) { // fn#95964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:923, offset: 0x02152a2c, size: 81 bytes, params: 2, frame: 13
|
||||
this.isFetching = false;
|
||||
this.isInitialFetchComplete = true;
|
||||
const value = environment.__proto__;
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
this.error = new APIError(a0);
|
||||
}
|
||||
|
||||
function value_95965({total, guilds}) { // fn#95965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:1056, offset: 0x02152a7d, size: 142 bytes, params: 2, frame: 18
|
||||
this.error = null;
|
||||
this.isFetching = false;
|
||||
this.isInitialFetchComplete = true;
|
||||
const Date = global.Date;
|
||||
this.lastFetchTimestamp = Date.now();
|
||||
if (total != null) {
|
||||
this.total = total;
|
||||
}
|
||||
const guildIds = this.guildIds;
|
||||
const items2 = [];
|
||||
arraySpread(items2, guildIds, 0, Date);
|
||||
guilds.forEach(_fun95966);
|
||||
this.guildIds = items2;
|
||||
this.offset = items2.length;
|
||||
}
|
||||
|
||||
function value_95970(a0) { // fn#95970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2018, offset: 0x02152c3a, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.guildIds;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95972(a0) { // fn#95972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2101, offset: 0x02152c62, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.isFetching;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95974(a0) { // fn#95974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2198, offset: 0x02152c7f, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.isInitialFetchComplete;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95976(a0) { // fn#95976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2291, offset: 0x02152c9c, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.offset;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95978(a0) { // fn#95978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2367, offset: 0x02152cc4, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.total;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95980(a0) { // fn#95980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2455, offset: 0x02152cec, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.lastFetchTimestamp;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95982(a0) { // fn#95982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2543, offset: 0x02152d14, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function(a0) {
|
||||
return a0.error;
|
||||
});
|
||||
}
|
||||
|
||||
function value_95984(a0) { // fn#95984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:2625, offset: 0x02152d31, size: 29 bytes, params: 2, frame: 13
|
||||
return withSearchState_95960(a0, function({error}) {
|
||||
return error?.getAnyErrorMessage();
|
||||
});
|
||||
}
|
||||
|
||||
function _fun95989(a0) { // fn#95989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3452, offset: 0x02152e6d, size: 30 bytes, params: 2, frame: 13
|
||||
const binding = env1_11;
|
||||
binding.set(a0.id, a0);
|
||||
}
|
||||
|
||||
function _fun95992(a0, a1) { // fn#95992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:3832, offset: 0x02152f18, size: 65 bytes, params: 3, frame: 11
|
||||
var value;
|
||||
var binding;
|
||||
if (a0.query != null) {
|
||||
binding = env0_0;
|
||||
if (!binding.has(a0.query)) {
|
||||
value = environment.__proto__;
|
||||
env1_10.delete(a1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun95966({id}) { // fn#95966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12741:1246, offset: 0x02152b0b, size: 27 bytes, params: 2, frame: 11
|
||||
return env0_0.push(id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,333 @@
|
||||
/* Metro module 16164; source: modules/global_discovery_servers/GlobalDiscoveryServersUtils.tsx; dependencies: [5, 1949, 12551, 9114, 661, 1244, 1360, 6946, 683, 16163, 491, 2] */
|
||||
function _fun124951(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:6, offset: 0x025c80ae, size: 435 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 localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const globalDiscoveryServersSearchResultsStore = importDefault(12551) /* metro dependency 12551: GlobalDiscoveryServersSearchResultsStore */;
|
||||
const globalDiscoveryServersConstantsModule = require(9114) /* metro dependency 9114: GlobalDiscoveryServersConstants */;
|
||||
const env0_7 = globalDiscoveryServersConstantsModule.GlobalDiscoveryServerTab;
|
||||
const env0_8 = globalDiscoveryServersConstantsModule.FEATURED_GUILDS_CACHE_DURATION;
|
||||
const env0_9 = globalDiscoveryServersConstantsModule.FEATURED_GUILDS_SEARCH_OPTIONS;
|
||||
const env0_10 = globalDiscoveryServersConstantsModule.CategoryId;
|
||||
const env0_11 = globalDiscoveryServersConstantsModule.DISCOVERY_ALL_CATEGORIES_ID;
|
||||
const env0_12 = globalDiscoveryServersConstantsModule.getLanguageOptions;
|
||||
const env0_13 = globalDiscoveryServersConstantsModule.HUBS_CATEGORY_ID;
|
||||
const env0_14 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GlobalDiscoveryServersUtils.tsx');
|
||||
exports.getGlobalDiscoveryServersTabTitle = getGlobalDiscoveryServersTabTitle;
|
||||
exports.getGlobalDiscoveryServersBannerTitle = getGlobalDiscoveryServersBannerTitle;
|
||||
exports.getGlobalDiscoveryServersBannerDescription = getGlobalDiscoveryServersBannerDescription;
|
||||
exports.getGlobalDiscoveryServersTabSectionTitle = getGlobalDiscoveryServersTabSectionTitle;
|
||||
exports.getCategoryIdFromServerTab = getCategoryIdFromServerTab;
|
||||
exports.isStaleFeaturedGuilds = isStaleFeaturedGuilds;
|
||||
exports.fromDiscoverableGuildServer = fromDiscoverableGuildServer;
|
||||
exports.fromDiscoverableGuildSearchResult = fromDiscoverableGuildSearchResult;
|
||||
exports.getLanguageCodeFallback = getLanguageCodeFallback;
|
||||
exports.navigateToGuild = function() {
|
||||
return _navigateToGuild.apply(this, arguments);
|
||||
};
|
||||
exports.handleTabPressPrefetch = handleTabPressPrefetch;
|
||||
exports.makeAnalyticsID = makeAnalyticsID;
|
||||
}
|
||||
|
||||
function _navigateToGuild() { // fn#124952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:351, offset: 0x025c8261, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun124954).apply(this, arguments);
|
||||
}
|
||||
|
||||
function getGlobalDiscoveryServersTabTitle(a0) { // fn#124955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:815, offset: 0x025c8375, size: 540 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const FEATURED = GlobalDiscoveryServerTab.FEATURED;
|
||||
if (FEATURED === a0) {
|
||||
return intl.string(t['RU+DCe']);
|
||||
}
|
||||
const GAMING = GlobalDiscoveryServerTab.GAMING;
|
||||
if (GAMING === a0) {
|
||||
return intl.string(t['CD/USA']);
|
||||
}
|
||||
const MUSIC = GlobalDiscoveryServerTab.MUSIC;
|
||||
if (MUSIC === a0) {
|
||||
return intl.string(t['nt9PL+']);
|
||||
}
|
||||
const ENTERTAINMENT = GlobalDiscoveryServerTab.ENTERTAINMENT;
|
||||
if (ENTERTAINMENT === a0) {
|
||||
return intl.string(t.gSbmdt);
|
||||
}
|
||||
const TECH = GlobalDiscoveryServerTab.TECH;
|
||||
if (TECH === a0) {
|
||||
return intl.string(t['0A0By5']);
|
||||
}
|
||||
const EDUCATION = GlobalDiscoveryServerTab.EDUCATION;
|
||||
if (EDUCATION === a0) {
|
||||
return intl.string(t.Gy9woq);
|
||||
}
|
||||
const HUBS = GlobalDiscoveryServerTab.HUBS;
|
||||
if (HUBS === a0) {
|
||||
return intl.string(t['q469/Z']);
|
||||
}
|
||||
}
|
||||
|
||||
function getGlobalDiscoveryServersBannerTitle(a0) { // fn#124956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:1347, offset: 0x025c8591, size: 591 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const FEATURED = GlobalDiscoveryServerTab.FEATURED;
|
||||
if (FEATURED === a0) {
|
||||
return intl.string(t.OlDfzP);
|
||||
}
|
||||
const GAMING = GlobalDiscoveryServerTab.GAMING;
|
||||
if (GAMING === a0) {
|
||||
return intl.string(t['CD/USA']);
|
||||
}
|
||||
const MUSIC = GlobalDiscoveryServerTab.MUSIC;
|
||||
if (MUSIC === a0) {
|
||||
return intl.string(t['nt9PL+']);
|
||||
}
|
||||
const ENTERTAINMENT = GlobalDiscoveryServerTab.ENTERTAINMENT;
|
||||
if (ENTERTAINMENT === a0) {
|
||||
return intl.string(t.gSbmdt);
|
||||
}
|
||||
const TECH = GlobalDiscoveryServerTab.TECH;
|
||||
if (TECH === a0) {
|
||||
return intl.string(t['0A0By5']);
|
||||
}
|
||||
const EDUCATION = GlobalDiscoveryServerTab.EDUCATION;
|
||||
if (EDUCATION === a0) {
|
||||
return intl.string(t.Gy9woq);
|
||||
}
|
||||
const HUBS = GlobalDiscoveryServerTab.HUBS;
|
||||
if (HUBS === a0) {
|
||||
return intl.string(t.X5xPlb);
|
||||
}
|
||||
const Error = global.Error;
|
||||
const value = '[getGlobalDiscoveryServerTabTitle] Unsupported tab: ' + a0;
|
||||
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error();
|
||||
throw error instanceof Object ? error : value2;
|
||||
}
|
||||
|
||||
function getGlobalDiscoveryServersBannerDescription(a0) { // fn#124957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:1966, offset: 0x025c87e0, size: 601 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const FEATURED = GlobalDiscoveryServerTab.FEATURED;
|
||||
if (FEATURED === a0) {
|
||||
return intl.string(t.SdMhrk);
|
||||
}
|
||||
const GAMING = GlobalDiscoveryServerTab.GAMING;
|
||||
if (GAMING === a0) {
|
||||
return intl.string(t.AAJ5ov);
|
||||
}
|
||||
const MUSIC = GlobalDiscoveryServerTab.MUSIC;
|
||||
if (MUSIC === a0) {
|
||||
return intl.string(t['SOio+D']);
|
||||
}
|
||||
const ENTERTAINMENT = GlobalDiscoveryServerTab.ENTERTAINMENT;
|
||||
if (ENTERTAINMENT === a0) {
|
||||
return intl.string(t.R09vf0);
|
||||
}
|
||||
const TECH = GlobalDiscoveryServerTab.TECH;
|
||||
if (TECH === a0) {
|
||||
return intl.string(t.Ew4d56);
|
||||
}
|
||||
const EDUCATION = GlobalDiscoveryServerTab.EDUCATION;
|
||||
if (EDUCATION === a0) {
|
||||
return intl.string(t.sasIWU);
|
||||
}
|
||||
const HUBS = GlobalDiscoveryServerTab.HUBS;
|
||||
if (HUBS === a0) {
|
||||
return intl.string(t['F/IQCI']);
|
||||
}
|
||||
const Error = global.Error;
|
||||
const value = '[getGlobalDiscoveryServerTabTitle] Unsupported tab: ' + a0;
|
||||
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error();
|
||||
throw error instanceof Object ? error : value2;
|
||||
}
|
||||
|
||||
function getGlobalDiscoveryServersTabSectionTitle(a0) { // fn#124958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:2586, offset: 0x025c8a39, size: 472 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const FEATURED = GlobalDiscoveryServerTab.FEATURED;
|
||||
if (FEATURED === a0) {
|
||||
return intl.string(t.crt84X);
|
||||
}
|
||||
const GAMING = GlobalDiscoveryServerTab.GAMING;
|
||||
if (GAMING === a0) {
|
||||
return intl.string(t.fWbIpf);
|
||||
}
|
||||
const MUSIC = GlobalDiscoveryServerTab.MUSIC;
|
||||
if (MUSIC === a0) {
|
||||
return intl.string(t.nfgDzz);
|
||||
}
|
||||
const ENTERTAINMENT = GlobalDiscoveryServerTab.ENTERTAINMENT;
|
||||
if (ENTERTAINMENT === a0) {
|
||||
return intl.string(t.k1CYxv);
|
||||
}
|
||||
const TECH = GlobalDiscoveryServerTab.TECH;
|
||||
if (TECH === a0) {
|
||||
return intl.string(t['4dawps']);
|
||||
}
|
||||
const EDUCATION = GlobalDiscoveryServerTab.EDUCATION;
|
||||
if (EDUCATION === a0) {
|
||||
return intl.string(t.uexPgT);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getCategoryIdFromServerTab(a0) { // fn#124959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:3066, offset: 0x025c8c11, size: 220 bytes, params: 2, frame: 13
|
||||
const FEATURED = GlobalDiscoveryServerTab.FEATURED;
|
||||
if (FEATURED === a0) {
|
||||
return DISCOVERY_ALL_CATEGORIES_ID;
|
||||
}
|
||||
const GAMING = GlobalDiscoveryServerTab.GAMING;
|
||||
if (GAMING === a0) {
|
||||
return CategoryId.Activity;
|
||||
}
|
||||
const MUSIC = GlobalDiscoveryServerTab.MUSIC;
|
||||
if (MUSIC === a0) {
|
||||
return CategoryId.Music;
|
||||
}
|
||||
const ENTERTAINMENT = GlobalDiscoveryServerTab.ENTERTAINMENT;
|
||||
if (ENTERTAINMENT === a0) {
|
||||
return CategoryId.Television;
|
||||
}
|
||||
const TECH = GlobalDiscoveryServerTab.TECH;
|
||||
if (TECH === a0) {
|
||||
return CategoryId.Science;
|
||||
}
|
||||
const EDUCATION = GlobalDiscoveryServerTab.EDUCATION;
|
||||
if (EDUCATION === a0) {
|
||||
return CategoryId.Education;
|
||||
}
|
||||
const HUBS = GlobalDiscoveryServerTab.HUBS;
|
||||
if (HUBS === a0) {
|
||||
return HUBS_CATEGORY_ID;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(a0);
|
||||
}
|
||||
|
||||
function isStaleFeaturedGuilds(a0) { // fn#124960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:3384, offset: 0x025c8ced, size: 46 bytes, params: 2, frame: 11
|
||||
var r0;
|
||||
var Date;
|
||||
let value = a0 == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
Date = global.Date;
|
||||
value = Date.now() - a0;
|
||||
value = value > FEATURED_GUILDS_CACHE_DURATION;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function fromDiscoverableGuildServer({id, name, description, splash, banner, icon, features, approximate_presence_count, approximate_member_count, premium_subscription_count, preferred_locale, discovery_splash, emojis, emoji_count}) { // fn#124961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:3480, offset: 0x025c8d1b, size: 181 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
object2.description = description;
|
||||
object2.splash = splash;
|
||||
object2.banner = banner;
|
||||
object2.icon = icon;
|
||||
const Set = global.Set;
|
||||
object2.features = new Set(features);
|
||||
object2.presenceCount = approximate_presence_count;
|
||||
object2.memberCount = approximate_member_count;
|
||||
object2.premiumSubscriptionCount = premium_subscription_count;
|
||||
object2.preferredLocale = preferred_locale;
|
||||
object2.discoverySplash = discovery_splash;
|
||||
object2.emojis = emojis;
|
||||
object2.emojiCount = emoji_count;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function fromDiscoverableGuildSearchResult({id, name, description, splash, banner, icon, features, approximate_presence_count, approximate_member_count, discovery_splash}) { // fn#124962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:3931, offset: 0x025c8dd0, size: 158 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
object2.description = description;
|
||||
object2.splash = splash;
|
||||
object2.banner = banner;
|
||||
object2.icon = icon;
|
||||
const Set = global.Set;
|
||||
object2.features = new Set(features);
|
||||
object2.presenceCount = approximate_presence_count;
|
||||
object2.memberCount = approximate_member_count;
|
||||
object2.premiumSubscriptionCount = undefined;
|
||||
object2.preferredLocale = undefined;
|
||||
object2.discoverySplash = discovery_splash;
|
||||
object2.emojis = [];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getLanguageCodeFallback() { // fn#124963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:4313, offset: 0x025c8e6e, size: 122 bytes, params: 1, frame: 15
|
||||
let value = a0;
|
||||
const value2 = undefined;
|
||||
const iterator = (value !== value2 ? value : [LocaleStore])[Symbol.iterator]();
|
||||
let item2 = iterator.next();
|
||||
const item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
value = item2 === value2;
|
||||
const r1 = value ? value2 : item;
|
||||
if (!value) {
|
||||
item2.return();
|
||||
}
|
||||
value = getLanguageOptions();
|
||||
const env0_0 = r1.locale;
|
||||
return (value.find(function({code}) {
|
||||
return code === locale;
|
||||
}) ?? value[0]).code;
|
||||
}
|
||||
|
||||
function handleTabPressPrefetch() { // fn#124966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:4550, offset: 0x025c8efd, size: 148 bytes, params: 1, frame: 15
|
||||
var r1;
|
||||
const error = GlobalDiscoveryServersSearchResultsStore.getError(FEATURED_GUILDS_SEARCH_OPTIONS);
|
||||
const isFetching = GlobalDiscoveryServersSearchResultsStore.getIsFetching(FEATURED_GUILDS_SEARCH_OPTIONS);
|
||||
const isInitialFetchComplete = GlobalDiscoveryServersSearchResultsStore.getIsInitialFetchComplete(FEATURED_GUILDS_SEARCH_OPTIONS);
|
||||
if (isInitialFetchComplete) {
|
||||
r1 = isInitialFetchComplete && !isFetching;
|
||||
r1 = r1 && error != null;
|
||||
if (r1) {
|
||||
(importDefault(16163) /* metro dependency 16163: GlobalDiscoveryServersFeaturedSearchManager */).fetchFeaturedGuilds({forceRefresh: true});
|
||||
}
|
||||
} else if (isFetching) {
|
||||
r1 = isInitialFetchComplete && !isFetching;
|
||||
r1 = r1 && error != null;
|
||||
if (r1) {
|
||||
(importDefault(16163) /* metro dependency 16163: GlobalDiscoveryServersFeaturedSearchManager */).fetchFeaturedGuilds({forceRefresh: true});
|
||||
}
|
||||
} else {
|
||||
(importDefault(16163) /* metro dependency 16163: GlobalDiscoveryServersFeaturedSearchManager */).fetchFeaturedGuilds();
|
||||
}
|
||||
}
|
||||
|
||||
function makeAnalyticsID() { // fn#124967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:4775, offset: 0x025c8f91, size: 66 bytes, params: 1, frame: 13
|
||||
let value = require(491) /* metro dependency 491 */;
|
||||
value = value.v4();
|
||||
return value.replace(RegExp('-', 'g'), '');
|
||||
}
|
||||
|
||||
async function _fun124954({loadId, guildId, index, categoryId, analyticsLocation, options}) { // fn#124954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16372:406, offset: 0x025c82a7, size: 206 bytes, params: 2, frame: 23
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var object2 = {};
|
||||
copyDataProperties(object2, options, undefined);
|
||||
object2['loadId'] = loadId;
|
||||
value = environment.__proto__.__proto__;
|
||||
var value4 = env2_2(env2_3[7]);
|
||||
await value4.startLurking(guildId, analyticsLocation, object2);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var value7 = env2_1(env2_3[8]);
|
||||
var track = value7.track;
|
||||
var GUILD_DISCOVERY_GUILD_SELECTED = env2_14.GUILD_DISCOVERY_GUILD_SELECTED;
|
||||
Reflect.apply(track, value7, [GUILD_DISCOVERY_GUILD_SELECTED, {guild_id: guildId, load_id: loadId,
|
||||
card_index: index, category_id: categoryId, location: analyticsLocation}]);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,166 @@
|
||||
/* Metro module 14833; source: modules/global_discovery_servers/GuildDiscoveryCategoryStore.tsx; dependencies: [6, 7, 15, 17, 18, 9114, 22, 1360, 1244, 566, 694, 2] */
|
||||
function _fun111954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:6, offset: 0x023b91e9, size: 374 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = require(9114) /* metro dependency 9114: GlobalDiscoveryServersConstants */;
|
||||
const env0_8 = value.DEFAULT_DISCOVERY_CATEGORY_ID;
|
||||
const env0_9 = value.OTHER_DISCOVERY_CATEGORY_ID;
|
||||
const env0_10 = value.DISCOVERY_ALL_CATEGORIES_ID;
|
||||
const env0_11 = value.DISCOVERY_SIDEBAR_CATEGORIES;
|
||||
const env0_13 = [];
|
||||
const env0_14 = [];
|
||||
const env0_15 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun111958(Store).displayName = 'GuildDiscoveryCategoryStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{GUILD_DISCOVERY_CATEGORY_FETCH_SUCCESS: GUILD_DISCOVERY_CATEGORY_FETCH_SUCCESS});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_servers/GuildDiscoveryCategoryStore.tsx');
|
||||
exports.default = value;
|
||||
exports.areDiscoveryCategoriesEqual = areDiscoveryCategoriesEqual;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_111955() { // fn#111955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:290, offset: 0x023b935f, 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_111955_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun111958(a0) { // fn#111958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:515, offset: 0x023b93c1, size: 209 bytes, params: 2, frame: 16
|
||||
const closure = GuildDiscoveryCategoryStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getPrimaryCategories', value: value_111960}, {key: 'getDiscoveryCategories',
|
||||
value: value_111961}, {key: 'getClanDiscoveryCategories', value: value_111964}, {key: 'getAllCategories',
|
||||
value: value_111967}, {key: 'getFetchedLocale', value: value_111968}, {key: 'getCategoryName',
|
||||
value: value_111969}]);
|
||||
}
|
||||
|
||||
function GUILD_DISCOVERY_CATEGORY_FETCH_SUCCESS({categories, locale}) { // fn#111970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:1636, offset: 0x023b9669, size: 148 bytes, params: 2, frame: 17
|
||||
var binding;
|
||||
var categoryId;
|
||||
var name;
|
||||
const items3 = [];
|
||||
const items2 = [];
|
||||
categories.sort(function({name}, a1) {
|
||||
return name < a1.name ? -1 : 1;
|
||||
}).forEach(_fun111972);
|
||||
if (null != undefined) {
|
||||
binding = undefined;
|
||||
categoryId = binding.categoryId;
|
||||
name = binding.name;
|
||||
items3.push({categoryId: categoryId, name: name});
|
||||
env0_15[categoryId] = name;
|
||||
}
|
||||
}
|
||||
|
||||
function areDiscoveryCategoriesEqual(a0, a1) { // fn#111973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:2147, offset: 0x023b97a5, size: 81 bytes, params: 3, frame: 16
|
||||
const value = importDefault(22) /* metro dependency 22 */;
|
||||
return value.isEqual(a0.map(function(a0) {
|
||||
return [a0.categoryId, a0.name];
|
||||
}), a1.map(function(a0) {
|
||||
return [a0.categoryId, a0.name];
|
||||
}));
|
||||
}
|
||||
|
||||
function value_111961() { // fn#111961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:948, offset: 0x023b9492, size: 146 bytes, params: 1, frame: 18
|
||||
const value2 = DISCOVERY_SIDEBAR_CATEGORIES.map(_fun111962);
|
||||
const value3 = value2.filter(require(dependencyMap[7]).isNotNullish);
|
||||
const object2 = {};
|
||||
object2.categoryId = DISCOVERY_ALL_CATEGORIES_ID;
|
||||
const intl = require(dependencyMap[8]).intl;
|
||||
const string = intl.string;
|
||||
const Ym2Ri6 = require(dependencyMap[8]).t.Ym2Ri6;
|
||||
object2.name = Reflect.apply(string, intl, [Ym2Ri6]);
|
||||
const items2 = [object2];
|
||||
arraySpread(items2, value3, 1, dependencyMap);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function value_111964() { // fn#111964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:1149, offset: 0x023b955e, size: 148 bytes, params: 1, frame: 18
|
||||
const value2 = DISCOVERY_SIDEBAR_CATEGORIES.map(_fun111965);
|
||||
const value3 = value2.filter(require(dependencyMap[7]).isNotNullish);
|
||||
const object2 = {};
|
||||
object2.categoryId = DISCOVERY_ALL_CATEGORIES_ID;
|
||||
const intl = require(dependencyMap[8]).intl;
|
||||
const string = intl.string;
|
||||
const QToH29 = require(dependencyMap[8]).t.QToH29;
|
||||
object2.name = Reflect.apply(string, intl, [QToH29]);
|
||||
const items2 = [object2];
|
||||
arraySpread(items2, value3, 1, dependencyMap);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function value_111969(a0) { // fn#111969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:1443, offset: 0x023b9616, size: 83 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var intl;
|
||||
const value = environment.__proto__;
|
||||
if (a0 === DISCOVERY_ALL_CATEGORIES_ID) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Ym2Ri6);
|
||||
} else {
|
||||
r0 = env1_15[a0];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun111972({id, name, is_primary}) { // fn#111972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:1761, offset: 0x023b971f, size: 134 bytes, params: 2, frame: 15
|
||||
var object;
|
||||
var binding;
|
||||
if (id !== DEFAULT_DISCOVERY_CATEGORY_ID) {
|
||||
if (id !== OTHER_DISCOVERY_CATEGORY_ID) {
|
||||
if (is_primary === true) {
|
||||
binding = env0_1;
|
||||
binding.push({categoryId: id, name: name});
|
||||
}
|
||||
binding = env0_2;
|
||||
binding.push({categoryId: id, name: name});
|
||||
env1_15[id] = name;
|
||||
} else {
|
||||
object = {categoryId: id, name: name};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun111962(a0) { // fn#111962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:972, offset: 0x023b9524, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env2_14.find(_fun111963);
|
||||
}
|
||||
|
||||
function _fun111965(a0) { // fn#111965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:1173, offset: 0x023b95f2, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env2_14.find(_fun111966);
|
||||
}
|
||||
|
||||
function _fun111963({categoryId}) { // fn#111963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15030:983, offset: 0x023b9548, size: 22 bytes, params: 2, frame: 2
|
||||
return categoryId === env0_0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user