Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Module ID: 9594
|
|
// Function ID: 9595
|
|
// Name: tryLaunchAsFrame
|
|
// Dependencies: [4983, 9313, 9593, 9570, 2]
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
// Module 9594 (tryLaunchAsFrame)
|
|
import FramesActionCreatorsDefault from "FramesActionCreators" /* 9570 */;
|
|
import canLaunchFrame from "canLaunchFrame" /* 9593 */;
|
|
import ApplicationStore from "ApplicationStore" /* 4983 */;
|
|
|
|
require = fn;
|
|
const MAIN_SURFACE = fn(9313).MAIN_SURFACE;
|
|
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;
|
|
};
|