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

33 lines
748 B
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 10794
// Function ID: 10795
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-10 08:08:14 +00:00
// Module 10794 (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
2026-10-10 08:08:14 +00:00
export const getIsInParty = function getIsInParty(tmp9Result, activity) {
2026-07-20 16:05:17 +00:00
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-10-10 08:08:14 +00:00
if (tmp9Result != null) {
const party2 = tmp9Result.party;
2026-07-29 08:29:29 +00:00
if (party2 != null) {
2026-07-20 16:05:17 +00:00
id1 = party2.id;
}
}
2026-10-10 08:08:14 +00:00
tmp2 = null != id1 && tmp9Result.party.id === activity.party.id;
2026-07-20 16:05:17 +00:00
}
return tmp2;
};