/* Metro module 10475; source: modules/user_profile/native/UserProfileOverflowMenu.tsx; dependencies: [57, 31, 4606, 1379, 3793, 1934, 661, 4299, 8781, 33, 566, 10476, 10482, 8782, 8514, 6771, 6789, 8490, 8917, 4619, 6796, 8742, 480, 8743, 1244, 4603, 4080, 5080, 10483, 1962, 8783, 8793, 6264, 8794, 8153, 477, 8796, 683, 8916, 7709, 3829, 6797, 3995, 3856, 6803, 8810, 8811, 8341, 8638, 697, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ChannelRTCStore from '../../calls/ChannelRTCStore.tsx'; /* Metro dependency 4606 */
import GuildVoiceRingingExperiment from '../../voice_calls/GuildVoiceRingingExperiment.tsx'; /* Metro dependency 4619 */
import SafetyToastsActionCreatorsNative from '../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import TidaWebformExperiment from '../../guild/TidaWebformExperiment.tsx'; /* Metro dependency 6796 */
import UseTrackImpression from '../../app_analytics/useTrackImpression.tsx'; /* Metro dependency 8742 */
import ShowUserProfileActionSheet from './showUserProfileActionSheet.tsx'; /* Metro dependency 8743 */
import RelationshipActionCreators from '../../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import OpenUserContextMenuCommands from './openUserContextMenuCommands.tsx'; /* Metro dependency 8810 */
import CallActionCreators from '../../../actions/CallActionCreators.tsx'; /* Metro dependency 8916 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as ToastUtilsModule from '../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as CallConstantsModule from '../../calls/CallConstants.tsx'; /* Metro dependency 4299 */
import * as ClipboardUtilsNativeModule from '../../../utils/ClipboardUtils.native.tsx'; /* Metro dependency 6797 */
import * as ReportModalsModule from '../../in_app_reports/ReportModals.tsx'; /* Metro dependency 8153 */
import * as IconButtonNativeModule from '../../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */
import * as UserProfileAnalyticsContextModule from '../UserProfileAnalyticsContext.tsx'; /* Metro dependency 8514 */
import * as MoreHorizontalIconModule from '../../../design/components/Icon/native/redesign/generated/MoreHorizontalIcon.tsx'; /* Metro dependency 8638 */
import * as SafetyExperienceIarUserReportingExperimentModule from '../../in_app_reports/SafetyExperienceIarUserReportingExperiment.tsx'; /* Metro dependency 8782 */
import * as UseCanRingModule from '../../calls/useCanRing.tsx'; /* Metro dependency 8917 */
import * as GuildInviteUtilsModule from '../../instant_invite/native/GuildInviteUtils.tsx'; /* Metro dependency 10476 */
function _fun81047(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:6, offset: 0x01e97422, size: 338 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ConstantsModule;
const env0_9 = value.AnalyticEvents;
const env0_10 = value.AVATAR_MAX_SIZE;
const env0_11 = value.ChannelTypesSets;
const env0_12 = value.NOOP;
const env0_13 = value.RelationshipTypes;
value = require(8781) /* metro dependency 8781: RestrictionConfirmationConstants */;
const env0_15 = value.BLOCK_CONFIRMATION_ACTION_SHEET_KEY;
const env0_16 = value.IGNORE_CONFIRMATION_ACTION_SHEET_KEY;
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/UserProfileOverflowMenu.tsx');
exports.default = UserProfileOverflowMenu;
function UserProfileOverflowMenu({user, currentUser, displayProfile, channel}) { // fn#81048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:489, offset: 0x01e97574, size: 2811 bytes, params: 2, frame: 42
var r18;
var r22;
var push;
var object5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object6;
var recipients;
var object7;
var object9;
var object10;
var object11;
var moduleValue8;
var object12;
var object13;
var object14;
var object15;
var object17;
var object18;
var object19;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
let relationshipStoreBinding = RelationshipStore;
const {relationshipType, isIgnored} = Reflect.apply(useStateFromStoresObject, FluxModule,
[[relationshipStoreBinding], function() {
var object = {};
var relationshipStoreBinding = RelationshipStore;
var userBinding = user;
object.relationshipType = relationshipStoreBinding.getRelationshipType(userBinding.id);
object.isIgnored = relationshipStoreBinding.isIgnored(userBinding.id);
return object;
}]);
const value4 = FluxModule.useStateFromStoresObject([SelectedChannelStore, ChannelStore], function() {
var object = {};
var channelStoreBinding = ChannelStore;
var selectedChannelStoreBinding = SelectedChannelStore;
object.selectedChannel = channelStoreBinding.getChannel(selectedChannelStoreBinding.getChannelId());
object.selectedVoiceChannelId = selectedChannelStoreBinding.getVoiceChannelId();
object.selectedVoiceChannel = channelStoreBinding.getChannel(selectedChannelStoreBinding.getVoiceChannelId());
return object;
});
const selectedChannel = value4.selectedChannel;
const selectedChannel2 = selectedChannel;
const selectedVoiceChannelId = value4.selectedVoiceChannelId;
const selectedVoiceChannelId2 = selectedVoiceChannelId;
const selectedVoiceChannel = value4.selectedVoiceChannel;
const useServerInviteRows = GuildInviteUtilsModule.useServerInviteRows;
let id = user.id;
const value6 = selectedChannel2(Reflect.apply(useServerInviteRows, GuildInviteUtilsModule, [id]), 2);
const property = value6[0];
const property2 = value6[1];
const value9 = relationshipStoreBinding.getNickname(user.id) != null;
const r12 = (importDefault(10482) /* metro dependency 10482: useCanDM */)(user.id) && property.length + property2.length > 0;
const isIarUserReportingEnabled2 = (SafetyExperienceIarUserReportingExperimentModule).isIarUserReportingEnabled('User Profile Options - Mobile');
const value12 = (UserProfileAnalyticsContextModule).useUserProfileAnalyticsContext();
const context = value12.context;
const env0_7 = value12.trackUserProfileAction;
const defaultImport2 = UseAnalyticsLocations;
const USER_PROFILE_OVERFLOW_MENU = (AnalyticsLocation).USER_PROFILE_OVERFLOW_MENU;
const value13 = defaultImport2(USER_PROFILE_OVERFLOW_MENU);
const analyticsLocations = value13.analyticsLocations;
const env0_9 = value13.newestAnalyticsLocation;
const value14 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(user.id, channel?.guild_id);
const value15 = (UseCanRingModule).useCanRing(user, 'UserProfileOverflowMenu',
selectedVoiceChannelId);
const defaultImport4 = GuildVoiceRingingExperiment;
let useExperiment = defaultImport4.useExperiment;
const enabled = Reflect.apply(useExperiment, defaultImport4, [{guildId: selectedVoiceChannel?.guild_id,
location: 'UserProfileOverflowMenu'}]).enabled;
const defaultImport5 = TidaWebformExperiment;
useExperiment = defaultImport5.useExperiment;
const tidaWebformEnabled = Reflect.apply(useExperiment, defaultImport5, [{location: 'UserProfileOverflowMenu'},
{autoTrackExposure: false}]).tidaWebformEnabled;
const value16 = FluxModule.useStateFromStoresObject([ChannelRTCStore], _fun81051);
const userIsInCall = value16.userIsInCall;
const r11 = value15 && selectedVoiceChannelId != null && (userIsInCall ? value16.isUserRinging : !userIsInCall);
const defaultImport6 = UseTrackImpression;
object = {};
const ImpressionTypes = (AnalyticsUtilsModule).ImpressionTypes;
const MENU = ImpressionTypes.MENU;
object.type = MENU;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const RING_TO_GUILD_VC_MENU_ITEM_SHOWN = ImpressionNames.RING_TO_GUILD_VC_MENU_ITEM_SHOWN;
object.name = RING_TO_GUILD_VC_MENU_ITEM_SHOWN;
object.properties = {voice_channel_id: selectedVoiceChannelId, voice_guild_id: selectedVoiceChannel?.guild_id};
defaultImport6(object, {disableTrack: !(enabled && r11)}, [user.id]);
const env0_13 = selectedVoiceChannelId2.useCallback(_fun81052, [user.id, channel?.id, context, analyticsLocations]);
object = [];
const items2 = [];
id = user.id;
const id2 = currentUser.id;
const env0_15 = channel?.getGuildId();
const BLOCKED = RelationshipTypes.BLOCKED;
const value20 = relationshipType === BLOCKED;
if (displayProfile?.guildId != null && (displayProfile == null || !displayProfile.private)) {
push = object.push;
object5 = {};
object5.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GISTta);
object5.action = action;
Reflect.apply(push, object, [object5]);
}
if (value14?.guildId != null && displayProfile?.guildId == null) {
push = object.push;
object6 = {};
object6.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.DisZzB);
object6.action = action_81054;
Reflect.apply(push, object, [object6]);
}
if (id2 !== id) {
r18 = channel != null && !channel.isThread();
r18 = r18 && channel.isOwner(currentUser.id);
if (r18) {
recipients = channel.recipients;
r18 = recipients != null;
r22 = recipients;
} else {
r22 = undefined;
}
r18 = r18 && r22.includes(id);
if (r18) {
push = items2.push;
object7 = {};
object7.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['n5zMI+']);
object7.variant = 'destructive';
object7.action = action_81055;
Reflect.apply(push, items2, [object7]);
}
if (relationshipType === RelationshipTypes.FRIEND) {
push = object.push;
string = intl.string;
Reflect.apply(push, object, [{label: value9 ? Reflect.apply(string, intl,
[t['8pOYUE']]) : Reflect.apply(string,
intl, [t.BGYkaH]), action: action_81056}]);
}
if (isIgnored) {
if (value20) {
if (!value20) {
push = items2.push;
object10 = {};
object10.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ytCpKs);
object10.action = action_81058;
Reflect.apply(push, items2, [object10]);
}
} else {
push = items2.push;
object9 = {};
object9.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8wXU9B']);
object9.action = action_81057;
Reflect.apply(push, items2, [object9]);
}
} else if (!value20) {
push = items2.push;
object10 = {};
object10.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ytCpKs);
object10.action = action_81058;
Reflect.apply(push, items2, [object10]);
}
push = items2.push;
if (value20) {
object15 = {};
object15.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XyHpKH);
object15.action = action_81059;
Reflect.apply(push, items2, [object15]);
} else {
object11 = {};
object11.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l4Emac);
object11.variant = 'destructive';
object11.action = action_81060;
Reflect.apply(push, items2, [object11]);
if (isIarUserReportingEnabled2) {
push = items2.push;
object13 = {};
object13.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wqHXNt);
object13.variant = 'destructive';
object13.action = action_81062;
Reflect.apply(push, items2, [object13]);
} else {
moduleValue8 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue8.isAndroid()) {
push = items2.push;
object12 = {};
object12.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TbHyMG);
object12.variant = 'destructive';
object12.action = function() {
trackUserProfileAction({action: 'REPORT', analyticsLocations: analyticsLocations});
require(dependencyMap[36]).alertUserReported();
var defaultImport = importDefault(dependencyMap[37]);
var TNS_USER_REPORT_SUBMITTED = AnalyticEvents.TNS_USER_REPORT_SUBMITTED;
defaultImport.track(TNS_USER_REPORT_SUBMITTED, {reported_user_id: id});
};
Reflect.apply(push, items2, [object12]);
}
}
if (r12) {
push = object.push;
object14 = {};
object14.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Sd8Ixw);
object14.action = action_81064;
Reflect.apply(push, object, [object14]);
}
}
}
if (r11) {
push = object.push;
string = intl.string;
Reflect.apply(push, object, [{label: userIsInCall ? Reflect.apply(string, intl,
[t.ygslb0]) : Reflect.apply(string,
intl, [t.bHa9kN]), action: action_81065}]);
}
const DeveloperMode = (UserSettingsModule).DeveloperMode;
const setting = DeveloperMode.getSetting();
if (!setting || !tidaWebformEnabled) {
push = object.push;
object17 = {};
object17.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y5MwJy);
object17.action = action_81066;
Reflect.apply(push, object, [object17]);
}
if (setting) {
push = object.push;
object18 = {};
string = intl.string;
if (tidaWebformEnabled) {
object18.label = Reflect.apply(string, intl, [t.QvQeLv]);
object18.action = action_81067;
Reflect.apply(push, object, [object18]);
} else {
object18.label = Reflect.apply(string, intl, [t['/AXYnE']]);
object18.action = action_81072;
Reflect.apply(push, object, [object18]);
}
}
if (channel != null && selectedChannel != null && ChannelTypesSets.TEXTUAL.has(selectedChannel.type)) {
push = object.push;
object19 = {};
object19.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PHjkRE);
object19.action = action_81073;
Reflect.apply(push, object, [object19]);
}
if (object.length !== 0) {
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
return (
{((ContextMenu) => {children_81074})((require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu)}
);
} else if (items2.length === 0) {
return null;
} else {
const AnalyticsLocationProvider2 = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
return (
{((ContextMenu) => {children_81074})((require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu)}
);
}
function _fun81051() { // fn#81051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:1735, offset: 0x01e980fb, size: 115 bytes, params: 1, frame: 15
var r1;
var type;
const r3 = env0_10 && selectedVoiceChannelId != null;
const value3 = null;
const r2 = r3 ? ChannelRTCStore.getParticipant(selectedVoiceChannelId, user.id) : value3;
let value = value3 != r2;
if (value) {
type = r2.type;
value = environment.__proto__;
value = type === ParticipantTypes.USER;
r1 = value;
} else {
r1 = value;
}
r1 = r1 && r2.ringing;
return {userIsInCall: value3 != r2, isUserRinging: r1};
}
function _fun81052(a0) { // fn#81052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:2170, offset: 0x01e9816e, size: 135 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = undefined;
const defaultImport = ShowUserProfileActionSheet;
const object = {};
copyDataProperties(object, context, undefined);
object['showGuildProfile'] = a0;
object['userId'] = user.id;
object['channelId'] = channel == null ? value : channel.id;
object['sourceAnalyticsLocations'] = analyticsLocations;
object['ignoreBlockedSpeedBump'] = true;
defaultImport(object);
return value;
}
function UserProfileOverflowMenuAction() { // fn#81053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:2538, owner: UserProfileOverflowMenu.action, offset: 0x01e981f5, size: 48 bytes, params: 1, frame: 12
trackUserProfileAction({action: 'PRESS_VIEW_MAIN_PROFILE', analyticsLocations: analyticsLocations});
env0_13(false);
}
function UserProfileOverflowMenuAction_81054() { // fn#81054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:2742, owner: UserProfileOverflowMenu.action, offset: 0x01e98225, size: 45 bytes, params: 1, frame: 12
trackUserProfileAction({action: 'PRESS_VIEW_SERVER_PROFILE', analyticsLocations: analyticsLocations});
env0_13();
}
function UserProfileOverflowMenuAction_81055() { // fn#81055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:2991, owner: UserProfileOverflowMenu.action, offset: 0x01e98252, size: 77 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */;
value.removeRecipient(channel.id, id);
(ActionSheetActionCreators).hideActionSheet();
}
function UserProfileOverflowMenuAction_81056() { // fn#81056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:3181, owner: UserProfileOverflowMenu.action, offset: 0x01e9829f, size: 147 bytes, params: 1, frame: 18
trackUserProfileAction({action: 'PRESS_SET_FRIEND_NICKNAME', analyticsLocations: analyticsLocations});
const defaultImport = importDefault(dependencyMap[27]);
defaultImport.pushLazy(require(dependencyMap[29])(dependencyMap[28], dependencyMap.paths), {userId: id,
showUserProfile: env0_13});
importDefault(dependencyMap[26]).hideActionSheet();
}
function UserProfileOverflowMenuAction_81057() { // fn#81057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:3423, owner: UserProfileOverflowMenu.action, offset: 0x01e98332, size: 113 bytes, params: 1, frame: 18
const trackUserProfileActionBinding = trackUserProfileAction;
const value2 = undefined;
trackUserProfileActionBinding({action: 'UNIGNORE', analyticsLocations: analyticsLocations});
const defaultImport = RelationshipActionCreators;
defaultImport.unignoreUser(id, newestAnalyticsLocation, channel == null ? value2 : channel.id);
env0_13();
return value2;
}
function UserProfileOverflowMenuAction_81058() { // fn#81058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:3594, owner: UserProfileOverflowMenu.action, offset: 0x01e983a3, size: 206 bytes, params: 1, frame: 21
const trackUserProfileActionBinding = trackUserProfileAction;
const value2 = undefined;
trackUserProfileActionBinding({action: 'IGNORE', analyticsLocations: analyticsLocations});
const defaultImport = importDefault(dependencyMap[26]);
const openLazy = defaultImport.openLazy;
const value4 = require(dependencyMap[29])(dependencyMap[31], dependencyMap.paths);
object = {};
object.userId = id;
object.channelId = channel == null ? value2 : channel.id;
object.onSuccess = NOOP;
const ImpressionNames = require(dependencyMap[22]).ImpressionNames;
const IGNORE_USER_CONFIRMATION = ImpressionNames.IGNORE_USER_CONFIRMATION;
object.impressionName = IGNORE_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport, [value4, IGNORE_CONFIRMATION_ACTION_SHEET_KEY, object, 'stack']);
return value2;
}
function UserProfileOverflowMenuAction_81059() { // fn#81059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:3881, owner: UserProfileOverflowMenu.action, offset: 0x01e98471, size: 144 bytes, params: 1, frame: 18
const trackUserProfileActionBinding = trackUserProfileAction;
const value2 = undefined;
trackUserProfileActionBinding({action: 'UNBLOCK', analyticsLocations: analyticsLocations});
const defaultImport = RelationshipActionCreators;
defaultImport.unblockUser(id, {location: newestAnalyticsLocation});
env0_13();
const defaultImport2 = SafetyToastsActionCreatorsNative;
defaultImport2.showUnblockSuccessToast(id, channel == null ? value2 : channel.id);
return value2;
}
function UserProfileOverflowMenuAction_81060() { // fn#81060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:4117, owner: UserProfileOverflowMenu.action, offset: 0x01e98501, size: 183 bytes, params: 1, frame: 21
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[26]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[29])(dependencyMap[33], dependencyMap.paths);
const object = {};
object.userId = id;
object.channelId = channel == null ? value2 : channel.id;
object.onSuccess = onSuccess_81061;
const ImpressionNames = require(dependencyMap[22]).ImpressionNames;
const BLOCK_USER_CONFIRMATION = ImpressionNames.BLOCK_USER_CONFIRMATION;
object.impressionName = BLOCK_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport, [value3, BLOCK_CONFIRMATION_ACTION_SHEET_KEY, object, 'stack']);
return value2;
function actionOnSuccess_81061() { // fn#81061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:4217, owner: UserProfileOverflowMenu.action.onSuccess, offset: 0x01e985b8, size: 70 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
value = undefined;
const defaultImport = SafetyToastsActionCreatorsNative;
defaultImport.showBlockSuccessToast(id, channel == null ? value : channel.id);
return value;
}
}
function UserProfileOverflowMenuAction_81062() { // fn#81062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:4441, owner: UserProfileOverflowMenu.action, offset: 0x01e985fe, size: 132 bytes, params: 1, frame: 16
const trackUserProfileActionBinding = trackUserProfileAction;
const value2 = undefined;
trackUserProfileActionBinding({action: 'REPORT', analyticsLocations: analyticsLocations});
const r6 = env0_15 === '@me' || env0_15 === null ? value2 : env0_15;
ReportModalsModule.showReportModalForUser(user, r6);
(ActionSheetActionCreators).hideActionSheet();
return value2;
}
function UserProfileOverflowMenuAction_81064() { // fn#81064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:4909, owner: UserProfileOverflowMenu.action, offset: 0x01e986f6, size: 80 bytes, params: 1, frame: 14
trackUserProfileAction({action: 'PRESS_INVITE_TO_SERVER', analyticsLocations: analyticsLocations});
GuildInviteUtilsModule.showGuildInviteActionSheet(id, newestAnalyticsLocation);
}
function UserProfileOverflowMenuAction_81065() { // fn#81065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:5126, owner: UserProfileOverflowMenu.action, offset: 0x01e98746, size: 239 bytes, params: 1, frame: 18
var moduleValue;
trackUserProfileAction({action: userIsInCall ? 'STOP_RINGING' : 'RING', analyticsLocations: analyticsLocations});
userIsInCallBinding = userIsInCall;
const defaultImport = CallActionCreators;
if (userIsInCallBinding) {
defaultImport.stopRinging(selectedVoiceChannelId, [user.id]);
} else {
defaultImport.ring(selectedVoiceChannelId, [user.id], 'user_profile_overflow_menu');
if (enabled && selectedVoiceChannel != null) {
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
moduleValue = require(7709) /* metro dependency 7709: PrivateChannelCallUtils */;
moduleValue.openChannelCallModal(selectedVoiceChannel);
}
}
}
function UserProfileOverflowMenuAction_81066() { // fn#81066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:5472, owner: UserProfileOverflowMenu.action, offset: 0x01e98835, size: 139 bytes, params: 1, frame: 18
trackUserProfileAction({action: 'COPY_USERNAME', analyticsLocations: analyticsLocations});
const copy = ClipboardUtilsNativeModule.copy;
const defaultImport = UserUtils;
const getUserTag = defaultImport.getUserTag;
Reflect.apply(copy, ClipboardUtilsNativeModule, [Reflect.apply(getUserTag, defaultImport, [user,
{'decoration': 'never', 'identifiable': 'always'}])]);
(ToastUtilsModule).presentUsernameCopied();
}
function UserProfileOverflowMenuAction_81067() { // fn#81067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:5712, owner: UserProfileOverflowMenu.action, offset: 0x01e988c0, size: 548 bytes, params: 1, frame: 21
var environment;
var getBannerURL;
var object;
const items2 = [];
let push = items2.push;
let value = environment.__proto__;
const value2 = undefined;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
Reflect.apply(push, items2, [{label: Reflect.apply(string, intl, [t.y5MwJy]), onPress: onPress_81068}]);
push = items2.push;
const object3 = {};
object3.label = intl.string(t['/AXYnE']);
object3.onPress = onPress_81069;
Reflect.apply(push, items2, [object3]);
if (user.avatar != null || user.hasAvatarForGuild(displayProfile == null ? value2 : displayProfile.guildId)) {
items2.push({label: intl.string(t.gERDvM), onPress: onPress_81070});
}
let displayProfileBinding = displayProfile;
if (displayProfileBinding != null) {
displayProfileBinding = displayProfile;
getBannerURL = displayProfileBinding.getBannerURL;
object = {canAnimate: true};
object.size = AVATAR_MAX_SIZE;
if (Reflect.apply(getBannerURL, displayProfileBinding, [object]) != null) {
items2.push({label: intl.string(t.hsNv0R), onPress: onPress_81071});
}
}
value = require(6803) /* metro dependency 6803: showSimpleActionSheetNative */;
const showSimpleActionSheet = value.showSimpleActionSheet;
string = intl.string;
const QvQeLv = t.QvQeLv;
Reflect.apply(showSimpleActionSheet, value, [{'options': null, 'key': 'copy-info', 'header': null,
'stackingBehavior': 'stack', 'hasIcons': false, options: items2, header: {title: Reflect.apply(string, intl,
[QvQeLv])}}]);
return value2;
function actionOnPress() { // fn#81068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:5791, owner: UserProfileOverflowMenu.action.onPress, offset: 0x01e98ae4, size: 139 bytes, params: 1, frame: 18
const value = environment.__proto__;
trackUserProfileAction({action: 'COPY_USERNAME', analyticsLocations: analyticsLocations});
const copy = ClipboardUtilsNativeModule.copy;
const defaultImport = UserUtils;
const getUserTag = defaultImport.getUserTag;
Reflect.apply(copy, ClipboardUtilsNativeModule, [Reflect.apply(getUserTag, defaultImport, [user,
{'decoration': 'never', 'identifiable': 'always'}])]);
(ToastUtilsModule).presentUsernameCopied();
}
function actionOnPress_81069() { // fn#81069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:6027, owner: UserProfileOverflowMenu.action.onPress, offset: 0x01e98b6f, size: 97 bytes, params: 1, frame: 14
const value = environment.__proto__;
trackUserProfileAction({action: 'COPY_USER_ID', analyticsLocations: analyticsLocations});
ClipboardUtilsNativeModule.copy(id);
(ToastUtilsModule).presentIdCopied();
}
function actionOnPress_81070() { // fn#81070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:6255, owner: UserProfileOverflowMenu.action.onPress, offset: 0x01e98bd0, size: 144 bytes, params: 1, frame: 18
let value = environment.__proto__;
const trackUserProfileActionBinding = trackUserProfileAction;
const value2 = undefined;
trackUserProfileActionBinding({action: 'COPY_AVATAR_IMAGE_LINK', analyticsLocations: analyticsLocations});
const userBinding = user;
const getAvatarURL = userBinding.getAvatarURL;
const guildId = displayProfile == null ? value2 : displayProfile.guildId;
value = environment.__proto__.__proto__;
const value3 = Reflect.apply(getAvatarURL, userBinding, [guildId, AVATAR_MAX_SIZE, true]);
if (value3 != null) {
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
value.copy(value3);
value = require(3856) /* metro dependency 3856: ToastUtils */;
value.presentLinkCopied();
}
return value2;
}
function actionOnPress_81071() { // fn#81071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:6555, owner: UserProfileOverflowMenu.action.onPress, offset: 0x01e98c60, size: 100 bytes, params: 1, frame: 14
let value = environment.__proto__;
trackUserProfileAction({action: 'COPY_BANNER_IMAGE_LINK', analyticsLocations: analyticsLocations});
value = environment.__proto__.__proto__;
(ClipboardUtilsNativeModule).copy(env0_0);
(ToastUtilsModule).presentLinkCopied();
}
}
function UserProfileOverflowMenuAction_81072() { // fn#81072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:6887, owner: UserProfileOverflowMenu.action, offset: 0x01e98cc4, size: 97 bytes, params: 1, frame: 14
trackUserProfileAction({action: 'COPY_USER_ID', analyticsLocations: analyticsLocations});
ClipboardUtilsNativeModule.copy(id);
(ToastUtilsModule).presentIdCopied();
}
function UserProfileOverflowMenuAction_81073() { // fn#81073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:7092, owner: UserProfileOverflowMenu.action, offset: 0x01e98d25, size: 72 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (OpenUserContextMenuCommands)({userId: id,
selectedChannel: selectedChannel, showUserProfile: env0_13, analyticsLocations: analyticsLocations});
}
function UserProfileOverflowMenuChildren(a0) { // fn#81074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10661:7314, owner: UserProfileOverflowMenu.children, offset: 0x01e98d6d, size: 241 bytes, params: 2, frame: 21
const ref = a0.ref;
const value = Object.create(null);
value.ref = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const IconButton = (IconButtonNativeModule).IconButton;
const iconButtonProps = {ref: ref, ...value2};
iconButtonProps['size'] = 'sm';
iconButtonProps['variant'] = 'secondary-overlay';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
iconButtonProps['accessibilityLabel'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+zofAD']);
const MoreHorizontalIcon = (MoreHorizontalIconModule).MoreHorizontalIcon;
const WHITE = (Native).colors.WHITE;
iconButtonProps['icon'] = ;
return ;
}
}
}
global.__d(_fun81047, 10475, [57, 31, 4606, 1379, 3793, 1934, 661, 4299, 8781, 33, 566, 10476, 10482, 8782, 8514,
6771, 6789, 8490, 8917, 4619, 6796, 8742, 480, 8743, 1244, 4603, 4080, 5080, 10483, 1962, 8783, 8793, 6264,
8794, 8153, 477, 8796, 683, 8916, 7709, 3829, 6797, 3995, 3856, 6803, 8810, 8811, 8341, 8638, 697,
2]) /* metro module 10475, dependencies: [57, 31, 4606, 1379, 3793, 1934, 661, 4299, 8781, 33, 566, 10476, 10482, 8782, 8514, 6771, 6789, 8490, 8917, 4619, 6796, 8742, 480, 8743, 1244, 4603, 4080, 5080, 10483, 1962, 8783, 8793, 6264, 8794, 8153, 477, 8796, 683, 8916, 7709, 3829, 6797, 3995, 3856, 6803, 8810, 8811, 8341, 8638, 697, 2] */;