Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
29 lines
2 KiB
TypeScript
29 lines
2 KiB
TypeScript
// Module ID: 4534
|
|
// Function ID: 4535
|
|
// Name: FileUpload250MbPowerupExperiment
|
|
// Dependencies: [4521, 2]
|
|
// Exports: getFileUpload250MbPowerupEnabled, getFileUpload250MbPowerupRollbackEnabled, useFileUpload250MbPowerupEnabled, useFileUpload250MbPowerupRollbackEnabled
|
|
|
|
// Module 4534 (FileUpload250MbPowerupExperiment)
|
|
import createExperiment from "module_4521" /* 4521 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const obj = { kind: "guild", id: "2026-03_file_upload_250_mb_powerup", label: "File Upload 250MB Powerup", defaultConfig: { enabled: false, rollbackEnabled: false }, treatments: null };
|
|
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 } }];
|
|
obj.treatments = items;
|
|
const experiment = createExperiment.createExperiment(obj);
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/experiments/FileUpload250MbPowerupExperiment.tsx");
|
|
|
|
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;
|
|
};
|