Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
// Module ID: 5218
|
|
// Function ID: 5219
|
|
// Name: StaticRouteRendering
|
|
// Dependencies: [1119, 2]
|
|
// Exports: staticRouteToItemString, staticRouteToTranslation
|
|
|
|
// Module 5218 (StaticRouteRendering)
|
|
import util from "util" /* 1119 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
|
|
|
|
export const staticRouteToTranslation = function staticRouteToTranslation(id) {
|
|
if ("home" !== id) {
|
|
if ("guide" !== id) {
|
|
if ("browse" === id) {
|
|
const intl3 = util.intl;
|
|
return intl3.string(util.t.et6wav);
|
|
} else if ("customize" === id) {
|
|
const intl2 = util.intl;
|
|
return intl2.string(util.t.h9mGOP);
|
|
} else if ("linked-roles" === id) {
|
|
const intl = util.intl;
|
|
return intl.string(util.t.ghtnss);
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
const intl4 = util.intl;
|
|
return intl4.string(util.t.VbpLyU);
|
|
};
|
|
export const staticRouteToItemString = function staticRouteToItemString(GuildRoleStore, id, itemId, id) {
|
|
if ("linked-roles" === id) {
|
|
if (null == id) {
|
|
return null;
|
|
} else {
|
|
const role = GuildRoleStore.getRole(id, itemId);
|
|
let name = null;
|
|
if (null != role) {
|
|
const tags = role.tags;
|
|
let guild_connections;
|
|
if (tags != null) {
|
|
guild_connections = tags.guild_connections;
|
|
}
|
|
name = null;
|
|
if (null === guild_connections) {
|
|
name = role.name;
|
|
}
|
|
}
|
|
return name;
|
|
}
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|