/* Metro module 16132; source: utils/CreateInstantInviteUtils.tsx; dependencies: [1935, 3784, 661, 2] */ 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}); const guildChannelStoreModule = require(1935) /* metro dependency 1935: GuildChannelStore */; const env0_0 = guildChannelStoreModule.GUILD_SELECTABLE_CHANNELS_KEY; const env0_1 = guildChannelStoreModule.GUILD_VOCAL_CHANNELS_KEY; const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */; const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */; const env0_4 = (require(661) /* metro dependency 661: Constants */).Permissions; (require(2) /* metro dependency 2 */).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); }); }