decord/beta/source/modules/game_server/GameServerExperiment.tsx
2026-10-02 13:37:24 +00:00

52 lines
1.9 KiB
TypeScript

// Module ID: 4749
// Function ID: 4750
// Name: GameServerExperiment
// Dependencies: [4750, 558, 576, 2]
// Exports: getGameServerEnabled
// Module 4749 (GameServerExperiment)
import react from "react" /* 576 */;
import createExperiment from "module_4750" /* 4750 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let items;
let obj = { kind: "guild", id: "2025-08_portkey_enabled", label: "GameServer Enabled", defaultConfig: { enabled: false }, treatments: items };
items = [{ id: 1, label: "Enable GameServer", config: { enabled: true } }];
const experiment = createExperiment.createExperiment(obj);
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? ((guildId, location) => {
const obj = react;
const cResult = obj.c(4);
if (cResult[0] === guildId) {
let tmp2;
let tmp4;
if (cResult[1] === location) {
tmp2 = cResult[2];
}
const _Symbol = Symbol;
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { autoTrackExposure: false };
cResult[3] = obj2;
tmp4 = obj2;
} else {
tmp4 = cResult[3];
}
return experiment.useExperiment(tmp2, tmp4).enabled;
}
const obj3 = { guildId, location };
cResult[0] = guildId;
cResult[1] = location;
cResult[2] = obj3;
tmp2 = obj3;
}) : ((guildId, location) => {
const obj = { guildId, location };
return experiment.useExperiment(obj, { autoTrackExposure: false }).enabled;
});
const result = size.fileFinishedImporting("modules/game_server/GameServerExperiment.tsx");
export const GameServerExperiment = experiment;
export const getGameServerEnabled = function getGameServerEnabled(c0, maybeGetGameServerHostingGuildEligiblePopoutDCF) {
const obj = { guildId: c0, location: maybeGetGameServerHostingGuildEligiblePopoutDCF };
return experiment.getCurrentConfig(obj, { autoTrackExposure: false }).enabled;
};
export const useGameServerEnabled = tmp3;