decord/beta/source/modules/gateway/PrivateChannelHidingExperiment.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

40 lines
2.2 KiB
TypeScript

// Module ID: 13972
// Function ID: 13973
// Name: PrivateChannelHidingExperiment
// Dependencies: [1438, 558, 568, 2, 13973]
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled
// Module 13972 (PrivateChannelHidingExperiment)
import c from "c" /* 568 */;
import PrivateChannelHidingExperimentCache from "PrivateChannelHidingExperimentCache" /* 13973 */;
import ApexExperiment from "ApexExperiment" /* 1438 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const obj = { name: "2026-02-private-channel-hiding", kind: "user", defaultConfig: { enableObfuscation: false, enableIntegrityCheck: false }, variations: null };
let obj2 = { 1: null, 2: { enableObfuscation: true, enableIntegrityCheck: false }, 3: { enableObfuscation: true, enableIntegrityCheck: true } };
obj2[3] = { enableObfuscation: false, enableIntegrityCheck: false };
obj.variations = obj2;
let closure_2 = ApexExperiment.createApexExperiment(obj);
const result = size.fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
export const getCachedPrivateChannelObfuscation = PrivateChannelHidingExperimentCache.getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = PrivateChannelHidingExperimentCache.PRIVATE_CHANNEL_OBFUSCATION_KEY;
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(dependencyMap) {
return closure_2.getConfig({ location: dependencyMap }).enableObfuscation;
};
export const useIsChannelMetadataObfuscationEnabled = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
const cResult = c.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
let tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2).enableObfuscation;
}) : ((location) => closure_2.useConfig({ location }).enableObfuscation);
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
return closure_2.getConfig({ location: scheduleIntegrityCheck }).enableIntegrityCheck;
};