// Metro module 13045 (f13046). import { AnalyticEvents, GuildFeatures } from "../../../Constants"; import { isFavoritesGuildId } from "../../favorites/FavoritesUtils"; import AnalyticsUtils from "../../../utils/AnalyticsUtils"; import { shouldNSFWGateGuild } from "../../age_gate/native/AgeGateUtils"; import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators"; import * as _asyncRequire from "../../../_bundle/asyncRequire"; export default function openGuildActionSheet(a0, expanded = true) { if (!isFavoritesGuildId(a0.id)) { AnalyticsUtils.track(AnalyticEvents.OPEN_POPOUT, { type: "Guild Profile", guild_id: a0.id }); if (shouldNSFWGateGuild(a0.id)) { ActionSheetActionCreators.openLazy(import("../../age_gate/native/components/NsfwGateGuildSettingsActionSheet"), "NsfwGateGuildSettingsActionSheet", { guild: a0 }); } else if (a0.features.has(GuildFeatures.HUB)) { ActionSheetActionCreators.openLazy(_asyncRequire(dependencyMap[7], dependencyMap.paths), `GuildActionSheet:${a0.id}`, { guild: a0, expanded }); } else { ActionSheetActionCreators.openLazy(_asyncRequire(dependencyMap[8], dependencyMap.paths), `GuildActionSheet:${a0.id}`, { guild: a0, expanded }); } } };