decord/source/modules/parent_tools/ParentalConsentStore.tsx
2026-08-05 07:35:12 +00:00

46 lines
1.5 KiB
TypeScript

// Module ID: 14969
// Function ID: 14970
// Name: initialize
// Dependencies: [589, 709, 2]
// Module 14969 (initialize)
import { PersistedStore } from "initialize";
let c0 = false;
class ParentalConsentStore extends PersistedStore {
}
const prototype = ParentalConsentStore.prototype;
prototype["initialize"] = function initialize(shouldShowGuardianConnect) {
let flag;
if (shouldShowGuardianConnect != null) {
flag = shouldShowGuardianConnect.shouldShowGuardianConnect;
}
if (flag == null) {
flag = false;
}
};
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"), {
GUARDIAN_CONNECT_REQUIRED: function handleGuardianConnectRequired(shouldShowGuardianConnect) {
let closure_0 = true === shouldShowGuardianConnect.shouldShowGuardianConnect;
parentalConsentStore.persist();
},
GUARDIAN_CONNECT_CLEARED: function handleGuardianConnectCleared() {
let c0 = false;
parentalConsentStore.persist();
},
NUF_COMPLETE: function handleNUFCompleted() {
let c0 = false;
parentalConsentStore.persist();
}
});
const result = require("set").fileFinishedImporting("modules/parent_tools/ParentalConsentStore.tsx");
export default parentalConsentStore;