decord/source/modules/parent_tools/ParentalConsentStore.tsx

47 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 15007
// Function ID: 15008
2026-07-29 08:29:29 +00:00
// Name: initialize
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-06 08:05:19 +00:00
// Module 15007 (initialize)
2026-07-29 08:29:29 +00:00
import { PersistedStore } from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = false;
class ParentalConsentStore extends PersistedStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = ParentalConsentStore.prototype;
prototype["initialize"] = function initialize(shouldShowGuardianConnect) {
let flag;
if (shouldShowGuardianConnect != null) {
flag = shouldShowGuardianConnect.shouldShowGuardianConnect;
}
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
};
prototype["getShouldShowGuardianConnect"] = function getShouldShowGuardianConnect() {
return c0;
};
prototype["getState"] = function getState() {
return { shouldShowGuardianConnect: c0 };
};
ParentalConsentStore.displayName = "ParentalConsentStore";
ParentalConsentStore.persistKey = "ParentalConsentStore";
const parentalConsentStore = new ParentalConsentStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GUARDIAN_CONNECT_REQUIRED: function handleGuardianConnectRequired(shouldShowGuardianConnect) {
2026-07-29 08:29:29 +00:00
let closure_0 = true === shouldShowGuardianConnect.shouldShowGuardianConnect;
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
},
GUARDIAN_CONNECT_CLEARED: function handleGuardianConnectCleared() {
2026-07-29 08:29:29 +00:00
let c0 = false;
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
},
NUF_COMPLETE: function handleNUFCompleted() {
2026-07-29 08:29:29 +00:00
let c0 = false;
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/parent_tools/ParentalConsentStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default parentalConsentStore;