99 lines
4.6 KiB
TypeScript
99 lines
4.6 KiB
TypeScript
/* Metro module 9114; source: modules/global_discovery_servers/GlobalDiscoveryServersConstants.tsx; dependencies: [672, 1244, 2] */
|
|
import Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {FEATURED: 'featured', GAMING: 'gaming', MUSIC: 'music', ENTERTAINMENT: 'entertainment', TECH: 'tech',
|
|
EDUCATION: 'education', HUBS: 'hubs'};
|
|
const Set = global.Set;
|
|
const HUBS = object.HUBS;
|
|
const set = new Set([HUBS]);
|
|
const Millis = (Durations).Millis;
|
|
const MINUTE = Millis.MINUTE;
|
|
const value2 = 10 * MINUTE;
|
|
const object4 = {Clans: -3};
|
|
object4[-3] = 'Clans';
|
|
object4.Hub = -2;
|
|
object4[-2] = 'Hub';
|
|
object4.Communities = -1;
|
|
object4[-1] = 'Communities';
|
|
object4.Activity = 1;
|
|
object4[1] = 'Activity';
|
|
object4.Music = 2;
|
|
object4[2] = 'Music';
|
|
object4.Television = 3;
|
|
object4[3] = 'Television';
|
|
object4.Science = 5;
|
|
object4[5] = 'Science';
|
|
object4.Education = 6;
|
|
object4[6] = 'Education';
|
|
const Activity = object4.Activity;
|
|
const items2 = [Activity];
|
|
const Music = object4.Music;
|
|
items2[1] = Music;
|
|
const Television = object4.Television;
|
|
items2[2] = Television;
|
|
const Science = object4.Science;
|
|
items2[3] = Science;
|
|
const Education = object4.Education;
|
|
items2[4] = Education;
|
|
const env0_2 = ['en-GB'];
|
|
(FileImportTrackerModule).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 = object;
|
|
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 = object4;
|
|
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 = IndexNativeModule;
|
|
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 object;
|
|
var intl;
|
|
let value = a0;
|
|
if (value.code !== 'en-US') {
|
|
r0 = value;
|
|
} else {
|
|
object = {};
|
|
copyDataProperties(object, value, undefined);
|
|
value = environment.__proto__;
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LQLMGP);
|
|
object['name'] = value;
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun71413, 9114, [672, 1244, 2]) /* metro module 9114, dependencies: [672, 1244, 2] */;
|