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

32 lines
820 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 7006
// Function ID: 7007
2026-07-20 16:05:17 +00:00
// Name: hasFlag
2026-10-09 10:00:15 +00:00
// Dependencies: [1085, 1403, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 7006 (hasFlag)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import FlagUtils from "FlagUtils" /* 1403 */;
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;
2026-10-03 08:58:59 +00:00
const hasFlag = FlagUtils.hasFlag;
FlagUtils;
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
hasFlagResult = hasFlag(num, arg1);
2026-07-20 16:05:17 +00:00
}
tmp = hasFlagResult;
}
return tmp;
};