42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
// Module ID: 17964
|
|
// Function ID: 17965
|
|
// Name: SearchResultsFeedbackExperiment
|
|
// Dependencies: [1453, 558, 576, 2]
|
|
// Exports: getIsSearchResultsFeedbackExperimentEnabled
|
|
|
|
// Module 17964 (SearchResultsFeedbackExperiment)
|
|
import react from "react" /* 576 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1453 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let obj2;
|
|
let obj = { name: "2025-05-search-results-feedback", kind: "user", defaultConfig: { enabled: false }, variations: obj2 };
|
|
obj2 = { 1: null };
|
|
obj2[1] = { enabled: true };
|
|
let closure_2 = ApexExperiment.createApexExperiment(obj);
|
|
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsSearchResultsFeedbackExperimentEnabled(location) {
|
|
let tmp2;
|
|
const obj = react;
|
|
const cResult = obj.c(2);
|
|
const _location = location.location;
|
|
if (cResult[0] !== _location) {
|
|
const obj2 = { location: _location };
|
|
cResult[0] = _location;
|
|
cResult[1] = obj2;
|
|
tmp2 = obj2;
|
|
} else {
|
|
tmp2 = cResult[1];
|
|
}
|
|
return closure_2.useConfig(tmp2).enabled;
|
|
}) : (function useIsSearchResultsFeedbackExperimentEnabled(location) {
|
|
const obj = { location: location.location };
|
|
return closure_2.useConfig(obj).enabled;
|
|
});
|
|
const result = size.fileFinishedImporting("modules/search/experiments/SearchResultsFeedbackExperiment.tsx");
|
|
|
|
export const useIsSearchResultsFeedbackExperimentEnabled = tmp2;
|
|
export const getIsSearchResultsFeedbackExperimentEnabled = function getIsSearchResultsFeedbackExperimentEnabled(location) {
|
|
const obj = { location: location.location };
|
|
return closure_2.getConfig(obj).enabled;
|
|
};
|