/* Metro module 15908; source: modules/guild_settings/native/EmojiOverflowActionSheet.tsx; dependencies: [5, 31, 27, 33, 4501, 6805, 1423, 4573, 6231, 6238, 4071, 1244, 8629, 9646, 4131, 3856, 5312, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as AvatarUtilsModule from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */ import * as TrashIconModule from '../../../design/components/Icon/native/redesign/generated/TrashIcon.tsx'; /* Metro dependency 4071 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as XSmallIconModule from '../../../design/components/Icon/native/redesign/generated/XSmallIcon.tsx'; /* Metro dependency 5312 */ import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */ import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */ import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */ import * as PencilIconModule from '../../../design/components/Icon/native/redesign/generated/PencilIcon.tsx'; /* Metro dependency 9646 */ function _fun122746(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:6, offset: 0x02573047, size: 259 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = ReactNativeModule; const env0_4 = value.Image; const env0_5 = value.View; value = require(33) /* metro dependency 33 */; const env0_6 = value.jsx; const env0_7 = value.jsxs; const env0_8 = (CreateStylesModule).createStyles({header: {'paddingHorizontal': 8, 'flexDirection': 'row', 'alignItems': 'center', 'gap': 16}, emojiImage: {'width': 30, 'height': 30, 'resizeMode': 'contain'}}); (FileImportTrackerModule).fileFinishedImporting('modules/guild_settings/native/EmojiOverflowActionSheet.tsx'); exports.default = EmojiOverflowActionSheet; function EmojiOverflowActionSheet({emoji, guildId, onSelectRolesForEmoji, onEdit, onClose}) { // fn#122747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:430, offset: 0x0257314a, size: 1005 bytes, params: 2, frame: 35 const PencilIcon = (PencilIconModule).PencilIcon; var r10; const styles = useStyles(); const ActionSheet = (ActionSheetNativeModule).ActionSheet; const getEmojiURL = AvatarUtilsModule.getEmojiURL; const image = ( ); const Text = (TextModule).Text; const view = ( {image} {':' + emoji.name + ':'} ); const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup; const TableRow = (TableRowNativeModule).TableRow; const object2 = {}; const TrashIcon = (TrashIconModule).TrashIcon; object2.icon = ; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object2.label = ( {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oyYWHE)} ); object2.onPress = onPress_122748; const items3 = [ , ]; items3[1] = ( } label={ {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw)} } onPress={function() { onEdit(); onClose(); }} /> ); if (onSelectRolesForEmoji != null) { r10 = ( } label={ {intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+riKdA'])} } onPress={onEdit(_fun122751)} /> ); } else { r10 = null; } items3[2] = r10; const XSmallIcon = (XSmallIconModule).XSmallIcon; items3[3] = ( } label={ {intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} } onPress={onClose} /> ); return ( {view} {items3} ); function EmojiOverflowActionSheetOnPress() { // fn#122748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:1079, owner: EmojiOverflowActionSheet.onPress, offset: 0x02573537, size: 63 bytes, params: 1, frame: 15 let value = environment.__proto__; value = require(8629) /* metro dependency 8629: EmojiActionCreators */; value.deleteEmoji(guildId, emoji.id); onClose(); } function* _fun122751() { // fn#122751, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:1468, offset: 0x02573598, size: 295 bytes, params: 1, frame: 18 var r2; var value3; var value4; var value5; var binding; var binding2; var property; var value7; var updateEmoji; var object; var id; var value8; var value9; var value10; var error; var value11; var APIError; var value12; var presentError; var anyErrorMessage; var binding3; var intl; var string; var t; var R0RpRX; var value14; if (true) { value = environment.__proto__; try { } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { value3 = dependencyMap(require); } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } yield value3; try { value4 = undefined; value5 = false; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } if (value5) { return value4; } try { binding = env2_0; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { binding2 = env2_2; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { property = binding2[12]; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { value7 = binding(property); } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { updateEmoji = value7.updateEmoji; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { object = {}; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { object.guildId = importAll; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { id = require.id; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { object.emojiId = id; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { object.roles = value4; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } try { value8 = Reflect.apply(updateEmoji, value7, [object]); } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } yield value8; try { value9 = undefined; value10 = false; } catch (error) { value11 = environment.__proto__.__proto__; binding = env2_0; APIError = binding(env2_2[14]).APIError; if (error instanceof APIError) { binding = env2_0; value12 = binding(env2_2[15]); presentError = value12.presentError; anyErrorMessage = error.getAnyErrorMessage(); if (anyErrorMessage != null) { r2 = anyErrorMessage; } else { binding = env2_0; binding3 = env2_2; intl = binding(binding3[11]).intl; string = intl.string; t = binding(binding3[11]).t; R0RpRX = t.R0RpRX; value14 = Reflect.apply(string, intl, [R0RpRX]); r2 = value14; } Reflect.apply(presentError, value12, [r2]); } Image(); return undefined; } if (value10) { return value9; } Image(); } } } } global.__d(_fun122746, 15908, [5, 31, 27, 33, 4501, 6805, 1423, 4573, 6231, 6238, 4071, 1244, 8629, 9646, 4131, 3856, 5312, 2]) /* metro module 15908, dependencies: [5, 31, 27, 33, 4501, 6805, 1423, 4573, 6231, 6238, 4071, 1244, 8629, 9646, 4131, 3856, 5312, 2] */;