decord/source/Dispatcher.tsx

26 lines
972 B
TypeScript
Raw Normal View History

// Module ID: 573
// Function ID: 574
// Name: Dispatcher
// Dependencies: [574, 567, 510, 504, 674, 2]
2026-07-20 16:05:17 +00:00
// Module 573 (Dispatcher)
import initialize from "initialize" /* 504 */;
import Storage2 from "Storage" /* 510 */;
import LoggingUtils from "LoggingUtils" /* 567 */;
import Constants from "Constants" /* 574 */;
import addSentryBreadcrumbDefault from "addSentryBreadcrumb" /* 674 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const obj = { Early: 0, [0]: "Early", Database: 1, [1]: "Database", Default: 2, [2]: "Default" };
2026-08-24 06:08:38 +00:00
const Storage = Storage2.Storage;
let flag = Storage.get(Constants.STORAGE_KEY_LOG_DISPATCHES);
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
const actionLogger = new LoggingUtils.ActionLogger({ persist: flag });
const dispatcher = new initialize.Dispatcher(obj.Default, actionLogger, { addBreadcrumb: addSentryBreadcrumbDefault });
const result = size.fileFinishedImporting("Dispatcher.tsx");
2026-07-20 16:05:17 +00:00
export default dispatcher;
export const DispatchBand = obj;