49 lines
2.8 KiB
TypeScript
49 lines
2.8 KiB
TypeScript
/* Metro module 6909; source: modules/mobile_web_handoff/MobileWebHandoffUtils.tsx; dependencies: [5, 661, 491, 507, 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 Module00491Module from '../../by-id/module-00491.js'; /* Metro dependency 491 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun54998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7087:6, offset: 0x01372e40, size: 160 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {generateNonce: generateNonce, createHandoffToken: function() {
|
|
return _createHandoffToken.apply(this, arguments);
|
|
}};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/mobile_web_handoff/MobileWebHandoffUtils.tsx');
|
|
exports.default = object;
|
|
function _createHandoffToken() { // fn#54999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7087:126, offset: 0x01372ee0, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55001).apply(this, arguments);
|
|
function* _fun55001(a0) { // fn#55001, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7087:187, offset: 0x01372f19, size: 168 bytes, params: 2, frame: 14
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_1[3]).HTTP;
|
|
const post = HTTP.post;
|
|
const HANDOFF = env2_3.HANDOFF;
|
|
yield Reflect.apply(post, HTTP, [{'url': null, 'body': null, 'oldFormErrors': true, 'retries': 1,
|
|
'rejectWithError': false, url: HANDOFF, body: {key: a0}}]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
const handoff_token = value.body.handoff_token;
|
|
if (handoff_token != null) {
|
|
return handoff_token;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Missing handoff token!');
|
|
}
|
|
|
|
}
|
|
|
|
function generateNonce() { // fn#55002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7087:436, offset: 0x01372fc1, size: 37 bytes, params: 1, frame: 11
|
|
return (Module00491Module).v4();
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun54998, 6909, [5, 661, 491, 507, 2]) /* metro module 6909, dependencies: [5, 661, 491, 507, 2] */;
|