Files
discord-decomp/sources/modules/game_console/native/transferToXbox.tsx
T
2026-07-27 16:20:00 +03:00

104 lines
4.3 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] */
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});
const env0_4 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).Linking;
const env0_6 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).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 env0_4(_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 object2 = {};
copyDataProperties(object2, a0, binding);
return binding(binding2, object2);
}