decord/source/modules/interaction_components/StringSelectActionComponentUtils.tsx

26 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 7795
// Function ID: 62231
2026-07-20 16:05:17 +00:00
// Name: getInitialStringSelectOptions
// Dependencies: []
// Exports: getInitialStringSelectOptions
2026-07-21 22:01:30 +00:00
// Module 7795 (getInitialStringSelectOptions)
2026-07-20 16:05:17 +00:00
let closure_2 = importDefault(dependencyMap[0]);
const result = arg1(dependencyMap[2]).fileFinishedImporting("modules/interaction_components/StringSelectActionComponentUtils.tsx");
export const getInitialStringSelectOptions = function getInitialStringSelectOptions(selectionActionComponent, containerId) {
const interactionComponentState = interactionComponentState.getInteractionComponentState(containerId, selectionActionComponent.id);
let type;
if (null != interactionComponentState) {
type = interactionComponentState.type;
}
if (type === containerId(dependencyMap[1]).ComponentType.STRING_SELECT) {
let mapped = interactionComponentState.values;
} else {
const options = selectionActionComponent.options;
const found = options.filter((arg0) => arg0.default);
mapped = found.map((value) => value.value);
}
return mapped;
};