decord/source/modules/markup/StaticRouteRendering.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

58 lines
1.6 KiB
TypeScript

// Module ID: 5073
// Function ID: 5074
// Name: StaticRouteRendering
// Dependencies: [2015, 1114, 2]
// Exports: staticRouteToItemString, staticRouteToTranslation
// Module 5073 (StaticRouteRendering)
import util from "util" /* 1114 */;
import GuildRoleStore from "GuildRoleStore" /* 2015 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
export const staticRouteToTranslation = function staticRouteToTranslation(arg0) {
if ("home" !== arg0) {
if ("guide" !== arg0) {
if ("browse" === arg0) {
const intl3 = util.intl;
return intl3.string(util.t.et6wav);
} else if ("customize" === arg0) {
const intl2 = util.intl;
return intl2.string(util.t.h9mGOP);
} else if ("linked-roles" === arg0) {
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(arg0, arg1, id) {
if ("linked-roles" === arg0) {
if (null == id) {
return null;
} else {
const role = GuildRoleStore.getRole(id, arg1);
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;
}
};