decord/source/modules/frames/utils/canLaunchFrame.tsx
2026-09-02 09:53:35 +00:00

29 lines
1,016 B
TypeScript

// Module ID: 9483
// Function ID: 9484
// Name: canLaunchFrame
// Dependencies: [673, 8153, 8445, 2]
// Exports: canLaunchFrame
// Module 9483 (canLaunchFrame)
import set from "set" /* 2 */;
import ME from "ME" /* 673 */;
import getShelfBadgeTypeIfActive from "getShelfBadgeTypeIfActive" /* 8153 */;
const ApplicationFlags = ME.ApplicationFlags;
const result = set.fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
export const canLaunchFrame = function canLaunchFrame(application) {
if (null != application) {
if (obj.isRealApplication(application)) {
let tmpResult = tmp(8445);
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
tmpResult = tmp(8445);
if (hasApplicationFlagResult) {
hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
return hasApplicationFlagResult;
}
obj = getShelfBadgeTypeIfActive;
}
return false;
};