// Metro module 8217 (f8218). import { EXPLICIT_END_EVENT_SHEET_KEY } from "./GuildScheduledEventsConstants"; import { GUILD_EVENT_INFO_ACTION_SHEET_KEY } from "./native/GuildEventModalConstants"; import ActionSheetActionCreators from "../action_sheet/native/ActionSheetActionCreators"; import { getNextRecurrenceIdInEvent } from "./utils/ScheduleUtils"; const openGuildEventDetails = function openGuildEventDetails(a0) { const { eventId, event, onClose } = a0; let recurrenceId = a0.recurrenceId; const r23 = import("./native/components/GuildScheduledEventDetailsActionSheet"); if (recurrenceId == null) { recurrenceId = getNextRecurrenceIdInEvent(event); } if (recurrenceId == null) { recurrenceId = void 0; } ActionSheetActionCreators.openLazy(r23, GUILD_EVENT_INFO_ACTION_SHEET_KEY, { eventId, event, onCloseActionSheet: onClose, recurrenceId }, "stack"); }; export { openGuildEventDetails }; export async function transitionToEventDetailsFromInvite(c26149_0, c26149_1) { let c26149_3; c26149_3 = void 0; let c29921_0 = c26149_0; let c29921_1 = c26149_1; await Promise.resolve(); openGuildEventDetails({ eventId: c29921_0.id, event: c29921_0, recurrenceId: c29921_1?.recurrenceId }); } export function openEndEventModal(a0) { ActionSheetActionCreators.openLazy(import("./native/components/EndEventActionSheet"), EXPLICIT_END_EVENT_SHEET_KEY, { channel: a0 }); }