decord/source/modules/app_launcher/utils/AppLauncherPlayUtils.tsx

157 lines
4.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10749
// Function ID: 10750
2026-07-20 16:05:17 +00:00
// Name: _launchActivityInBotDM
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 8759, 8760, 4775, 8783, 2]
2026-07-20 16:05:17 +00:00
// Exports: launchActivityInBotDM
2026-08-24 06:08:38 +00:00
// Module 10749 (_launchActivityInBotDM)
import closure_3 from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _launchActivityInBotDM() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c3 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
const iter = (function*(arg0) {
if (c4 === 2) {
c4 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c4 = 2;
if (0 === c3) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
dependencyMap = 0;
2026-07-29 08:29:29 +00:00
let callback2 = tmp2;
let callback;
callback2 = undefined;
dependencyMap = undefined;
c3 = undefined;
c4 = undefined;
c5 = undefined;
({ appId: c0, botId: c1, analyticsLocations: c2, customId: c3, referrerId: c4, commandOrigin: c5 } = callback);
2026-08-24 06:08:38 +00:00
closure_6 = undefined;
2026-07-29 08:29:29 +00:00
c3 = 1;
c4 = 1;
2026-08-12 06:57:52 +00:00
return { value: "ct", done: true };
2026-07-29 08:29:29 +00:00
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: true };
2026-07-29 08:29:29 +00:00
obj1[0] = arg1;
return obj1;
} else {
const obj2 = { applicationId: null };
obj2[0] = callback;
if (obj14.tryLaunchAsFrame(obj2)) {
2026-08-24 06:08:38 +00:00
let obj8 = callback(8760);
const result = obj8.stashPendingFrameLaunch(callback, { isStart: true });
2026-07-29 08:29:29 +00:00
c4 = 3;
const obj3 = { value: null, done: true };
obj3[0] = Promise.resolve(true);
return obj3;
} else {
2026-08-24 06:08:38 +00:00
let obj5 = callback2(4775);
const obj4 = { recipientIds: null };
2026-07-29 08:29:29 +00:00
obj4[0] = callback2;
c3 = 2;
c4 = 1;
2026-08-24 06:08:38 +00:00
obj5 = { value: null, done: false };
obj5[0] = obj5.openPrivateChannel(obj4);
2026-07-29 08:29:29 +00:00
return obj5;
}
2026-08-24 06:08:38 +00:00
obj14 = callback(8759);
2026-07-29 08:29:29 +00:00
}
} else if (2 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
const obj6 = { value: null, done: true };
obj6[0] = arg1;
return obj6;
} else {
closure_6 = arg1;
2026-08-24 06:08:38 +00:00
const obj7 = { targetApplicationId: null, channelId: null, analyticsLocations: null, customId: null, referrerId: null, commandOrigin: null };
2026-07-29 08:29:29 +00:00
obj7[0] = callback;
obj7[1] = closure_6;
obj7[2] = dependencyMap;
obj7[3] = c3;
obj7[4] = c4;
obj7[5] = c5;
c3 = 3;
c4 = 1;
2026-08-24 06:08:38 +00:00
obj8 = { value: null, done: false };
obj8[0] = callback2(8783)(obj7);
2026-07-29 08:29:29 +00:00
return obj8;
}
} else if (arg0 === 1) {
c4 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 3;
const obj9 = { value: null, done: true };
obj9[0] = arg1;
return obj9;
} else {
c4 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
2026-08-24 06:08:38 +00:00
} catch (tmp24) {
2026-07-29 08:29:29 +00:00
c4 = tmp;
2026-08-24 06:08:38 +00:00
throw tmp24;
2026-07-29 08:29:29 +00:00
}
}
})();
iter.next();
return iter;
});
2026-08-24 06:08:38 +00:00
closure_4 = 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
let result = require("set").fileFinishedImporting("modules/app_launcher/utils/AppLauncherPlayUtils.tsx");
2026-07-20 16:05:17 +00:00
export const launchActivityInBotDM = function launchActivityInBotDM(arg0) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _launchActivityInBotDM.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
};