/* Metro module 12133; source: modules/lobbies/LobbyUtils.tsx; dependencies: [3784, 661, 566, 2] */ 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 ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ function _fun93161(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:6, offset: 0x020a93f8, size: 153 bytes, params: 8, frame: 19 let env0_0 = require; const canUnlinkLobbyChannel2 = canUnlinkLobbyChannel; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/lobbies/LobbyUtils.tsx'); exports.canUnlinkLobbyChannel = canUnlinkLobbyChannel2; exports.useCanUnlinkLobbyChannel = function(a0) { var env0_0 = a0; return require(dependencyMap[2]).useStateFromStores([PermissionStore], _fun93164); }; function canUnlinkLobbyChannel(a0) { // fn#93162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:128, offset: 0x020a9491, size: 127 bytes, params: 2, frame: 15 var r1; var r0; let value = a1; const r4 = value !== undefined ? value : PermissionStore; value = a0 != null; if (value) { r1 = a0.linkedLobby != null && r4.can(Permissions.MANAGE_CHANNELS, a0); r1 = r1 && r4.can(Permissions.VIEW_CHANNEL, a0); r1 = r1 && r4.can(Permissions.SEND_MESSAGES, a0); r0 = r1; } else { r0 = value; } return r0; } function useCanUnlinkLobbyChannel(a0) { // fn#93163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:420, offset: 0x020a9510, size: 66 bytes, params: 2, frame: 14 const env0_0 = a0; return (FluxModule).useStateFromStores([PermissionStore], _fun93164); function _fun93164() { // fn#93164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:496, offset: 0x020a9552, size: 28 bytes, params: 1, frame: 13 return canUnlinkLobbyChannel(env0_0, PermissionStore); } } } global.__d(_fun93161, 12133, [3784, 661, 566, 2]) /* metro module 12133, dependencies: [3784, 661, 566, 2] */;