decord/source/modules/user_profile/PrivateProfilesExperiment.tsx
2026-07-27 11:26:19 +00:00

40 lines
2 KiB
TypeScript

// Module ID: 12116
// Function ID: 94929
// Name: apexExperiment
// Dependencies: [1428, 12117, 12118, 2]
// Exports: getIsInPrivateProfilesExperiment, useIsInPrivateProfilesExperiment
// Module 12116 (apexExperiment)
import ApexExperiment from "ApexExperiment";
let obj = { name: "2026-02-private-profiles", kind: "user", defaultConfig: { enabled: false }, variations: { [0]: { enabled: false }, [1]: { enabled: true } } };
const apexExperiment = ApexExperiment.createApexExperiment(obj);
const result = require("apexExperiment").fileFinishedImporting("modules/user_profile/PrivateProfilesExperiment.tsx");
export const PrivateProfilesExperiment = apexExperiment;
export const useIsInPrivateProfilesExperiment = function useIsInPrivateProfilesExperiment(PrivateProfileCoachmark) {
let enabled = apexExperiment.useConfig({ location: PrivateProfileCoachmark }).enabled;
const isInPrivateProfilesStrictExperiment = require(12117) /* apexExperiment */.useIsInPrivateProfilesStrictExperiment(PrivateProfileCoachmark);
const obj = { location: PrivateProfileCoachmark };
const obj2 = require(12117) /* apexExperiment */;
const isInPrivateProfilesStrictGbExperiment = require(12118) /* apexExperiment */.useIsInPrivateProfilesStrictGbExperiment(PrivateProfileCoachmark);
if (!enabled) {
enabled = isInPrivateProfilesStrictExperiment;
}
if (!enabled) {
enabled = isInPrivateProfilesStrictGbExperiment;
}
return enabled;
};
export const getIsInPrivateProfilesExperiment = function getIsInPrivateProfilesExperiment(ProfilePrivacySetting) {
let enabled = apexExperiment.getConfig({ location: ProfilePrivacySetting }).enabled;
if (!enabled) {
enabled = require(12117) /* apexExperiment */.getIsInPrivateProfilesStrictExperiment(ProfilePrivacySetting);
const obj2 = require(12117) /* apexExperiment */;
}
if (!enabled) {
enabled = require(12118) /* apexExperiment */.getIsInPrivateProfilesStrictGbExperiment(ProfilePrivacySetting);
const obj3 = require(12118) /* apexExperiment */;
}
return enabled;
};