decord/source/modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

43 lines
1.6 KiB
TypeScript

// Module ID: 16381
// Function ID: 16382
// Name: GuildBoostingProgressBarPersistedStore
// Dependencies: [504, 573, 2]
// Module 16381 (GuildBoostingProgressBarPersistedStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
let closure_0 = {};
const PersistedStore = initializeDefault.PersistedStore;
class GuildBoostingProgressBarPersistedStore extends PersistedStore {
}
const prototype = GuildBoostingProgressBarPersistedStore.prototype;
prototype["initialize"] = function initialize(arg0) {
if (null != arg0) {
closure_0 = arg0;
}
};
prototype["getState"] = function getState() {
return closure_0;
};
prototype["getCountForGuild"] = function getCountForGuild(guildId) {
return closure_0[guildId];
};
GuildBoostingProgressBarPersistedStore.displayName = "GuildBoostingProgressBarPersistedStore";
GuildBoostingProgressBarPersistedStore.persistKey = "PremiumGuildProgressBarPersistedStore";
const guildBoostingProgressBarPersistedStore = new GuildBoostingProgressBarPersistedStore(DispatcherDefault, {
APPLIED_GUILD_BOOST_COUNT_UPDATE: function handlePremiumCountUpdate(arg0) {
const obj = {};
({ guildId, premiumCount } = arg0);
const merged = Object.assign(closure_0);
obj[guildId] = premiumCount;
closure_0 = obj;
},
APPLIED_GUILD_BOOST_COUNT_RESET: function handlePremiumCountReset() {
closure_0 = {};
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx");
export default guildBoostingProgressBarPersistedStore;