decord/source/utils/ComponentDispatchUtils.tsx

39 lines
1.3 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-07-23 10:11:24 +00:00
import { ComponentActionsKeyed } from "ME";
2026-07-29 08:29:29 +00:00
let c3 = new require("safeDispatch")("ComponentDispatchUtils");
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) {
const importAll = fullActionName;
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-07-29 08:29:29 +00:00
let obj = importAll(1232);
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()];
return tmp2.warn.apply(items);
}
};
const componentDispatcher = new require("safeDispatch").ComponentDispatcher(obj);
const tmp2 = new require("safeDispatch")("ComponentDispatchUtils");
2026-07-23 10:11:24 +00:00
const result = require("timestamp").fileFinishedImporting("utils/ComponentDispatchUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const ComponentDispatcher = require("safeDispatch").ComponentDispatcher;
2026-07-20 16:05:17 +00:00
export const ComponentDispatch = componentDispatcher;