decord/alpha/source/stores/PremiumPromoStore.tsx

46 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 13872
// Function ID: 13873
// Name: PremiumPromoStore
2026-10-08 09:57:35 +00:00
// Dependencies: [502, 4717, 1102, 11, 504, 584, 2]
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
// Module 13872 (PremiumPromoStore)
import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */;
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import DurationsDefault from "Durations" /* 1102 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
2026-10-08 09:57:35 +00:00
import RelationshipStore from "RelationshipStore" /* 4717 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
let closure_4 = 180 * DurationsDefault.Millis.DAY;
let closure_5 = false;
2026-10-03 08:58:59 +00:00
const Store = get_initializedDefault.Store;
2026-07-29 08:29:29 +00:00
class PremiumPromoStore extends Store {
2026-10-03 08:58:59 +00:00
initialize() {
this.waitFor(RelationshipStore, AuthenticationStore);
}
isEligible() {
return closure_5;
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = PremiumPromoStore.prototype;
PremiumPromoStore.displayName = "PremiumPromoStore";
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function updatePremiumPromoEligibility() {
let tmp2 = RelationshipStore.getFriendIDs().length >= 10;
2026-10-03 08:58:59 +00:00
const tmp = closure_5;
2026-07-20 16:05:17 +00:00
if (tmp2) {
const _Date = Date;
2026-10-03 08:58:59 +00:00
const obj = SnowflakeUtilsDefault;
const extractTimestampResult = obj.extractTimestamp(AuthenticationStore.getId());
tmp2 = extractTimestampResult < Date.now() - closure_4;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
closure_5 = tmp2;
2026-10-03 08:58:59 +00:00
return tmp !== tmp2;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
};
const premiumPromoStore = new PremiumPromoStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/PremiumPromoStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default premiumPromoStore;