decord/source/modules/activities/utils/getCanSendInvite.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 13237
// Function ID: 13238
// Name: getCanSendInvite
// Dependencies: [1074, 11759, 7313, 11760, 11761, 11762, 2]
// Exports: getCanSendInvite
// Module 13237 (getCanSendInvite)
import set from "set" /* 2 */;
import resultDefault from "result" /* 11759 */;
import getPartySize from "getPartySize" /* 11760 */;
import hasPartySize from "hasPartySize" /* 11761 */;
import ME from "ME" /* 1074 */;
({ ActivityFlags: c3, ActivityActionTypes: c4 } = ME);
const result = set.fileFinishedImporting("modules/activities/utils/getCanSendInvite.tsx");
export const getCanSendInvite = function getCanSendInvite(findActivityResult, author, application, id1) {
if (author.author.id === id1) {
return false;
} else {
if (resultDefault(findActivityResult, author, application.id)) {
const activity = author.activity;
let type;
if (activity != null) {
type = activity.type;
}
if (type !== constants2.JOIN_REQUEST) {
return false;
} else if (tmp11(7313)(findActivityResult, constants.JOIN)) {
const partySize = getPartySize.getPartySize(findActivityResult);
const obj = getPartySize;
const tmp5 = require;
const hasPartySizeResult = hasPartySize.hasPartySize(partySize);
let isPartyFullResult = !hasPartySizeResult;
if (hasPartySizeResult) {
isPartyFullResult = tmp5(11762).isPartyFull(partySize);
const tmp5Result = tmp5(11762);
}
return !isPartyFullResult;
} else {
return false;
}
} else {
return false;
}
tmp11 = importDefault;
}
};