/* Metro module 4106; source: modules/experiments/ExperimentManager.tsx; dependencies: [4107, 4108, 694, 2] */ function _fun33644(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4271:6, offset: 0x01036dfd, size: 228 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const experimentStore = importDefault(4107) /* metro dependency 4107: ExperimentStore */; const env0_3 = (require(4107) /* metro dependency 4107: ExperimentStore */).registerExperiment; const experimentConstantsModule = require(4108) /* metro dependency 4108: ExperimentConstants */; const env0_4 = experimentConstantsModule.ExperimentTypes; experimentConstantsModule.ExposureTypes; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/experiments/ExperimentManager.tsx'); exports.trackExposureToExperiment = trackExposureToExperiment; exports.registerUserExperiment = function({id, title, description, buckets, commonTriggerPoint}) { registerExperiment({experimentId: id, experimentType: ExperimentTypes.USER, title: title, description: description, buckets: buckets, commonTriggerPoint: commonTriggerPoint}); return {id: id}; }; exports.registerGuildExperiment = function({id, title, description, buckets, commonTriggerPoint}) { registerExperiment({experimentId: id, experimentType: ExperimentTypes.GUILD, title: title, description: description, buckets: buckets, commonTriggerPoint: commonTriggerPoint}); return {id: id}; }; exports.ExperimentSystem = {LEGACY: 'legacy', APEX: 'apex'}; exports.overrideBucket = overrideBucket; } function trackExposureToExperiment(a0, a1, a2) { // fn#33645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4271:348, offset: 0x01036ee1, size: 143 bytes, params: 4, frame: 16 const value = undefined; ExperimentStore.trackExposure({experimentId: a0, descriptor: a1, location: a2 == null ? value : a2.location, location_stack: a2 == null ? value : a2.analyticsLocations, fingerprint: a2 == null ? value : a2.fingerprint, excluded: a2 == null ? value : a2.excluded, exposureType: a2 == null ? value : a2.exposureType}); return value; } function overrideBucket(a0, a1, a2) { // fn#33648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4271:1140, offset: 0x01037028, size: 227 bytes, params: 4, frame: 15 var defaultImport; var defaultImport2; var value3; const value = a2; const LEGACY = env0_5.LEGACY; if (LEGACY === a0) { defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */; value3 = null; defaultImport2.dispatch({type: 'EXPERIMENT_OVERRIDE_BUCKET', experimentId: a1, experimentBucket: value3 != value ? value : value3}); } else if (env0_5.APEX === a0) { if (value == null) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APEX_EXPERIMENT_OVERRIDE_DELETE', experimentName: a1}); } else { defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; defaultImport.dispatch({type: 'APEX_EXPERIMENT_OVERRIDE_CREATE', experimentName: a1, variantId: value}); } } }