Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
53 lines
2.4 KiB
TypeScript
53 lines
2.4 KiB
TypeScript
// Module ID: 9135
|
|
// Function ID: 9136
|
|
// Name: GlobalDiscoveryServersConstants
|
|
// Dependencies: [1090, 1114, 2]
|
|
// Exports: getLanguageOptions
|
|
|
|
// Module 9135 (GlobalDiscoveryServersConstants)
|
|
import DurationsDefault from "Durations" /* 1090 */;
|
|
import util from "util" /* 1114 */;
|
|
|
|
require = fn;
|
|
let obj = { FEATURED: "featured", GAMING: "gaming", MUSIC: "music", ENTERTAINMENT: "entertainment", TECH: "tech", EDUCATION: "education", HUBS: "hubs" };
|
|
const items = [obj.HUBS];
|
|
const obj2 = { Clans: -3, [-3]: "Clans", Hub: -2, [-2]: "Hub", Communities: -1, [-1]: "Communities", Activity: 1, [1]: "Activity", Music: 2, [2]: "Music", Television: 3, [3]: "Television", Science: 5, [5]: "Science", Education: 6, [6]: "Education" };
|
|
const items1 = [, , , , ];
|
|
({ Activity: arr2[0], Music: arr2[1], Television: arr2[2], Science: arr2[3], Education: arr2[4] } = obj2);
|
|
let closure_2 = ["en-GB"];
|
|
const result = 10 * DurationsDefault.Millis.MINUTE;
|
|
const size = fn(2);
|
|
const result1 = size.fileFinishedImporting("modules/global_discovery_servers/GlobalDiscoveryServersConstants.tsx");
|
|
|
|
export const DEFAULT_DISCOVERY_CATEGORY_ID = 0;
|
|
export const OTHER_DISCOVERY_CATEGORY_ID = 13;
|
|
export const DISCOVERY_ALL_CATEGORIES_ID = -1;
|
|
export const HUBS_CATEGORY_ID = -2;
|
|
export const RAPIDASH_GUILDS_CATEGORY_ID = -3;
|
|
export const GlobalDiscoveryServerTab = obj;
|
|
export const GlobalDiscoveryServerEntrypoint = { UNKNOWN: "unknown", GUILDS_BAR: "guilds_bar", RTC_PANEL: "rtc_panel", PROFILE: "profile", GAME_LINK: "game_link", EMBED: "embed" };
|
|
export const SEARCH_DISABLED_SERVER_TABS = new Set(items);
|
|
export const EMPTY_GUILD_IDS = [];
|
|
export const SEARCH_RESULTS_FEATURED_PREFIX = "f";
|
|
export const SEARCH_RESULTS_QUERY_PREFIX = "q";
|
|
export const SEARCH_RESULTS_CATEGORY_PREFIX = "c";
|
|
export const SEARCH_RESULTS_LANGUAGE_CODE_PREFIX = "l";
|
|
export const FEATURED_GUILDS_CACHE_DURATION = result;
|
|
export const FEATURED_GUILDS_SEARCH_OPTIONS = { categoryId: -1 };
|
|
export const CategoryId = obj2;
|
|
export const DISCOVERY_SIDEBAR_CATEGORIES = items1;
|
|
export const getLanguageOptions = function getLanguageOptions() {
|
|
const languages = util.getLanguages();
|
|
const found = languages.filter((code) => !closure_1_2.includes(code.code));
|
|
return found.map((code) => {
|
|
let tmp = code;
|
|
if ("en-US" === code.code) {
|
|
const obj = {};
|
|
const merged = Object.assign(code);
|
|
const intl = util.intl;
|
|
obj.name = intl.string(util.t.LQLMGP);
|
|
tmp = obj;
|
|
}
|
|
return tmp;
|
|
});
|
|
};
|