/* Metro module 12130; source: modules/channel/native/ChannelLongPressActionSheet.tsx; dependencies: [57, 5, 31, 5220, 9706, 5088, 1384, 4790, 1383, 5090, 1379, 5091, 1867, 3784, 3793, 1934, 4864, 1878, 661, 1376, 9696, 33, 8113, 1962, 7709, 4501, 697, 1305, 1244, 11717, 8743, 4054, 4603, 4805, 4647, 9646, 9879, 4056, 5080, 12131, 2970, 9390, 1230, 11234, 10859, 9151, 11245, 6609, 4008, 5312, 11761, 12148, 8129, 9748, 12149, 9738, 8999, 5097, 11923, 12151, 10629, 9216, 6613, 6610, 11241, 8148, 6684, 9695, 12152, 6707, 6682, 4080, 12153, 7712, 8114, 8665, 8153, 8998, 6593, 7002, 4060, 9087, 8772, 6797, 3856, 6771, 6789, 11248, 566, 1387, 5102, 12154, 1365, 7013, 9618, 3829, 6819, 12155, 11247, 6805, 1581, 11251, 6807, 2] */ function _fun93068(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:6, offset: 0x020a5177, size: 708 bytes, params: 8, frame: 21 const env0_0 = require; const handleVoiceOrStageChannelConnectPress = function() { return _handleVoiceOrStageChannelConnectPress.apply(this, arguments); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importDefault(5) /* metro dependency 5 */; const env0_5 = importAll(31) /* metro dependency 31 */; const replyNudgeStore = importDefault(5220) /* metro dependency 5220: ReplyNudgeStore */; const env0_7 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes; const channelSpoilerAgreeStore = importDefault(5088) /* metro dependency 5088: ChannelSpoilerAgreeStore */; const stageInstanceStore = importDefault(1384) /* metro dependency 1384: StageInstanceStore */; const activeThreadsStore = importDefault(4790) /* metro dependency 4790: ActiveThreadsStore */; let value = require(1383) /* metro dependency 1383: ChannelRecord */; const env0_11 = value.isGuildTextChannelType; const env0_12 = value.isGuildVocalChannelType; const env0_13 = value.isReadableType; const env0_14 = value.isTextChannel; const categoryCollapseStore = importDefault(5090) /* metro dependency 5090: CategoryCollapseStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const collapsedVoiceChannelStore = importDefault(5091) /* metro dependency 5091: CollapsedVoiceChannelStore */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */; const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */; const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; value = require(661) /* metro dependency 661: Constants */; const env0_24 = value.AnalyticsObjectTypes; const env0_25 = value.AnalyticsObjects; const env0_26 = value.AnalyticsSections; const env0_27 = value.ChannelSettingsSections; const env0_28 = value.ChannelTypes; const env0_29 = value.InstantInviteSources; const env0_30 = value.NULL_STRING_GUILD_ID; const env0_31 = value.Permissions; const env0_32 = value.ZERO_STRING_GUILD_ID; const env0_33 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType; const env0_34 = (require(9696) /* metro dependency 9696: ChannelDetailsConstants */).ChannelDetailsNavigatorScreens; const env0_35 = (require(33) /* metro dependency 33 */).jsx; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const BADGE_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_BACKGROUND_DEFAULT; const env0_36 = Reflect.apply(createStyles, value, [{tagContainer: {backgroundColor: BADGE_BACKGROUND_DEFAULT}}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/ChannelLongPressActionSheet.tsx'); exports.default = ChannelLongPressActionSheet; } function _handleVoiceOrStageChannelConnectPress() { // fn#93070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:820, offset: 0x020a543b, size: 50 bytes, params: 1, frame: 14 return env0_4(_fun93072).apply(this, arguments); } function NewBadge_93073() { // fn#93073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:1211, offset: 0x020a550e, size: 74 bytes, params: 1, frame: 15 const styles = useStyles(); const NewTag = (require(1305) /* metro dependency 1305: native */).NewTag; return ; } function ChannelLongPressActionSheetConnected({channel, onClose}) { // fn#93074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:1317, offset: 0x020a5558, size: 1784 bytes, params: 2, frame: 53 var object2; var r12; var intl; const env0_3 = undefined; const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */; const CHANNEL_LONG_PRESS_MENU = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).CHANNEL_LONG_PRESS_MENU; const analyticsLocations = defaultImport(CHANNEL_LONG_PRESS_MENU).analyticsLocations; const guildId = channel.getGuildId(); const value4 = (require(11248) /* metro dependency 11248: FavoritesHooks */).useIsFavoritesGuildSelected(); const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun93075); const {canManageChannel, canCreateInstantInvite, canConnect, canModerateStage} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore], _fun93076); const value6 = (require(5102) /* metro dependency 5102: isOptInEnabled */).useOptInEnabledForGuild(guildId ?? NULL_STRING_GUILD_ID); const {isOptedIn, isParentOptedIn, isPinned} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserGuildSettingsStore], _fun93077); const value8 = (require(12154) /* metro dependency 12154: ChannelPinningExperiment */).useCanPinChannelsInGuild(guildId ?? NULL_STRING_GUILD_ID); const canPin = value8.canPin; const value10 = env0_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(isPinned ? [] : value8.pinningNewlyAvailable ? channel.isThread() || channel.isCategory() || (guildId == null || value4) ? [] : [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.PIN_CHANNEL_NEW_BADGE] : []), 2); const property = value10[0]; const property2 = value10[1]; const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent; const PIN_CHANNEL_NEW_BADGE = DismissibleContent.PIN_CHANNEL_NEW_BADGE; const value11 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore], _fun93078); const value12 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ActiveThreadsStore], _fun93079); const value13 = (require(566) /* metro dependency 566: flux */).useStateFromStores([CategoryCollapseStore], function() { return CategoryCollapseStore.isCollapsed(channel.parent_id); }); const value14 = (require(566) /* metro dependency 566: flux */).useStateFromStores([CollapsedVoiceChannelStore], function() { return CollapsedVoiceChannelStore.isCollapsed(channel.id); }); const value15 = (require(566) /* metro dependency 566: flux */).useStateFromStores([StageInstanceStore], function() { return StageInstanceStore.isLive(channel.id); }); const value16 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true); const value17 = (importDefault(9618) /* metro dependency 9618: useIsNsfwGated */)(channel); const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode; const value18 = DeveloperMode.useSetting(); const r14 = guild != null ? ((Component) => )(importDefault(6819) /* metro dependency 6819: GuildIcon */) : ((Avatar) => )((require(1305) /* metro dependency 1305: native */).Avatar); const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() { return UserStore.getCurrentUser(); }); const r36 = currentUser != null && channel.isOwner(currentUser.id); const value22 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore], function() { return UserGuildSettingsStore.isMessagesFavorite(channel.id); }); const value23 = (require(12155) /* metro dependency 12155: useInappropriateConversationsTiers */).useInappropriateConversationsTiers(channel); const r20 = value23?.isTier1 != null && !(value23 != null && value23.isTier1); const r19 = value23?.isTier2 != null && !(value23 != null && value23.isTier2); const value30 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ReplyNudgeStore], function() { return ReplyNudgeStore.isChannelNudged(channel.id); }); const value31 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelSpoilerAgreeStore], function() { return ChannelSpoilerAgreeStore.didAgree(channel.id); }); const value32 = (importDefault(11247) /* metro dependency 11247: useMobileChannelFavoriteActions */)(channel, 'ChannelLongPressActionSheet'); object2 = {channel: channel, canManageChannel: canManageChannel, canCreateInstantInvite: canCreateInstantInvite, canConnect: canConnect, developerMode: value18, isMuted: value11, isOwner: r36, hasThreads: value12, isNsfwGated: value17, isInCollapsedCategory: value13, isCollapsedVoiceChannel: value14, isLiveStageChannel: value15, canModerateStage: canModerateStage, isOptInEnabled: value6, isOptedIn: isOptedIn, isParentOptedIn: isParentOptedIn, isPinned: isPinned, canPin: canPin, pinDCShowNewBadge: property === PIN_CHANNEL_NEW_BADGE, pinDCMarkAsDismissed: property2, isMessagesFavorited: value22, canMarkAsTier1InappropriateConversation: r20, canMarkAsTier2InappropriateConversation: r19, isReplyNudged: value30, isSpoilerAgreed: value31, analyticsLocations: analyticsLocations, isFavoritesGuild: value4}; object2.isStaff = currentUser?.isStaff() === true; object2.favorites = value32; const value33 = ChannelLongPressActionSheetConnectedGetActionSheetButtons(object2); if (channel.isGroupDM()) { intl = (require(1244) /* metro dependency 1244: indexNative */).intl; r12 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.ABMKx3, {members: channel.recipients.length + 1}); } else { r12 = undefined; } env0_5.useEffect(_fun93123, [value33.length, value18, onClose]); const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider; const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet; const actionSheetProps = {showGradient: true, startExpanded: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()}; const ActionSheetIconHeader = (require(11251) /* metro dependency 11251: ActionSheetIconHeaderNative */).ActionSheetIconHeader; actionSheetProps.header = ; return ( {value33.map(_fun93124)} ); } function ChannelLongPressActionSheet({channelId, onClose}) { // fn#93127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:14552, offset: 0x020a81ef, size: 153 bytes, params: 2, frame: 18 const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() { return ChannelStore.getChannel(channelId); }); env0_5.useEffect(function() { if (channel == null) { onClose(); } }, [channel, onClose]); return channel != null ? : null; } function* _fun93072(a0) { // fn#93072, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:919, offset: 0x020a5478, size: 150 bytes, params: 2, frame: 17 if (true) { value = a0.isGuildStageVoice(); var binding = env2_0; var binding2 = env2_2; var value4 = binding(binding2[23]); if (value) { yield value4(binding2[22], binding2.paths); value = undefined; if (false) { return value; } value.connectAndOpen(a0); } else { yield value4(binding2[24], binding2.paths); value = undefined; if (false) { return value; } value.openGuildVoiceModal(a0, 'Channel List'); } } } function _fun93075() { // fn#93075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:1549, offset: 0x020a5c50, size: 27 bytes, params: 1, frame: 11 return GuildStore.getGuild(env0_2); } function _fun93076() { // fn#93076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:1610, offset: 0x020a5c6b, size: 156 bytes, params: 1, frame: 16 const object2 = {}; let can = PermissionStore.can; const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS; const channelBinding = channel; object2.canManageChannel = Reflect.apply(can, PermissionStore, [MANAGE_CHANNELS, channelBinding]); can = PermissionStore.can; const CREATE_INSTANT_INVITE = Permissions.CREATE_INSTANT_INVITE; object2.canCreateInstantInvite = Reflect.apply(can, PermissionStore, [CREATE_INSTANT_INVITE, channelBinding]); can = PermissionStore.can; const CONNECT = Permissions.CONNECT; object2.canConnect = Reflect.apply(can, PermissionStore, [CONNECT, channelBinding]); can = PermissionStore.can; const MODERATE_STAGE_CHANNEL_PERMISSIONS = (require(1387) /* metro dependency 1387: StageChannelPermissions */).MODERATE_STAGE_CHANNEL_PERMISSIONS; object2.canModerateStage = Reflect.apply(can, PermissionStore, [MODERATE_STAGE_CHANNEL_PERMISSIONS, channelBinding]); return object2; } function _fun93077() { // fn#93077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:1993, offset: 0x020a5d07, size: 142 bytes, params: 1, frame: 18 const isChannelOptedIn = UserGuildSettingsStore.isChannelOptedIn; const binding = env0_2; const channelBinding = channel; return {isOptedIn: Reflect.apply(isChannelOptedIn, UserGuildSettingsStore, [binding, channelBinding.id]), isParentOptedIn: channelBinding.parent_id != null && UserGuildSettingsStore.isChannelOptedIn(env0_2, channel.parent_id), isPinned: UserGuildSettingsStore.isFavorite(env0_2 ?? ZERO_STRING_GUILD_ID, channel.id)}; } function _fun93078() { // fn#93078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:2566, offset: 0x020a5d95, size: 37 bytes, params: 1, frame: 13 return UserGuildSettingsStore.isChannelMuted(env0_2, channel.id); } function _fun93079() { // fn#93079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:2633, offset: 0x020a5dba, size: 50 bytes, params: 1, frame: 14 return env0_2 != null && ActiveThreadsStore.hasThreadsForChannel(env0_2, channel.id); } function ChannelLongPressActionSheetConnectedGetActionSheetButtons({channel, canManageChannel, canCreateInstantInvite, canConnect, developerMode, isMuted, isOwner, hasThreads, isNsfwGated, isInCollapsedCategory, isCollapsedVoiceChannel, isLiveStageChannel, canModerateStage, isOptInEnabled, isOptedIn, isParentOptedIn, isPinned, canPin, pinDCShowNewBadge, pinDCMarkAsDismissed, isMessagesFavorited, canMarkAsTier1InappropriateConversation, canMarkAsTier2InappropriateConversation, isReplyNudged, isSpoilerAgreed, analyticsLocations, isFavoritesGuild, isStaff, favorites}) { // fn#93087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:3582, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons, offset: 0x020a5ebf, size: 5669 bytes, params: 2, frame: 52 var environment; var r30; var r22; var r12; var r6; var buttons; var push; var object9; var value2; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var object11; var object44; var value3; var object45; var value4; var object46; var object47; var value7; var object48; var object49; var object50; var object51; var object52; var object53; var object54; var object55; var object56; var object57; var object58; var object59; var object60; var object61; var object62; var object63; var object64; var isGuildStageVoice3; var object65; var object66; var object67; var object68; var object69; var object70; var object71; var isCategory5; var object72; var isCategory7; var object73; const items2 = []; const object74 = {sectionKey: 'dm', buttons: []}; if (channel.isDM()) { buttons = object74.buttons; push = buttons.push; object9 = {}; value2 = environment.__proto__; object9.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LYju5J); object9.IconComponent = (require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon; object9.onPress = onPress_93088; Reflect.apply(push, buttons, [object9]); if (!isFavoritesGuild) { buttons = object74.buttons; push = buttons.push; object11 = {}; object11.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jsvgc3); object11.IconComponent = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon; object11.onPress = onPress_93089; Reflect.apply(push, buttons, [object11]); } } const object75 = {sectionKey: 'gdm', buttons: []}; const object76 = {sectionKey: 'gdm-destructive', buttons: []}; if (channel.isGroupDM()) { if (!isFavoritesGuild) { buttons = object76.buttons; push = buttons.push; object44 = {}; value3 = environment.__proto__; object44.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['26C4oi']); object44.IconComponent = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon; object44.isDestructive = true; object44.onPress = onPress_93090; Reflect.apply(push, buttons, [object44]); } buttons = object75.buttons; push = buttons.push; object45 = {}; value4 = environment.__proto__; object45.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1r5E+m']); object45.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon; object45.onPress = onPress_93092; Reflect.apply(push, buttons, [object45]); if (isOwner) { buttons = object75.buttons; push = buttons.push; object46 = {}; object46.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OQ9MKu); object46.IconComponent = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon; object46.onPress = onPress_93093; Reflect.apply(push, buttons, [object46]); } } if (object74.buttons.length > 0) { items2.push(object74); } if (isFavoritesGuild && channel.guild_id != null && !channel.isCategory()) { push = items2.push; object47 = {}; value7 = environment.__proto__; object47.label = intl.string((importDefault(2970) /* metro dependency 2970: FavoritesGuildMessages */)['3KruG3']); object47.IconComponent = (require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon; object47.onPress = onPress_93094; Reflect.apply(push, items2, [{sectionKey: 'go-to-server', buttons: [object47]}]); } const value9 = (importDefault(11234) /* metro dependency 11234: buildFavoritesSectionButtonsNative */)(favorites); if (value9 != null) { items2.push({sectionKey: 'favorites', buttons: [value9]}); } const guildId = channel.getGuildId(); const object77 = {sectionKey: 'channel-actions', buttons: []}; if (canCreateInstantInvite && channel.type !== ChannelTypes.GUILD_CATEGORY) { buttons = object77.buttons; push = buttons.push; object48 = {}; object48.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VINpSK); object48.IconComponent = (require(10859) /* metro dependency 10859: GroupPlusIcon */).GroupPlusIcon; object48.onPress = function() { require(dependencyMap[45]).showInstantInviteActionSheet(channel, {source: InstantInviteSources.CONTEXT_MENU}); }; Reflect.apply(push, buttons, [object48]); } let r26 = isFavoritesGuild || guildId == null; r26 = !r26 ? channel.isThread() : r26; if (!r26) { if (!channel.isCategory() && (isPinned || canPin)) { buttons = object77.buttons; push = buttons.push; object49 = {}; string = intl.string; r30 = isPinned ? Reflect.apply(string, intl, [t.M5PWSf]) : Reflect.apply(string, intl, [t.RMpwZu]); object49.label = r30; object49.IconComponent = (require(11245) /* metro dependency 11245: PinIcon */).PinIcon; r30 = pinDCShowNewBadge ? : undefined; object49.trailing = r30; object49.onPress = onPress_93096; Reflect.apply(push, buttons, [object49]); } if (isOptInEnabled) { buttons = object77.buttons; push = buttons.push; object50 = {}; string = intl.string; if (isParentOptedIn) { object50.label = Reflect.apply(string, intl, [t.jNphKT]); object50.IconComponent = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon; object50.onPress = onPress_93097; Reflect.apply(push, buttons, [object50]); } else { object50.label = isOptedIn ? Reflect.apply(string, intl, [t['3zySTA']]) : Reflect.apply(string, intl, [t['9mysCh']]); object50.IconComponent = isOptedIn ? (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon : (require(11761) /* metro dependency 11761: PlusLargeIcon */).PlusLargeIcon; object50.onPress = onPress_93098; Reflect.apply(push, buttons, [object50]); } } } let r25 = isGuildTextChannelType(channel.type) || isGuildVocalChannelType(channel.type); r25 = !r25 ? channel.isForumLikeChannel() : r25; if (r25) { buttons = object77.buttons; push = buttons.push; object51 = {}; object51.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WqhZss); object51.IconComponent = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon; object51.isDestructive = false; object51.onPress = onPress_93099; Reflect.apply(push, buttons, [object51]); } if (!isFavoritesGuild && channel.isPrivate()) { buttons = object77.buttons; push = buttons.push; object52 = {}; string = intl.string; object52.label = isMessagesFavorited ? Reflect.apply(string, intl, [t.vDYmad]) : Reflect.apply(string, intl, [t['uKw3A+']]); object52.IconComponent = (require(11245) /* metro dependency 11245: PinIcon */).PinIcon; object52.onPress = onPress_93100; Reflect.apply(push, buttons, [object52]); } const object78 = {sectionKey: 'safety-warning-tooling', buttons: []}; if (canMarkAsTier1InappropriateConversation) { buttons = object78.buttons; push = buttons.push; object53 = {}; object53.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.EuzCET); object53.IconComponent = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon; object53.onPress = function() { require(dependencyMap[53]).markAsInappropriateConversation(channel.id, SafetyWarningTypes.INAPPROPRIATE_CONVERSATION_TIER_1); }; Reflect.apply(push, buttons, [object53]); } if (canMarkAsTier2InappropriateConversation) { buttons = object78.buttons; push = buttons.push; object54 = {}; object54.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['tBw/1i']); object54.IconComponent = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon; object54.onPress = function() { require(dependencyMap[53]).markAsInappropriateConversation(channel.id, SafetyWarningTypes.INAPPROPRIATE_CONVERSATION_TIER_2); }; Reflect.apply(push, buttons, [object54]); } if (object78.buttons.length > 0) { items2.push(object78); } if (isStaff) { if (developerMode) { if (channel.isDM()) { object55 = {sectionKey: 'message-request', buttons: []}; if (channel.isMessageRequest !== true) { buttons = object55.buttons; push = buttons.push; object56 = {}; object56.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.L6623r); object56.IconComponent = (require(12149) /* metro dependency 12149: InboxIcon */).InboxIcon; object56.onPress = onPress_93103; Reflect.apply(push, buttons, [object56]); } buttons = object55.buttons; push = buttons.push; object57 = {}; object57.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['85YWlY']); object57.IconComponent = (require(12149) /* metro dependency 12149: InboxIcon */).InboxIcon; object57.onPress = onPress_93104; Reflect.apply(push, buttons, [object57]); buttons = object55.buttons; if (buttons.length > 0) { items2.push(object55); } } } } if (object77.buttons.length > 0) { items2.push(object77); } const object79 = {sectionKey: 'notifications', buttons: []}; let r7 = isReadableType(channel.type) || channel.isCategory(); r7 = !r7 ? channel.isForumLikeChannel() : r7; if (r7) { buttons = object79.buttons; push = buttons.push; object58 = {}; object58.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.e6RscS); object58.IconComponent = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon; object58.onPress = function() { require(dependencyMap[57]).ackChannel(channel, {section: AnalyticsSections.CHANNEL_ACTION_SHEET, object: AnalyticsObjects.MARK_CHANNEL_AS_READ_BUTTON, objectType: AnalyticsObjectTypes.ACK_MANUAL}); }; Reflect.apply(push, buttons, [object58]); } if (channel.isPrivate() && isReplyNudged) { buttons = object79.buttons; push = buttons.push; object59 = {}; object59.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.q62UVy); object59.IconComponent = (require(11923) /* metro dependency 11923: ChatXIcon */).ChatXIcon; object59.onPress = onPress_93106; Reflect.apply(push, buttons, [object59]); } if (isTextChannel(channel.type)) { string = intl.string; if (isMuted) { r22 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.olaBeG) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['s5/5fm']) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Cq/TzF']) : Reflect.apply(string, intl, [t.OYefme]); buttons = object79.buttons; push = buttons.push; object61 = {label: r22}; object61.IconComponent = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon; object61.onPress = function() { var defaultImport = importDefault(dependencyMap[62]); var channelBinding = channel; var value3 = channelBinding.getGuildId(); var id = channelBinding.id; var object = {}; var value4 = !isMuted; object.muted = value4; var NotificationLabel = require(dependencyMap[63]).NotificationLabel; defaultImport.updateChannelOverrideSettings(value3, id, object, NotificationLabel.muted(value4)); }; Reflect.apply(push, buttons, [object61]); } else { r26 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pNMCg2) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LO3kaK) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bUUd8q) : Reflect.apply(string, intl, [t.tbeRRJ]); buttons = object79.buttons; push = buttons.push; object60 = {label: r26}; object60.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon; object60.onPress = onPress_93108; Reflect.apply(push, buttons, [object60]); } } else if (channel.isCategory()) { string = intl.string; if (isMuted) { r22 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.olaBeG) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['s5/5fm']) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Cq/TzF']) : Reflect.apply(string, intl, [t.OYefme]); buttons = object79.buttons; push = buttons.push; object61 = {label: r22}; object61.IconComponent = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon; object61.onPress = onPress_93107; Reflect.apply(push, buttons, [object61]); } else { r26 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pNMCg2) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LO3kaK) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bUUd8q) : Reflect.apply(string, intl, [t.tbeRRJ]); buttons = object79.buttons; push = buttons.push; object60 = {label: r26}; object60.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon; object60.onPress = onPress_93108; Reflect.apply(push, buttons, [object60]); } } else if (channel.isForumLikeChannel()) { string = intl.string; if (isMuted) { r22 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.olaBeG) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['s5/5fm']) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Cq/TzF']) : Reflect.apply(string, intl, [t.OYefme]); buttons = object79.buttons; push = buttons.push; object61 = {label: r22}; object61.IconComponent = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon; object61.onPress = onPress_93107; Reflect.apply(push, buttons, [object61]); } else { r26 = channel.isCategory() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pNMCg2) : channel.isDM() || channel.isGroupDM() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LO3kaK) : channel.isThread() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bUUd8q) : Reflect.apply(string, intl, [t.tbeRRJ]); buttons = object79.buttons; push = buttons.push; object60 = {label: r26}; object60.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon; object60.onPress = onPress_93108; Reflect.apply(push, buttons, [object60]); } } r7 = isGuildTextChannelType(channel.type) || channel.isCategory(); r7 = !r7 ? channel.isGuildStageVoice() : r7; r7 = !r7 ? channel.isForumLikeChannel() : r7; if (r7) { buttons = object79.buttons; push = buttons.push; object62 = {}; object62.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss); object62.IconComponent = (require(11241) /* metro dependency 11241: ChannelNotificationIcon */).ChannelNotificationIcon; object62.disableColor = true; object62.onPress = onPress_93109; Reflect.apply(push, buttons, [object62]); } if (object79.buttons.length > 0) { items2.push(object79); } const object80 = {sectionKey: 'threads', buttons: []}; r7 = channel.isThread() || channel.isForumLikeChannel(); r7 = !r7 ? !hasThreads : r7; r7 = !r7 ? isNsfwGated : r7; if (!r7) { buttons = object80.buttons; push = buttons.push; object63 = {}; object63.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.B2panI); object63.IconComponent = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon; object63.onPress = onPress_93110; Reflect.apply(push, buttons, [object63]); } if (object80.buttons.length > 0) { items2.push(object80); } const object81 = {sectionKey: 'voice', buttons: []}; if (isGuildVocalChannelType(channel.type) && !isInCollapsedCategory) { buttons = object81.buttons; push = buttons.push; object64 = {}; string = intl.string; object64.label = isCollapsedVoiceChannel ? Reflect.apply(string, intl, [t.JYF2Oa]) : Reflect.apply(string, intl, [t.LxzNiu]); object64.IconComponent = (require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon; object64.onPress = onPress_93111; Reflect.apply(push, buttons, [object64]); } if (channel.isGuildVocal()) { isGuildStageVoice3 = channel.isGuildStageVoice(); buttons = object81.buttons; push = buttons.push; object65 = {}; string = intl.string; if (isGuildStageVoice3) { object65.label = Reflect.apply(string, intl, [t['7vb2cc']]); object65.IconComponent = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon; object65.onPress = function() { handleVoiceOrStageChannelConnectPress(channel); }; Reflect.apply(push, buttons, [object65]); buttons = object81.buttons; push = buttons.push; object66 = {}; object66.label = intl.string(t.ZXxLQg); object66.IconComponent = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon; object66.onPress = onPress_93113; Reflect.apply(push, buttons, [object66]); } else { object65.label = Reflect.apply(string, intl, [t.ZXxLQg]); object65.IconComponent = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon; object65.onPress = onPress_93114; Reflect.apply(push, buttons, [object65]); } } if (channel.isGuildStageVoice() && isLiveStageChannel && canModerateStage) { buttons = object81.buttons; push = buttons.push; object67 = {}; object67.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.saZaRb); object67.IconComponent = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon; object67.isDestructive = true; object67.onPress = onPress_93115; Reflect.apply(push, buttons, [object67]); } if (channel.isGuildStageVoice() && isLiveStageChannel && canConnect) { buttons = object81.buttons; push = buttons.push; object68 = {}; object68.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+78Pfm']); object68.IconComponent = (require(8665) /* metro dependency 8665: FlagIcon */).FlagIcon; object68.isDestructive = true; object68.onPress = onPress_93118; Reflect.apply(push, buttons, [object68]); } if (object81.buttons.length > 0) { items2.push(object81); } if (channel.isSpoilerChannel()) { if (isSpoilerAgreed) { object69 = {sectionKey: 'spoiler', buttons: []}; buttons = object69.buttons; push = buttons.push; object70 = {}; object70.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ix2UVZ); object70.IconComponent = (require(8998) /* metro dependency 8998: EyeSlashIcon */).EyeSlashIcon; object70.onPress = onPress_93119; Reflect.apply(push, buttons, [object70]); items2.push(object69); } } const object82 = {sectionKey: 'admin-actions', buttons: []}; if (canManageChannel) { buttons = object82.buttons; push = buttons.push; object71 = {}; isCategory5 = channel.isCategory(); string = intl.string; r12 = isCategory5 ? Reflect.apply(string, intl, [t.zdPFs9]) : Reflect.apply(string, intl, [t['3gUsJb']]); object71.label = r12; object71.IconComponent = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon; object71.onPress = onPress_93120; Reflect.apply(push, buttons, [object71]); r6 = isGuildTextChannelType(channel.type) || channel.isForumLikeChannel(); r6 = !r6 ? channel.isGuildVoice() : r6; r6 = !r6 ? channel.isCategory() : r6; if (r6) { buttons = object82.buttons; push = buttons.push; object72 = {}; isCategory7 = channel.isCategory(); string = intl.string; r12 = isCategory7 ? Reflect.apply(string, intl, [t['fUYU+j']]) : Reflect.apply(string, intl, [t.dEaPc4]); object72.label = r12; r12 = channel.isCategory() ? (require(11761) /* metro dependency 11761: PlusLargeIcon */).PlusLargeIcon : (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon; object72.IconComponent = r12; object72.onPress = onPress_93121; Reflect.apply(push, buttons, [object72]); } } if (developerMode) { buttons = object82.buttons; push = buttons.push; object73 = {}; object73.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gFHI3k); object73.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon; object73.onPress = onPress_93122; Reflect.apply(push, buttons, [object73]); } if (object82.buttons.length > 0) { items2.push(object82); } if (object75.buttons.length > 0) { items2.push(object75); } if (object76.buttons.length > 0) { items2.push(object76); } return items2; } function _fun93124(a0) { // fn#93124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:14054, offset: 0x020a80b3, size: 97 bytes, params: 2, frame: 18 const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; const Group = ActionSheetRow.Group; return ( {a0.buttons.map(_fun93125)} ); } function getActionSheetButtonsOnPress() { // fn#93088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:4302, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a74e4, size: 73 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */; const object2 = {}; const channelBinding = channel; object2.userId = channelBinding.getRecipientId(); object2.channelId = channelBinding.id; object2.sourceAnalyticsLocations = analyticsLocations; value(object2); } function getActionSheetButtonsOnPress_93089() { // fn#93089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:4498, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a752d, size: 74 bytes, params: 1, frame: 16 const value = environment.__proto__.__proto__; const defaultImport = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */; const closePrivateChannel = defaultImport.closePrivateChannel; const channelBinding = channel; Reflect.apply(closePrivateChannel, defaultImport, [channelBinding.id, SelectedChannelStore.getCurrentlySelectedChannelId() === channelBinding.id]); } function getActionSheetButtonsOnPress_93090() { // fn#93090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:4809, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7577, size: 443 bytes, params: 1, frame: 23 var r6; var r7; var value5; const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */; const computeChannelName = useChannelNameModule.computeChannelName; const channelBinding = channel; const channelName = Reflect.apply(computeChannelName, useChannelNameModule, [channelBinding, UserStore, RelationshipStore]); const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const formatToPlainString = intl.formatToPlainString; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const value3 = Reflect.apply(formatToPlainString, intl, [t.hJ5Ap4, {name: channelName}]); const format = intl.format; const SSIVOu = t.SSIVOu; if (channelBinding.isManaged()) { value5 = intl.formatToPlainString(t.hVGjEW, {name: channelName}); r6 = intl.format(t.IK1Qvs, {name: channelName}); r7 = value5; } else { r6 = Reflect.apply(format, intl, [SSIVOu, {name: channelName}]); r7 = value3; } (importDefault(4647) /* metro dependency 4647: AlertActionCreators */).show({title: r7, body: r6, confirmText: intl.string(t.p89ACt), cancelText: intl.string(t.gm1Vej), onConfirm: onConfirm_93091}); } function getActionSheetButtonsOnPress_93092() { // fn#93092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:5437, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a777c, size: 50 bytes, params: 1, frame: 12 const value = environment.__proto__.__proto__; (importDefault(9879) /* metro dependency 9879: showChatGDMCustomizeActionSheet */)({channelId: channel.id}); } function getActionSheetButtonsOnPress_93093() { // fn#93093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:5575, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a77ae, size: 91 bytes, params: 1, frame: 15 let value = environment.__proto__.__proto__; const defaultImport = importDefault(dependencyMap[38]); const pushLazy = defaultImport.pushLazy; value = require(dependencyMap[23]); value = value(dependencyMap[39], dependencyMap.paths); Reflect.apply(pushLazy, defaultImport, [value, {channelId: channel.id}]); } function getActionSheetButtonsOnPress_93094() { // fn#93094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:5846, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7809, size: 56 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = require(1230) /* metro dependency 1230: router_utils */; const transitionToGuild = value.transitionToGuild; const channelBinding = channel; Reflect.apply(transitionToGuild, value, [channelBinding.guild_id, channelBinding.id]); } function getActionSheetButtonsOnPress_93096() { // fn#93096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:6477, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a787f, size: 270 bytes, params: 1, frame: 22 var name; var params; var pinDCMarkAsDismissedBinding; var value2; var rootNavigationRef; var currentRoute; var currentRoute2; if (pinDCShowNewBadge) { pinDCMarkAsDismissedBinding = pinDCMarkAsDismissed; value2 = environment.__proto__.__proto__; pinDCMarkAsDismissedBinding(ContentDismissActionType.TAKE_ACTION); } const value4 = undefined; const optInChannelsActionCreatorsModule = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */; const setIsFavorite = optInChannelsActionCreatorsModule.setIsFavorite; const binding = env0_8; const id = channel.id; const isPinnedBinding = isPinned; const CHANNEL_ACTION_SHEET = AnalyticsSections.CHANNEL_ACTION_SHEET; Reflect.apply(setIsFavorite, optInChannelsActionCreatorsModule, [binding, id, !isPinnedBinding, {section: CHANNEL_ACTION_SHEET}]); if (!isPinnedBinding) { rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef(); if (rootNavigationRef != null) { currentRoute = rootNavigationRef.getCurrentRoute(); name = currentRoute == null ? value4 : currentRoute.name; currentRoute2 = rootNavigationRef.getCurrentRoute(); params = currentRoute2 == null ? value4 : currentRoute2.params; if (name === 'guilds' && (params == null ? value4 : params.guildId) === env0_8) { rootNavigationRef.setParams({jumpToChannelId: channel.id}); } } } return value4; } function getActionSheetButtonsOnPress_93097() { // fn#93097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:6925, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a798d, size: 97 bytes, params: 1, frame: 17 var value2; var moduleValue; if (channel.parent_id != null) { value2 = environment.__proto__.__proto__; moduleValue = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */; moduleValue.setOptInChannel(env0_8, channel.parent_id, false, {section: AnalyticsSections.CHANNEL_ACTION_SHEET}); } } function getActionSheetButtonsOnPress_93098() { // fn#93098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:7204, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a79ee, size: 83 bytes, params: 1, frame: 19 const optInChannelsActionCreatorsModule = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */; const setOptInChannel = optInChannelsActionCreatorsModule.setOptInChannel; const binding = env0_8; const id = channel.id; const isOptedInBinding = isOptedIn; const CHANNEL_ACTION_SHEET = AnalyticsSections.CHANNEL_ACTION_SHEET; Reflect.apply(setOptInChannel, optInChannelsActionCreatorsModule, [binding, id, !isOptedInBinding, {section: CHANNEL_ACTION_SHEET}]); } function getActionSheetButtonsOnPress_93099() { // fn#93099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:7449, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7a41, size: 56 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = require(12148) /* metro dependency 12148: ChannelActionSheetUtils */; const copyGuildChannelOrThreadLink = value.copyGuildChannelOrThreadLink; const channelBinding = channel; Reflect.apply(copyGuildChannelOrThreadLink, value, [channelBinding.guild_id, channelBinding.id]); } function getActionSheetButtonsOnPress_93100() { // fn#93100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:7675, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7a79, size: 58 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = require(6609) /* metro dependency 6609: OptInChannelsActionCreators */; value.setMessagesFavorite(channel.id, !isMessagesFavorited); } function getActionSheetButtonsOnPress_93103() { // fn#93103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:8401, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7b2d, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = require(9738) /* metro dependency 9738: MessageRequestActionCreators */; value.markAsMessageRequest(channel.id); } function getActionSheetButtonsOnPress_93104() { // fn#93104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:8549, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7b5f, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = require(9738) /* metro dependency 9738: MessageRequestActionCreators */; value.clearMessageRequestState(channel.id); } function getActionSheetButtonsOnPress_93106() { // fn#93106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:9109, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7bee, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = require(12151) /* metro dependency 12151: ReplyNudgeActionCreators */; value.clearReplyNudge(channel.id); } function getActionSheetButtonsOnPress_93107() { // fn#93107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:9504, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7c20, size: 118 bytes, params: 1, frame: 21 const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */; const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings; const channelBinding = channel; const guildId = channelBinding.getGuildId(); const id = channelBinding.id; const object2 = {}; const value4 = !isMuted; object2.muted = value4; const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel; Reflect.apply(updateChannelOverrideSettings, defaultImport, [guildId, id, object2, NotificationLabel.muted(value4)]); } function getActionSheetButtonsOnPress_93108() { // fn#93108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:9924, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7c96, size: 120 bytes, params: 1, frame: 15 const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef(); if (rootNavigationRef != null && rootNavigationRef.isReady()) { rootNavigationRef.navigate('sidebar', {channelId: channel.id, initialRouteName: ChannelDetailsNavigatorScreens.MUTE, source: 'channel-long-press-sheet'}); } } function getActionSheetButtonsOnPress_93109() { // fn#93109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:10296, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7d0e, size: 80 bytes, params: 1, frame: 15 let value = environment.__proto__.__proto__; const defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */; const setSection = defaultImport.setSection; const NOTIFICATIONS = ChannelSettingsSections.NOTIFICATIONS; Reflect.apply(setSection, defaultImport, [NOTIFICATIONS]); value = defaultImport; value.open(channel.id); } function getActionSheetButtonsOnPress_93110() { // fn#93110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:10582, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7d5e, size: 39 bytes, params: 1, frame: 11 const value = environment.__proto__.__proto__; (importDefault(9695) /* metro dependency 9695: showThreadBrowserModal */)(channel); } function getActionSheetButtonsOnPress_93111() { // fn#93111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:10840, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7d85, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = importDefault(12152) /* metro dependency 12152: ChannelCollapseActionCreators */; value.update(channel.id); } function getActionSheetButtonsOnPress_93113() { // fn#93113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:11165, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7dce, size: 108 bytes, params: 1, frame: 15 let value = environment.__proto__.__proto__; importDefault(dependencyMap[71]).hideActionSheet(); const defaultImport2 = importDefault(dependencyMap[38]); const pushLazy = defaultImport2.pushLazy; value = require(dependencyMap[23]); value = value(dependencyMap[72], dependencyMap.paths); Reflect.apply(pushLazy, defaultImport2, [value, {channel: channel}]); } function getActionSheetButtonsOnPress_93114() { // fn#93114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:11356, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7e3a, size: 62 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; const handleVoiceOrStageChannelConnectPressBinding = handleVoiceOrStageChannelConnectPress; const channelBinding = channel; handleVoiceOrStageChannelConnectPressBinding(channelBinding); value = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */; value.updateChatOpen(channelBinding.id, true); } function getActionSheetButtonsOnPress_93115() { // fn#93115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:11595, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7e78, size: 29 bytes, params: 1, frame: 11 return env2_4(_fun93117)(); } function getActionSheetButtonsOnPress_93118() { // fn#93118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:11822, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7ef7, size: 45 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = require(8153) /* metro dependency 8153: ReportModals */; value.showReportModalForStageChannel(channel); } function getActionSheetButtonsOnPress_93119() { // fn#93119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:12076, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7f24, size: 50 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */; value.clearSpoilerAgree(channel.id); } function getActionSheetButtonsOnPress_93120() { // fn#93120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:12349, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7f56, size: 80 bytes, params: 1, frame: 15 let value = environment.__proto__.__proto__; const defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */; const setSection = defaultImport.setSection; const OVERVIEW = ChannelSettingsSections.OVERVIEW; Reflect.apply(setSection, defaultImport, [OVERVIEW]); value = defaultImport; value.open(channel.id); } function getActionSheetButtonsOnPress_93121() { // fn#93121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:12676, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a7fa6, size: 155 bytes, params: 1, frame: 20 let value = environment.__proto__.__proto__; value = undefined; const defaultImport = importDefault(9087) /* metro dependency 9087: CreateChannelModalActionCreators */; const open = defaultImport.open; let channelBinding = channel; const type = channelBinding.isCategory() ? value : channel.type; channelBinding = channel; const guildId = channelBinding.getGuildId(); const isCategory2 = channelBinding.isCategory(); channelBinding = channel; const r2 = isCategory2 ? channelBinding.id : channelBinding.parent_id; channelBinding = channel; Reflect.apply(open, defaultImport, [type, guildId, r2, channelBinding.isCategory() ? value : channel.id]); return value; } function getActionSheetButtonsOnPress_93122() { // fn#93122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:12904, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress, offset: 0x020a8041, size: 72 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */; value.copy(channel.id); (require(3856) /* metro dependency 3856: ToastUtils */).presentIdCopied(); } function _fun93125({label, IconComponent, iconStyle, trailing, isDestructive, onPress, disableColor}, a1) { // fn#93125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:14127, offset: 0x020a8114, size: 181 bytes, params: 3, frame: 25 var environment; const r14 = isDestructive ? 'danger' : 'default'; value = environment.__proto__.__proto__; const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; const Icon = ActionSheetRow2.Icon; return ( } trailing={trailing} onPress={function() { if (onPress != null) { onPress(); } onClose(); }} key={a1} /> ); } function onPressOnConfirm_93091() { // fn#93091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:5250, owner: ChannelLongPressActionSheetConnected.getActionSheetButtons.onPress.onConfirm, offset: 0x020a7732, size: 74 bytes, params: 1, frame: 16 const value = environment.__proto__.__proto__.__proto__; const defaultImport = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */; const closePrivateChannel = defaultImport.closePrivateChannel; const channelBinding = channel; Reflect.apply(closePrivateChannel, defaultImport, [channelBinding.id, SelectedChannelStore.getCurrentlySelectedChannelId() === channelBinding.id]); } function* _fun93117() { // fn#93117, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12316:11602, offset: 0x020a7ea0, size: 87 bytes, params: 1, frame: 14 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__; var binding = env4_0; var binding2 = env4_2; yield binding(binding2[23])(binding2[74], binding2.paths); value = undefined; if (false) { return value; } var openEndStageModal = value.openEndStageModal; value = environment.__proto__.__proto__; openEndStageModal(channel); } }