decord/alpha/source/modules/gateway/PostConnectionCallbackStore.tsx

40 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 6133
// Function ID: 6134
// Name: PostConnectionCallbackStore
2026-10-12 06:59:38 +00:00
// Dependencies: [6134, 5757, 584, 2]
2026-07-20 16:05:17 +00:00
// Exports: addPostConnectionCallback
2026-10-12 06:59:38 +00:00
// Module 6133 (PostConnectionCallbackStore)
import NewUserStore from "NewUserStore" /* 6134 */;
2026-10-10 08:08:14 +00:00
import GatewayConnectionStore from "GatewayConnectionStore" /* 5757 */;
2026-10-03 08:58:59 +00:00
import Dispatcher_mod from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function processCallbacks() {
if (null == NewUserStore.getType()) {
let item = closure_2.forEach((item) => {
setImmediate(() => item());
2026-07-20 16:05:17 +00:00
});
closure_2 = [];
2026-07-20 16:05:17 +00:00
}
}
let closure_2 = [];
let Dispatcher = Dispatcher_mod;
const subscription = Dispatcher.subscribe("CONNECTION_OPEN", processCallbacks);
2026-10-03 08:58:59 +00:00
Dispatcher = Dispatcher_mod;
const subscription1 = Dispatcher.subscribe("CONNECTION_RESUMED", processCallbacks);
2026-10-03 08:58:59 +00:00
Dispatcher = Dispatcher_mod;
const subscription2 = Dispatcher.subscribe("NUF_COMPLETE", processCallbacks);
const result = size.fileFinishedImporting("modules/gateway/PostConnectionCallbackStore.tsx");
2026-07-20 16:05:17 +00:00
export const addPostConnectionCallback = function addPostConnectionCallback(arg0) {
if (GatewayConnectionStore.isConnectedOrOverlay()) {
if (null == NewUserStore.getType()) {
2026-10-03 08:58:59 +00:00
let closure_0 = arg0;
2026-07-29 08:29:29 +00:00
const _setImmediate = setImmediate;
setImmediate(() => item());
2026-07-20 16:05:17 +00:00
}
}
closure_2.push(arg0);
2026-07-20 16:05:17 +00:00
};