decord/alpha/source/stores/ConsentStore.tsx

79 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 6838
// Function ID: 6839
// Name: ConsentStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 6838 (ConsentStore)
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;
let c1 = false;
let obj = {};
2026-07-29 08:29:29 +00:00
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 != obj[arg0];
2026-07-29 08:29:29 +00:00
if (consented) {
consented = obj[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 obj;
2026-07-29 08:29:29 +00:00
},
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";
obj = {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen(consents) {
consents = consents.consents;
if (null != consents) {
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) {
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) {
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
}
};
const consentStore = new ConsentStore(DispatcherDefault, obj);
const size = fn(2);
const result = size.fileFinishedImporting("stores/ConsentStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default consentStore;