// Metro module 10272 (f10273). import { Soundpacks } from "./Constants"; import Module589 from "../../_bundle/Module589"; import Dispatcher from "../../Dispatcher"; let c6857_1 = { soundpack: Soundpacks.CLASSIC, lastSoundpackExperimentId: null }; class SoundpackStore extends Module589.PersistedStore { static displayName = "SoundpackStore"; static persistKey = "SoundpackStore"; initialize(a0) { if (a0 != null) { c6857_1 = a0; if (!Object.values(Soundpacks).includes(c6857_1.soundpack)) { c6857_1.soundpack = Soundpacks.CLASSIC; } } } getState() { return c6857_1; } getSoundpack() { return c6857_1.soundpack; } getLastSoundpackExperimentId() { return c6857_1.lastSoundpackExperimentId; } } const soundpackStore = new SoundpackStore(Dispatcher, { SET_SOUNDPACK: function handleSetSoundpack({ soundpack, forExperimentId = c6857_1.lastSoundpackExperimentId }) { c6857_1 = { soundpack, lastSoundpackExperimentId: forExperimentId }; } }); export default soundpackStore;