2026-09-07 16:44:02 +00:00
|
|
|
// Module ID: 9528
|
|
|
|
|
// Function ID: 9529
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: tryLaunchAsFrame
|
2026-09-07 16:44:02 +00:00
|
|
|
// Dependencies: [4788, 9516, 9511, 9512, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
|
|
2026-09-07 16:44:02 +00:00
|
|
|
// Module 9528 (tryLaunchAsFrame)
|
|
|
|
|
import canLaunchFrame from "canLaunchFrame" /* 9511 */;
|
|
|
|
|
import _launchFrameOnNativeDefault from "_launchFrameOnNative" /* 9512 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import closure_3 from "addApplication" /* 4788 */;
|
2026-09-07 16:44:02 +00:00
|
|
|
import { MAIN_SURFACE } from "FrameLayoutModes" /* 9516 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
|
|
|
|
applicationId = applicationId.applicationId;
|
2026-09-05 10:56:28 +00:00
|
|
|
({ customId, referrerId, analyticsContext } = 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-24 06:08:38 +00:00
|
|
|
let obj = canLaunchFrame;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = !obj.canLaunchFrame(application);
|
|
|
|
|
}
|
|
|
|
|
let flag = !tmp2;
|
|
|
|
|
if (!tmp2) {
|
2026-09-05 10:56:28 +00:00
|
|
|
obj = { applicationId: null, surface: null, customId: null, referrerId: null, analyticsContext: 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-09-03 10:05:34 +00:00
|
|
|
obj[2] = customId;
|
|
|
|
|
obj[3] = referrerId;
|
2026-09-05 10:56:28 +00:00
|
|
|
obj[4] = analyticsContext;
|
2026-08-24 06:08:38 +00:00
|
|
|
_launchFrameOnNativeDefault.launchFrame(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
flag = true;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = _launchFrameOnNativeDefault;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
};
|