decord/beta/source/modules/gateway/PostConnectionCallbackStore.tsx
2026-10-12 16:32:48 +00:00

39 lines
1.3 KiB
TypeScript

// Module ID: 6133
// Function ID: 6134
// Name: PostConnectionCallbackStore
// Dependencies: [6134, 5757, 584, 2]
// Exports: addPostConnectionCallback
// Module 6133 (PostConnectionCallbackStore)
import NewUserStore from "NewUserStore" /* 6134 */;
import GatewayConnectionStore from "GatewayConnectionStore" /* 5757 */;
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);
};