decord/beta/source/modules/soundpacks/SoundpackActions.tsx

25 lines
960 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 18126
// Function ID: 18127
// Name: SoundpackActions
2026-10-12 16:32:48 +00:00
// Dependencies: [10981, 1085, 1265, 584, 2]
// Exports: setSoundpack
2026-10-12 16:32:48 +00:00
// Module 18126 (SoundpackActions)
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
2026-10-12 16:32:48 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
import SoundpackStore from "SoundpackStore" /* 10981 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/soundpacks/SoundpackActions.tsx");
export const setSoundpack = function setSoundpack(CLASSIC, name) {
const obj = AnalyticsUtilsDefault;
const obj2 = { soundpack: CLASSIC, previous_soundpack: SoundpackStore.getSoundpack() };
2026-10-01 14:13:23 +00:00
obj.track(AnalyticEvents.SOUNDPACK_UPDATED, obj2);
const obj3 = DispatcherDefault;
const obj4 = { type: "SET_SOUNDPACK", soundpack: CLASSIC, forExperimentId: name };
obj3.dispatch(obj4);
};