decord/beta/source/modules/guild_space/GuildSpaceExperiment.tsx
2026-10-12 16:32:48 +00:00

56 lines
2 KiB
TypeScript

// Module ID: 6930
// Function ID: 6931
// Name: GuildSpaceExperiment
// Dependencies: [1085, 1453, 558, 576, 2]
// Exports: getGuildSpaceExperimentEnabled
// Module 6930 (GuildSpaceExperiment)
import react from "react" /* 576 */;
import Constants from "Constants" /* 1085 */;
import ApexExperiment from "ApexExperiment" /* 1453 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const EMPTY_STRING_SNOWFLAKE_ID = Constants.EMPTY_STRING_SNOWFLAKE_ID;
let obj = { kind: "guild", name: "2026-09-guild-spaces", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } };
const apexExperiment = ApexExperiment.createApexExperiment(obj);
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGuildSpaceExperimentEnabled(arg0, location) {
let tmp = arg0;
const obj = react;
const cResult = obj.c(3);
if (arg0 == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
if (cResult[0] === location) {
let tmp3;
if (cResult[1] === tmp) {
tmp3 = cResult[2];
}
return apexExperiment.useConfig(tmp3).enabled;
}
const obj2 = { guildId: tmp, location };
cResult[0] = location;
cResult[1] = tmp;
cResult[2] = obj2;
tmp3 = obj2;
}) : (function useGuildSpaceExperimentEnabled(arg0, location) {
let tmp = arg0;
const useConfig = apexExperiment.useConfig;
if (arg0 == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
const obj = { guildId: tmp, location };
return useConfig(obj).enabled;
});
const result = size.fileFinishedImporting("modules/guild_space/GuildSpaceExperiment.tsx");
export const GuildSpaceExperiment = apexExperiment;
export const getGuildSpaceExperimentEnabled = function getGuildSpaceExperimentEnabled(id, GuildSettingsModalOverview) {
let enabled = null != id;
if (enabled) {
const obj = { guildId: id, location: GuildSettingsModalOverview };
enabled = apexExperiment.getConfig(obj).enabled;
}
return enabled;
};
export const useGuildSpaceExperimentEnabled = tmp3;