// Module ID: 5600 // Function ID: 47597 // Name: getChannelIdForGuildTransition // Dependencies: [5055, 1348, 1908, 1838, 1907, 5601, 653, 1355, 5605, 5607, 5609, 2] // Exports: getChannelIdForGuildTransition // Module 5600 (getChannelIdForGuildTransition) import _isNativeReflectConstruct from "_isNativeReflectConstruct"; import closure_3 from "_isNativeReflectConstruct"; import closure_4 from "_isNativeReflectConstruct"; import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose"; import closure_6 from "_isNativeReflectConstruct"; import closure_7 from "_isNativeReflectConstruct"; import { ME } from "ME"; import { StaticChannelRoute } from "set"; const require = arg1; const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/routing/getChannelIdForGuildTransition.tsx"); export const getChannelIdForGuildTransition = function getChannelIdForGuildTransition(guildId) { channelId = channelId.getChannelId(guildId); defaultChannel = defaultChannel.getDefaultChannel(guildId); let id; if (null != defaultChannel) { id = defaultChannel.id; } if (null == id) { let tmp5; if (guildId === ME) { privateChannelIds = privateChannelIds.getPrivateChannelIds(); let first; if (privateChannelIds.length > 0) { first = privateChannelIds[0]; } tmp5 = first; } id = tmp5; } if (channelId === StaticChannelRoute.GUILD_ONBOARDING) { if (!_isNativeReflectConstruct.shouldShowOnboarding(guildId)) { return id; } } if (channelId === StaticChannelRoute.GUILD_HOME) { if (!obj.canSeeOnboardingHome(guildId)) { return id; } obj = require(5605) /* canSeeOnboardingHomeInPreview */; } if (channelId === StaticChannelRoute.GUILD_SPACE) { if (obj4.canUseGuildSpace(guild.getGuild(guildId), "getChannelIdForGuildTransition")) { id = channelId; } return id; } else { if (channelId === StaticChannelRoute.GAME_SHOP) { if (obj2.canSeeGameShop(guildId)) { return channelId; } obj2 = require(5609) /* _createForOfIteratorHelperLoose */; } channel = channel.getChannel(channelId); if (null == channel) { let tmp15 = id; } else { tmp15 = channelId; } return tmp15; } };