Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
54 lines
2 KiB
TypeScript
54 lines
2 KiB
TypeScript
// Module ID: 7298
|
|
// Function ID: 7299
|
|
// Name: VibegrationsGuildExperiment
|
|
// Dependencies: [1979, 1074, 1433, 504, 2]
|
|
// Exports: useHasVibegrationsGuild, useIsVibegrationsGuildEnabled
|
|
|
|
// Module 7298 (VibegrationsGuildExperiment)
|
|
import GuildStore from "GuildStore" /* 1979 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
function isVibegrationsGuildEnabled(guildId) {
|
|
guildId = guildId.guildId;
|
|
let enabled = null != guildId;
|
|
if (enabled) {
|
|
const obj = { guildId, location: tmp };
|
|
enabled = closure_4.getConfig(obj).enabled;
|
|
}
|
|
return enabled;
|
|
}
|
|
function hasVibegrationsGuild(arg0, location) {
|
|
const obj = arg0[Symbol.iterator]();
|
|
while (obj !== undefined) {
|
|
let obj2 = { guildId: tmp.id, location };
|
|
if (isVibegrationsGuildEnabled(obj2)) {
|
|
obj.return();
|
|
let flag = true;
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
const EMPTY_STRING_SNOWFLAKE_ID = fn(1074).EMPTY_STRING_SNOWFLAKE_ID;
|
|
const ApexExperiment = fn(1433);
|
|
let closure_4 = ApexExperiment.createApexExperiment({ name: "2026-07-vibegrations-guild", kind: "guild", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/vibegrations/experiments/VibegrationsGuildExperiment.tsx");
|
|
|
|
export const useIsVibegrationsGuildEnabled = function useIsVibegrationsGuildEnabled(location) {
|
|
let guildId = location.guildId;
|
|
if (guildId == null) {
|
|
guildId = EMPTY_STRING_SNOWFLAKE_ID;
|
|
}
|
|
return closure_4.useConfig({ guildId, location: location.location }).enabled;
|
|
};
|
|
export { isVibegrationsGuildEnabled };
|
|
export { hasVibegrationsGuild };
|
|
export const useHasVibegrationsGuild = function useHasVibegrationsGuild(arg0) {
|
|
_require = arg0;
|
|
const items = [GuildStore, require("ApexExperiment").ApexExperimentStore];
|
|
const items1 = [arg0];
|
|
return require("initialize").useStateFromStores(items, () => hasVibegrationsGuild(Object.values(GuildStore.getGuilds()), closure_0), items1);
|
|
};
|