decord/source/utils/ComponentDispatchUtils.tsx

41 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1207
2026-07-25 08:10:48 +00:00
// Function ID: 13881
2026-07-22 07:54:56 +00:00
// Name: reportDevtoolsEvent
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 1208, 3, 1209, 2]
2026-07-20 16:05:17 +00:00
2026-07-22 07:54:56 +00:00
// Module 1207 (reportDevtoolsEvent)
2026-07-23 10:11:24 +00:00
import { ComponentActionsKeyed } from "ME";
import importDefaultResult from "ComponentDispatcher";
2026-07-20 16:05:17 +00:00
importDefaultResult = new importDefaultResult("ComponentDispatchUtils");
2026-07-23 10:11:24 +00:00
let obj = {
maxListeners: 100,
enableDevtools: false,
2026-07-22 07:54:56 +00:00
logger: {
warn(arg0, arg1) {
const items = [arg0, ...HermesBuiltin.copyRestArgs()];
return importDefaultResult.warn.apply(items);
}
},
2026-07-20 16:05:17 +00:00
devtoolsReporter: function reportDevtoolsEvent(fullActionName, actionData, durationMs) {
const importAll = fullActionName;
const values = Object.values(ComponentActionsKeyed);
2026-07-23 10:11:24 +00:00
const found = values.find((arg0) => closure_0.startsWith(arg0));
2026-07-20 16:05:17 +00:00
let tmp2 = fullActionName;
if (null != found) {
tmp2 = found;
}
2026-07-23 10:11:24 +00:00
let obj = importAll(1208);
2026-07-20 16:05:17 +00:00
obj = { type: "ComponentDispatch", description: tmp2 };
obj = { actionData, fullActionName };
obj.data = obj;
obj.durationMs = durationMs;
obj.reportEvent(obj);
}
};
2026-07-23 10:11:24 +00:00
const componentDispatcher = new require("ComponentDispatcher").ComponentDispatcher(obj);
const result = require("timestamp").fileFinishedImporting("utils/ComponentDispatchUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export const ComponentDispatcher = require("ComponentDispatcher").ComponentDispatcher;
2026-07-20 16:05:17 +00:00
export const ComponentDispatch = componentDispatcher;