2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 4563
|
|
|
|
|
// Function ID: 4564
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: FileUpload250MbPowerupExperiment
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [4550, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getFileUpload250MbPowerupEnabled, getFileUpload250MbPowerupRollbackEnabled, useFileUpload250MbPowerupEnabled, useFileUpload250MbPowerupRollbackEnabled
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 4563 (FileUpload250MbPowerupExperiment)
|
|
|
|
|
import createExperiment from "module_4550" /* 4550 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { kind: "guild", id: "2026-03_file_upload_250_mb_powerup", label: "File Upload 250MB Powerup", defaultConfig: { enabled: false, rollbackEnabled: false }, treatments: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [{ id: 1, label: "Enable File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: false } }, { id: 2, label: "Rollback UI for File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: true } }];
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.treatments = items;
|
|
|
|
|
const experiment = createExperiment.createExperiment(obj);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/experiments/FileUpload250MbPowerupExperiment.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const FileUpload250MbPowerupExperiment = experiment;
|
|
|
|
|
export const getFileUpload250MbPowerupEnabled = function getFileUpload250MbPowerupEnabled(guildId, GuildPowerupsConstants) {
|
|
|
|
|
return experiment.getCurrentConfig({ guildId, location: GuildPowerupsConstants }, { autoTrackExposure: false }).enabled;
|
|
|
|
|
};
|
|
|
|
|
export const useFileUpload250MbPowerupEnabled = function useFileUpload250MbPowerupEnabled(guildId, location) {
|
|
|
|
|
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }).enabled;
|
|
|
|
|
};
|
|
|
|
|
export const useFileUpload250MbPowerupRollbackEnabled = function useFileUpload250MbPowerupRollbackEnabled(guildId, location) {
|
|
|
|
|
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }).rollbackEnabled;
|
|
|
|
|
};
|
|
|
|
|
export const getFileUpload250MbPowerupRollbackEnabled = function getFileUpload250MbPowerupRollbackEnabled(guildId, location) {
|
|
|
|
|
return experiment.getCurrentConfig({ guildId, location }, { autoTrackExposure: false }).rollbackEnabled;
|
|
|
|
|
};
|