/* Metro module 16132; source: utils/CreateInstantInviteUtils.tsx; dependencies: [1935, 3784, 661, 2] */ import GuildChannelStore from '../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */ import PermissionStore from '../stores/PermissionStore.tsx'; /* Metro dependency 3784 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */ import * as GuildChannelStoreModule from '../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */ function _fun124571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16340:6, offset: 0x025bd848, size: 173 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('utils/CreateInstantInviteUtils.tsx'); exports.getInvitableChannelForGuild = function(a0) { var r4; var value2 = GuildChannelStore.getChannels(a0); var property = value2[GUILD_SELECTABLE_CHANNELS_KEY]; var items = []; arraySpread(items, value2[GUILD_VOCAL_CHANNELS_KEY], arraySpread(items, property, 0, r4), r4); return items.find(_fun124573); }; function getInvitableChannelForGuild(a0) { // fn#124572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16340:309, offset: 0x025bd8f5, size: 79 bytes, params: 2, frame: 15 const channels = GuildChannelStore.getChannels(a0); const property = channels[GUILD_SELECTABLE_CHANNELS_KEY]; const items2 = []; arraySpread(items2, channels[GUILD_VOCAL_CHANNELS_KEY], arraySpread(items2, property, 0, undefined), undefined); return items2.find(function({channel}) { return PermissionStore.can(Permissions.CREATE_INSTANT_INVITE, channel); }); function _fun124573({channel}) { // fn#124573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16340:402, offset: 0x025bd944, size: 39 bytes, params: 2, frame: 13 const permissionStoreBinding = PermissionStore; const can = permissionStoreBinding.can; const CREATE_INSTANT_INVITE = Permissions.CREATE_INSTANT_INVITE; return Reflect.apply(can, permissionStoreBinding, [CREATE_INSTANT_INVITE, channel]); } } } global.__d(_fun124571, 16132, [1935, 3784, 661, 2]) /* metro module 16132, dependencies: [1935, 3784, 661, 2] */;