Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
// Module ID: 14687
|
|
// Function ID: 14688
|
|
// Name: TinyBroncoExperiment
|
|
// Dependencies: [1433, 14688, 4773, 2]
|
|
// Exports: isTinyBroncoEnabled, useIsTinyBroncoEnabled, useShouldShowTinyBroncoDismissibleContent
|
|
|
|
// Module 14687 (TinyBroncoExperiment)
|
|
import TinyBroncoGate from "TinyBroncoGate" /* 14688 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1433 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let closure_2 = ApexExperiment.createApexExperiment({ name: "2026-08-tiny-bronco", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
|
|
const result = size.fileFinishedImporting("modules/tiny_bronco/TinyBroncoExperiment.tsx");
|
|
|
|
export const useIsTinyBroncoEnabled = function useIsTinyBroncoEnabled(location) {
|
|
let enabled = TinyBroncoGate.TINY_BRONCO_DEV_ONLY;
|
|
if (enabled) {
|
|
const obj = { location };
|
|
enabled = closure_2.useConfig(obj).enabled;
|
|
}
|
|
return enabled;
|
|
};
|
|
export const isTinyBroncoEnabled = function isTinyBroncoEnabled(stateFromStores) {
|
|
let enabled = TinyBroncoGate.TINY_BRONCO_DEV_ONLY;
|
|
if (enabled) {
|
|
const obj = { location: stateFromStores };
|
|
enabled = closure_2.getConfig(obj).enabled;
|
|
}
|
|
return enabled;
|
|
};
|
|
export const useShouldShowTinyBroncoDismissibleContent = function useShouldShowTinyBroncoDismissibleContent(location) {
|
|
let enabled = TinyBroncoGate.TINY_BRONCO_DEV_ONLY;
|
|
if (enabled) {
|
|
const obj = { location };
|
|
enabled = closure_2.useConfig(obj).enabled;
|
|
}
|
|
if (enabled) {
|
|
enabled = !tmpResult.useIsVerifiedAdult();
|
|
}
|
|
return enabled;
|
|
};
|