2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 8784
|
|
|
|
|
// Function ID: 8785
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: tryLaunchAsFrame
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [5063, 8500, 8783, 8760, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 8784 (tryLaunchAsFrame)
|
2026-10-01 14:13:23 +00:00
|
|
|
import FramesConstants from "FramesConstants" /* 8500 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 8760 */;
|
|
|
|
|
import canLaunchFrame from "canLaunchFrame" /* 8783 */;
|
|
|
|
|
import ApplicationStore from "ApplicationStore" /* 5063 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const MAIN_SURFACE = FramesConstants.MAIN_SURFACE;
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
|
|
|
|
|
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let analyticsContext;
|
|
|
|
|
let customId;
|
|
|
|
|
let referrerId;
|
2026-09-18 19:45:33 +00:00
|
|
|
applicationId = applicationId.applicationId;
|
|
|
|
|
({ customId, referrerId, analyticsContext } = applicationId);
|
|
|
|
|
const application = ApplicationStore.getApplication(applicationId);
|
|
|
|
|
let tmp2 = null == application;
|
|
|
|
|
if (!tmp2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = canLaunchFrame;
|
|
|
|
|
tmp2 = !obj.canLaunchFrame(application);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
let flag = !tmp2;
|
2026-10-01 14:13:23 +00:00
|
|
|
if (flag) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj3 = { applicationId, surface: MAIN_SURFACE, customId, referrerId, analyticsContext };
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = FramesActionCreatorsDefault;
|
|
|
|
|
obj2.launchFrame(obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
};
|