decord/source/modules/parent_tools/ParentalConsentStore.tsx

49 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15288
// Function ID: 15289
2026-07-29 08:29:29 +00:00
// Name: initialize
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 15288 (initialize)
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
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
}
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";
2026-08-24 06:08:38 +00:00
const parentalConsentStore = new ParentalConsentStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
GUARDIAN_CONNECT_REQUIRED: function handleGuardianConnectRequired(shouldShowGuardianConnect) {
2026-08-24 06:08:38 +00:00
closure_0 = 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
}
});
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;