Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
37 lines
2.1 KiB
TypeScript
37 lines
2.1 KiB
TypeScript
// Module ID: 5130
|
|
// Function ID: 5131
|
|
// Name: NitroFileUploadExperiments
|
|
// Dependencies: [1373, 1433, 2]
|
|
// Exports: getNitroFileUploadLimitBytes, getNitroFileUploadRolloutConfig, getNonNitroFileUploadMarketingConfig, useNitroFileUploadRolloutEnabled, useNonNitroFileUploadMarketingEnabled
|
|
|
|
// Module 5130 (NitroFileUploadExperiments)
|
|
import PremiumConstants from "PremiumConstants" /* 1373 */;
|
|
import ApexExperiment_mod from "ApexExperiment" /* 1433 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ MAX_PREMIUM_TIER_2_ATTACHMENT_SIZE: closure_0, MAX_PREMIUM_TIER_2_ATTACHMENT_SIZE_1GB: closure_1 } = PremiumConstants);
|
|
let ApexExperiment = ApexExperiment_mod;
|
|
const obj = { name: "2026-09-nitro-file-upload-rollout", kind: "user", defaultConfig: { enabled: false }, variations: null };
|
|
const obj2 = { 1: null };
|
|
obj2[1] = { enabled: true };
|
|
obj.variations = obj2;
|
|
let closure_2 = ApexExperiment.createApexExperiment(obj);
|
|
let ApexExperiment = ApexExperiment_mod;
|
|
let closure_3 = ApexExperiment.createApexExperiment({ name: "2026-09-non-nitro-file-upload-marketing", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
|
|
const result = size.fileFinishedImporting("modules/premium/experiments/NitroFileUploadExperiments.tsx");
|
|
|
|
export const getNitroFileUploadLimitBytes = function getNitroFileUploadLimitBytes(location) {
|
|
return closure_2.getConfig({ location: location.location }).enabled ? framebus : React;
|
|
};
|
|
export const getNitroFileUploadRolloutConfig = function getNitroFileUploadRolloutConfig(location) {
|
|
return closure_2.getConfig({ location: location.location });
|
|
};
|
|
export const useNitroFileUploadRolloutEnabled = function useNitroFileUploadRolloutEnabled(location) {
|
|
return closure_2.useConfig({ location }).enabled;
|
|
};
|
|
export const getNonNitroFileUploadMarketingConfig = function getNonNitroFileUploadMarketingConfig(location) {
|
|
return closure_3.getConfig({ location: location.location });
|
|
};
|
|
export const useNonNitroFileUploadMarketingEnabled = function useNonNitroFileUploadMarketingEnabled(location) {
|
|
return closure_3.useConfig({ location }).enabled;
|
|
};
|