This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
// 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;