decord/source/stores/ConsentStore.tsx

77 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 5263
// Function ID: 5264
2026-07-29 08:29:29 +00:00
// Name: hasConsented
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 5263 (hasConsented)
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;
let c1 = false;
let closure_2 = {};
let c3 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class ConsentStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = ConsentStore.prototype;
prototype["hasConsented"] = function hasConsented(arg0) {
let consented = null != dependencyMap[arg0];
if (consented) {
consented = dependencyMap[arg0].consented;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return consented;
};
Object.defineProperty(prototype, "consents", {
get: function consents() {
return closure_2;
},
set: undefined
});
Object.defineProperty(prototype, "fetchedConsents", {
get: function fetchedConsents() {
return c0;
},
set: undefined
});
Object.defineProperty(prototype, "receivedConsentsInConnectionOpen", {
get: function receivedConsentsInConnectionOpen() {
return c1;
},
set: undefined
});
prototype["getAuthenticationConsentRequired"] = function getAuthenticationConsentRequired() {
return c3;
};
ConsentStore.displayName = "ConsentStore";
2026-08-24 06:08:38 +00:00
const consentStore = new ConsentStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen(consents) {
consents = consents.consents;
if (null != consents) {
const obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(obj);
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(consents);
2026-08-24 06:08:38 +00:00
c1 = true;
2026-07-20 16:05:17 +00:00
}
},
OVERLAY_INITIALIZE: function handleOverlayInitialize(consents) {
2026-07-23 10:11:24 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(consents.consents);
2026-08-24 06:08:38 +00:00
c0 = true;
2026-07-20 16:05:17 +00:00
},
UPDATE_CONSENTS: function handleUpdateConsents(consents) {
2026-07-23 10:11:24 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(consents.consents);
2026-08-24 06:08:38 +00:00
c0 = true;
2026-07-20 16:05:17 +00:00
},
SET_CONSENT_REQUIRED: function handleConsentRequired(consentRequired) {
consentRequired = consentRequired.consentRequired;
},
LOGOUT: function handleLogout() {
2026-08-24 06:08:38 +00:00
c3 = null;
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("stores/ConsentStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default consentStore;