decord/alpha/source/stores/PremiumPromoStore.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

42 lines
1.6 KiB
TypeScript

// Module ID: 14119
// Function ID: 14120
// Name: PremiumPromoStore
// Dependencies: [502, 4474, 1091, 11, 504, 573, 2]
// Module 14119 (PremiumPromoStore)
import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */;
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import DurationsDefault from "Durations" /* 1091 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import RelationshipStore from "RelationshipStore" /* 4474 */;
let closure_4 = 180 * DurationsDefault.Millis.DAY;
let closure_5 = false;
const Store = initializeDefault.Store;
class PremiumPromoStore extends Store {
}
const prototype = PremiumPromoStore.prototype;
prototype["initialize"] = function initialize() {
this.waitFor(RelationshipStore, AuthenticationStore);
};
prototype["isEligible"] = function isEligible() {
return closure_5;
};
PremiumPromoStore.displayName = "PremiumPromoStore";
const premiumPromoStore = new PremiumPromoStore(DispatcherDefault, {
CONNECTION_OPEN: function updatePremiumPromoEligibility() {
let tmp2 = RelationshipStore.getFriendIDs().length >= 10;
if (tmp2) {
const _Date = Date;
tmp2 = SnowflakeUtilsDefault.extractTimestamp(AuthenticationStore.getId()) < Date.now() - closure_4;
const extractTimestampResult = SnowflakeUtilsDefault.extractTimestamp(AuthenticationStore.getId());
}
closure_5 = tmp2;
return closure_5 !== tmp2;
}
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/PremiumPromoStore.tsx");
export default premiumPromoStore;