/* Metro module 14859; source: modules/icymi/native/ICYMIMessageRowPreview.tsx; dependencies: [31, 661, 33, 9587, 3834, 8179, 4845, 4048, 4501, 697, 3829, 8177, 9773, 8368, 1244, 2] */ function _fun112315(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:6, offset: 0x023c549f, size: 244 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = importAll(31) /* metro dependency 31 */; const env0_4 = (require(661) /* metro dependency 661: Constants */).MessageEmbedTypes; const env0_5 = (require(33) /* metro dependency 33 */).jsx; const value2 = value.memo(_fun112320); const value3 = value.memo(_fun112325); value = value.memo(_fun112330); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIMessageRowPreview.tsx'); exports.MediaOnlyRowPreview = value2; exports.NonMediaEmbedsRowPreview = value3; exports.MessageRowPreview = value; } function isMediaEmbed(a0) { // fn#112316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:148, offset: 0x023c5593, size: 39 bytes, params: 2, frame: 4 const IMAGE = MessageEmbedTypes.IMAGE; return a0 === IMAGE || a0 === MessageEmbedTypes.GIFV; } function ICYMIMessageRowPreview({message, lineClamp, messageSizeCacheRef, messageOptions, maxHeight, pointerEvents}) { // fn#112317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2246, offset: 0x023c55ba, size: 368 bytes, params: 2, frame: 25 pointerEvents = pointerEvents === undefined ? 'none' : pointerEvents; const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)(); const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createNativeStyleProperties = createStylesModule.createNativeStyleProperties; const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT; const env0_2 = Reflect.apply(createNativeStyleProperties, createStylesModule, [{seeMoreLabelColor: TEXT_DEFAULT}])(value2); const RenderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds; const setting = RenderEmbeds.getSetting(); const env0_3 = setting; const InlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia; const setting2 = InlineEmbedMedia.getSetting(); const InlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia; return ((Component) => )(importDefault(9773) /* metro dependency 9773: ChatItem */); } function _fun112320(a0) { // fn#112320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:218, offset: 0x023c5840, size: 323 bytes, params: 2, frame: 19 const message = a0.message; const messageOptions = a0.messageOptions; const value = Object.create(null); value.message = 0; value.messageOptions = 0; const value2 = copyDataProperties({}, a0, value, undefined); let binding = env0_3; let useMemo = binding.useMemo; const value4 = Reflect.apply(useMemo, binding, [_fun112321, [message]]); binding = env0_3; useMemo = binding.useMemo; const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112324, [value4, value2.muted, value2.lineClamp]])}; const object = {}; const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS; copyDataProperties(object, DEFAULT_OPTIONS, value); object['ignoreMentioned'] = true; object['renderReplies'] = false; object['renderThreadEmbeds'] = false; object['renderReactions'] = false; object['renderEmbeds'] = true; object['gifAutoPlay'] = true; object['animateEmoji'] = true; object['renderPolls'] = true; object['inlineEmbedMedia'] = true; object['renderForumPostActions'] = false; object['renderAttachments'] = true; copyDataProperties(object, messageOptions, value); icymiMessageRowPreviewBindingProps['messageOptions'] = object; return ; } function _fun112325(a0) { // fn#112325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:975, offset: 0x023c5a9e, size: 278 bytes, params: 2, frame: 19 const message = a0.message; const messageOptions = a0.messageOptions; const value = Object.create(null); value.message = 0; value.messageOptions = 0; const value2 = copyDataProperties({}, a0, value, undefined); let binding = env0_3; let useMemo = binding.useMemo; const value4 = Reflect.apply(useMemo, binding, [_fun112326, [message]]); binding = env0_3; useMemo = binding.useMemo; const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112329, [value4, value2.muted, value2.lineClamp]])}; const object = {}; const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS; copyDataProperties(object, DEFAULT_OPTIONS, value); object['ignoreMentioned'] = true; object['renderReplies'] = false; object['renderThreadEmbeds'] = false; object['renderReactions'] = false; object['renderEmbeds'] = true; object['renderAttachments'] = true; copyDataProperties(object, messageOptions, value); icymiMessageRowPreviewBindingProps['messageOptions'] = object; return ; } function _fun112330(a0) { // fn#112330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1664, offset: 0x023c5c8d, size: 335 bytes, params: 2, frame: 20 const message = a0.message; const messageOptions = a0.messageOptions; const value = Object.create(null); value.message = 0; value.messageOptions = 0; const value2 = copyDataProperties({}, a0, value, undefined); const value4 = env0_3.useMemo(_fun112331, [message, value2.lineClamp, value2.muted, value2.pointerEvents]); const value5 = (importDefault(4845) /* metro dependency 4845: isForwardMessage */)(message); const icymiMessageRowPreviewBindingProps = {...value4}; const object = {}; const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS; copyDataProperties(object, DEFAULT_OPTIONS, value); object['ignoreMentioned'] = true; object['renderReplies'] = false; object['renderThreadEmbeds'] = false; object['renderReactions'] = false; object['gifAutoPlay'] = true; object['animateEmoji'] = true; object['renderPolls'] = true; object['renderForumPostActions'] = false; object['renderAttachments'] = value5; object['renderEmbeds'] = value5; object['inlineEmbedMedia'] = value5; copyDataProperties(object, messageOptions, value); icymiMessageRowPreviewBindingProps['messageOptions'] = object; icymiMessageRowPreviewBindingProps['seeMoreLabel'] = '...'; return ; } function _fun112318() { // fn#112318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2620, offset: 0x023c572a, size: 116 bytes, params: 1, frame: 14 let value = environment.__proto__; value = importDefault(8177) /* metro dependency 8177: RowGenerator */; value = new value(); const setOptions = value.setOptions; const object2 = {'renderEmbeds': null, 'inlineEmbedMedia': null, 'inlineAttachmentMedia': null, 'renderReactions': false, 'animateEmoji': false, 'gifAutoPlay': false, 'renderReplies': false, 'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInviteEmbed': false, 'renderThreadEmbeds': false, 'renderForumPostActions': false, 'ignoreMentioned': true, 'enableSwipeActions': false, 'renderExecutedCommands': false, 'useAlternateEmbedColors': true}; object2.renderEmbeds = env0_3; object2.inlineEmbedMedia = env0_4; const binding = env0_5; object2.inlineAttachmentMedia = binding; copyDataProperties(object2, messageOptions, binding); Reflect.apply(setOptions, value, [object2]); return value; } function ICYMIMessageRowPreviewModifyRow(a0) { // fn#112319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:3086, owner: ICYMIMessageRowPreview.modifyRow, offset: 0x023c579e, size: 162 bytes, params: 2, frame: 17 var object2; var intl; const MessageContextType = (require(8368) /* metro dependency 8368: RowGeneratorTypes */).MessageContextType; const SEARCH = MessageContextType.SEARCH; a0.contextType = SEARCH; if (lineClamp != null) { object2 = {}; object2.numberOfLines = lineClamp; object2.expandable = false; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object2.seeMoreLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qCozu3); object2.seeMoreLabelColor = env0_2.seeMoreLabelColor; a0.truncation = object2; } } function _fun112321() { // fn#112321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:279, offset: 0x023c5983, size: 119 bytes, params: 1, frame: 15 var value; value = value.set('embeds', message.set('content', null).embeds.filter(function(a0) { return isMediaEmbed(a0.type); })); value = value.set('attachments', value.attachments.filter(_fun112323)); return value.set('editedTimestamp', null); } function _fun112324() { // fn#112324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:519, offset: 0x023c5a3b, size: 99 bytes, params: 1, frame: 13 const object2 = {}; object2.message = env0_2; const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes; const COZY = ChannelListLayoutTypes.COZY; object2.layout = COZY; const muted = env0_1.muted; object2.muted = muted != null && muted; object2.lineClamp = env0_1.lineClamp; return object2; } function _fun112326() { // fn#112326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1036, offset: 0x023c5bb4, size: 146 bytes, params: 1, frame: 17 const messageBinding = message; let value = messageBinding.set('content', null); value = value.set('embeds', value.embeds.filter(function(a0) { return !isMediaEmbed(a0.type); }).slice(0, 1)); value = value.set('attachments', value.attachments.filter(_fun112328).slice(0, 1)); return value.set('editedTimestamp', null); } function _fun112331() { // fn#112331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1725, offset: 0x023c5ddc, size: 110 bytes, params: 1, frame: 14 const object2 = {}; object2.message = message; const binding = env0_1; object2.lineClamp = binding.lineClamp; const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes; const COZY = ChannelListLayoutTypes.COZY; object2.layout = COZY; const muted = binding.muted; object2.muted = muted != null && muted; object2.pointerEvents = env0_1.pointerEvents; return object2; } function _fun112323(a0) { // fn#112323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:401, offset: 0x023c5a12, size: 41 bytes, params: 2, frame: 11 const value = environment.__proto__.__proto__; return (require(9587) /* metro dependency 9587: ForumPostMediaUtils */).isMediaAttachment(a0); } function _fun112328(a0) { // fn#112328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1170, offset: 0x023c5c61, size: 44 bytes, params: 2, frame: 11 let value = environment.__proto__.__proto__; value = require(9587) /* metro dependency 9587: ForumPostMediaUtils */; return !value.isMediaAttachment(a0); }