// Module ID: 8995 // Function ID: 8996 // Name: tryLaunchAsFrame // Dependencies: [5118, 8704, 8994, 8986, 2] // Exports: tryLaunchAsFrame // Module 8995 (tryLaunchAsFrame) import FramesConstants from "FramesConstants" /* 8704 */; import FramesActionCreatorsDefault from "FramesActionCreators" /* 8986 */; import canLaunchContextlessFrame from "canLaunchContextlessFrame" /* 8994 */; import ApplicationStore from "ApplicationStore" /* 5118 */; import size from "module_2" /* 2 */; const MAIN_SURFACE = FramesConstants.MAIN_SURFACE; const result = size.fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx"); export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) { let analyticsContext; let customId; let referrerId; applicationId = applicationId.applicationId; ({ customId, referrerId, analyticsContext } = applicationId); const application = ApplicationStore.getApplication(applicationId); let tmp2 = null == application; if (!tmp2) { const obj = canLaunchContextlessFrame; tmp2 = !obj.canLaunchContextlessFrame(application); } let flag = !tmp2; if (flag) { const obj3 = { applicationId, surface: MAIN_SURFACE, customId, referrerId, analyticsContext }; const obj2 = FramesActionCreatorsDefault; obj2.launchFrame(obj3); flag = true; } return flag; };