// Metro module 5051 (f5052). import Module589 from "../../../_bundle/Module589"; import Dispatcher from "../../../Dispatcher"; let c3049_0 = { topEmojisByGuildId: {} }; let c3049_1 = c3049_0; let c3049_2 = {}; class TopEmojiStore extends Module589.PersistedStore { static displayName = "TopEmojiStore"; static persistKey = "TopEmojiStore"; initialize(a0) { c3049_1 = a0 == null ? c3049_0 : a0; } getState() { return c3049_1; } getTopEmojiIdsByGuildId(a0) { return c3049_1.topEmojisByGuildId[a0]; } getIsFetching(a0) { return c3049_2[a0]; } } const topEmojiStore = new TopEmojiStore(Dispatcher, { LOGOUT: function handleLogout() { c3049_1 = c3049_0; c3049_2 = {}; }, TOP_EMOJIS_FETCH: function handleTopEmojiFetching(a0) { c3049_2[a0.guildId] = true; }, TOP_EMOJIS_FETCH_SUCCESS: function handleTopEmojisLoaded(a0) { const guildId = a0.guildId; c3049_1.topEmojisByGuildId[guildId] = a0.topEmojisMetadata.map((item) => item.emojiId); c3049_2[guildId] = false; } }); export default topEmojiStore;