2026-09-21 19:31:18 +00:00
|
|
|
// Module ID: 5218
|
|
|
|
|
// Function ID: 5219
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: StaticRouteRendering
|
2026-09-21 19:31:18 +00:00
|
|
|
// Dependencies: [1119, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: staticRouteToItemString, staticRouteToTranslation
|
|
|
|
|
|
2026-09-21 19:31:18 +00:00
|
|
|
// Module 5218 (StaticRouteRendering)
|
|
|
|
|
import util from "util" /* 1119 */;
|
2026-09-21 13:40:21 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
|
|
|
|
|
|
2026-09-21 13:40:21 +00:00
|
|
|
export const staticRouteToTranslation = function staticRouteToTranslation(id) {
|
|
|
|
|
if ("home" !== id) {
|
|
|
|
|
if ("guide" !== id) {
|
|
|
|
|
if ("browse" === id) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const intl3 = util.intl;
|
|
|
|
|
return intl3.string(util.t.et6wav);
|
2026-09-21 13:40:21 +00:00
|
|
|
} else if ("customize" === id) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const intl2 = util.intl;
|
|
|
|
|
return intl2.string(util.t.h9mGOP);
|
2026-09-21 13:40:21 +00:00
|
|
|
} else if ("linked-roles" === id) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const intl = util.intl;
|
|
|
|
|
return intl.string(util.t.ghtnss);
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const intl4 = util.intl;
|
|
|
|
|
return intl4.string(util.t.VbpLyU);
|
|
|
|
|
};
|
2026-09-21 13:40:21 +00:00
|
|
|
export const staticRouteToItemString = function staticRouteToItemString(GuildRoleStore, id, itemId, id) {
|
|
|
|
|
if ("linked-roles" === id) {
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null == id) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-09-21 13:40:21 +00:00
|
|
|
const role = GuildRoleStore.getRole(id, itemId);
|
2026-09-18 19:45:33 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
};
|