Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
// Module ID: 17284
|
|
// Function ID: 17285
|
|
// Name: getConsoleConnectingText
|
|
// Dependencies: [1074, 1114, 2]
|
|
// Exports: getConsoleConnectingText
|
|
|
|
// Module 17284 (getConsoleConnectingText)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import util from "util" /* 1114 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const PlatformTypes = Constants.PlatformTypes;
|
|
const result = size.fileFinishedImporting("modules/game_console/native/getConsoleConnectingText.tsx");
|
|
|
|
export const getConsoleConnectingText = function getConsoleConnectingText(stateFromStores1, stateFromStores, arg2) {
|
|
let type;
|
|
if (stateFromStores != null) {
|
|
type = stateFromStores.type;
|
|
}
|
|
if (type == null) {
|
|
let os;
|
|
if (stateFromStores1 != null) {
|
|
os = stateFromStores1.clientInfo.os;
|
|
}
|
|
type = os;
|
|
}
|
|
if (type === PlatformTypes.XBOX) {
|
|
if (arg2) {
|
|
const intl4 = util.intl;
|
|
let str2 = intl4.format(util.t["ynEs/Y"], {});
|
|
} else {
|
|
str2 = "Xbox";
|
|
if (tmp4) {
|
|
const intl3 = util.intl;
|
|
str2 = intl3.string(util.t.UjA4HX);
|
|
}
|
|
}
|
|
} else if (arg2) {
|
|
const intl2 = util.intl;
|
|
let str = intl2.format(util.t.TZ17Bg, {});
|
|
} else {
|
|
str = "PS5";
|
|
if (tmp4) {
|
|
const intl = util.intl;
|
|
str = intl.string(util.t.QCw1oW);
|
|
}
|
|
}
|
|
};
|