decord/source/utils/ComponentDispatchUtils.tsx

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1231
// Function ID: 1232
// Name: ComponentDispatcher
// Dependencies: [676, 1232, 3, 1233, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1231 (ComponentDispatcher)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import timestampDefault from "timestamp" /* 3 */;
import ME from "ME" /* 676 */;
import logFluxActionAll from "logFluxAction" /* 1232 */;
import safeDispatch from "safeDispatch" /* 1233 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const ComponentActionsKeyed = ME.ComponentActionsKeyed;
let closure_3 = new timestampDefault("ComponentDispatchUtils");
2026-07-29 08:29:29 +00:00
obj = {
2026-07-23 10:11:24 +00:00
maxListeners: 100,
enableDevtools: false,
2026-07-29 08:29:29 +00:00
logger: obj,
2026-07-20 16:05:17 +00:00
devtoolsReporter: function reportDevtoolsEvent(fullActionName, actionData, durationMs) {
2026-08-24 06:08:38 +00:00
importAll = fullActionName;
2026-07-20 16:05:17 +00:00
const values = Object.values(ComponentActionsKeyed);
2026-07-29 08:29:29 +00:00
let found = values.find((arg0) => closure_0.startsWith(arg0));
if (found == null) {
found = fullActionName;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
let obj = logFluxActionAll;
2026-07-29 08:29:29 +00:00
obj = { type: "ComponentDispatch", description: found, data: obj, durationMs };
2026-07-20 16:05:17 +00:00
obj = { actionData, fullActionName };
obj.reportEvent(obj);
}
};
2026-07-29 08:29:29 +00:00
obj = {
warn(arg0) {
const items = [arg0, ...HermesBuiltin.copyRestArgs()];
2026-08-24 06:08:38 +00:00
return warn.warn.apply(items);
2026-07-29 08:29:29 +00:00
}
};
2026-08-24 06:08:38 +00:00
const componentDispatcher = new safeDispatch.ComponentDispatcher(obj);
const tmp2 = new timestampDefault("ComponentDispatchUtils");
const result = set.fileFinishedImporting("utils/ComponentDispatchUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
export const ComponentDispatcher = safeDispatch.ComponentDispatcher;
2026-07-20 16:05:17 +00:00
export const ComponentDispatch = componentDispatcher;