blob: 54654ee5bb6fab6d6b6b1eafca201a0d16ff2c8b (
plain)
1
2
3
4
5
6
7
8
9
10
|
import * as serverData from "../../foundation/json-parsing/server-data";
/**
* Returns the current treatment for editorial collections based on the meta blob.
* @param meta Meta blob in initial response.
*/
export function currentEditorialCollectionTreatment(objectGraph, meta) {
const showGridCard = serverData.asBooleanOrFalse(meta, "experiments.showGridCard");
return showGridCard ? 0 /* EditorialCollectionExperimentType.Card */ : 1 /* EditorialCollectionExperimentType.Swoosh */;
}
//# sourceMappingURL=search-results-experiments.js.map
|