47 lines
2.1 KiB
TypeScript
47 lines
2.1 KiB
TypeScript
/* Metro module 6642; source: modules/markup/StaticRouteRendering.tsx; dependencies: [1938, 1244, 2] */
|
|
function _fun52558(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6820:6, offset: 0x013304a5, size: 123 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/markup/StaticRouteRendering.tsx');
|
|
exports.staticRouteToTranslation = staticRouteToTranslation;
|
|
exports.staticRouteToItemString = staticRouteToItemString;
|
|
}
|
|
|
|
function staticRouteToTranslation(a0) { // fn#52559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6820:206, offset: 0x01330520, size: 312 bytes, params: 2, frame: 14
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
if (a0 === 'home') {
|
|
return intl.string(t.VbpLyU);
|
|
}
|
|
if (a0 === 'guide') {
|
|
return intl.string(t.VbpLyU);
|
|
}
|
|
if (a0 === 'browse') {
|
|
return intl.string(t.et6wav);
|
|
}
|
|
if (a0 === 'customize') {
|
|
return intl.string(t.h9mGOP);
|
|
}
|
|
if (a0 === 'linked-roles') {
|
|
return intl.string(t.ghtnss);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function staticRouteToItemString(a0, a1, a2) { // fn#52560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6820:510, offset: 0x01330658, size: 93 bytes, params: 4, frame: 15
|
|
var value;
|
|
var role;
|
|
if (a0 === 'linked-roles') {
|
|
value = null;
|
|
if (value == a2) {
|
|
return value;
|
|
}
|
|
role = GuildRoleStore.getRole(a2, a1);
|
|
return value == role || value !== (value == role.tags ? undefined : role.tags.guild_connections) ? value : role.name;
|
|
}
|
|
return null;
|
|
}
|
|
|