decord/alpha/source/modules/premium/experiments/MobileStickerPickerUpsellRestyleExperiment.tsx

49 lines
2.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 9536
// Function ID: 9537
// Name: MobileStickerPickerUpsellRestyleExperiment
2026-10-12 06:59:38 +00:00
// Dependencies: [1453, 558, 576, 9281, 2]
2026-10-03 08:58:59 +00:00
// Exports: getMobileStickerPickerUpsellRestyleEnabled, getMobileStickerPickerUpsellRestyleEnabledForFeature
2026-09-02 09:53:35 +00:00
2026-10-12 06:59:38 +00:00
// Module 9536 (MobileStickerPickerUpsellRestyleExperiment)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-12 06:59:38 +00:00
import EntitlementFeatureNames from "EntitlementFeatureNames" /* 9281 */;
2026-10-09 10:00:15 +00:00
import ApexExperiment from "ApexExperiment" /* 1453 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-09-02 09:53:35 +00:00
const apexExperiment = ApexExperiment.createApexExperiment({ name: "2026-09-mobile-sticker-picker-upsell-restyle", kind: "user", defaultConfig: false, variations: { 0: false, 1: true } });
2026-10-03 08:58:59 +00:00
function getMobileStickerPickerUpsellRestyleEnabled(location) {
const obj = { location };
return apexExperiment.getConfig(obj);
}
2026-10-08 09:57:35 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useMobileStickerPickerUpsellRestyleEnabled(location) {
2026-10-03 08:58:59 +00:00
let tmp2;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return apexExperiment.useConfig(tmp2);
2026-10-08 09:57:35 +00:00
}) : (function useMobileStickerPickerUpsellRestyleEnabled(location) {
2026-10-03 08:58:59 +00:00
const obj = { location };
return apexExperiment.useConfig(obj);
});
const result = size.fileFinishedImporting("modules/premium/experiments/MobileStickerPickerUpsellRestyleExperiment.tsx");
2026-09-02 09:53:35 +00:00
export const MobileStickerPickerUpsellRestyleExperiment = apexExperiment;
2026-10-03 08:58:59 +00:00
export const useMobileStickerPickerUpsellRestyleEnabled = tmp3;
export { getMobileStickerPickerUpsellRestyleEnabled };
export const getMobileStickerPickerUpsellRestyleEnabledForFeature = function getMobileStickerPickerUpsellRestyleEnabledForFeature(featureName, location) {
2026-09-02 09:53:35 +00:00
let config = featureName === EntitlementFeatureNames.EntitlementFeatureNames.STICKERS_EVERYWHERE;
if (config) {
const obj = { location };
2026-09-02 09:53:35 +00:00
config = apexExperiment.getConfig(obj);
}
return config;
};