decord/source/utils/ComponentDispatchUtils.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

37 lines
1.5 KiB
TypeScript

// Module ID: 1110
// Function ID: 1111
// Name: ComponentDispatchUtils
// Dependencies: [1074, 1111, 3, 1112, 2]
// Module 1110 (ComponentDispatchUtils)
import LoggerDefault from "Logger" /* 3 */;
import Constants from "Constants" /* 1074 */;
import DevtoolsExtensionAll from "DevtoolsExtension" /* 1111 */;
import utils_ComponentDispatchUtils from "utils/ComponentDispatchUtils" /* 1112 */;
import size from "module_2" /* 2 */;
const ComponentActionsKeyed = Constants.ComponentActionsKeyed;
const warn = new LoggerDefault("ComponentDispatchUtils");
const componentDispatcher = new utils_ComponentDispatchUtils.ComponentDispatcher({
maxListeners: 100,
enableDevtools: false,
logger: {
warn(arg0) {
const items = [arg0, ...HermesBuiltin.copyRestArgs()];
return warn.warn.apply(items);
}
},
devtoolsReporter: function reportDevtoolsEvent(fullActionName, actionData, durationMs) {
closure_0 = fullActionName;
const values = Object.values(ComponentActionsKeyed);
let found = values.find((item) => closure_0.startsWith(item));
if (found == null) {
found = fullActionName;
}
DevtoolsExtensionAll.reportEvent({ type: "ComponentDispatch", description: found, data: { actionData, fullActionName }, durationMs });
}
});
const result = size.fileFinishedImporting("utils/ComponentDispatchUtils.tsx");
export const ComponentDispatcher = utils_ComponentDispatchUtils.ComponentDispatcher;
export const ComponentDispatch = componentDispatcher;