decord/source/modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx

44 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 16331
// Function ID: 16332
// Name: GuildBoostingProgressBarPersistedStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 16331 (GuildBoostingProgressBarPersistedStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let closure_0 = {};
2026-08-24 06:08:38 +00:00
const PersistedStore = initializeDefault.PersistedStore;
2026-07-29 08:29:29 +00:00
class GuildBoostingProgressBarPersistedStore extends PersistedStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = GuildBoostingProgressBarPersistedStore.prototype;
prototype["initialize"] = function initialize(arg0) {
if (null != arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
};
prototype["getState"] = function getState() {
return closure_0;
};
prototype["getCountForGuild"] = function getCountForGuild(guildId) {
return closure_0[guildId];
2026-07-29 08:29:29 +00:00
};
GuildBoostingProgressBarPersistedStore.displayName = "GuildBoostingProgressBarPersistedStore";
GuildBoostingProgressBarPersistedStore.persistKey = "PremiumGuildProgressBarPersistedStore";
const guildBoostingProgressBarPersistedStore = new GuildBoostingProgressBarPersistedStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
APPLIED_GUILD_BOOST_COUNT_UPDATE: function handlePremiumCountUpdate(arg0) {
const obj = {};
({ guildId, premiumCount } = arg0);
const merged = Object.assign(closure_0);
2026-07-20 16:05:17 +00:00
obj[guildId] = premiumCount;
closure_0 = obj;
2026-07-20 16:05:17 +00:00
},
APPLIED_GUILD_BOOST_COUNT_RESET: function handlePremiumCountReset() {
2026-08-24 06:08:38 +00:00
closure_0 = {};
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default guildBoostingProgressBarPersistedStore;