decord/source/modules/user_profile/PrivateProfilesExperiment.tsx

41 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12116
// Function ID: 94929
2026-07-20 16:05:17 +00:00
// Name: apexExperiment
2026-07-27 11:26:19 +00:00
// Dependencies: [1428, 12117, 12118, 2]
2026-07-20 16:05:17 +00:00
// Exports: getIsInPrivateProfilesExperiment, useIsInPrivateProfilesExperiment
2026-07-27 11:26:19 +00:00
// Module 12116 (apexExperiment)
2026-07-23 10:11:24 +00:00
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");
2026-07-20 16:05:17 +00:00
export const PrivateProfilesExperiment = apexExperiment;
export const useIsInPrivateProfilesExperiment = function useIsInPrivateProfilesExperiment(PrivateProfileCoachmark) {
let enabled = apexExperiment.useConfig({ location: PrivateProfileCoachmark }).enabled;
2026-07-27 11:26:19 +00:00
const isInPrivateProfilesStrictExperiment = require(12117) /* apexExperiment */.useIsInPrivateProfilesStrictExperiment(PrivateProfileCoachmark);
2026-07-20 16:05:17 +00:00
const obj = { location: PrivateProfileCoachmark };
2026-07-27 11:26:19 +00:00
const obj2 = require(12117) /* apexExperiment */;
const isInPrivateProfilesStrictGbExperiment = require(12118) /* apexExperiment */.useIsInPrivateProfilesStrictGbExperiment(PrivateProfileCoachmark);
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-27 11:26:19 +00:00
enabled = require(12117) /* apexExperiment */.getIsInPrivateProfilesStrictExperiment(ProfilePrivacySetting);
const obj2 = require(12117) /* apexExperiment */;
2026-07-20 16:05:17 +00:00
}
if (!enabled) {
2026-07-27 11:26:19 +00:00
enabled = require(12118) /* apexExperiment */.getIsInPrivateProfilesStrictGbExperiment(ProfilePrivacySetting);
const obj3 = require(12118) /* apexExperiment */;
2026-07-20 16:05:17 +00:00
}
return enabled;
};