59 lines
3.3 KiB
TypeScript
59 lines
3.3 KiB
TypeScript
/* Metro module 4255; source: modules/gateway/PostConnectionCallbackStore.tsx; dependencies: [4256, 4257, 694, 2] */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import NewUserStore from '../nuf/NewUserStore.tsx'; /* Metro dependency 4256 */
|
|
import GatewayConnectionStore from './GatewayConnectionStore.tsx'; /* Metro dependency 4257 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun35370(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:6, offset: 0x01070ffb, size: 229 bytes, params: 8, frame: 20
|
|
const processCallbacks2 = processCallbacks;
|
|
const handleCallback_35374 = function(a0) {
|
|
var env0_0 = a0;
|
|
global.setImmediate(_fun35375);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = [];
|
|
(Dispatcher).subscribe('CONNECTION_OPEN', processCallbacks2);
|
|
(Dispatcher).subscribe('CONNECTION_RESUMED', processCallbacks2);
|
|
(Dispatcher).subscribe('NUF_COMPLETE', processCallbacks2);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/gateway/PostConnectionCallbackStore.tsx');
|
|
exports.addPostConnectionCallback = addPostConnectionCallback;
|
|
function shouldWaitForBlockingModals() { // fn#35371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:121, offset: 0x010710e0, size: 25 bytes, params: 1, frame: 9
|
|
return NewUserStore.getType() != null;
|
|
}
|
|
|
|
function processCallbacks() { // fn#35372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:185, offset: 0x010710f9, size: 47 bytes, params: 1, frame: 13
|
|
if (!shouldWaitForBlockingModals()) {
|
|
items2.forEach(function(a0) {
|
|
handleCallback_35374(a0);
|
|
});
|
|
items2 = [];
|
|
}
|
|
}
|
|
|
|
function handleCallback_35374(a0) { // fn#35374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:285, offset: 0x0107113b, size: 31 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
global.setImmediate(_fun35375);
|
|
function _fun35375() { // fn#35375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:326, offset: 0x00cefeb4, size: 15 bytes, params: 1, frame: 9
|
|
return env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
function addPostConnectionCallback(a0) { // fn#35376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4427:607, offset: 0x0107115a, size: 65 bytes, params: 2, frame: 12
|
|
const gatewayConnectionStoreBinding = GatewayConnectionStore;
|
|
if (gatewayConnectionStoreBinding.isConnectedOrOverlay()) {
|
|
if (shouldWaitForBlockingModals()) {
|
|
env0_2.push(a0);
|
|
} else {
|
|
handleCallback_35374(a0);
|
|
}
|
|
} else {
|
|
env0_2.push(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun35370, 4255, [4256, 4257, 694, 2]) /* metro module 4255, dependencies: [4256, 4257, 694, 2] */;
|