decord/beta/source/modules/activities/utils/hasFlag.tsx
2026-10-01 14:13:23 +00:00

31 lines
820 B
TypeScript

// Module ID: 6731
// Function ID: 6732
// Name: hasFlag
// Dependencies: [1074, 1385, 2]
// Exports: default
// Module 6731 (hasFlag)
import Constants from "Constants" /* 1074 */;
import FlagUtils from "FlagUtils" /* 1385 */;
import size from "module_2" /* 2 */;
const ActivityFlags = Constants.ActivityFlags;
const result = size.fileFinishedImporting("modules/activities/utils/hasFlag.tsx");
export default function hasFlag(flags, arg1) {
let tmp = arg1 !== ActivityFlags.INSTANCE;
if (tmp) {
let hasFlagResult = null != flags && null != flags.flags;
if (hasFlagResult) {
let num = flags.flags;
const hasFlag = FlagUtils.hasFlag;
FlagUtils;
if (num == null) {
num = 0;
}
hasFlagResult = hasFlag(num, arg1);
}
tmp = hasFlagResult;
}
return tmp;
};