45 lines
1.9 KiB
TypeScript
45 lines
1.9 KiB
TypeScript
// Module ID: 10828
|
|
// Function ID: 84053
|
|
// Name: useBountiesExperience
|
|
// Dependencies: []
|
|
// Exports: useBountiesExperience
|
|
|
|
// Module 10828 (useBountiesExperience)
|
|
const _module = require(dependencyMap[3]);
|
|
const result = _module.fileFinishedImporting("modules/quests/experiments/useBountiesExperience.tsx");
|
|
|
|
export const useBountiesExperience = function useBountiesExperience(VIDEO_MODAL_MOBILE) {
|
|
const BountiesVerticalScrollExperiment = require(dependencyMap[0]).BountiesVerticalScrollExperiment;
|
|
let obj = { location: VIDEO_MODAL_MOBILE };
|
|
const config = BountiesVerticalScrollExperiment.useConfig(obj);
|
|
const BountiesStage1Experiment = require(dependencyMap[1]).BountiesStage1Experiment;
|
|
obj = { location: VIDEO_MODAL_MOBILE };
|
|
const config1 = BountiesStage1Experiment.useConfig(obj);
|
|
const QuestHomeBountiesExperiment = require(dependencyMap[2]).QuestHomeBountiesExperiment;
|
|
obj = { location: VIDEO_MODAL_MOBILE };
|
|
let num = 50;
|
|
const config2 = QuestHomeBountiesExperiment.useConfig(obj);
|
|
if (config1.enabled) {
|
|
num = config1.orbAmount;
|
|
}
|
|
let num2 = 15;
|
|
if (config1.enabled) {
|
|
num2 = config1.rewardTimerSeconds;
|
|
}
|
|
if (config.enabled) {
|
|
const obj1 = { bottom: null, right: null, borderColor: null, borderWidth: null };
|
|
({ verticalScrollEnabled: obj5.verticalScrollEnabled, ctaTimerMilliSeconds: obj5.ctaTimerMilliSeconds, scrollAffordanceVariant: obj5.scrollAffordanceVariant } = config);
|
|
obj1.stage1Enabled = config1.enabled;
|
|
obj1.orbAmount = num;
|
|
obj1.rewardTimerSeconds = num2;
|
|
let obj2 = obj1;
|
|
} else {
|
|
obj2 = { showBounties: config2.enabled, ownedByVerticalScrollExperiment: false };
|
|
({ verticalScrollEnabled: obj4.verticalScrollEnabled, loopingEnabled: obj4.loopingEnabled, ctaTimerMilliSeconds: obj4.ctaTimerMilliSeconds } = config1);
|
|
obj2.scrollAffordanceVariant = "none";
|
|
obj2.stage1Enabled = config1.enabled;
|
|
obj2.orbAmount = num;
|
|
obj2.rewardTimerSeconds = num2;
|
|
}
|
|
return obj2;
|
|
};
|