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

25 lines
960 B
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 18130
// Function ID: 18131
// Name: SoundpackActions
2026-10-10 08:08:14 +00:00
// Dependencies: [10981, 1085, 1265, 584, 2]
2026-07-20 16:05:17 +00:00
// Exports: setSoundpack
2026-10-13 12:43:34 +00:00
// Module 18130 (SoundpackActions)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
2026-10-10 08:08:14 +00:00
import SoundpackStore from "SoundpackStore" /* 10981 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/soundpacks/SoundpackActions.tsx");
2026-07-20 16:05:17 +00:00
export const setSoundpack = function setSoundpack(CLASSIC, name) {
const obj = AnalyticsUtilsDefault;
const obj2 = { soundpack: CLASSIC, previous_soundpack: SoundpackStore.getSoundpack() };
2026-10-03 08:58:59 +00:00
obj.track(AnalyticEvents.SOUNDPACK_UPDATED, obj2);
const obj3 = DispatcherDefault;
const obj4 = { type: "SET_SOUNDPACK", soundpack: CLASSIC, forExperimentId: name };
obj3.dispatch(obj4);
2026-07-20 16:05:17 +00:00
};