decord/source/modules/game_console/native/transferToXbox.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

169 lines
5.2 KiB
TypeScript

// Module ID: 9460
// Function ID: 9461
// Name: _transferToXbox
// Dependencies: [5, 19, 17, 1074, 21, 9451, 9448, 9461, 4905, 9462, 1896, 9454, 4702, 2]
// Exports: default
// Module 9460 (_transferToXbox)
import noopAll from "noop" /* 19 */;
import closure_4 from "asyncGeneratorStep" /* 5 */;
import { Linking } from "get ActivityIndicator" /* 17 */;
import { PlatformTypes } from "ME" /* 1074 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
function _transferToXbox() {
const self = this;
const tmp = callback((arg0) => {
closure_0 = arg0;
c3 = 0;
c4 = 0;
return (function*(arg0) {
if (c4 === 2) {
c4 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c4 = 2;
if (0 === dependencyMap) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let callback2 = tmp5;
let callback = tmp2;
callback = undefined;
callback2 = undefined;
dependencyMap = 1;
c4 = 1;
obj1 = { value: null, done: false };
obj1[0] = closure_1_1(9451).maybeShowPTTAlert(closure_1_6.XBOX);
return obj1;
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
const obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
dependencyMap = 2;
c4 = 1;
let obj3 = { value: null, done: false };
obj3[0] = callback2(9448).disconnectRemote();
return obj3;
}
} else if (2 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
let obj4 = { value: null, done: true };
obj4[0] = arg1;
return obj4;
} else {
let obj9 = callback2(9448);
dependencyMap = 3;
c4 = 1;
const obj5 = { value: null, done: false };
obj5[0] = obj9.getConnectNonce();
return obj5;
}
} else if (3 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
const obj6 = { value: null, done: true };
obj6[0] = arg1;
return obj6;
} else {
callback = arg1;
const obj7 = { nonce: null, forQRCode: false };
obj7[0] = callback;
callback2 = callback(9461)(user, obj7);
dependencyMap = 4;
c4 = 1;
const obj8 = { value: null, done: false };
obj8[0] = closure_5.canOpenURL(callback2);
return obj8;
}
} else if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
obj9 = { value: null, done: true };
obj9[0] = arg1;
return obj9;
} else if (arg1) {
tmp47(9454)(user.id, constants.XBOX);
obj3 = callback2(9448);
obj3.waitForSession(constants.XBOX, user.id, callback);
obj4 = callback2(4702);
obj4.stopOwnStream(false);
closure_5.openURL(callback2);
c4 = 3;
return { value: "HermesInternal", done: null };
} else {
const obj10 = { importer: null };
obj10[0] = function importer() {
return callback(paths[10])(paths[9], paths.paths).then((arg0) => {
closure_0 = arg0.default;
return () => { ... };
});
};
c4 = 3;
const obj11 = { value: null, done: true };
obj11[0] = tmp47(4905).openLazy(obj10);
return obj11;
}
} catch (tmp39) {
c4 = tmp;
throw tmp39;
}
}
})();
});
closure_8 = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
noopAll;
const result = require("set").fileFinishedImporting("modules/game_console/native/transferToXbox.tsx");
export default function transferToXbox() {
const self = this;
const apply = _transferToXbox.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};