Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,84 @@
|
||||
/* Metro module 9426; source: modules/game_console/native/GameConsoleAlertUtils.tsx; dependencies: [31, 4259, 9340, 661, 33, 3968, 1365, 1244, 4496, 9427, 9354, 2] */
|
||||
function _fun73386(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:6, offset: 0x01d6abde, size: 227 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_4 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).GAME_CONSOLE_ALERT_MODAL_LOCATION;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.InputModes;
|
||||
const env0_6 = constantsModule.PlatformTypes;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {maybeShowPTTAlert: maybeShowPTTAlert, showSelfDismissableAlert: showSelfDismissableAlert};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_console/native/GameConsoleAlertUtils.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function maybeShowPTTAlert(a0) { // fn#73387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:218, offset: 0x01d6acc1, size: 375 bytes, params: 2, frame: 19
|
||||
const mode = MediaEngineStore.getMode();
|
||||
const PUSH_TO_TALK = InputModes.PUSH_TO_TALK;
|
||||
if (mode !== PUSH_TO_TALK) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_isDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const CONSOLE_PTT_DISABLE_ALERT = DismissibleContent.CONSOLE_PTT_DISABLE_ALERT;
|
||||
if (Reflect.apply(UNSAFE_isDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[CONSOLE_PTT_DISABLE_ALERT])) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
||||
return ({[XBOX]: Reflect.apply(string, intl, [t.bVZ7vy]), [PLAYSTATION]: intl.string(t['6iqUsf']),
|
||||
[PLAYSTATION_STAGING]: intl.string(t['6iqUsf'])})[a0] == null ? global.Promise.resolve() : new global.Promise(_fun73388);
|
||||
}
|
||||
|
||||
function showSelfDismissableAlert({title, body, errorCodeMessage, reconnectPlatformType}) { // fn#73390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:820, offset: 0x01d6af02, size: 154 bytes, params: 2, frame: 22
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {title: title};
|
||||
const SelfDismissibleAlertBody = (require(9427) /* metro dependency 9427: GameConsoleAlert */).SelfDismissibleAlertBody;
|
||||
object2.body = <SelfDismissibleAlertBody body={body} errorCodeMessage={errorCodeMessage} dismissCallback={defaultImport.close} />;
|
||||
object2.onConfirm = onConfirm;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function _fun73388(a0) { // fn#73388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:622, offset: 0x01d6ae38, size: 129 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
object2.title = env0_0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bL21zs);
|
||||
object2.onConfirm = onConfirm_73389;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function showSelfDismissableAlertOnConfirm() { // fn#73391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:1037, owner: showSelfDismissableAlert.onConfirm, offset: 0x01d6af9c, size: 66 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
if (reconnectPlatformType != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(9354) /* metro dependency 9354: authorizeConnectionNative */)({platformType: reconnectPlatformType,
|
||||
|
||||
location: GAME_CONSOLE_ALERT_MODAL_LOCATION});
|
||||
}
|
||||
}
|
||||
|
||||
function onConfirm_73389() { // fn#73389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9612:701, offset: 0x01d6aeb9, size: 73 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const CONSOLE_PTT_DISABLE_ALERT = DismissibleContent.CONSOLE_PTT_DISABLE_ALERT;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [CONSOLE_PTT_DISABLE_ALERT]);
|
||||
env0_0();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user