decord/source/modules/user_profile/PrivateProfilesExperiment.tsx
2026-07-29 08:29:29 +00:00

39 lines
2 KiB
TypeScript

// Module ID: 12183
// Function ID: 12184
// Name: apexExperiment
// Dependencies: [1452, 12184, 12185, 2]
// Exports: getIsInPrivateProfilesExperiment, useIsInPrivateProfilesExperiment
// Module 12183 (apexExperiment)
import ApexExperiment from "ApexExperiment";
const apexExperiment = ApexExperiment.createApexExperiment({ name: "2026-02-private-profiles", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
const result = require("apexExperiment").fileFinishedImporting("modules/user_profile/PrivateProfilesExperiment.tsx");
export const PrivateProfilesExperiment = apexExperiment;
export const useIsInPrivateProfilesExperiment = function useIsInPrivateProfilesExperiment(UserProfilePrivacyNotice) {
let enabled = apexExperiment.useConfig({ location: UserProfilePrivacyNotice }).enabled;
const isInPrivateProfilesStrictExperiment = require(12184) /* apexExperiment */.useIsInPrivateProfilesStrictExperiment(UserProfilePrivacyNotice);
const obj = { location: UserProfilePrivacyNotice };
const obj2 = require(12184) /* apexExperiment */;
const isInPrivateProfilesStrictGbExperiment = require(12185) /* apexExperiment */.useIsInPrivateProfilesStrictGbExperiment(UserProfilePrivacyNotice);
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(12184) /* apexExperiment */.getIsInPrivateProfilesStrictExperiment(ProfilePrivacySetting);
const obj2 = require(12184) /* apexExperiment */;
}
if (!enabled) {
enabled = require(12185) /* apexExperiment */.getIsInPrivateProfilesStrictGbExperiment(ProfilePrivacySetting);
const obj3 = require(12185) /* apexExperiment */;
}
return enabled;
};