decord/beta/source/modules/gateway/PrivateChannelHidingExperiment.tsx

49 lines
2.3 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 13965
// Function ID: 13966
// Name: PrivateChannelHidingExperiment
2026-10-12 16:32:48 +00:00
// Dependencies: [1453, 558, 576, 2, 13966]
2026-10-02 13:37:24 +00:00
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled
2026-10-12 16:32:48 +00:00
// Module 13965 (PrivateChannelHidingExperiment)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import PrivateChannelHidingExperimentCache from "PrivateChannelHidingExperimentCache" /* 13966 */;
import ApexExperiment from "ApexExperiment" /* 1453 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj2;
let obj = { name: "2026-02-private-channel-hiding", kind: "user", defaultConfig: { enableObfuscation: false, enableIntegrityCheck: false }, variations: obj2 };
obj2 = { 1: null, 2: { enableObfuscation: true, enableIntegrityCheck: false }, 3: { enableObfuscation: true, enableIntegrityCheck: true } };
obj2[3] = { enableObfuscation: false, enableIntegrityCheck: false };
2026-10-02 13:37:24 +00:00
let closure_2 = ApexExperiment.createApexExperiment(obj);
2026-10-12 16:32:48 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsChannelMetadataObfuscationEnabled(location) {
2026-10-02 13:37:24 +00:00
let tmp2;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2).enableObfuscation;
2026-10-12 16:32:48 +00:00
}) : (function useIsChannelMetadataObfuscationEnabled(location) {
2026-10-02 13:37:24 +00:00
const obj = { location };
return closure_2.useConfig(obj).enableObfuscation;
});
const result = size.fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
export const getCachedPrivateChannelObfuscation = PrivateChannelHidingExperimentCache.getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = PrivateChannelHidingExperimentCache.PRIVATE_CHANNEL_OBFUSCATION_KEY;
2026-10-02 13:37:24 +00:00
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(dependencyMap) {
const obj = { location: dependencyMap };
return closure_2.getConfig(obj).enableObfuscation;
};
2026-10-02 13:37:24 +00:00
export const useIsChannelMetadataObfuscationEnabled = tmp2;
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
2026-10-01 14:13:23 +00:00
const obj = { location: scheduleIntegrityCheck };
2026-10-02 13:37:24 +00:00
return closure_2.getConfig(obj).enableIntegrityCheck;
};