Files
discord-decomp/sources/modules/game_console/native/transferToXbox.tsx
T
2026-07-28 01:06:53 +03:00

109 lines
5.6 KiB
TypeScript

/* Metro module 9433; source: modules/game_console/native/transferToXbox.tsx; dependencies: [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun73422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:6, offset: 0x01d6c1aa, size: 213 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/native/transferToXbox.tsx');
exports.default = function() {
return _transferToXbox.apply(this, arguments);
};
function _transferToXbox() { // fn#73423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:172, offset: 0x01d6c27f, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun73425).apply(this, arguments);
function* _fun73425(a0) { // fn#73425, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:225, offset: 0x01d6c2bc, size: 406 bytes, params: 2, frame: 27
var environment;
var value16;
var id;
var value17;
var waitForSession;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value3 = binding(env2_3[5]);
const maybeShowPTTAlert = value3.maybeShowPTTAlert;
let XBOX = env2_6.XBOX;
yield Reflect.apply(maybeShowPTTAlert, value3, [XBOX]);
if (false) {
return undefined;
}
const value6 = env2_2(env2_3[6]);
yield value6.disconnectRemote();
if (false) {
return undefined;
}
const value9 = env2_2(env2_3[6]);
const getConnectNonce = value9.getConnectNonce;
yield Reflect.apply(getConnectNonce, value9, []);
const value10 = undefined;
if (false) {
return value10;
}
const value13 = env2_1(env2_3[7])(a0, {nonce: value10, forQRCode: false});
binding = env2_5;
yield binding.canOpenURL(value13);
const value14 = undefined;
if (false) {
return value14;
}
binding = env2_1;
const binding2 = env2_3;
if (value14) {
value16 = binding(binding2[11]);
id = a0.id;
XBOX = env2_6.XBOX;
value16(id, XBOX);
binding = env2_2;
value17 = binding(binding2[6]);
waitForSession = value17.waitForSession;
XBOX = env2_6.XBOX;
id = a0.id;
Reflect.apply(waitForSession, value17, [XBOX, id, value10]);
binding(binding2[12]).stopOwnStream(false);
binding = env2_5;
binding.openURL(value13);
return undefined;
}
value = binding(binding2[8]);
return value.openLazy({importer: importer_73426});
function importer_73426() { // fn#73426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:447, offset: 0x01d6c452, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__.__proto__;
const binding = env3_0;
const binding2 = env3_3;
value = binding(binding2[10]);
value = value(binding2[9], binding2.paths);
return value.then(function({default: env0_0}) {
return _fun73428;
});
function _fun73427({default: env0_0}) { // fn#73427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:480, offset: 0x01d6c492, size: 23 bytes, params: 2, frame: 2
return _fun73428;
function _fun73428(a0) { // fn#73428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9619:495, offset: 0x01d6c4a9, size: 36 bytes, params: 2, frame: 13
const binding = env5_7;
const binding2 = env0_0;
const object = {};
copyDataProperties(object, a0, binding);
return binding(binding2, object);
}
}
}
}
}
}
global.__d(_fun73422, 9433, [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913,
2]) /* metro module 9433, dependencies: [5, 31, 27, 661, 33, 9425, 9422, 9434, 4496, 9435, 1962, 9428, 8913, 2] */;