2026-09-25 08:38:05 +00:00
|
|
|
// Module ID: 8776
|
|
|
|
|
// Function ID: 8777
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: tryLaunchAsFrame
|
2026-09-25 08:38:05 +00:00
|
|
|
// Dependencies: [5056, 8492, 8775, 8752, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
|
|
2026-09-25 08:38:05 +00:00
|
|
|
// Module 8776 (tryLaunchAsFrame)
|
|
|
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 8752 */;
|
|
|
|
|
import canLaunchFrame from "canLaunchFrame" /* 8775 */;
|
2026-09-24 10:59:02 +00:00
|
|
|
import ApplicationStore from "ApplicationStore" /* 5056 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-25 08:38:05 +00:00
|
|
|
const MAIN_SURFACE = fn(8492).MAIN_SURFACE;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.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-09-10 05:38:07 +00:00
|
|
|
const application = ApplicationStore.getApplication(applicationId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = null == application;
|
|
|
|
|
if (!tmp2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp2 = !canLaunchFrame.canLaunchFrame(application);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let flag = !tmp2;
|
|
|
|
|
if (!tmp2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj3 = { applicationId, surface: MAIN_SURFACE, customId, referrerId, analyticsContext };
|
|
|
|
|
FramesActionCreatorsDefault.launchFrame(obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
};
|