// Metro module 9043 (f9044). import MediaEngineStore from "../../../stores/MediaEngineStore"; import { GAME_CONSOLE_ALERT_MODAL_LOCATION } from "../GameConsoleConstants"; import { InputModes, PlatformTypes } from "../../../Constants"; import { UNSAFE_isDismissibleContentDismissed, UNSAFE_markDismissibleContentAsDismissed } from "../../dismissible_content/DismissibleContentUnsafeUtils"; import { DismissibleContent } from "../../../_bundle/Module1358"; import { intl, t } from "../../../intl/index.native"; import AlertActionCreators from "../../../actions/native/AlertActionCreators"; import { SelfDismissibleAlertBody } from "./GameConsoleAlert"; import authorizeConnection_native from "../../connections/authorizeConnection.native"; const r29 = { maybeShowPTTAlert: (a0) => { if (MediaEngineStore.getMode() === InputModes.PUSH_TO_TALK && !UNSAFE_isDismissibleContentDismissed(DismissibleContent.CONSOLE_PTT_DISABLE_ALERT)) { const r25 = {}; r25[PlatformTypes.XBOX] = intl.string(t.bVZ7vy); r25[PlatformTypes.PLAYSTATION] = intl.string(t["6iqUsf"]); r25[PlatformTypes.PLAYSTATION_STAGING] = intl.string(t["6iqUsf"]); const title = r25[a0]; return title == null ? Promise.resolve() : new Promise((c26349_0) => { AlertActionCreators.show({ title, body: intl.string(t.bL21zs), onConfirm: function onConfirm() { UNSAFE_markDismissibleContentAsDismissed(DismissibleContent.CONSOLE_PTT_DISABLE_ALERT); c26349_0(); } }); }); } return Promise.resolve(); }, showSelfDismissableAlert: ({ title: title2, body, errorCodeMessage, reconnectPlatformType }) => { AlertActionCreators.show({ title: title2, body: , onConfirm: function onConfirm() { if (reconnectPlatformType != null) { authorizeConnection_native({ platformType: reconnectPlatformType, location: GAME_CONSOLE_ALERT_MODAL_LOCATION }); } } }); } }; export default r29;