decord/source/modules/age_gate/AgeGateStore.tsx

33 lines
1,006 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 15787
// Function ID: 15788
2026-07-29 08:29:29 +00:00
// Name: isUnderageAnonymous
2026-09-02 09:53:35 +00:00
// Dependencies: [1218, 586, 706, 2]
2026-07-23 10:11:24 +00:00
2026-09-03 10:05:34 +00:00
// Module 15787 (isUnderageAnonymous)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import initializeDefault from "initialize" /* 586 */;
import dispatcherDefault from "dispatcher" /* 706 */;
import result2 from "result" /* 1218 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const AGE_GATE_REGISTER_TIMEOUT_MS = result2.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";
2026-08-24 06:08:38 +00:00
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
}
});
2026-08-24 06:08:38 +00:00
const result = set.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;