52 lines
2.7 KiB
TypeScript
52 lines
2.7 KiB
TypeScript
/* Metro module 1458; source: utils/NetworkUtils.tsx; dependencies: [1459, 2] */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as NetworkUtilsModule from './native/NetworkUtils.tsx'; /* Metro dependency 1459 */
|
|
|
|
function _fun16708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1585:6, offset: 0x00e585df, size: 142 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = [];
|
|
object = {};
|
|
copyDataProperties(object, (NetworkUtilsModule).default, undefined);
|
|
object['awaitOnline'] = function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun16710);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
(FileImportTrackerModule).fileFinishedImporting('utils/NetworkUtils.tsx');
|
|
exports.default = object;
|
|
function awaitOnline_16709() { // fn#16709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1585:142, offset: 0x00e5866d, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun16710);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun16710(a0) { // fn#16710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1585:159, offset: 0x00e58692, size: 126 bytes, params: 2, frame: 15
|
|
const whenOnline2 = whenOnline;
|
|
const property = (NetworkUtilsModule).default;
|
|
if (property.isOnline()) {
|
|
return a0();
|
|
}
|
|
env1_2.push(a0);
|
|
if (!env1_3) {
|
|
property.addOnlineCallback(whenOnline2);
|
|
}
|
|
function whenOnline() { // fn#16711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1585:228, offset: 0x00e58710, size: 82 bytes, params: 1, frame: 12
|
|
const binding = env2_2;
|
|
binding.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
binding.length = 0;
|
|
const property = (NetworkUtilsModule).default;
|
|
property.removeOnlineCallback(whenOnline);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun16708, 1458, [1459, 2]) /* metro module 1458, dependencies: [1459, 2] */;
|