/* Metro module 15343; source: modules/launchpad/native/shared/ChannelSubtitle.tsx; dependencies: [31, 10980, 33, 15332, 4573, 14694, 10978, 2] */ import GetLayoutStyles from './getLayoutStyles.tsx'; /* Metro dependency 15332 */ 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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as RedesignChannelListConstantsModule from '../../../channel_list_v2/native/RedesignChannelListConstants.tsx'; /* Metro dependency 10980 */ import * as GetChannelSubtitleDataModule from '../../../channel/native/getChannelSubtitleData.tsx'; /* Metro dependency 14694 */ function _fun117284(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:6, offset: 0x024ad419, size: 171 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; (FileImportTrackerModule).fileFinishedImporting('modules/launchpad/native/shared/ChannelSubtitle.tsx'); exports.renderChannelSubtitle = renderChannelSubtitle_117286; function ChannelSubtitle_117285({muted, connected, channelId, guildId, subtitle, textProps}) { // fn#117285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:152, offset: 0x024ad4c4, size: 246 bytes, params: 2, frame: 23 let value = environment; const channelSubtitleData = (GetChannelSubtitleDataModule).getChannelSubtitleData(subtitle); if (channelSubtitleData == null) { return null; } const r8 = channelSubtitleData.type === 'voice' && connected; const Text = (TextModule).Text; const textProps2 = {...textProps}; value = Reflect.apply((require(10978) /* metro dependency 10978: MessagePreviewMarkup */).renderMessagePreviewMarkup, value, [{content: channelSubtitleData.subtitle, muted: muted != null && muted, channelId: channelId, guildId: guildId, disableAnimatedEmoji: !r8, color: muted ? 'text-muted' : 'text-subtle'}]); return ( {value} ); } function renderChannelSubtitle_117286({subtitle, muted, channelId, guildId, connected}) { // fn#117286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15540:637, offset: 0x024ad5ba, size: 242 bytes, params: 2, frame: 21 if (subtitle == null) { return null; } const textProps = {'variant': null, 'color': 'text-muted', 'lineClamp': 1, 'maxFontSizeMultiplier': 1.75, variant: (GetLayoutStyles)().messagePreview.text.variant}; const SUBTITLE_OPACITY_NORMAL2 = muted ? 1 : SUBTITLE_OPACITY_NORMAL; textProps.style = {opacity: SUBTITLE_OPACITY_NORMAL2}; if (typeof subtitle === 'string') { const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {subtitle} ); } else { return ( ); } } } global.__d(_fun117284, 15343, [31, 10980, 33, 15332, 4573, 14694, 10978, 2]) /* metro module 15343, dependencies: [31, 10980, 33, 15332, 4573, 14694, 10978, 2] */;