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

73 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 10804
// Function ID: 10805
// Dependencies: [19, 4332, 10423, 676, 21, 4100, 1358, 1236, 4624, 10805, 10409, 2]
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
// Module 10804
2026-07-29 08:29:29 +00:00
import "noop";
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
2026-07-23 10:11:24 +00:00
import { GAME_CONSOLE_ALERT_MODAL_LOCATION as closure_4 } from "XBOX_URL_BASE";
import ME from "ME";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
let require = arg1;
2026-07-29 08:29:29 +00:00
({ InputModes: c5, PlatformTypes: closure_6 } = ME);
2026-07-23 10:11:24 +00:00
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-29 08:29:29 +00:00
if (!obj2.UNSAFE_isDismissibleContentDismissed(require(1358) /* DismissibleContent */.DismissibleContent.CONSOLE_PTT_DISABLE_ALERT)) {
2026-07-23 10:11:24 +00:00
let obj = {};
2026-07-29 08:29:29 +00:00
let intl = tmp10(1236).intl;
obj[constants2.XBOX] = intl.string(tmp10(1236).t.bVZ7vy);
const intl2 = tmp10(1236).intl;
obj[constants2.PLAYSTATION] = intl2.string(tmp10(1236).t["6iqUsf"]);
const intl3 = tmp10(1236).intl;
obj[constants2.PLAYSTATION_STAGING] = intl3.string(tmp10(1236).t["6iqUsf"]);
require = tmp3;
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-29 08:29:29 +00:00
obj = { title: tmp3, body: null, onConfirm: null };
const intl = tmp3(outer1_2[7]).intl;
obj[1] = intl.string(arg0(outer1_2[7]).t.bL21zs);
obj[2] = function onConfirm() {
const result = callback(outer1_2[5]).UNSAFE_markDismissibleContentAsDismissed(callback(outer1_2[6]).DismissibleContent.CONSOLE_PTT_DISABLE_ALERT);
2026-07-23 10:11:24 +00:00
callback();
2026-07-20 16:05:17 +00:00
};
obj.show(obj);
});
}
return resolved;
}
2026-08-06 08:05:19 +00:00
obj2 = require(4100) /* 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-08-06 08:05:19 +00:00
let obj = importDefault(4624);
2026-07-29 08:29:29 +00:00
obj = { title, body: null, onConfirm: null };
obj = { body, errorCodeMessage, dismissCallback: null };
2026-08-06 08:05:19 +00:00
obj[2] = importDefault(4624).close;
obj[1] = jsx(reconnectPlatformType(10805).SelfDismissibleAlertBody, { body, errorCodeMessage, dismissCallback: null });
2026-07-29 08:29:29 +00:00
obj[2] = function onConfirm() {
2026-07-20 16:05:17 +00:00
if (null != reconnectPlatformType) {
2026-07-29 08:29:29 +00:00
const obj = { platformType: null, location: null };
obj[0] = tmp;
obj[1] = outer1_4;
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[10])(obj);
2026-07-20 16:05:17 +00:00
}
};
obj.show(obj);
}
};