decord/source/modules/frames/utils/canLaunchFrame.tsx

30 lines
1,018 B
TypeScript
Raw Normal View History

// Module ID: 9506
// Function ID: 9507
2026-07-20 16:05:17 +00:00
// Name: canLaunchFrame
// Dependencies: [1074, 9289, 8856, 2]
2026-07-20 16:05:17 +00:00
// Exports: canLaunchFrame
// Module 9506 (canLaunchFrame)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import getShelfBadgeTypeIfActive from "getShelfBadgeTypeIfActive" /* 9289 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const ApplicationFlags = ME.ApplicationFlags;
const result = set.fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
2026-07-20 16:05:17 +00:00
export const canLaunchFrame = function canLaunchFrame(application) {
if (null != application) {
if (obj.isRealApplication(application)) {
let tmpResult = tmp(8856);
2026-07-29 08:29:29 +00:00
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
tmpResult = tmp(8856);
2026-07-20 16:05:17 +00:00
if (hasApplicationFlagResult) {
2026-07-29 08:29:29 +00:00
hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
2026-07-20 16:05:17 +00:00
}
return hasApplicationFlagResult;
}
2026-08-24 06:08:38 +00:00
obj = getShelfBadgeTypeIfActive;
2026-07-20 16:05:17 +00:00
}
return false;
};