decord/source/modules/activities/native/openActivityDMLauncher.tsx

209 lines
6.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13497
// Function ID: 13498
2026-07-20 16:05:17 +00:00
// Name: _openActivityDMLauncher
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 1499, 7178, 4775, 12463, 8783, 7197, 5253, 4241, 1627, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 13497 (_openActivityDMLauncher)
import closure_3 from "asyncGeneratorStep" /* 5 */;
import { AppLauncherRouteName } from "APP_LAUNCHER_BUILT_IN_SECTION_ICON" /* 1499 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _openActivityDMLauncher() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0, arg1, arg2, arg3) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
closure_3 = arg3;
closure_4 = arg4;
c7 = 0;
c8 = 0;
2026-07-29 08:29:29 +00:00
const iter = (function*(arg0, customId) {
2026-08-12 06:57:52 +00:00
if (customId === 2) {
customId = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
throw customId;
} else if (arg0 === 2) {
2026-08-12 06:57:52 +00:00
let obj = { value: null, done: true };
obj[0] = customId;
return obj;
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-08-12 06:57:52 +00:00
}
} else {
try {
customId = 2;
if (0 === c7) {
if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 === 2) {
customId = 3;
obj = { value: null, done: true };
obj[0] = customId;
return obj;
} else {
let id = tmp2;
let bot = tmp5;
let flag;
if (flag === undefined) {
flag = false;
}
bot = undefined;
id = undefined;
c7 = undefined;
customId = undefined;
c7 = 1;
2026-07-29 08:29:29 +00:00
customId = 1;
2026-08-12 06:57:52 +00:00
return { value: "ct", done: true };
2026-07-29 08:29:29 +00:00
}
2026-08-12 06:57:52 +00:00
} else if (1 === tmp5) {
if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 === 2) {
customId = 3;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: true };
2026-08-12 06:57:52 +00:00
obj1[0] = customId;
return obj1;
} else {
c7 = 2;
customId = 1;
const obj2 = { value: null, done: false };
2026-08-24 06:08:38 +00:00
obj2[0] = callback2(7178).fetchApplication(callback);
2026-08-12 06:57:52 +00:00
return obj2;
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-12 06:57:52 +00:00
if (2 === tmp5) {
if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 === 2) {
customId = 3;
let obj3 = { value: null, done: true };
obj3[0] = customId;
return obj3;
} else {
bot = customId;
bot = bot.bot;
id = undefined;
if (bot != null) {
id = bot.id;
}
if (null != bot) {
if (null != id) {
2026-08-24 06:08:38 +00:00
let obj9 = callback2(4775);
2026-08-12 06:57:52 +00:00
const obj4 = { recipientIds: null };
obj4[0] = id;
c7 = 3;
customId = 1;
const obj5 = { value: null, done: false };
obj5[0] = obj9.openPrivateChannel(obj4);
return obj5;
}
}
customId = 3;
}
} else if (3 === tmp5) {
if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 === 2) {
customId = 3;
let obj6 = { value: null, done: true };
obj6[0] = customId;
return obj6;
} else {
c7 = customId;
2026-08-24 06:08:38 +00:00
obj6 = callback(12463);
2026-08-12 06:57:52 +00:00
c7 = 4;
customId = 1;
const obj7 = { value: null, done: false };
2026-08-24 06:08:38 +00:00
obj7[0] = obj6.getCustomActivityLinkParams(callback, closure_3, dependencyMap);
2026-08-12 06:57:52 +00:00
return obj7;
}
} else if (4 === tmp5) {
if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 !== 2) {
customId = customId.customId;
if (flag) {
2026-08-24 06:08:38 +00:00
obj3 = callback(4241);
2026-08-12 06:57:52 +00:00
const bestActiveInput = obj3.getBestActiveInput();
if (bestActiveInput != null) {
const obj8 = { type: null, context: null };
2026-08-15 05:55:55 +00:00
obj8[0] = callback(1627).KeyboardTypes.APP_LAUNCHER;
2026-08-12 06:57:52 +00:00
obj9 = { application: null, initialRouteName: null, customId: null, referrerId: null };
obj9[0] = bot;
obj9[1] = flag.APPLICATION_VIEW;
obj9[2] = customId;
obj9[3] = callback2;
obj8[1] = obj9;
bestActiveInput.openCustomKeyboard(obj8);
}
} else {
const obj10 = { targetApplicationId: null, locationObject: null, channelId: null, analyticsLocations: null, commandOrigin: null, referrerId: null, customId: null };
obj10[0] = callback;
obj10[1] = {};
obj10[2] = c7;
2026-08-24 06:08:38 +00:00
const items = [callback2(7197).ACTIVITY_BOOKMARK];
2026-08-12 06:57:52 +00:00
obj10[3] = items;
2026-08-24 06:08:38 +00:00
obj10[4] = callback(5253).CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
2026-08-12 06:57:52 +00:00
obj10[5] = callback2;
obj10[6] = customId;
c7 = 5;
customId = 1;
const obj11 = { value: null, done: false };
2026-08-24 06:08:38 +00:00
obj11[0] = callback2(8783)(obj10);
2026-08-12 06:57:52 +00:00
return obj11;
}
}
} else if (arg0 === 1) {
customId = 3;
throw customId;
} else if (arg0 === 2) {
customId = 3;
obj = { value: null, done: true };
obj[0] = customId;
return obj;
}
customId = 3;
const obj12 = { value: null, done: true };
obj12[0] = customId;
return obj12;
2026-07-29 08:29:29 +00:00
}
2026-08-12 06:57:52 +00:00
} catch (tmp49) {
customId = tmp;
throw tmp49;
2026-07-29 08:29:29 +00:00
}
}
})();
iter.next();
return iter;
});
2026-08-24 06:08:38 +00:00
closure_5 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activities/native/openActivityDMLauncher.tsx");
2026-07-20 16:05:17 +00:00
export default function openActivityDMLauncher() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _openActivityDMLauncher.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};