/* Metro module 15866; source: modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx; dependencies: [1935, 3784, 12133, 566, 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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as GuildChannelStoreModule from '../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */ import * as LobbyUtilsModule from '../LobbyUtils.tsx'; /* Metro dependency 12133 */ function _fun122094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:6, offset: 0x02559c90, size: 168 bytes, params: 8, frame: 20 let env0_0 = require; const getChannelsAllowedToUnlink2 = getChannelsAllowedToUnlink; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx'); exports.getChannelsAllowedToUnlink = getChannelsAllowedToUnlink2; exports.useChannelsAllowedToUnlink = function(a0) { var env0_0 = a0; return require(dependencyMap[3]).useStateFromStoresArray([PermissionStore, GuildChannelStore], _fun122099); }; function getChannelsAllowedToUnlink(a0) { // fn#122095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:156, offset: 0x02559d38, size: 109 bytes, params: 2, frame: 14 var r0; let value = a1; const value2 = a2; const r2 = value !== undefined ? value : GuildChannelStore; if (value2 !== undefined) { } if (a0 == null) { r0 = []; } else { value = r2.getChannels(a0); value = value[GUILD_SELECTABLE_CHANNELS_KEY].filter(_fun122096); value = value.map(function(a0) { return a0.channel; }); r0 = value; } return r0; function _fun122096({channel}) { // fn#122096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:249, offset: 0x02559da5, size: 54 bytes, params: 2, frame: 13 const value = environment.__proto__; return (LobbyUtilsModule).canUnlinkLobbyChannel(channel, env0_0); } } function useChannelsAllowedToUnlink(a0) { // fn#122098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:488, offset: 0x02559ddb, size: 75 bytes, params: 2, frame: 15 const env0_0 = a0; return (FluxModule).useStateFromStoresArray([PermissionStore, GuildChannelStore], _fun122099); function _fun122099() { // fn#122099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:573, offset: 0x02559e26, size: 33 bytes, params: 1, frame: 15 return getChannelsAllowedToUnlink(env0_0, GuildChannelStore, PermissionStore); } } } global.__d(_fun122094, 15866, [1935, 3784, 12133, 566, 2]) /* metro module 15866, dependencies: [1935, 3784, 12133, 566, 2] */;