decord/alpha/source/modules/activities/utils/tryLaunchAsFrame.tsx

37 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10780
// Function ID: 10781
2026-07-20 16:05:17 +00:00
// Name: tryLaunchAsFrame
2026-10-09 10:00:15 +00:00
// Dependencies: [5437, 10767, 10768, 10769, 2]
2026-07-20 16:05:17 +00:00
// Exports: tryLaunchAsFrame
2026-10-09 10:00:15 +00:00
// Module 10780 (tryLaunchAsFrame)
import FramesConstants from "FramesConstants" /* 10767 */;
import canLaunchContextlessFrame from "canLaunchContextlessFrame" /* 10768 */;
import FramesActionCreatorsDefault from "FramesActionCreators" /* 10769 */;
import ApplicationStore from "ApplicationStore" /* 5437 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const MAIN_SURFACE = FramesConstants.MAIN_SURFACE;
const result = size.fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
2026-07-20 16:05:17 +00:00
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
2026-10-03 08:58:59 +00:00
let analyticsContext;
2026-10-08 09:57:35 +00:00
let launch;
2026-07-20 16:05:17 +00:00
applicationId = applicationId.applicationId;
2026-10-08 09:57:35 +00:00
({ launch, analyticsContext } = applicationId);
const application = ApplicationStore.getApplication(applicationId);
2026-07-20 16:05:17 +00:00
let tmp2 = null == application;
if (!tmp2) {
2026-10-03 08:58:59 +00:00
const obj = canLaunchContextlessFrame;
tmp2 = !obj.canLaunchContextlessFrame(application);
2026-07-20 16:05:17 +00:00
}
let flag = !tmp2;
2026-10-03 08:58:59 +00:00
if (flag) {
2026-10-08 09:57:35 +00:00
const obj3 = { applicationId, surface: MAIN_SURFACE, launch, analyticsContext };
2026-10-03 08:58:59 +00:00
const obj2 = FramesActionCreatorsDefault;
obj2.launchFrame(obj3);
2026-07-20 16:05:17 +00:00
flag = true;
}
return flag;
};