decord/source/utils/ErrorCommonUtils.tsx

37 lines
984 B
TypeScript
Raw Normal View History

2026-08-28 06:19:39 +00:00
// Module ID: 13781
// Function ID: 13782
2026-07-20 16:05:17 +00:00
// Name: getUpdatedOptions
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 594, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUpdatedOptions
2026-08-28 06:19:39 +00:00
// Module 13781 (getUpdatedOptions)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import add from "add" /* 594 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = set.fileFinishedImporting("utils/ErrorCommonUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getUpdatedOptions = function getUpdatedOptions(extra) {
let obj = {};
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;
}
obj = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(extra);
2026-08-24 06:08:38 +00:00
if (null != dispatcherDefault._currentDispatchActionType) {
2026-07-29 08:29:29 +00:00
obj = { currentAction: null };
2026-08-24 06:08:38 +00:00
obj[0] = dispatcherDefault._currentDispatchActionType;
obj1 = obj;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj1 = {};
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = {};
const merged2 = Object.assign(obj1);
2026-08-24 06:08:38 +00:00
obj2.lastFewActions = add.serialize();
2026-07-29 08:29:29 +00:00
const merged3 = Object.assign(obj2);
obj.extra = obj;
2026-07-20 16:05:17 +00:00
return obj;
};