decord/source/modules/user_profile/PrivateProfilesExperiment.tsx

40 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 12183
// Function ID: 12184
2026-07-20 16:05:17 +00:00
// Name: apexExperiment
2026-07-29 08:29:29 +00:00
// Dependencies: [1452, 12184, 12185, 2]
2026-07-20 16:05:17 +00:00
// Exports: getIsInPrivateProfilesExperiment, useIsInPrivateProfilesExperiment
2026-07-29 08:29:29 +00:00
// Module 12183 (apexExperiment)
2026-07-23 10:11:24 +00:00
import ApexExperiment from "ApexExperiment";
2026-07-29 08:29:29 +00:00
const apexExperiment = ApexExperiment.createApexExperiment({ name: "2026-02-private-profiles", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
2026-07-23 10:11:24 +00:00
const result = require("apexExperiment").fileFinishedImporting("modules/user_profile/PrivateProfilesExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const PrivateProfilesExperiment = apexExperiment;
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
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) {
2026-07-29 08:29:29 +00:00
enabled = require(12184) /* apexExperiment */.getIsInPrivateProfilesStrictExperiment(ProfilePrivacySetting);
const obj2 = require(12184) /* apexExperiment */;
2026-07-20 16:05:17 +00:00
}
if (!enabled) {
2026-07-29 08:29:29 +00:00
enabled = require(12185) /* apexExperiment */.getIsInPrivateProfilesStrictGbExperiment(ProfilePrivacySetting);
const obj3 = require(12185) /* apexExperiment */;
2026-07-20 16:05:17 +00:00
}
return enabled;
};