From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001 From: rxliuli Date: Tue, 4 Nov 2025 05:03:50 +0800 Subject: init commit --- .../foundation/experimentation/today-ad-experiments.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js (limited to 'node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js') diff --git a/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js b/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js new file mode 100644 index 0000000..52468f9 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js @@ -0,0 +1,15 @@ +import * as appStoreExperiments from "./app-store-experiments"; +import { ExperimentAreaId } from "./experiment-area-id"; +/** + * Check whether the condensed treatment should be applied to the Today ad. + * @param objectGraph The object graph. + * @returns A boolean indicating if the treatment should be applied. + */ +export function shouldTodayAdBeCondensed(objectGraph) { + if (!objectGraph.client.isPhone) { + return false; + } + const treatmentId = appStoreExperiments.currentTreatmentIdForArea(objectGraph, ExperimentAreaId.CondensedTodayAds); + return treatmentId === "5pdfhju01" /* TodayAdCondensedDisplayExperimentTypes.Condensed */; +} +//# sourceMappingURL=today-ad-experiments.js.map \ No newline at end of file -- cgit v1.2.3