decord/alpha/source/modules/app_startup/ManagerRegistryShared.tsx

90 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 18584
// Function ID: 18585
// Name: ManagerRegistryShared
2026-10-03 08:58:59 +00:00
// Dependencies: [584, 2]
2026-07-20 16:05:17 +00:00
// Exports: initialize
2026-10-09 10:00:15 +00:00
// Module 18584 (ManagerRegistryShared)
2026-10-03 08:58:59 +00:00
import DispatcherDefault 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 populateMap(actions) {
actions = actions.actions;
2026-07-29 08:29:29 +00:00
if (actions == null) {
2026-07-20 16:05:17 +00:00
actions = [];
}
let obj = actions;
2026-10-03 08:58:59 +00:00
const tmp2 = actions.hasStoreChangeListeners || actions.loadAfterConnectionOpen;
if (tmp2) {
let tmp3 = actions;
2026-07-20 16:05:17 +00:00
if (!actions.includes("POST_CONNECTION_OPEN")) {
const items = [];
2026-10-03 08:58:59 +00:00
items[HermesBuiltin.arraySpread(items, actions, 0)] = "POST_CONNECTION_OPEN";
tmp3 = items;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
obj = tmp3;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
let tmp6 = obj;
2026-07-20 16:05:17 +00:00
if (actions.loadRightBeforeConnectionOpen) {
2026-10-03 08:58:59 +00:00
let tmp7 = obj;
2026-07-20 16:05:17 +00:00
if (!obj.includes("CONNECTION_OPEN")) {
const items1 = [];
2026-10-03 08:58:59 +00:00
items1[HermesBuiltin.arraySpread(items1, obj, 0)] = "CONNECTION_OPEN";
tmp7 = items1;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
tmp6 = tmp7;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
for (const item10030 of tmp6) {
let tmp10 = item10030;
let tmp11 = closure_2;
2026-07-29 08:29:29 +00:00
if (!(item10030 in closure_2)) {
2026-10-03 08:58:59 +00:00
tmp11[tmp10] = [];
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
let arr4 = tmp11[tmp10];
let arr = arr4.push(actions);
2026-07-29 08:29:29 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
}
function handleAction(type) {
2026-10-03 08:58:59 +00:00
const tmp = "CONNECTION_OPEN" !== type.type && "OVERLAY_INITIALIZE" !== type.type;
if (!tmp) {
2026-08-24 06:08:38 +00:00
c3 = true;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (type.type in closure_2) {
2026-07-20 16:05:17 +00:00
const items = [];
2026-10-03 08:58:59 +00:00
for (const item10018 of tmp3) {
2026-07-29 08:29:29 +00:00
let obj = item10018;
2026-10-03 08:58:59 +00:00
let tmp6 = c3;
if (!tmp6) {
2026-07-29 08:29:29 +00:00
if (obj.neverLoadBeforeConnectionOpen) {
let arr = items.push(obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let inlineRequireResult = obj.inlineRequire();
let initializeResult = inlineRequireResult.initialize();
2026-07-20 16:05:17 +00:00
}
if (items.length > 0) {
2026-07-29 08:29:29 +00:00
closure_2[type.type] = items;
2026-07-20 16:05:17 +00:00
} else {
2026-10-03 08:58:59 +00:00
delete closure_2[type.type];
2026-07-20 16:05:17 +00:00
}
}
return false;
}
new Set(["CHANNEL_SELECT", "CHANNEL_PRELOAD", "MESSAGE_CREATE"]);
2026-07-20 16:05:17 +00:00
let closure_2 = {};
2026-07-23 10:11:24 +00:00
let c3 = false;
const result = size.fileFinishedImporting("modules/app_startup/ManagerRegistryShared.tsx");
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
export const initialize = function initialize(actions) {
for (const key10004 in actions) {
let tmp3 = actions[key10004];
actions = tmp3.actions;
2026-07-29 08:29:29 +00:00
let tmp5 = populateMap(tmp3);
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
obj.addInterceptor(handleAction);
2026-07-20 16:05:17 +00:00
};