36 lines
1.5 KiB
TypeScript
36 lines
1.5 KiB
TypeScript
/* Metro module 9050; source: modules/instant_invite/canViewInviteModal.tsx; dependencies: [661, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun70747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9235:6, offset: 0x01d0665c, size: 109 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/instant_invite/canViewInviteModal.tsx');
|
|
exports.canViewInviteModal = function(a0, a1, a2, a3) {
|
|
var r0;
|
|
var r1;
|
|
var value6;
|
|
var value = a1;
|
|
var r6 = a2 ?? value;
|
|
r0 = r6 != null && a0.can(Permissions.CREATE_INSTANT_INVITE, r6);
|
|
if (!r0) {
|
|
value6 = value != null;
|
|
if (value6) {
|
|
value = value.vanityURLCode != null;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value6;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
if (!r0) {
|
|
value = undefined;
|
|
value = (a3 == null ? value : a3.invite_code) != null;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
}
|
|
|
|
global.__d(_fun70747, 9050, [661, 2]) /* metro module 9050, dependencies: [661, 2] */;
|