decord/source/stores/PremiumPromoStore.tsx

43 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13359
// Function ID: 13360
2026-07-29 08:29:29 +00:00
// Name: initialize
2026-08-24 06:08:38 +00:00
// Dependencies: [1218, 4033, 687, 11, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 13359 (initialize)
import DISCORD_EPOCHDefault from "DISCORD_EPOCH" /* 11 */;
import initializeDefault from "initialize" /* 589 */;
import setDefault from "set" /* 687 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import closure_2 from "fetchFingerprint" /* 1218 */;
import closure_3 from "markAllUserIdListsStale" /* 4033 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
let closure_4 = 180 * setDefault.Millis.DAY;
2026-07-29 08:29:29 +00:00
let c5 = false;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class PremiumPromoStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = PremiumPromoStore.prototype;
prototype["initialize"] = function initialize() {
2026-08-24 06:08:38 +00:00
this.waitFor(closure_3, closure_2);
2026-07-29 08:29:29 +00:00
};
prototype["isEligible"] = function isEligible() {
return c5;
};
PremiumPromoStore.displayName = "PremiumPromoStore";
2026-08-24 06:08:38 +00:00
const premiumPromoStore = new PremiumPromoStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function updatePremiumPromoEligibility() {
let tmp2 = friendIDs.getFriendIDs().length >= 10;
if (tmp2) {
const _Date = Date;
2026-08-24 06:08:38 +00:00
const obj = DISCORD_EPOCHDefault;
tmp2 = DISCORD_EPOCHDefault.extractTimestamp(id.getId()) < Date.now() - closure_4;
const extractTimestampResult = DISCORD_EPOCHDefault.extractTimestamp(id.getId());
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
closure_5 = tmp2;
return closure_5 !== tmp2;
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("stores/PremiumPromoStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default premiumPromoStore;