decord/source/modules/age_gate/AgeGateStore.tsx
2026-09-03 10:05:34 +00:00

32 lines
1,006 B
TypeScript

// Module ID: 15787
// Function ID: 15788
// Name: isUnderageAnonymous
// Dependencies: [1218, 586, 706, 2]
// Module 15787 (isUnderageAnonymous)
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 586 */;
import dispatcherDefault from "dispatcher" /* 706 */;
import result2 from "result" /* 1218 */;
const AGE_GATE_REGISTER_TIMEOUT_MS = result2.AGE_GATE_REGISTER_TIMEOUT_MS;
let c0 = false;
const Store = initializeDefault.Store;
class AgeGateStore extends Store {
}
AgeGateStore.prototype["isUnderageAnonymous"] = function isUnderageAnonymous() {
return c0;
};
AgeGateStore.displayName = "AgeGateStore";
const ageGateStore = new AgeGateStore(dispatcherDefault, {
AGE_GATE_PREVENT_UNDERAGE_REGISTRATION: function handleMarkUnderageAnonymous() {
c0 = true;
const timestamp = Date.now();
},
LOGIN_SUCCESS: function handleLogin() {
c0 = false;
}
});
const result = set.fileFinishedImporting("modules/age_gate/AgeGateStore.tsx");
export default ageGateStore;