2026-10-07 22:43:51 +00:00
|
|
|
// Module ID: 1121
|
|
|
|
|
// Function ID: 1122
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ComponentDispatchUtils
|
2026-10-07 22:43:51 +00:00
|
|
|
// Dependencies: [1085, 1122, 3, 1123, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-07 22:43:51 +00:00
|
|
|
// Module 1121 (ComponentDispatchUtils)
|
2026-09-18 19:45:33 +00:00
|
|
|
import LoggerDefault from "Logger" /* 3 */;
|
2026-10-07 22:43:51 +00:00
|
|
|
import Constants from "Constants" /* 1085 */;
|
|
|
|
|
import DevtoolsExtensionAll from "DevtoolsExtension" /* 1122 */;
|
|
|
|
|
import utils_ComponentDispatchUtils from "utils/ComponentDispatchUtils" /* 1123 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const ComponentActionsKeyed = Constants.ComponentActionsKeyed;
|
|
|
|
|
const warn = new LoggerDefault("ComponentDispatchUtils");
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj = {
|
2026-09-18 19:45:33 +00:00
|
|
|
maxListeners: 100,
|
|
|
|
|
enableDevtools: false,
|
|
|
|
|
logger: {
|
|
|
|
|
warn(arg0) {
|
|
|
|
|
const items = [arg0, ...HermesBuiltin.copyRestArgs()];
|
|
|
|
|
return warn.warn.apply(items);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
devtoolsReporter: function reportDevtoolsEvent(fullActionName, actionData, durationMs) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = fullActionName;
|
2026-09-18 19:45:33 +00:00
|
|
|
const values = Object.values(ComponentActionsKeyed);
|
|
|
|
|
let found = values.find((item) => closure_0.startsWith(item));
|
|
|
|
|
if (found == null) {
|
|
|
|
|
found = fullActionName;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = DevtoolsExtensionAll;
|
|
|
|
|
const obj2 = { type: "ComponentDispatch", description: found, data: { actionData, fullActionName }, durationMs };
|
|
|
|
|
obj.reportEvent(obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
};
|
|
|
|
|
new LoggerDefault("ComponentDispatchUtils");
|
|
|
|
|
const componentDispatcher = new utils_ComponentDispatchUtils.ComponentDispatcher(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("utils/ComponentDispatchUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const ComponentDispatcher = utils_ComponentDispatchUtils.ComponentDispatcher;
|
|
|
|
|
export const ComponentDispatch = componentDispatcher;
|