Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
41 lines
1.9 KiB
TypeScript
41 lines
1.9 KiB
TypeScript
// Module ID: 17760
|
|
// Function ID: 17761
|
|
// Name: VoiceChannelHoistingExperiment
|
|
// Dependencies: [4675, 4672, 558, 568, 2]
|
|
|
|
// Module 17760 (VoiceChannelHoistingExperiment)
|
|
import c from "c" /* 568 */;
|
|
import ExperimentConstants from "ExperimentConstants" /* 4675 */;
|
|
import createExperiment from "module_4672" /* 4672 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const obj = { kind: "guild", id: "2025-12_voice_channel_hoisting", label: "Voice Channel Hoisting", commonTriggerPoint: ExperimentConstants.CommonTriggerPoints.VOICE_CALL, defaultConfig: { enableWaveformIcon: false, enableHighlight: false }, treatments: null };
|
|
const items = [{ id: 1, label: "Both waveform and highlight", config: { enableWaveformIcon: true, enableHighlight: true } }, { id: 2, label: "Waveform icon only", config: { enableWaveformIcon: true, enableHighlight: false } }];
|
|
obj.treatments = items;
|
|
const experiment = createExperiment.createExperiment(obj);
|
|
const result = size.fileFinishedImporting("modules/channel/VoiceChannelHoistingExperiment.tsx");
|
|
|
|
export const VoiceChannelHoistingExperiment = experiment;
|
|
export const useVoiceChannelHoistingExperiment = ReactCompilerGating.isReactCompilerEnabled() ? ((guildId, location) => {
|
|
const cResult = c.c(4);
|
|
if (cResult[0] === guildId) {
|
|
if (cResult[1] === location) {
|
|
let tmp2 = cResult[2];
|
|
}
|
|
const _Symbol = Symbol;
|
|
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const obj2 = { autoTrackExposure: false };
|
|
cResult[3] = obj2;
|
|
let tmp4 = obj2;
|
|
} else {
|
|
tmp4 = cResult[3];
|
|
}
|
|
return experiment.useExperiment(tmp2, tmp4);
|
|
}
|
|
const obj3 = { guildId, location };
|
|
cResult[0] = guildId;
|
|
cResult[1] = location;
|
|
cResult[2] = obj3;
|
|
tmp2 = obj3;
|
|
}) : ((guildId, location) => experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }));
|