Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
// Module ID: 13540
|
|
// Function ID: 13541
|
|
// Name: getCanSendInvite
|
|
// Dependencies: [1078, 11882, 7557, 11883, 11884, 11885, 2]
|
|
// Exports: getCanSendInvite
|
|
|
|
// Module 13540 (getCanSendInvite)
|
|
import isInviteActiveDefault from "isInviteActive" /* 11882 */;
|
|
import getPartySize from "getPartySize" /* 11883 */;
|
|
import hasPartySize from "hasPartySize" /* 11884 */;
|
|
import Constants from "Constants" /* 1078 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ ActivityFlags: c3, ActivityActionTypes: closure_4 } = Constants);
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getCanSendInvite.tsx");
|
|
|
|
export const getCanSendInvite = function getCanSendInvite(findActivityResult, author, application1, id2) {
|
|
if (author.author.id === id2) {
|
|
return false;
|
|
} else {
|
|
if (isInviteActiveDefault(findActivityResult, author, application1.id)) {
|
|
const activity = author.activity;
|
|
let type;
|
|
if (activity != null) {
|
|
type = activity.type;
|
|
}
|
|
if (type !== constants2.JOIN_REQUEST) {
|
|
return false;
|
|
} else if (tmp11(7557)(findActivityResult, constants.JOIN)) {
|
|
const partySize = getPartySize.getPartySize(findActivityResult);
|
|
const tmp5 = require;
|
|
const hasPartySizeResult = hasPartySize.hasPartySize(partySize);
|
|
let isPartyFullResult = !hasPartySizeResult;
|
|
if (hasPartySizeResult) {
|
|
isPartyFullResult = tmp5(11885).isPartyFull(partySize);
|
|
const tmp5Result = tmp5(11885);
|
|
}
|
|
return !isPartyFullResult;
|
|
} else {
|
|
return false;
|
|
}
|
|
} else {
|
|
return false;
|
|
}
|
|
tmp11 = importDefault;
|
|
}
|
|
};
|