39 lines
2.8 KiB
TypeScript
39 lines
2.8 KiB
TypeScript
/* Metro module 8810; source: modules/user_profile/native/openUserContextMenuCommands.tsx; dependencies: [8515, 4080, 4007, 1909, 2] */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ServerModule from '../../../flow/Server.tsx'; /* Metro dependency 1909 */
|
|
import * as UserProfileAnalyticsUtilsModule from '../UserProfileAnalyticsUtils.tsx'; /* Metro dependency 8515 */
|
|
|
|
function _fun68863(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8995:6, offset: 0x01c5fafb, size: 103 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/openUserContextMenuCommands.tsx');
|
|
exports.default = openUserContextMenuCommands;
|
|
function openUserContextMenuCommands({userId, selectedChannel, showUserProfile, analyticsLocations}) { // fn#68864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8995:195, offset: 0x01c5fb62, size: 192 bytes, params: 2, frame: 21
|
|
(UserProfileAnalyticsUtilsModule).trackUserProfileAction({action: 'PRESS_VIEW_APP_COMMANDS',
|
|
analyticsLocations: analyticsLocations});
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
value = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
|
const navigateToContextMenuCommands = value.navigateToContextMenuCommands;
|
|
object = {channel: selectedChannel};
|
|
const ApplicationCommandType = (ServerModule).ApplicationCommandType;
|
|
const USER = ApplicationCommandType.USER;
|
|
object.commandType = USER;
|
|
object.commandTargetId = userId;
|
|
object.onClose = showUserProfile;
|
|
object.onPressAppCommand = onPressAppCommand;
|
|
Reflect.apply(navigateToContextMenuCommands, value, [object]);
|
|
function onPressAppCommand() { // fn#68865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8995:558, owner: openUserContextMenuCommands.onPressAppCommand, offset: 0x01c5fc22, size: 61 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
return (UserProfileAnalyticsUtilsModule).trackUserProfileAction({action: 'PRESS_APP_COMMAND',
|
|
analyticsLocations: analyticsLocations});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68863, 8810, [8515, 4080, 4007, 1909,
|
|
2]) /* metro module 8810, dependencies: [8515, 4080, 4007, 1909, 2] */;
|