2026-10-10 08:08:14 +00:00
|
|
|
// Module ID: 5410
|
|
|
|
|
// Function ID: 5411
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: StaticRouteRendering
|
2026-10-03 08:58:59 +00:00
|
|
|
// Dependencies: [1126, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: staticRouteToItemString, staticRouteToTranslation
|
|
|
|
|
|
2026-10-10 08:08:14 +00:00
|
|
|
// Module 5410 (StaticRouteRendering)
|
2026-10-03 08:58:59 +00:00
|
|
|
import intl5 from "intl" /* 1126 */;
|
2026-09-17 08:17:09 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-17 08:17:09 +00:00
|
|
|
export const staticRouteToTranslation = function staticRouteToTranslation(id) {
|
|
|
|
|
if ("home" !== id) {
|
|
|
|
|
if ("guide" !== id) {
|
|
|
|
|
if ("browse" === id) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const intl3 = intl5.intl;
|
|
|
|
|
return intl3.string(intl5.t.et6wav);
|
2026-09-17 08:17:09 +00:00
|
|
|
} else if ("customize" === id) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const intl2 = intl5.intl;
|
|
|
|
|
return intl2.string(intl5.t.h9mGOP);
|
2026-09-17 08:17:09 +00:00
|
|
|
} else if ("linked-roles" === id) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const intl = intl5.intl;
|
|
|
|
|
return intl.string(intl5.t.ghtnss);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const intl4 = intl5.intl;
|
|
|
|
|
return intl4.string(intl5.t.VbpLyU);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-10-08 09:57:35 +00:00
|
|
|
export const staticRouteToItemString = function staticRouteToItemString(GuildRoleStore, id, itemId, guildId) {
|
2026-09-17 08:17:09 +00:00
|
|
|
if ("linked-roles" === id) {
|
2026-10-08 09:57:35 +00:00
|
|
|
if (null == guildId) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-10-08 09:57:35 +00:00
|
|
|
const role = GuildRoleStore.getRole(guildId, itemId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let name = null;
|
|
|
|
|
if (null != role) {
|
|
|
|
|
const tags = role.tags;
|
|
|
|
|
let guild_connections;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tags != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
guild_connections = tags.guild_connections;
|
|
|
|
|
}
|
|
|
|
|
name = null;
|
|
|
|
|
if (null === guild_connections) {
|
|
|
|
|
name = role.name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
};
|