/* Metro module 12705; source: modules/activities/native/openActivityDMLauncher.tsx; dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as AppLauncherNativeConstantsModule from '../../app_launcher/native/AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */ function _fun97348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:6, offset: 0x0217cb3e, size: 151 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/activities/native/openActivityDMLauncher.tsx'); exports.default = function() { return _openActivityDMLauncher.apply(this, arguments); }; function _openActivityDMLauncher() { // fn#97349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:137, offset: 0x0217cbd5, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun97351).apply(this, arguments); async function _fun97351(a0, a1, a2, a3) { // fn#97351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:206, offset: 0x0217cc1b, size: 504 bytes, params: 5, frame: 25 var bestActiveInput; var openCustomKeyboard; let value = a4; if (false) { return undefined; } const value4 = undefined; const r7 = value !== value4 ? value : false; await value4; if (false) { return undefined; } value = environment.__proto__.__proto__; let binding = env2_1; const value6 = binding(env2_2[2]); await value6.fetchApplication(a0); const value7 = undefined; if (false) { return value7; } const bot = value7.bot; const id = bot == null ? value4 : bot.id; if (value7 != null) { if (id == null) { return value4; } var value9 = env2_1(env2_2[3]); var openPrivateChannel = value9.openPrivateChannel; var object = {recipientIds: id}; await Reflect.apply(openPrivateChannel, value9, [object]); var value10 = undefined; if (false) { return value10; } var value12 = env2_0(env2_2[4]); var getCustomActivityLinkParams = value12.getCustomActivityLinkParams; await Reflect.apply(getCustomActivityLinkParams, value12, [a0, a3, a2]); var value13 = undefined; if (false) { return value13; } var customId = value13.customId; if (r7) { bestActiveInput = env2_0(env2_2[8]).getBestActiveInput(); if (bestActiveInput != null) { openCustomKeyboard = bestActiveInput.openCustomKeyboard; object = {}; object.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER; object.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId, referrerId: a1}; Reflect.apply(openCustomKeyboard, bestActiveInput, [object]); } return value4; } binding = env2_1; var binding2 = env2_2; var value15 = binding(binding2[5]); object = {targetApplicationId: a0, locationObject: {}, channelId: value10}; var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK; object.analyticsLocations = [ACTIVITY_BOOKMARK]; var CommandOrigin = env2_0(binding2[7]).CommandOrigin; var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED; object.commandOrigin = ACTIVITY_BOOKMARK_EMBED; object.referrerId = a1; object.customId = customId; await value15(object); } return value4; } } } global.__d(_fun97348, 12705, [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2]) /* metro module 12705, dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */;