decord/alpha/source/modules/gateway/PostConnectionCallbackStore.tsx
2026-10-08 09:57:35 +00:00

39 lines
1.3 KiB
TypeScript

// Module ID: 6137
// Function ID: 6138
// Name: PostConnectionCallbackStore
// Dependencies: [6138, 5753, 584, 2]
// Exports: addPostConnectionCallback
// Module 6137 (PostConnectionCallbackStore)
import NewUserStore from "NewUserStore" /* 6138 */;
import GatewayConnectionStore from "GatewayConnectionStore" /* 5753 */;
import Dispatcher_mod from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
function processCallbacks() {
if (null == NewUserStore.getType()) {
let item = closure_2.forEach((item) => {
setImmediate(() => item());
});
closure_2 = [];
}
}
let closure_2 = [];
let Dispatcher = Dispatcher_mod;
const subscription = Dispatcher.subscribe("CONNECTION_OPEN", processCallbacks);
Dispatcher = Dispatcher_mod;
const subscription1 = Dispatcher.subscribe("CONNECTION_RESUMED", processCallbacks);
Dispatcher = Dispatcher_mod;
const subscription2 = Dispatcher.subscribe("NUF_COMPLETE", processCallbacks);
const result = size.fileFinishedImporting("modules/gateway/PostConnectionCallbackStore.tsx");
export const addPostConnectionCallback = function addPostConnectionCallback(arg0) {
if (GatewayConnectionStore.isConnectedOrOverlay()) {
if (null == NewUserStore.getType()) {
let closure_0 = arg0;
const _setImmediate = setImmediate;
setImmediate(() => item());
}
}
closure_2.push(arg0);
};