2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 8722
|
|
|
|
|
// Function ID: 8723
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: tryLaunchAsFrame
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [4478, 8709, 8704, 8705, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 8722 (tryLaunchAsFrame)
|
2026-07-29 08:29:29 +00:00
|
|
|
import addApplication from "addApplication";
|
2026-08-06 08:05:19 +00:00
|
|
|
import { MAIN_SURFACE } from "FrameLayoutModes";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-06 08:05:19 +00:00
|
|
|
const result = require("canLaunchFrame").fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
|
|
|
|
applicationId = applicationId.applicationId;
|
2026-07-23 10:11:24 +00:00
|
|
|
application = application.getApplication(applicationId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = null == application;
|
|
|
|
|
if (!tmp2) {
|
2026-08-15 05:55:55 +00:00
|
|
|
let obj = require(8704) /* canLaunchFrame */;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = !obj.canLaunchFrame(application);
|
|
|
|
|
}
|
|
|
|
|
let flag = !tmp2;
|
|
|
|
|
if (!tmp2) {
|
2026-08-06 08:05:19 +00:00
|
|
|
obj = { applicationId: null, surface: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = applicationId;
|
2026-08-06 08:05:19 +00:00
|
|
|
obj[1] = MAIN_SURFACE;
|
2026-08-15 05:55:55 +00:00
|
|
|
importDefault(8705).launchFrame(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
flag = true;
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj2 = importDefault(8705);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
};
|