Files
discord-decomp/sources/modules/game_console/native/getConsoleConnectingText.tsx
T
2026-07-28 01:06:53 +03:00

28 lines
2.0 KiB
TypeScript

/* Metro module 15519; source: modules/game_console/native/getConsoleConnectingText.tsx; dependencies: [661, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun118843(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15716:6, offset: 0x024f0fba, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/native/getConsoleConnectingText.tsx');
exports.getConsoleConnectingText = getConsoleConnectingText;
function getConsoleConnectingText(a0, a1, a2) { // fn#118844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15716:237, offset: 0x024f102f, size: 383 bytes, params: 4, frame: 20
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const value = undefined;
const r5 = (a1 == null ? value : a1.type) ?? (a0 == null ? value : a0.clientInfo.os);
const value2 = a1 != null;
const XBOX = PlatformTypes.XBOX;
return r5 === XBOX ? a2 ? intl.format(t['ynEs/Y'],
{}) : value2 ? intl.string(t.UjA4HX) : 'Xbox' : r5 === PlatformTypes.PLAYSTATION ? a2 ? intl.format(t.TZ17Bg,
{}) : value2 ? intl.string(t.QCw1oW) : 'PS5' : r5 !== PlatformTypes.PLAYSTATION_STAGING ? value : a2 ? intl.format(t.TZ17Bg,
{}) : value2 ? intl.string(t.QCw1oW) : 'PS5';
}
}
global.__d(_fun118843, 15519, [661, 1244, 2]) /* metro module 15519, dependencies: [661, 1244, 2] */;