2026-09-24 16:03:38 +00:00
|
|
|
// Module ID: 9623
|
|
|
|
|
// Function ID: 9624
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: tryLaunchAsFrame
|
2026-09-24 16:03:38 +00:00
|
|
|
// Dependencies: [5017, 9344, 9622, 9599, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
|
|
2026-09-24 16:03:38 +00:00
|
|
|
// Module 9623 (tryLaunchAsFrame)
|
|
|
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 9599 */;
|
|
|
|
|
import canLaunchFrame from "canLaunchFrame" /* 9622 */;
|
|
|
|
|
import ApplicationStore from "ApplicationStore" /* 5017 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
require = fn;
|
2026-09-24 16:03:38 +00:00
|
|
|
const MAIN_SURFACE = fn(9344).MAIN_SURFACE;
|
2026-09-18 19:45:33 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
|
|
|
|
|
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
|
|
|
|
applicationId = applicationId.applicationId;
|
|
|
|
|
({ customId, referrerId, analyticsContext } = applicationId);
|
|
|
|
|
const application = ApplicationStore.getApplication(applicationId);
|
|
|
|
|
let tmp2 = null == application;
|
|
|
|
|
if (!tmp2) {
|
|
|
|
|
tmp2 = !canLaunchFrame.canLaunchFrame(application);
|
|
|
|
|
}
|
|
|
|
|
let flag = !tmp2;
|
|
|
|
|
if (!tmp2) {
|
|
|
|
|
const obj3 = { applicationId, surface: MAIN_SURFACE, customId, referrerId, analyticsContext };
|
|
|
|
|
FramesActionCreatorsDefault.launchFrame(obj3);
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
return flag;
|
|
|
|
|
};
|