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

30 lines
772 B
TypeScript
Raw Normal View History

// Module ID: 6918
// Function ID: 6919
2026-07-20 16:05:17 +00:00
// Name: hasFlag
// Dependencies: [1074, 1385, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 6918 (hasFlag)
import Constants from "Constants" /* 1074 */;
import FlagUtils from "FlagUtils" /* 1385 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const ActivityFlags = Constants.ActivityFlags;
const result = size.fileFinishedImporting("modules/activities/utils/hasFlag.tsx");
2026-07-20 16:05:17 +00:00
export default function hasFlag(flags, arg1) {
2026-07-20 16:05:17 +00:00
let tmp = arg1 !== ActivityFlags.INSTANCE;
if (tmp) {
let hasFlagResult = null != flags && null != flags.flags;
if (hasFlagResult) {
2026-07-29 08:29:29 +00:00
let num = flags.flags;
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
hasFlagResult = FlagUtils.hasFlag(num, arg1);
2026-07-20 16:05:17 +00:00
}
tmp = hasFlagResult;
}
return tmp;
};