48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
// Module ID: 15780
|
|
// Function ID: 15781
|
|
// Name: initialize
|
|
// Dependencies: [586, 706, 2]
|
|
|
|
// Module 15780 (initialize)
|
|
import initializeDefault from "initialize" /* 586 */;
|
|
import dispatcherDefault from "dispatcher" /* 706 */;
|
|
|
|
let c0 = false;
|
|
const PersistedStore = initializeDefault.PersistedStore;
|
|
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(dispatcherDefault, {
|
|
GUARDIAN_CONNECT_REQUIRED: function handleGuardianConnectRequired(shouldShowGuardianConnect) {
|
|
closure_0 = true === shouldShowGuardianConnect.shouldShowGuardianConnect;
|
|
parentalConsentStore.persist();
|
|
},
|
|
GUARDIAN_CONNECT_CLEARED: function handleGuardianConnectCleared() {
|
|
c0 = false;
|
|
parentalConsentStore.persist();
|
|
},
|
|
NUF_COMPLETE: function handleNUFCompleted() {
|
|
c0 = false;
|
|
parentalConsentStore.persist();
|
|
}
|
|
});
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/ParentalConsentStore.tsx");
|
|
|
|
export default parentalConsentStore;
|