51 lines
2.5 KiB
TypeScript
51 lines
2.5 KiB
TypeScript
/* Metro module 10591; source: modules/activities/utils/isMostRecentDeadEndInvite.tsx; dependencies: [661, 10584, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun81685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10777:6, offset: 0x01eda316, size: 120 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activities/utils/isMostRecentDeadEndInvite.tsx');
|
|
exports.isMostRecentDeadEndInvite = function(a0, a1, a2, a3) {
|
|
var env0_0 = a2;
|
|
var env0_1 = a3;
|
|
return !a1.hasAnyAfter(a0, _fun81687, 25);
|
|
};
|
|
function isMostRecentDeadEndInvite(a0, a1, a2, a3) { // fn#81686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10777:242, offset: 0x01eda38e, size: 52 bytes, params: 5, frame: 15
|
|
const env0_0 = a2;
|
|
const env0_1 = a3;
|
|
return !a1.hasAnyAfter(a0, _fun81687, 25);
|
|
function _fun81687(a0) { // fn#81687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10777:310, offset: 0x01eda3c2, size: 130 bytes, params: 2, frame: 16
|
|
var r0;
|
|
var application;
|
|
var type;
|
|
let value = a0.activity != null;
|
|
if (value) {
|
|
application = a0.application;
|
|
value = undefined;
|
|
value = (application == null ? value : application.id) === importDefault;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
type = a0.activity.type;
|
|
value = environment.__proto__;
|
|
value = type === ActivityActionTypes.JOIN;
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
value = environment.__proto__;
|
|
value = importDefault(10584) /* metro dependency 10584: isInviteActive */;
|
|
value = !value(importAll, a0, importDefault);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun81685, 10591, [661, 10584, 2]) /* metro module 10591, dependencies: [661, 10584, 2] */;
|