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

49 lines
2.3 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 14302
// Function ID: 14303
// Name: PrivateChannelHidingExperiment
2026-10-13 12:43:34 +00:00
// Dependencies: [1453, 558, 576, 2, 14303]
2026-10-03 08:58:59 +00:00
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 14302 (PrivateChannelHidingExperiment)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-13 12:43:34 +00:00
import PrivateChannelHidingExperimentCache from "PrivateChannelHidingExperimentCache" /* 14303 */;
2026-10-09 10:00:15 +00:00
import ApexExperiment from "ApexExperiment" /* 1453 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +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-03 08:58:59 +00:00
let closure_2 = ApexExperiment.createApexExperiment(obj);
2026-10-08 09:57:35 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsChannelMetadataObfuscationEnabled(location) {
2026-10-03 08:58:59 +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-08 09:57:35 +00:00
}) : (function useIsChannelMetadataObfuscationEnabled(location) {
2026-10-03 08:58:59 +00:00
const obj = { location };
return closure_2.useConfig(obj).enableObfuscation;
});
const result = size.fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
2026-07-23 10:11:24 +00:00
export const getCachedPrivateChannelObfuscation = PrivateChannelHidingExperimentCache.getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = PrivateChannelHidingExperimentCache.PRIVATE_CHANNEL_OBFUSCATION_KEY;
2026-10-03 08:58:59 +00:00
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(dependencyMap) {
const obj = { location: dependencyMap };
return closure_2.getConfig(obj).enableObfuscation;
2026-07-20 16:05:17 +00:00
};
2026-10-03 08:58:59 +00:00
export const useIsChannelMetadataObfuscationEnabled = tmp2;
2026-07-20 16:05:17 +00:00
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
2026-10-03 08:58:59 +00:00
const obj = { location: scheduleIntegrityCheck };
return closure_2.getConfig(obj).enableIntegrityCheck;
2026-07-20 16:05:17 +00:00
};