89 lines
3.9 KiB
TypeScript
89 lines
3.9 KiB
TypeScript
/* Metro module 12705; source: modules/activities/native/openActivityDMLauncher.tsx; dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */
|
|
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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
|
|
(require(2) /* metro dependency 2 */).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 env0_3(_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 object2 = {recipientIds: id};
|
|
await Reflect.apply(openPrivateChannel, value9, [object2]);
|
|
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;
|
|
object2 = {};
|
|
object2.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER;
|
|
object2.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId,
|
|
referrerId: a1};
|
|
Reflect.apply(openCustomKeyboard, bestActiveInput, [object2]);
|
|
}
|
|
return value4;
|
|
}
|
|
binding = env2_1;
|
|
var binding2 = env2_2;
|
|
var value15 = binding(binding2[5]);
|
|
object2 = {targetApplicationId: a0, locationObject: {}, channelId: value10};
|
|
var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK;
|
|
object2.analyticsLocations = [ACTIVITY_BOOKMARK];
|
|
var CommandOrigin = env2_0(binding2[7]).CommandOrigin;
|
|
var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
|
|
object2.commandOrigin = ACTIVITY_BOOKMARK_EMBED;
|
|
object2.referrerId = a1;
|
|
object2.customId = customId;
|
|
await value15(object2);
|
|
}
|
|
return value4;
|
|
}
|
|
|