decord/source/modules/parent_tools/ParentalConsentStore.tsx

51 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 15991
// Function ID: 15992
// Name: ParentalConsentStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 15991 (ParentalConsentStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = false;
2026-08-24 06:08:38 +00:00
const PersistedStore = initializeDefault.PersistedStore;
2026-07-29 08:29:29 +00:00
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
}
c0 = flag;
2026-07-29 08:29:29 +00:00
};
prototype["getShouldShowGuardianConnect"] = function getShouldShowGuardianConnect() {
return c0;
};
prototype["getState"] = function getState() {
return { shouldShowGuardianConnect };
2026-07-29 08:29:29 +00:00
};
ParentalConsentStore.displayName = "ParentalConsentStore";
ParentalConsentStore.persistKey = "ParentalConsentStore";
const parentalConsentStore = new ParentalConsentStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
GUARDIAN_CONNECT_REQUIRED: function handleGuardianConnectRequired(shouldShowGuardianConnect) {
c0 = true === shouldShowGuardianConnect.shouldShowGuardianConnect;
2026-07-29 08:29:29 +00:00
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
},
GUARDIAN_CONNECT_CLEARED: function handleGuardianConnectCleared() {
2026-08-24 06:08:38 +00:00
c0 = false;
2026-07-29 08:29:29 +00:00
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
},
NUF_COMPLETE: function handleNUFCompleted() {
2026-08-24 06:08:38 +00:00
c0 = false;
2026-07-29 08:29:29 +00:00
parentalConsentStore.persist();
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.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;