33 lines
2.3 KiB
TypeScript
33 lines
2.3 KiB
TypeScript
/* Metro module 8810; source: modules/user_profile/native/openUserContextMenuCommands.tsx; dependencies: [8515, 4080, 4007, 1909, 2] */
|
|
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});
|
|
(require(2) /* metro dependency 2 */).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
|
|
var object2;
|
|
(require(8515) /* metro dependency 8515: UserProfileAnalyticsUtils */).trackUserProfileAction({action: 'PRESS_VIEW_APP_COMMANDS',
|
|
analyticsLocations: analyticsLocations});
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
|
value = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
|
const navigateToContextMenuCommands = value.navigateToContextMenuCommands;
|
|
object2 = {channel: selectedChannel};
|
|
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
|
const USER = ApplicationCommandType.USER;
|
|
object2.commandType = USER;
|
|
object2.commandTargetId = userId;
|
|
object2.onClose = showUserProfile;
|
|
object2.onPressAppCommand = onPressAppCommand;
|
|
Reflect.apply(navigateToContextMenuCommands, value, [object2]);
|
|
}
|
|
|
|
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 (require(8515) /* metro dependency 8515: UserProfileAnalyticsUtils */).trackUserProfileAction({action: 'PRESS_APP_COMMAND',
|
|
analyticsLocations: analyticsLocations});
|
|
}
|
|
|