26 lines
962 B
TypeScript
26 lines
962 B
TypeScript
// Metro module 5692 (f5693).
|
|
import ApplicationRecord from "../../../records/ApplicationRecord";
|
|
import { deserialize, has } from "../../../_bundle/HighLow";
|
|
const getApplicationFlags = function getApplicationFlags(application) {
|
|
let r24;
|
|
if (application == null) {
|
|
r24 = deserialize(0);
|
|
} else if (application != null && (application instanceof ApplicationRecord || "flags" in application && typeof application.flags === "bigint" || "flags" in application && application.flags != null && typeof application.flags === "object" && "parts" in application.flags)) {
|
|
r24 = application.flags;
|
|
} else {
|
|
let flags_new = application.flags_new;
|
|
if (flags_new == null) {
|
|
flags_new = application.flags;
|
|
}
|
|
if (flags_new == null) {
|
|
flags_new = 0;
|
|
}
|
|
r24 = deserialize(flags_new);
|
|
}
|
|
return r24;
|
|
};
|
|
export { getApplicationFlags };
|
|
export function hasApplicationFlag(a0, a1) {
|
|
return has(getApplicationFlags(a0), a1);
|
|
}
|