decord/source/modules/game_console/native/GameConsoleAlertUtils.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

69 lines
2.8 KiB
TypeScript

// Module ID: 9452
// Function ID: 9453
// Dependencies: [19, 1908, 9233, 1074, 21, 4380, 1943, 1114, 4905, 9453, 9252, 2]
// Module 9452
import noopAll from "noop" /* 19 */;
import _modDef4905 from "module_4905" /* 4905 */;
import closure_3 from "_detectH265HardwareDecode" /* 1908 */;
import { GAME_CONSOLE_ALERT_MODAL_LOCATION as closure_4 } from "XBOX_URL_BASE" /* 9233 */;
import ME from "ME" /* 1074 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
noopAll;
({ InputModes: c5, PlatformTypes: closure_6 } = ME);
let result = require("set").fileFinishedImporting("modules/game_console/native/GameConsoleAlertUtils.tsx");
export default {
maybeShowPTTAlert(XBOX) {
if (mode.getMode() === constants.PUSH_TO_TALK) {
if (!obj2.UNSAFE_isDismissibleContentDismissed(_require(1943).DismissibleContent.CONSOLE_PTT_DISABLE_ALERT)) {
let obj = {};
let intl = tmp10(1114).intl;
obj[constants2.XBOX] = intl.string(tmp10(1114).t.bVZ7vy);
const intl2 = tmp10(1114).intl;
obj[constants2.PLAYSTATION] = intl2.string(tmp10(1114).t["6iqUsf"]);
const intl3 = tmp10(1114).intl;
obj[constants2.PLAYSTATION_STAGING] = intl3.string(tmp10(1114).t["6iqUsf"]);
_require = tmp3;
if (null == obj[XBOX]) {
let resolved = Promise.resolve();
} else {
resolved = new Promise((arg0) => {
const callback = arg0;
let obj = closure_1_1(closure_1_2[8]);
obj = { title: callback, body: null, onConfirm: null };
const intl = callback(closure_1_2[7]).intl;
obj[1] = intl.string(callback(closure_1_2[7]).t.bL21zs);
obj[2] = function onConfirm() {
const result = callback(closure_1_2[5]).UNSAFE_markDismissibleContentAsDismissed(callback(closure_1_2[6]).DismissibleContent.CONSOLE_PTT_DISABLE_ALERT);
callback();
};
obj.show(obj);
});
}
return resolved;
}
obj2 = _require(4380);
}
return Promise.resolve();
},
showSelfDismissableAlert(reconnectPlatformType) {
reconnectPlatformType = reconnectPlatformType.reconnectPlatformType;
({ title, body, errorCodeMessage } = reconnectPlatformType);
let obj = _modDef4905;
obj = { title, body: null, onConfirm: null };
obj = { body, errorCodeMessage, dismissCallback: _modDef4905.close };
obj[1] = jsx(reconnectPlatformType(9453).SelfDismissibleAlertBody, { body, errorCodeMessage, dismissCallback: _modDef4905.close });
obj[2] = function onConfirm() {
if (null != reconnectPlatformType) {
const obj = { platformType: null, location: null };
obj[0] = tmp;
obj[1] = closure_1_4;
closure_1_1(closure_1_2[10])(obj);
}
};
obj.show(obj);
}
};