decord/source/modules/user_profile/native/UserProfileOverflowMenu.tsx
2026-08-27 16:17:25 +00:00

629 lines
25 KiB
TypeScript

// Module ID: 12503
// Function ID: 12504
// Name: UserProfileOverflowMenu
// Dependencies: [32, 19, 17, 4461, 1391, 4098, 1981, 5953, 676, 4466, 8978, 21, 589, 12504, 12510, 8979, 8490, 5905, 5925, 8046, 8825, 8826, 12511, 12512, 9785, 9786, 5932, 8815, 503, 8819, 1236, 4458, 4412, 4676, 12517, 2009, 8980, 8989, 8606, 8990, 8681, 500, 8992, 698, 9791, 4680, 4134, 5933, 4289, 4161, 5939, 9006, 8717, 12516, 7938, 8723, 712, 12518, 2]
// Exports: default
// Module 12503 (UserProfileOverflowMenu)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_6 from "getParticipants" /* 4461 */;
import closure_7 from "ensureGuildLoaded" /* 1391 */;
import closure_8 from "markAllUserIdListsStale" /* 4098 */;
import closure_9 from "handleConnectionOpen" /* 1981 */;
import { UserProfileThemeTypes } from "ARBITRARY_LARGE_OFFSET" /* 5953 */;
import ME from "ME" /* 676 */;
import { ParticipantTypes } from "ParticipantTypes" /* 4466 */;
import IGNORE_CONFIRMATION_ACTION_SHEET_KEY from "IGNORE_CONFIRMATION_ACTION_SHEET_KEY" /* 8978 */;
import jsxProd from "jsxProd" /* 21 */;
const require = arg1;
({ AnalyticEvents: unpackModuleId, AVATAR_MAX_SIZE: closure_12, ChannelTypesSets: map1, NOOP: closure_14, RelationshipTypes: closure_15 } = ME);
({ BLOCK_CONFIRMATION_ACTION_SHEET_KEY: closure_17, IGNORE_CONFIRMATION_ACTION_SHEET_KEY: closure_18 } = IGNORE_CONFIRMATION_ACTION_SHEET_KEY);
({ jsx: closure_19, jsxs: closure_20 } = jsxProd);
let result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileOverflowMenu.tsx");
export default function UserProfileOverflowMenu(user) {
user = user.user;
({ currentUser, displayProfile } = user);
const channel = user.channel;
let selectedChannel;
let selectedVoiceChannelId;
let selectedVoiceChannel;
let context;
let trackUserProfileAction;
let analyticsLocations;
let newestAnalyticsLocation;
let guildId;
let canRing;
let enabled;
let userIsInCall;
closure_14 = undefined;
let id;
let guildId1;
closure_17 = undefined;
let tmp2 = channel;
let obj = user(channel[12]);
let items = [analyticsLocations];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ relationshipType: analyticsLocations.getRelationshipType(user.id), isIgnored: analyticsLocations.isIgnored(user.id) }));
({ relationshipType, isIgnored } = stateFromStoresObject);
obj1 = user(channel[12]);
let items1 = [newestAnalyticsLocation, trackUserProfileAction];
const stateFromStoresObject1 = obj1.useStateFromStoresObject(items1, () => {
({ getChannel, getChannel: getChannel2 } = trackUserProfileAction);
return { selectedChannel: getChannel(newestAnalyticsLocation.getChannelId()), selectedVoiceChannelId: newestAnalyticsLocation.getVoiceChannelId(), selectedVoiceChannel: getChannel2(newestAnalyticsLocation.getVoiceChannelId()) };
});
selectedChannel = stateFromStoresObject1.selectedChannel;
selectedVoiceChannelId = stateFromStoresObject1.selectedVoiceChannelId;
selectedVoiceChannel = stateFromStoresObject1.selectedVoiceChannel;
let obj2 = user(channel[13]);
[arr3, arr4] = selectedChannel(obj2.useServerInviteRows(user.id), 2);
const tmp5 = selectedChannel(obj2.useServerInviteRows(user.id), 2);
let tmp8 = displayProfile(channel[14])(user.id);
if (tmp8) {
tmp8 = arr2.length + arr3.length > 0;
}
let tmpResult = tmp(tmp2[15]);
let result = tmpResult.isIarUserReportingEnabled("User Profile Options - Mobile");
tmpResult = tmp(tmp2[16]);
const userProfileAnalyticsContext = tmpResult.useUserProfileAnalyticsContext();
context = userProfileAnalyticsContext.context;
trackUserProfileAction = userProfileAnalyticsContext.trackUserProfileAction;
let tmp7Result = tmp7(tmp2[17]);
const tmp7ResultResult = tmp7Result(displayProfile(tmp2[18]).USER_PROFILE_OVERFLOW_MENU);
analyticsLocations = tmp7ResultResult.analyticsLocations;
newestAnalyticsLocation = tmp7ResultResult.newestAnalyticsLocation;
let guild_id;
tmp7Result = tmp7(tmp2[19]);
if (channel != null) {
guild_id = channel.guild_id;
}
const tmp7Result1Result = tmp7Result(user.id, guild_id);
guildId = undefined;
if (displayProfile != null) {
guildId = displayProfile.guildId;
}
const tmp6 = null != analyticsLocations.getNickname(user.id);
const isShopThisLookMobileEnabled = user(tmp2[20]).useIsShopThisLookMobileEnabled("UserProfileOverflowMenu");
const tmpResult1 = user(tmp2[20]);
let obj7 = selectedVoiceChannelId;
const equippedCollectibleSkuIds = user(tmp2[21]).useEquippedCollectibleSkuIds(user.id, guildId);
const ref = selectedVoiceChannelId.useRef(null);
const tmpResult2 = user(tmp2[21]);
const shopThisLookMarketing = user(tmp2[22]).useShopThisLookMarketing(user.id, guildId, isShopThisLookMobileEnabled);
const items2 = [user.id, guildId];
({ isVisible, markAsDismissed } = shopThisLookMarketing);
const callback = selectedVoiceChannelId.useCallback(() => {
let obj = user(channel[23]);
obj = { userId: user.id, guildId };
const result = obj.openShopThisLookActionSheet(obj);
}, items2);
const tmpResult3 = user(tmp2[22]);
canRing = user(tmp2[24]).useCanRing(user, "UserProfileOverflowMenu", selectedVoiceChannelId);
const tmpResult4 = user(tmp2[24]);
let guild_id1;
if (selectedVoiceChannel != null) {
guild_id1 = selectedVoiceChannel.guild_id;
}
enabled = displayProfile(tmp2[25]).useExperiment({ guildId: guild_id1, location: "UserProfileOverflowMenu" }).enabled;
const tmp7Result1 = displayProfile(tmp2[25]);
const tidaWebformEnabled = displayProfile(tmp2[26]).useExperiment({ location: "UserProfileOverflowMenu" }, { autoTrackExposure: false }).tidaWebformEnabled;
const tmp7Result2 = displayProfile(tmp2[26]);
const items3 = [context];
const stateFromStoresObject2 = user(tmp2[12]).useStateFromStoresObject(items3, () => {
let tmp = canRing;
if (canRing) {
tmp = null != selectedVoiceChannelId;
}
let participant = null;
if (tmp) {
participant = context.getParticipant(selectedVoiceChannelId, user.id);
}
const obj = { userIsInCall: null != participant, isUserRinging: null };
let ringing = null != participant;
if (ringing) {
ringing = participant.type === guildId1.USER;
}
if (ringing) {
ringing = participant.ringing;
}
obj[1] = ringing;
return obj;
});
userIsInCall = stateFromStoresObject2.userIsInCall;
if (canRing) {
canRing = null != selectedVoiceChannelId;
}
if (canRing) {
let isUserRinging = !userIsInCall;
if (userIsInCall) {
isUserRinging = stateFromStoresObject2.isUserRinging;
}
canRing = isUserRinging;
}
obj = { type: null, name: null, properties: null };
const tmpResult5 = user(tmp2[12]);
obj[0] = user(tmp2[28]).ImpressionTypes.MENU;
obj[1] = user(tmp2[28]).ImpressionNames.RING_TO_GUILD_VC_MENU_ITEM_SHOWN;
obj = { voice_channel_id: selectedVoiceChannelId, voice_guild_id: null };
let guild_id2;
if (selectedVoiceChannel != null) {
guild_id2 = selectedVoiceChannel.guild_id;
}
obj[1] = guild_id2;
obj[2] = obj;
if (enabled) {
enabled = canRing;
}
obj1 = { disableTrack: !enabled };
const items4 = [user.id];
displayProfile(tmp2[27])(obj, obj1, items4);
const items5 = [user.id, , , ];
id = undefined;
if (channel != null) {
id = channel.id;
}
items5[1] = id;
items5[2] = context;
items5[3] = analyticsLocations;
closure_14 = obj7.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;
displayProfile(channel[29])(obj);
}, items5);
id = user.id;
guildId1 = undefined;
if (channel != null) {
guildId1 = channel.getGuildId();
}
let tmp30 = isShopThisLookMobileEnabled;
if (isShopThisLookMobileEnabled) {
tmp30 = equippedCollectibleSkuIds.length > 0;
}
closure_17 = tmp30;
let guildId2;
if (displayProfile != null) {
guildId2 = displayProfile.guildId;
}
const items6 = [];
if (null != guildId2) {
obj2 = { label: null, action: null };
let intl = tmp(tmp2[30]).intl;
obj2[0] = intl.string(tmp(tmp2[30]).t.GISTta);
obj2[1] = function action() {
trackUserProfileAction({ action: "PRESS_VIEW_MAIN_PROFILE", analyticsLocations });
callback(false);
};
items6.push(obj2);
}
let guildId3;
if (tmp7Result1Result != null) {
guildId3 = tmp7Result1Result.guildId;
}
let tmp34 = null != guildId3;
if (tmp34) {
let guildId4;
if (displayProfile != null) {
guildId4 = displayProfile.guildId;
}
tmp34 = null == guildId4;
}
if (tmp34) {
let obj3 = { label: null, action: null };
let intl2 = tmp(tmp2[30]).intl;
obj3[0] = intl2.string(tmp(tmp2[30]).t.DisZzB);
obj3[1] = function action() {
trackUserProfileAction({ action: "PRESS_VIEW_SERVER_PROFILE", analyticsLocations });
callback();
};
items6.push(obj3);
}
const items7 = [];
if (currentUser.id !== id) {
let tmp37 = null != channel && !channel.isThread() && channel.isOwner(currentUser.id);
if (tmp37) {
const recipients = channel.recipients;
let hasItem;
if (recipients != null) {
hasItem = recipients.includes(id);
}
tmp37 = hasItem;
}
if (tmp37) {
let obj4 = { label: null, variant: "destructive", action: null };
let intl3 = tmp(tmp2[30]).intl;
obj4[0] = intl3.string(tmp(tmp2[30]).t["n5zMI+"]);
obj4[2] = function action() {
displayProfile(channel[31]).removeRecipient(channel.id, id);
const obj = displayProfile(channel[31]);
displayProfile(channel[32]).hideActionSheet();
};
items7.push(obj4);
}
if (relationshipType !== id.FRIEND) {
if (tmp30) {
const obj5 = { label: null, action: null };
let intl5 = tmp(tmp2[30]).intl;
obj5[0] = intl5.string(tmp(tmp2[30]).t.xNdRDO);
obj5[1] = function action() {
let obj = user(channel[23]);
obj = { userId: id, guildId };
const result = obj.openShopThisLookActionSheet(obj);
};
arr2 = items6.push(obj5);
}
if (isIgnored) {
if (!tmp42) {
const obj6 = { label: null, action: null };
const intl6 = tmp(tmp2[30]).intl;
obj6[0] = intl6.string(tmp(tmp2[30]).t["8wXU9B"]);
obj6[1] = function action() {
trackUserProfileAction({ action: "UNIGNORE", analyticsLocations });
id = undefined;
if (channel != null) {
id = channel.id;
}
displayProfile(channel[36]).unignoreUser(id, newestAnalyticsLocation, id);
callback();
};
arr3 = items7.push(obj6);
}
const push = items7.push;
if (tmp42) {
obj7 = { label: null, action: null };
const intl12 = tmp(tmp2[30]).intl;
obj7[0] = intl12.string(tmp(tmp2[30]).t.XyHpKH);
obj7[1] = function action() {
let obj = { action: "UNBLOCK", analyticsLocations };
trackUserProfileAction(obj);
obj = { location: newestAnalyticsLocation };
displayProfile(channel[36]).unblockUser(id, obj);
callback();
const obj2 = displayProfile(channel[36]);
const tmp2 = id;
id = undefined;
if (channel != null) {
id = channel.id;
}
const result = displayProfile(channel[38]).showUnblockSuccessToast(tmp2, id);
};
push(obj7);
} else {
const obj8 = { label: null, variant: "destructive", action: null };
const intl8 = tmp(tmp2[30]).intl;
obj8[0] = intl8.string(tmp(tmp2[30]).t.l4Emac);
obj8[2] = function action() {
let obj = displayProfile(channel[32]);
obj = { userId: id, channelId: null, onSuccess: null, impressionName: null };
id = undefined;
if (channel != null) {
id = channel.id;
}
obj[1] = id;
obj[2] = function onSuccess() {
id = undefined;
if (id != null) {
id = id.id;
}
const result = closure_1_1(closure_1_2[38]).showBlockSuccessToast(closure_15, id);
};
obj[3] = user(channel[28]).ImpressionNames.BLOCK_USER_CONFIRMATION;
obj.openLazy(user(channel[35])(channel[39], channel.paths), closure_17, obj, "stack");
};
push(obj8);
if (result) {
const obj9 = { label: null, variant: "destructive", action: null };
const intl10 = tmp(tmp2[30]).intl;
obj9[0] = intl10.string(tmp(tmp2[30]).t.wqHXNt);
obj9[2] = function action() {
trackUserProfileAction({ action: "REPORT", analyticsLocations });
let tmp3;
if ("@me" !== guildId1) {
if (null !== tmp2) {
tmp3 = tmp2;
}
}
const result = user(channel[40]).showReportModalForUser(user, tmp3);
const obj = { action: "REPORT", analyticsLocations };
const obj2 = user(channel[40]);
displayProfile(channel[32]).hideActionSheet();
};
items7.push(obj9);
} else {
if (tmpResult6.isAndroid()) {
const obj10 = { label: null, variant: "destructive", action: null };
const intl9 = tmp(tmp2[30]).intl;
obj10[0] = intl9.string(tmp(tmp2[30]).t.TbHyMG);
obj10[2] = function action() {
let obj = { action: "REPORT", analyticsLocations };
trackUserProfileAction(obj);
user(channel[42]).alertUserReported();
const obj2 = user(channel[42]);
obj = { reported_user_id: id };
displayProfile(channel[43]).track(canRing.TNS_USER_REPORT_SUBMITTED, obj);
};
items7.push(obj10);
}
tmpResult6 = tmp(tmp2[41]);
}
if (tmp8) {
const obj11 = { label: null, action: null };
const intl11 = tmp(tmp2[30]).intl;
obj11[0] = intl11.string(tmp(tmp2[30]).t.Sd8Ixw);
obj11[1] = function action() {
trackUserProfileAction({ action: "PRESS_INVITE_TO_SERVER", analyticsLocations });
const result = user(channel[13]).showGuildInviteActionSheet(id, newestAnalyticsLocation);
};
items6.push(obj11);
}
}
}
if (relationshipType !== id.BLOCKED) {
const obj12 = { label: null, action: null };
const intl7 = tmp(tmp2[30]).intl;
obj12[0] = intl7.string(tmp(tmp2[30]).t.ytCpKs);
obj12[1] = function action() {
let obj = { action: "IGNORE", analyticsLocations };
trackUserProfileAction(obj);
const obj2 = displayProfile(channel[32]);
const tmp2 = channel;
const tmp3 = user;
obj = { userId: id, channelId: null, onSuccess: null, impressionName: null };
id = undefined;
if (channel != null) {
id = channel.id;
}
obj[1] = id;
obj[2] = closure_14;
obj[3] = tmp3(tmp2[28]).ImpressionNames.IGNORE_USER_CONFIRMATION;
obj2.openLazy(user(channel[35])(channel[37], channel.paths), closure_1_18, obj, "stack");
};
items7.push(obj12);
}
} else {
let intl4 = tmp(tmp2[30]).intl;
const string = intl4.string;
let t = tmp(tmp2[30]).t;
if (tmp6) {
let stringResult = string(t["8pOYUE"]);
} else {
stringResult = string(t.BGYkaH);
}
const obj13 = { label: null, action: null };
obj13[0] = stringResult;
obj13[1] = function action() {
let obj = { action: "PRESS_SET_FRIEND_NICKNAME", analyticsLocations };
trackUserProfileAction(obj);
obj = { userId: id, showUserProfile: closure_14 };
displayProfile(channel[33]).pushLazy(user(channel[35])(channel[34], channel.paths), obj);
const obj2 = displayProfile(channel[33]);
displayProfile(channel[32]).hideActionSheet();
};
t = items6.push(obj13);
}
}
if (!canRing) {
const DeveloperMode = tmp(tmp2[46]).DeveloperMode;
const setting = DeveloperMode.getSetting();
let tmp52 = setting;
if (setting) {
tmp52 = tidaWebformEnabled;
}
if (!tmp52) {
const obj14 = { label: null, action: null };
const intl14 = tmp(tmp2[30]).intl;
obj14[0] = intl14.string(tmp(tmp2[30]).t.y5MwJy);
obj14[1] = function action() {
trackUserProfileAction({ action: "COPY_USERNAME", analyticsLocations });
const obj = { action: "COPY_USERNAME", analyticsLocations };
const obj2 = user(channel[47]);
obj2.copy(displayProfile(channel[48]).getUserTag(user, { decoration: "never", identifiable: "always" }));
const obj3 = displayProfile(channel[48]);
const result = user(channel[49]).presentUsernameCopied();
};
items6.push(obj14);
}
if (setting) {
const push2 = items6.push;
const obj15 = { label: null, action: null };
const intl15 = tmp(tmp2[30]).intl;
const string3 = intl15.string;
const t3 = tmp(tmp2[30]).t;
if (tidaWebformEnabled) {
obj15[0] = string3(t3.QvQeLv);
obj15[1] = function action() {
const items = [];
let obj = { label: null, onPress: null };
const intl = user(channel[30]).intl;
obj[0] = intl.string(user(channel[30]).t.y5MwJy);
obj[1] = function onPress() {
callback({ action: "COPY_USERNAME", analyticsLocations: closure_8 });
const obj = { action: "COPY_USERNAME", analyticsLocations: closure_8 };
const obj2 = bannerURL(closure_1_2[47]);
obj2.copy(closure_1_1(closure_1_2[48]).getUserTag(bannerURL, { decoration: "never", identifiable: "always" }));
const obj3 = closure_1_1(closure_1_2[48]);
const result = bannerURL(closure_1_2[49]).presentUsernameCopied();
};
items.push(obj);
obj = { label: null, onPress: null };
const intl2 = user(channel[30]).intl;
obj[0] = intl2.string(user(channel[30]).t["/AXYnE"]);
obj[1] = function onPress() {
callback({ action: "COPY_USER_ID", analyticsLocations: closure_8 });
bannerURL(closure_1_2[47]).copy(closure_15);
const obj = { action: "COPY_USER_ID", analyticsLocations: closure_8 };
const obj2 = bannerURL(closure_1_2[47]);
bannerURL(closure_1_2[49]).presentIdCopied();
};
items.push(obj);
let obj2 = bannerURL;
let hasAvatarForGuildResult = null != bannerURL.avatar;
if (!hasAvatarForGuildResult) {
guildId = undefined;
if (displayProfile != null) {
guildId = displayProfile.guildId;
}
hasAvatarForGuildResult = obj2.hasAvatarForGuild(guildId);
}
if (hasAvatarForGuildResult) {
obj = { label: null, onPress: null };
const intl3 = tmp(tmp2[30]).intl;
obj[0] = intl3.string(tmp(tmp2[30]).t.gERDvM);
obj[1] = function onPress() {
callback({ action: "COPY_AVATAR_IMAGE_LINK", analyticsLocations: closure_8 });
guildId = undefined;
if (guildId != null) {
guildId = guildId.guildId;
}
const avatarURL = bannerURL.getAvatarURL(guildId, closure_1_12, true);
if (null != avatarURL) {
bannerURL(closure_1_2[47]).copy(avatarURL);
const obj2 = bannerURL(closure_1_2[47]);
bannerURL(closure_1_2[49]).presentLinkCopied();
const obj3 = bannerURL(closure_1_2[49]);
}
};
items.push(obj);
}
let obj4 = displayProfile;
if (null != displayProfile) {
obj1 = { canAnimate: true, size: null };
obj1[1] = enabled;
bannerURL = obj4.getBannerURL(obj1);
if (null != bannerURL) {
obj2 = { label: null, onPress: null };
const intl4 = tmp(tmp2[30]).intl;
obj2[0] = intl4.string(tmp(tmp2[30]).t.hsNv0R);
obj2[1] = function onPress() {
closure_1_7({ action: "COPY_BANNER_IMAGE_LINK", analyticsLocations: closure_1_8 });
user(channel[47]).copy(bannerURL);
const obj = { action: "COPY_BANNER_IMAGE_LINK", analyticsLocations: closure_1_8 };
const obj2 = user(channel[47]);
user(channel[49]).presentLinkCopied();
};
items.push(obj2);
}
}
let obj3 = { options: items, key: "copy-info", header: null, stackingBehavior: "stack", hasIcons: false };
obj4 = { title: null };
const intl5 = tmp(tmp2[30]).intl;
obj4[0] = intl5.string(user(channel[30]).t.QvQeLv);
obj3[2] = obj4;
let result = user(channel[50]).showSimpleActionSheet(obj3);
};
push2(obj15);
} else {
obj15[0] = string3(t3["/AXYnE"]);
obj15[1] = function action() {
trackUserProfileAction({ action: "COPY_USER_ID", analyticsLocations });
user(channel[47]).copy(id);
const obj = { action: "COPY_USER_ID", analyticsLocations };
const obj2 = user(channel[47]);
user(channel[49]).presentIdCopied();
};
push2(obj15);
}
}
let hasItem1 = null != channel && null != selectedChannel;
if (hasItem1) {
const TEXTUAL = userIsInCall.TEXTUAL;
hasItem1 = TEXTUAL.has(selectedChannel.type);
}
if (hasItem1) {
const obj16 = { label: null, action: null };
const intl16 = tmp(tmp2[30]).intl;
obj16[0] = intl16.string(tmp(tmp2[30]).t.PHjkRE);
obj16[1] = function action() {
return displayProfile(channel[51])({ userId: id, selectedChannel, showUserProfile: closure_14, analyticsLocations });
};
items6.push(obj16);
}
if (0 !== items6.length) {
const obj17 = { value: null, children: null };
obj17[0] = analyticsLocations;
const obj18 = { ref: null, children: null };
obj18[0] = ref;
const obj19 = { items: null, onOpen: null, children: null };
const items8 = [items6, items7];
obj19[0] = items8;
obj19[1] = function onOpen() {
if (closure_17) {
const result = user(channel[53]).trackShopThisLookMenuAction(user(channel[53]).ShopThisLookMenuAction.MENU_VIEWED, guildId.ACTION_SHEET);
const obj = user(channel[53]);
}
};
obj19[2] = function children(ref) {
const merged = Object.assign(ref, Object.create(null));
let obj = { ref: ref.ref };
const merged1 = Object.assign(merged);
obj.size = "sm";
obj.variant = "secondary-overlay";
const intl = user(channel[30]).intl;
obj.accessibilityLabel = intl.string(user(channel[30]).t["+zofAD"]);
obj = { size: "sm", color: displayProfile(channel[56]).colors.WHITE };
obj.icon = callback2(user(channel[55]).MoreHorizontalIcon, obj);
return callback2(user(channel[54]).IconButton, obj);
};
obj18[1] = callback(tmp(tmp2[52]).ContextMenu, obj19);
const items9 = [callback(selectedVoiceChannel, obj18), ];
const obj20 = { targetRef: null, visible: null, onDismiss: null, onPress: null };
obj20[0] = ref;
obj20[1] = isVisible;
obj20[2] = markAsDismissed;
obj20[3] = callback;
items9[1] = callback(tmp7(tmp2[57]), obj20);
obj17[1] = items9;
let tmp59 = callback2(tmp(tmp2[17]).AnalyticsLocationProvider, obj17);
} else {
tmp59 = null;
}
return tmp59;
} else {
const intl13 = tmp(tmp2[30]).intl;
const string2 = intl13.string;
let t2 = tmp(tmp2[30]).t;
if (userIsInCall) {
let string2Result = string2(t2.ygslb0);
} else {
string2Result = string2(t2.bHa9kN);
}
const obj21 = { label: null, action: null };
obj21[0] = string2Result;
obj21[1] = function action() {
let str = "RING";
if (userIsInCall) {
str = "STOP_RINGING";
}
trackUserProfileAction({ action: str, analyticsLocations });
const obj2 = displayProfile(channel[44]);
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) {
displayProfile(channel[32]).hideAllActionSheets();
const obj3 = displayProfile(channel[32]);
user(channel[45]).openChannelCallModal(selectedVoiceChannel);
const obj4 = user(channel[45]);
}
}
};
t2 = items6.push(obj21);
}
};