/* Metro module 14998; source: modules/guild_settings/native/showMembersManagementActionSheet.tsx; dependencies: [3784, 661, 1244, 4080, 14999, 1962, 483, 15000, 6802, 2] */ function _fun113367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:6, offset: 0x023f6160, size: 160 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */; const env0_5 = (require(661) /* metro dependency 661: Constants */).Permissions; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/showMembersManagementActionSheet.tsx'); exports.default = showMembersManagementActionSheet; exports.getMembersManagementActions = getMembersManagementActions; } function showMembersManagementActionSheet({guild, selectedRoleId, onFilterRoleId}) { // fn#113368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:238, offset: 0x023f6200, size: 321 bytes, params: 2, frame: 21 var push; let object2 = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; object2.label = Reflect.apply(string, intl, [t.pEasFX]); object2.onPress = onPress_113369; const items2 = [object2]; const can = PermissionStore.can; const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */; const combine = bigFlagUtilsModule.combine; const MANAGE_GUILD = Permissions.MANAGE_GUILD; const KICK_MEMBERS = Permissions.KICK_MEMBERS; if (Reflect.apply(can, PermissionStore, [Reflect.apply(combine, bigFlagUtilsModule, [MANAGE_GUILD, KICK_MEMBERS]), guild])) { push = items2.push; object2 = {}; object2.label = intl.string(t['2mIlKQ']); object2.onPress = onPress_113370; object2.isDestructive = true; Reflect.apply(push, items2, [object2]); } (require(6802) /* metro dependency 6802: showSimpleActionSheet */).showSimpleActionSheet({'key': 'GuildSettingsMembersMore', 'options': null, 'hasIcons': false, options: items2}); } function getMembersManagementActions({guild, selectedRoleId, onFilterRoleId}) { // fn#113371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:814, offset: 0x023f640d, size: 273 bytes, params: 2, frame: 21 var push; let object2 = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; object2.label = Reflect.apply(string, intl, [t.pEasFX]); object2.action = action_113372; const items2 = [object2]; const can = PermissionStore.can; const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */; const combine = bigFlagUtilsModule.combine; const MANAGE_GUILD = Permissions.MANAGE_GUILD; const KICK_MEMBERS = Permissions.KICK_MEMBERS; if (Reflect.apply(can, PermissionStore, [Reflect.apply(combine, bigFlagUtilsModule, [MANAGE_GUILD, KICK_MEMBERS]), guild])) { push = items2.push; object2 = {}; object2.label = intl.string(t['2mIlKQ']); object2.action = action_113373; object2.variant = 'destructive'; Reflect.apply(push, items2, [object2]); } return items2; } function showMembersManagementActionSheetOnPress() { // fn#113369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:377, owner: showMembersManagementActionSheet.onPress, offset: 0x023f6341, size: 111 bytes, params: 1, frame: 17 let value = environment.__proto__; const defaultImport = importDefault(dependencyMap[3]); const openLazy = defaultImport.openLazy; value = require(dependencyMap[5]); value = value(dependencyMap[4], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'MembersFilter', {guild: guild, selectedRoleId: selectedRoleId, onFilterRoleId: onFilterRoleId}]); } function showMembersManagementActionSheetOnPress_113370() { // fn#113370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:602, owner: showMembersManagementActionSheet.onPress, offset: 0x023f63b0, size: 93 bytes, params: 1, frame: 16 let value = environment.__proto__; const defaultImport = importDefault(dependencyMap[3]); const openLazy = defaultImport.openLazy; value = require(dependencyMap[5]); value = value(dependencyMap[7], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'MembersPrune', {guild: guild}]); }