decord/source/modules/age_gate/AgeGateStore.tsx

33 lines
1,006 B
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 15540
// Function ID: 15541
2026-07-29 08:29:29 +00:00
// Name: isUnderageAnonymous
// Dependencies: [1221, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-09-01 10:26:29 +00:00
// Module 15540 (isUnderageAnonymous)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import result2 from "result" /* 1221 */;
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;