decord/source/modules/game_console/native/GameConsoleAlertUtils.tsx

70 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9083
// Function ID: 71265
// Dependencies: [31, 4177, 8989, 653, 33, 3946, 1334, 1212, 4471, 9084, 9009, 2]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 9083
2026-07-23 10:11:24 +00:00
import "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { GAME_CONSOLE_ALERT_MODAL_LOCATION as closure_4 } from "XBOX_URL_BASE";
import ME from "ME";
import { jsx } from "jsxProd";
let closure_5;
let closure_6;
let require = arg1;
({ InputModes: closure_5, PlatformTypes: closure_6 } = ME);
let result = require("XBOX_URL_BASE").fileFinishedImporting("modules/game_console/native/GameConsoleAlertUtils.tsx");
export default {
2026-07-20 16:05:17 +00:00
maybeShowPTTAlert(XBOX) {
if (mode.getMode() === constants.PUSH_TO_TALK) {
2026-07-23 10:11:24 +00:00
if (!obj2.UNSAFE_isDismissibleContentDismissed(require(1334) /* DismissibleContent */.DismissibleContent.CONSOLE_PTT_DISABLE_ALERT)) {
let obj = {};
let intl = require(1212) /* getSystemLocale */.intl;
obj[constants2.XBOX] = intl.string(require(1212) /* getSystemLocale */.t.bVZ7vy);
const intl2 = require(1212) /* getSystemLocale */.intl;
obj[constants2.PLAYSTATION] = intl2.string(require(1212) /* getSystemLocale */.t["6iqUsf"]);
const intl3 = require(1212) /* getSystemLocale */.intl;
obj[constants2.PLAYSTATION_STAGING] = intl3.string(require(1212) /* getSystemLocale */.t["6iqUsf"]);
require = tmp5;
2026-07-20 16:05:17 +00:00
if (null == obj[XBOX]) {
let resolved = Promise.resolve();
} else {
resolved = new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[8]);
2026-07-20 16:05:17 +00:00
obj = { title: tmp5 };
2026-07-23 10:11:24 +00:00
const intl = tmp5(outer1_2[7]).intl;
obj.body = intl.string(arg0(outer1_2[7]).t.bL21zs);
2026-07-20 16:05:17 +00:00
obj.onConfirm = function onConfirm() {
2026-07-23 10:11:24 +00:00
const result = callback(outer2_2[5]).UNSAFE_markDismissibleContentAsDismissed(callback(outer2_2[6]).DismissibleContent.CONSOLE_PTT_DISABLE_ALERT);
callback();
2026-07-20 16:05:17 +00:00
};
obj.show(obj);
});
}
return resolved;
}
2026-07-23 10:11:24 +00:00
obj2 = require(3946) /* UNSAFE_isDismissibleContentDismissed */;
2026-07-20 16:05:17 +00:00
}
return Promise.resolve();
},
showSelfDismissableAlert(reconnectPlatformType) {
let body;
let errorCodeMessage;
let title;
2026-07-23 10:11:24 +00:00
reconnectPlatformType = reconnectPlatformType.reconnectPlatformType;
2026-07-20 16:05:17 +00:00
({ title, body, errorCodeMessage } = reconnectPlatformType);
2026-07-23 10:11:24 +00:00
let obj = importDefault(4471);
2026-07-20 16:05:17 +00:00
obj = { title };
2026-07-23 10:11:24 +00:00
obj = { body, errorCodeMessage, dismissCallback: importDefault(4471).close };
2026-07-24 07:16:23 +00:00
obj.body = jsx(reconnectPlatformType(9084).SelfDismissibleAlertBody, { body, errorCodeMessage, dismissCallback: importDefault(4471).close });
2026-07-20 16:05:17 +00:00
obj.onConfirm = function onConfirm() {
if (null != reconnectPlatformType) {
2026-07-23 10:11:24 +00:00
const obj = { platformType: reconnectPlatformType, location: outer1_4 };
outer1_1(outer1_2[10])(obj);
2026-07-20 16:05:17 +00:00
}
};
obj.show(obj);
}
};