decord/alpha/source/utils/ErrorCommonUtils.tsx

36 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 14346
// Function ID: 14347
// Name: ErrorCommonUtils
// Dependencies: [573, 509, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUpdatedOptions
// Module 14346 (ErrorCommonUtils)
import LastFewActions from "LastFewActions" /* 509 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("utils/ErrorCommonUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getUpdatedOptions = function getUpdatedOptions(extra) {
const obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(extra);
extra = undefined;
2026-07-29 08:29:29 +00:00
if (extra != null) {
2026-07-20 16:05:17 +00:00
extra = extra.extra;
}
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(extra);
if (null != DispatcherDefault._currentDispatchActionType) {
const obj3 = { currentAction: DispatcherDefault._currentDispatchActionType };
let obj4 = obj3;
2026-07-20 16:05:17 +00:00
} else {
obj4 = {};
2026-07-20 16:05:17 +00:00
}
const obj5 = {};
const merged2 = Object.assign(obj4);
const serializer = LastFewActions;
obj5.lastFewActions = serializer.serialize();
const merged3 = Object.assign(obj5);
obj.extra = {};
2026-07-20 16:05:17 +00:00
return obj;
};