/* Metro module 15014; source: modules/threads/native/components/ThreadParentMessage.tsx; dependencies: [31, 4833, 4814, 33, 8177, 566, 5278, 1230, 9773, 2] */ import MessageStore from '../../../../stores/MessageStore.tsx'; /* Metro dependency 4814 */ import ReferencedMessageStore from '../../../replies/ReferencedMessageStore.tsx'; /* Metro dependency 4833 */ import RowGenerator from '../../../messages/native/renderer/RowGenerator.tsx'; /* Metro dependency 8177 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as ReferencedMessageStoreModule from '../../../replies/ReferencedMessageStore.tsx'; /* Metro dependency 4833 */ function _fun113494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15211:6, offset: 0x023fc6b5, size: 265 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = RowGenerator; value = new value(); value.setOptions({'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInstanceEmbed': false, 'renderActivityInviteEmbed': false, 'renderEmbeds': true, 'ignoreMentioned': true, 'inlineAttachmentMedia': true, 'inlineEmbedMedia': true, 'renderReactions': false, 'renderReplies': true, 'renderThreadEmbeds': false}); (FileImportTrackerModule).fileFinishedImporting('modules/threads/native/components/ThreadParentMessage.tsx'); exports.ThreadChannelStarterMessage = ThreadChannelStarterMessage; exports.ThreadCreationStarterMessage = ThreadCreationStarterMessage; function ThreadChannelStarterMessage({guildId, messageId, channelId}) { // fn#113495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15211:559, offset: 0x023fc7be, size: 224 bytes, params: 2, frame: 19 var r0; var PressableOpacity; var ChatItem; const useStateFromStores = FluxModule.useStateFromStores; let object = [ReferencedMessageStore]; let message = Reflect.apply(useStateFromStores, FluxModule, [object, function() { return ReferencedMessageStore.getMessage(channelId, messageId); }]); const state = message?.state; const LOADED = ReferencedMessageState.LOADED; if (state !== LOADED) { r0 = null; } else { PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; object = {accessibilityRole: 'button', onPress: onPress_113497}; ChatItem = importDefault(9773) /* metro dependency 9773: ChatItem */; message = message.message; r0 = ( ); } return r0; function ThreadChannelStarterMessageOnPress() { // fn#113497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15211:805, owner: ThreadChannelStarterMessage.onPress, offset: 0x023fc8be, size: 55 bytes, params: 1, frame: 16 let value = environment.__proto__; value = require(1230) /* metro dependency 1230: router_utils */; value.transitionToGuild(guildId, channelId, messageId); } } function ThreadCreationStarterMessage({messageId, channelId}) { // fn#113498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15211:933, offset: 0x023fc8f5, size: 134 bytes, params: 2, frame: 17 const message = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore], function() { return MessageStore.getMessage(channelId, messageId); }); return ( message == null ? null : ((Component) => )(importDefault(9773) /* metro dependency 9773: ChatItem */) ); } } global.__d(_fun113494, 15014, [31, 4833, 4814, 33, 8177, 566, 5278, 1230, 9773, 2]) /* metro module 15014, dependencies: [31, 4833, 4814, 33, 8177, 566, 5278, 1230, 9773, 2] */;