decord/source/modules/age_gate/AgeGateStore.tsx

33 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 16079
// Function ID: 16080
// Name: AgeGateStore
// Dependencies: [1099, 504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 16079 (AgeGateStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import AgeGateConstants from "AgeGateConstants" /* 1099 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const AGE_GATE_REGISTER_TIMEOUT_MS = AgeGateConstants.AGE_GATE_REGISTER_TIMEOUT_MS;
2026-07-29 08:29:29 +00:00
let c0 = false;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class AgeGateStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
AgeGateStore.prototype["isUnderageAnonymous"] = function isUnderageAnonymous() {
return c0;
};
AgeGateStore.displayName = "AgeGateStore";
const ageGateStore = new AgeGateStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
AGE_GATE_PREVENT_UNDERAGE_REGISTRATION: function handleMarkUnderageAnonymous() {
2026-08-24 06:08:38 +00:00
c0 = true;
2026-07-20 16:05:17 +00:00
const timestamp = Date.now();
},
LOGIN_SUCCESS: function handleLogin() {
2026-08-24 06:08:38 +00:00
c0 = false;
2026-07-20 16:05:17 +00:00
}
});
const result = size.fileFinishedImporting("modules/age_gate/AgeGateStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default ageGateStore;