// Module ID: 13197 // Function ID: 13198 // Name: UserProfileOverflowMenu // Dependencies: [32, 19, 17, 4622, 1957, 4255, 2011, 7281, 1074, 4627, 11476, 21, 504, 13198, 13204, 13082, 8275, 7235, 7255, 8271, 8299, 8300, 13083, 13205, 13206, 9264, 9265, 7261, 8859, 1250, 8264, 1114, 4619, 4573, 4809, 13215, 1896, 9132, 11478, 8490, 11477, 8720, 1115, 12713, 1242, 9272, 4813, 1935, 7262, 4451, 4304, 7268, 13085, 4343, 8757, 13214, 8172, 8763, 576, 13216, 2] // Exports: default // Module 13197 (UserProfileOverflowMenu) import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */; import asyncRequireImpl from "asyncRequireImpl" /* 1896 */; import ToastUtils from "ToastUtils" /* 4304 */; import UserUtilsDefault from "UserUtils" /* 4451 */; import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4573 */; import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4619 */; import ModalActionCreatorsDefault from "ModalActionCreators" /* 4809 */; import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4813 */; import ClipboardUtils from "ClipboardUtils" /* 7262 */; import showUserProfileActionSheetDefault from "showUserProfileActionSheet" /* 8264 */; import SafetyToastsActionCreatorsDefault from "SafetyToastsActionCreators" /* 8490 */; import ReportModals from "ReportModals" /* 8720 */; import RelationshipActionCreatorsDefault from "RelationshipActionCreators" /* 9132 */; import CallActionCreatorsDefault from "CallActionCreators" /* 9272 */; import UserProfileAlertUtils from "UserProfileAlertUtils" /* 12713 */; import openUserContextMenuCommandsDefault from "openUserContextMenuCommands" /* 13085 */; import GuildInviteUtils from "GuildInviteUtils" /* 13198 */; import openShopThisLookActionSheet from "openShopThisLookActionSheet" /* 13206 */; import ShopThisLookAnalyticsUtils from "ShopThisLookAnalyticsUtils" /* 13214 */; import _slicedToArray from "module_32" /* 32 */; import noop from "module_19" /* 19 */; import ChannelRTCStore from "ChannelRTCStore" /* 4622 */; import ChannelStore from "ChannelStore" /* 1957 */; import RelationshipStore from "RelationshipStore" /* 4255 */; import SelectedChannelStore from "SelectedChannelStore" /* 2011 */; const discord_common_AnalyticsUtils = tmp3(1250); require = fn; const View = fn(17).View; const UserProfileThemeTypes = fn(7281).UserProfileThemeTypes; const Constants = fn(1074); ({ AnalyticEvents: closure_11, AVATAR_MAX_SIZE: closure_12, ChannelTypesSets: map1, NOOP: closure_14, RelationshipTypes: closure_15 } = Constants); const ParticipantTypes = fn(4627).ParticipantTypes; const RestrictionConfirmationConstants = fn(11476); ({ BLOCK_CONFIRMATION_ACTION_SHEET_KEY: closure_17, IGNORE_CONFIRMATION_ACTION_SHEET_KEY: closure_18 } = RestrictionConfirmationConstants); const jsxProd = fn(21); ({ jsx: closure_19, jsxs: closure_20 } = jsxProd); const size = fn(2); let result = size.fileFinishedImporting("modules/user_profile/native/UserProfileOverflowMenu.tsx"); export default function UserProfileOverflowMenu(user) { user = user.user; ({ currentUser, displayProfile } = user); const channel = user.channel; let context; let trackUserProfileAction; let analyticsLocations; let newestAnalyticsLocation; let guildId; let canRing; let enabled; let userIsInCall; let showUserProfile; let id; let guildId1; closure_17 = undefined; let tmp2 = channel; let items = [analyticsLocations]; const stateFromStoresObject = user(channel[12]).useStateFromStoresObject(items, () => ({ relationshipType: RelationshipStore.getRelationshipType(user.id), isIgnored: RelationshipStore.isIgnored(user.id) })); ({ relationshipType, isIgnored } = stateFromStoresObject); let obj = user(channel[12]); let items1 = [newestAnalyticsLocation, trackUserProfileAction]; const stateFromStoresObject1 = user(channel[12]).useStateFromStoresObject(items1, () => ({ selectedChannel: trackUserProfileAction.getChannel(newestAnalyticsLocation.getChannelId()), selectedVoiceChannelId: newestAnalyticsLocation.getVoiceChannelId(), selectedVoiceChannel: trackUserProfileAction.getChannel(newestAnalyticsLocation.getVoiceChannelId()) })); const selectedChannel = stateFromStoresObject1.selectedChannel; const selectedVoiceChannelId = stateFromStoresObject1.selectedVoiceChannelId; const selectedVoiceChannel = stateFromStoresObject1.selectedVoiceChannel; let obj2 = user(channel[12]); let obj3 = user(channel[13]); [arr3, arr4] = selectedChannel(user(channel[13]).useServerInviteRows(user.id), 2); const tmp5 = selectedChannel(user(channel[13]).useServerInviteRows(user.id), 2); let tmp8 = displayProfile(channel[14])(user.id); if (tmp8) { tmp8 = arr3.length + arr4.length > 0; } const tmp6 = null != analyticsLocations.getNickname(user.id); let result = user(tmp2[15]).isIarUserReportingEnabled("User Profile Options - Mobile"); const tmpResult = user(tmp2[15]); const userProfileAnalyticsContext = user(tmp2[16]).useUserProfileAnalyticsContext(); context = userProfileAnalyticsContext.context; trackUserProfileAction = userProfileAnalyticsContext.trackUserProfileAction; const tmpResult8 = user(tmp2[16]); const tmp7ResultResult = displayProfile(tmp2[17])(displayProfile(tmp2[18]).USER_PROFILE_OVERFLOW_MENU); analyticsLocations = tmp7ResultResult.analyticsLocations; newestAnalyticsLocation = tmp7ResultResult.newestAnalyticsLocation; let guild_id; const tmp7Result = displayProfile(tmp2[17]); if (channel != null) { guild_id = channel.guild_id; } const tmp7Result1Result = displayProfile(tmp2[19])(user.id, guild_id); guildId = undefined; if (displayProfile != null) { guildId = displayProfile.guildId; } const tmp7Result5 = displayProfile(tmp2[19]); const isShopThisLookMobileEnabled = user(tmp2[20]).useIsShopThisLookMobileEnabled("UserProfileOverflowMenu"); const tmpResult9 = user(tmp2[20]); const equippedCollectibleSkuIds = user(tmp2[21]).useEquippedCollectibleSkuIds(user.id, guildId); const ref = selectedVoiceChannelId.useRef(null); let obj8 = selectedVoiceChannelId; const tmpResult10 = user(tmp2[21]); const tmp19 = displayProfile(tmp2[22])(); const shopThisLookMarketing = user(tmp2[23]).useShopThisLookMarketing(user.id, guildId, isShopThisLookMobileEnabled); const items2 = [user.id, guildId]; ({ isVisible, markAsDismissed } = shopThisLookMarketing); const callback = selectedVoiceChannelId.useCallback(() => { const result = openShopThisLookActionSheet.openShopThisLookActionSheet({ userId: user.id, guildId }); }, items2); const tmpResult11 = user(tmp2[23]); canRing = user(tmp2[25]).useCanRing(user, "UserProfileOverflowMenu", selectedVoiceChannelId); const tmpResult12 = user(tmp2[25]); let guild_id1; if (selectedVoiceChannel != null) { guild_id1 = selectedVoiceChannel.guild_id; } enabled = displayProfile(tmp2[26]).useExperiment({ guildId: guild_id1, location: "UserProfileOverflowMenu" }).enabled; const tmp7Result6 = displayProfile(tmp2[26]); const tidaWebformEnabled = displayProfile(tmp2[27]).useExperiment({ location: "UserProfileOverflowMenu" }, { autoTrackExposure: false }).tidaWebformEnabled; const tmp7Result7 = displayProfile(tmp2[27]); const items3 = [context]; const stateFromStoresObject2 = user(tmp2[12]).useStateFromStoresObject(items3, () => { let tmp = canRing; if (canRing) { tmp = null != selectedVoiceChannelId; } let participant = null; if (tmp) { participant = ChannelRTCStore.getParticipant(selectedVoiceChannelId, user.id); } const obj = { userIsInCall: null != participant, isUserRinging: null }; let ringing = null != participant; if (ringing) { ringing = participant.type === ParticipantTypes.USER; } if (ringing) { ringing = participant.ringing; } obj.isUserRinging = ringing; return obj; }); userIsInCall = stateFromStoresObject2.userIsInCall; if (canRing) { canRing = null != selectedVoiceChannelId; } if (canRing) { let isUserRinging = !userIsInCall; if (userIsInCall) { isUserRinging = stateFromStoresObject2.isUserRinging; } canRing = isUserRinging; } let obj4 = { type: null, name: null, properties: null }; const tmpResult13 = user(tmp2[12]); obj4.type = user(tmp2[29]).ImpressionTypes.MENU; obj4.name = user(tmp2[29]).ImpressionNames.RING_TO_GUILD_VC_MENU_ITEM_SHOWN; const obj5 = { voice_channel_id: selectedVoiceChannelId, voice_guild_id: null }; let guild_id2; if (selectedVoiceChannel != null) { guild_id2 = selectedVoiceChannel.guild_id; } obj5.voice_guild_id = guild_id2; obj4.properties = obj5; if (enabled) { enabled = canRing; } const items4 = [user.id]; displayProfile(tmp2[28])(obj4, { disableTrack: !enabled }, items4); const items5 = [user.id, , , ]; let id1; if (channel != null) { id1 = channel.id; } items5[1] = id1; items5[2] = context; items5[3] = analyticsLocations; showUserProfile = obj8.useCallback((showGuildProfile) => { const obj = {}; const merged = Object.assign(context); obj.showGuildProfile = showGuildProfile; obj.userId = user.id; id = undefined; if (channel != null) { id = channel.id; } obj.channelId = id; obj.sourceAnalyticsLocations = analyticsLocations; obj.ignoreBlockedSpeedBump = true; showUserProfileActionSheetDefault(obj); }, items5); id = user.id; guildId1 = undefined; if (channel != null) { guildId1 = channel.getGuildId(); } let tmp31 = isShopThisLookMobileEnabled; if (isShopThisLookMobileEnabled) { tmp31 = equippedCollectibleSkuIds.length > 0; } closure_17 = tmp31; let guildId2; if (displayProfile != null) { guildId2 = displayProfile.guildId; } const items6 = []; if (null != guildId2) { let obj7 = { label: null, action: null }; let intl = tmp(tmp2[31]).intl; obj7.label = intl.string(tmp(tmp2[31]).t.GISTta); obj7.action = function action() { trackUserProfileAction({ action: "PRESS_VIEW_MAIN_PROFILE", analyticsLocations }); showUserProfile(false); }; items6.push(obj7); } let guildId3; if (tmp7Result1Result != null) { guildId3 = tmp7Result1Result.guildId; } let tmp35 = null != guildId3; if (tmp35) { let guildId4; if (displayProfile != null) { guildId4 = displayProfile.guildId; } tmp35 = null == guildId4; } if (tmp35) { let obj9 = { label: null, action: null }; let intl2 = tmp(tmp2[31]).intl; obj9.label = intl2.string(tmp(tmp2[31]).t.DisZzB); obj9.action = function action() { trackUserProfileAction({ action: "PRESS_VIEW_SERVER_PROFILE", analyticsLocations }); showUserProfile(); }; items6.push(obj9); } const items7 = []; if (currentUser.id !== id) { let tmp38 = null != channel && !channel.isThread() && channel.isOwner(currentUser.id); if (tmp38) { const recipients = channel.recipients; let hasItem; if (recipients != null) { hasItem = recipients.includes(id); } tmp38 = hasItem; } if (tmp38) { const obj10 = { label: null, variant: "destructive", action: null }; let intl3 = tmp(tmp2[31]).intl; obj10.label = intl3.string(tmp(tmp2[31]).t["n5zMI+"]); obj10.action = function action() { ChannelActionCreatorsDefault.removeRecipient(channel.id, id); ActionSheetActionCreatorsDefault.hideActionSheet(); }; items7.push(obj10); } if (relationshipType !== id.FRIEND) { if (tmp31) { const obj11 = { label: null, action: null }; let intl5 = tmp(tmp2[31]).intl; obj11.label = intl5.string(tmp(tmp2[31]).t.xNdRDO); obj11.action = function action() { const result = openShopThisLookActionSheet.openShopThisLookActionSheet({ userId: id, guildId }); }; items6.push(obj11); } if (isIgnored) { if (!tmp43) { const obj12 = { label: null, action: null }; const intl6 = tmp(tmp2[31]).intl; obj12.label = intl6.string(tmp(tmp2[31]).t["8wXU9B"]); obj12.action = function action() { trackUserProfileAction({ action: "UNIGNORE", analyticsLocations }); id = undefined; if (channel != null) { id = channel.id; } RelationshipActionCreatorsDefault.unignoreUser(id, newestAnalyticsLocation, id); showUserProfile(); }; items7.push(obj12); } const push = items7.push; if (tmp43) { const obj13 = { label: null, action: null }; const intl12 = tmp(tmp2[31]).intl; obj13.label = intl12.string(tmp(tmp2[31]).t.XyHpKH); obj13.action = function action() { trackUserProfileAction({ action: "UNBLOCK", analyticsLocations }); RelationshipActionCreatorsDefault.unblockUser(id, { location: newestAnalyticsLocation }); showUserProfile(); const obj = { action: "UNBLOCK", analyticsLocations }; const obj3 = { location: newestAnalyticsLocation }; const tmp2 = id; id = undefined; if (channel != null) { id = channel.id; } const result = SafetyToastsActionCreatorsDefault.showUnblockSuccessToast(tmp2, id); }; push(obj13); } else { const obj14 = { label: null, variant: "destructive", action: null }; const intl8 = tmp(tmp2[31]).intl; obj14.label = intl8.string(tmp(tmp2[31]).t.l4Emac); obj14.action = function action() { const obj = ActionSheetActionCreatorsDefault; const obj2 = { userId: id, channelId: null, onSuccess: null, impressionName: null }; id = undefined; if (channel != null) { id = channel.id; } obj2.channelId = id; obj2.onSuccess = onSuccess; obj2.impressionName = discord_common_AnalyticsUtils.ImpressionNames.BLOCK_USER_CONFIRMATION; obj.openLazy(asyncRequireImpl(11477, dependencyMap.paths), closure_2_17, obj2, "stack"); }; push(obj14); if (result) { const obj15 = { label: null, variant: "destructive", action: null }; const intl10 = tmp(tmp2[31]).intl; obj15.label = intl10.string(tmp(tmp2[31]).t.wqHXNt); obj15.action = function action() { trackUserProfileAction({ action: "REPORT", analyticsLocations }); let tmp3; if ("@me" !== guildId1) { if (null !== tmp2) { tmp3 = tmp2; } } const result = ReportModals.showReportModalForUser(user, tmp3); const obj = { action: "REPORT", analyticsLocations }; ActionSheetActionCreatorsDefault.hideActionSheet(); }; items7.push(obj15); } else { if (tmpResult14.isAndroid()) { const obj16 = { label: null, variant: "destructive", action: null }; const intl9 = tmp(tmp2[31]).intl; obj16.label = intl9.string(tmp(tmp2[31]).t.TbHyMG); obj16.action = function action() { trackUserProfileAction({ action: "REPORT", analyticsLocations }); UserProfileAlertUtils.alertUserReported(); const obj = { action: "REPORT", analyticsLocations }; AnalyticsUtilsDefault.track(constants.TNS_USER_REPORT_SUBMITTED, { reported_user_id: id }); }; items7.push(obj16); } tmpResult14 = tmp(tmp2[42]); } if (tmp8) { const obj17 = { label: null, action: null }; const intl11 = tmp(tmp2[31]).intl; obj17.label = intl11.string(tmp(tmp2[31]).t.Sd8Ixw); obj17.action = function action() { trackUserProfileAction({ action: "PRESS_INVITE_TO_SERVER", analyticsLocations }); const result = GuildInviteUtils.showGuildInviteActionSheet(id, newestAnalyticsLocation); }; items6.push(obj17); } } } if (relationshipType !== id.BLOCKED) { const obj18 = { label: null, action: null }; const intl7 = tmp(tmp2[31]).intl; obj18.label = intl7.string(tmp(tmp2[31]).t.ytCpKs); obj18.action = function action() { trackUserProfileAction({ action: "IGNORE", analyticsLocations }); const obj = { action: "IGNORE", analyticsLocations }; const obj2 = ActionSheetActionCreatorsDefault; const obj3 = { userId: id, channelId: null, onSuccess: null, impressionName: null }; id = undefined; if (channel != null) { id = channel.id; } obj3.channelId = id; obj3.onSuccess = onSuccess; obj3.impressionName = discord_common_AnalyticsUtils.ImpressionNames.IGNORE_USER_CONFIRMATION; obj2.openLazy(asyncRequireImpl(11478, dependencyMap.paths), collapsedCategories, obj3, "stack"); }; items7.push(obj18); } } else { let intl4 = tmp(tmp2[31]).intl; const string = intl4.string; let t = tmp(tmp2[31]).t; if (tmp6) { let stringResult = string(t["8pOYUE"]); } else { stringResult = string(t.BGYkaH); } const obj19 = { label: stringResult, action() { trackUserProfileAction({ action: "PRESS_SET_FRIEND_NICKNAME", analyticsLocations }); ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(13215, dependencyMap.paths), { userId: id, showUserProfile }); const obj = { action: "PRESS_SET_FRIEND_NICKNAME", analyticsLocations }; const obj3 = { userId: id, showUserProfile }; ActionSheetActionCreatorsDefault.hideActionSheet(); } }; t = items6.push(obj19); } } if (!canRing) { const DeveloperMode = tmp(tmp2[47]).DeveloperMode; const setting = DeveloperMode.getSetting(); let tmp53 = setting; if (setting) { tmp53 = tidaWebformEnabled; } if (!tmp53) { const obj20 = { label: null, action: null }; const intl14 = tmp(tmp2[31]).intl; obj20.label = intl14.string(tmp(tmp2[31]).t.y5MwJy); obj20.action = function action() { trackUserProfileAction({ action: "COPY_USERNAME", analyticsLocations }); const obj = { action: "COPY_USERNAME", analyticsLocations }; const obj2 = ClipboardUtils; obj2.copy(UserUtilsDefault.getUserTag(user, { decoration: "never", identifiable: "always" })); const result = ToastUtils.presentUsernameCopied(); }; items6.push(obj20); } if (setting) { const push2 = items6.push; const obj21 = { label: null, action: null }; const intl15 = tmp(tmp2[31]).intl; const string3 = intl15.string; const t3 = tmp(tmp2[31]).t; if (tidaWebformEnabled) { obj21.label = string3(t3.QvQeLv); obj21.action = function action() { const items = []; let obj = { label: null, onPress: null }; const intl = user(channel[31]).intl; obj.label = intl.string(user(channel[31]).t.y5MwJy); obj.onPress = function onPress() { trackUserProfileAction({ action: "COPY_USERNAME", analyticsLocations }); const obj = { action: "COPY_USERNAME", analyticsLocations }; const obj2 = user(channel[48]); obj2.copy(displayProfile(channel[49]).getUserTag(bannerURL, { decoration: "never", identifiable: "always" })); const obj3 = displayProfile(channel[49]); const result = user(channel[50]).presentUsernameCopied(); }; items.push(obj); let obj2 = { label: null, onPress: null }; const intl2 = user(channel[31]).intl; obj2.label = intl2.string(user(channel[31]).t["/AXYnE"]); obj2.onPress = function onPress() { trackUserProfileAction({ action: "COPY_USER_ID", analyticsLocations }); user(channel[48]).copy(id); const obj = { action: "COPY_USER_ID", analyticsLocations }; const obj2 = user(channel[48]); user(channel[50]).presentIdCopied(); }; items.push(obj2); let hasAvatarForGuildResult = null != bannerURL.avatar; if (!hasAvatarForGuildResult) { guildId = undefined; if (displayProfile != null) { guildId = displayProfile.guildId; } hasAvatarForGuildResult = bannerURL.hasAvatarForGuild(guildId); } if (hasAvatarForGuildResult) { const obj4 = { label: null, onPress: null }; const intl3 = tmp(tmp2[31]).intl; obj4.label = intl3.string(tmp(tmp2[31]).t.gERDvM); obj4.onPress = function onPress() { trackUserProfileAction({ action: "COPY_AVATAR_IMAGE_LINK", analyticsLocations }); guildId = undefined; if (guildId != null) { guildId = guildId.guildId; } const avatarURL = bannerURL.getAvatarURL(guildId, enabled, true); if (null != avatarURL) { user(channel[48]).copy(avatarURL); const obj2 = user(channel[48]); user(channel[50]).presentLinkCopied(); const obj3 = user(channel[50]); } }; items.push(obj4); } if (null != displayProfile) { const obj6 = { canAnimate: true, size: enabled }; bannerURL = displayProfile.getBannerURL(obj6); if (null != bannerURL) { const obj7 = { label: null, onPress: null }; const intl4 = tmp(tmp2[31]).intl; obj7.label = intl4.string(tmp(tmp2[31]).t.hsNv0R); obj7.onPress = function onPress() { trackUserProfileAction({ action: "COPY_BANNER_IMAGE_LINK", analyticsLocations }); ClipboardUtils.copy(bannerURL); const obj = { action: "COPY_BANNER_IMAGE_LINK", analyticsLocations }; ToastUtils.presentLinkCopied(); }; items.push(obj7); } } const obj8 = { options: items, key: "copy-info", header: null, stackingBehavior: "stack", hasIcons: false }; const obj9 = { title: null }; const intl5 = tmp(tmp2[31]).intl; obj9.title = intl5.string(user(channel[31]).t.QvQeLv); obj8.header = obj9; let result = user(channel[51]).showSimpleActionSheet(obj8); }; push2(obj21); } else { obj21.label = string3(t3["/AXYnE"]); obj21.action = function action() { trackUserProfileAction({ action: "COPY_USER_ID", analyticsLocations }); ClipboardUtils.copy(id); const obj = { action: "COPY_USER_ID", analyticsLocations }; ToastUtils.presentIdCopied(); }; push2(obj21); } } let hasItem1 = null != channel && null != selectedChannel; if (hasItem1) { const TEXTUAL = userIsInCall.TEXTUAL; hasItem1 = TEXTUAL.has(selectedChannel.type); } if (hasItem1) { const obj22 = { label: null, action: null }; const intl16 = tmp(tmp2[31]).intl; obj22.label = intl16.string(tmp(tmp2[31]).t.PHjkRE); obj22.action = function action() { return openUserContextMenuCommandsDefault({ userId: id, selectedChannel, showUserProfile, analyticsLocations }); }; items6.push(obj22); } if (0 !== items6.length) { const obj23 = { value: analyticsLocations, children: null }; const obj24 = { ref, children: null }; const obj25 = { style: tmp19, children: null }; const obj26 = { items: null, onOpen: null, children: null }; const items8 = [items6, items7]; obj26.items = items8; obj26.onOpen = function onOpen() { if (closure_17) { const result = ShopThisLookAnalyticsUtils.trackShopThisLookMenuAction(ShopThisLookAnalyticsUtils.ShopThisLookMenuAction.MENU_VIEWED, UserProfileThemeTypes.ACTION_SHEET); } }; obj26.children = function children(ref) { const merged = Object.assign(ref, Object.assign({ ref: 0 })); const obj = { ref: ref.ref }; const merged1 = Object.assign(merged); obj.size = "sm"; obj.variant = "secondary-overlay"; const intl = user(channel[31]).intl; obj.accessibilityLabel = intl.string(user(channel[31]).t["+zofAD"]); obj.icon = closure_1_19(user(channel[57]).MoreHorizontalIcon, { size: "sm", color: displayProfile(channel[58]).colors.WHITE }); return closure_1_19(user(channel[56]).IconButton, obj); }; obj25.children = closure_19(tmp(tmp2[54]).ContextMenu, obj26); obj24.children = closure_19(tmp7(tmp2[53]).View, obj25); const items9 = [closure_19(selectedVoiceChannel, obj24), ]; const obj27 = { targetRef: ref, visible: isVisible, onDismiss: markAsDismissed, onPress: callback }; items9[1] = closure_19(tmp7(tmp2[59]), obj27); obj23.children = items9; let tmp60 = closure_20(tmp(tmp2[17]).AnalyticsLocationProvider, obj23); } else { tmp60 = null; } return tmp60; } else { const intl13 = tmp(tmp2[31]).intl; const string2 = intl13.string; let t2 = tmp(tmp2[31]).t; if (userIsInCall) { let string2Result = string2(t2.ygslb0); } else { string2Result = string2(t2.bHa9kN); } const obj28 = { label: string2Result, action() { let str = "RING"; if (userIsInCall) { str = "STOP_RINGING"; } trackUserProfileAction({ action: str, analyticsLocations }); const obj2 = CallActionCreatorsDefault; if (userIsInCall) { const items = [user.id]; obj2.stopRinging(selectedVoiceChannelId, items); } else { const items1 = [user.id]; obj2.ring(selectedVoiceChannelId, items1, "user_profile_overflow_menu"); let tmp7 = enabled; if (enabled) { tmp7 = null != selectedVoiceChannel; } if (tmp7) { ActionSheetActionCreatorsDefault.hideAllActionSheets(); PrivateChannelCallUtils.openChannelCallModal(selectedVoiceChannel); } } } }; t2 = items6.push(obj28); } };