/* Metro module 15343; source: modules/launchpad/native/shared/ChannelSubtitle.tsx; dependencies: [31, 10980, 33, 15332, 4573, 14694, 10978, 2] */
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});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).SUBTITLE_OPACITY_NORMAL;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).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 = (require(14694) /* metro dependency 14694: getChannelSubtitleData */).getChannelSubtitleData(subtitle);
if (channelSubtitleData == null) {
return null;
}
const r8 = channelSubtitleData.type === 'voice' && connected;
const Text = (require(4573) /* metro dependency 4573: Text */).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: (importDefault(15332) /* metro dependency 15332: 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 (
);
}
}