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

33 lines
748 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10759
// Function ID: 10760
2026-07-20 16:05:17 +00:00
// Name: getIsInParty
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getIsInParty
2026-10-09 10:00:15 +00:00
// Module 10759 (getIsInParty)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/activities/utils/getIsInParty.tsx");
2026-07-20 16:05:17 +00:00
export const getIsInParty = function getIsInParty(tmp8Result, activity) {
let id;
2026-07-29 08:29:29 +00:00
if (activity != null) {
2026-07-20 16:05:17 +00:00
const party = activity.party;
2026-07-29 08:29:29 +00:00
if (party != null) {
2026-07-20 16:05:17 +00:00
id = party.id;
}
}
let tmp2 = null != id;
if (tmp2) {
let id1;
2026-07-29 08:29:29 +00:00
if (tmp8Result != null) {
2026-07-20 16:05:17 +00:00
const party2 = tmp8Result.party;
2026-07-29 08:29:29 +00:00
if (party2 != null) {
2026-07-20 16:05:17 +00:00
id1 = party2.id;
}
}
tmp2 = null != id1 && tmp8Result.party.id === activity.party.id;
}
return tmp2;
};