83 lines
5.0 KiB
TypeScript
83 lines
5.0 KiB
TypeScript
/* Metro module 8182; source: modules/messages/native/renderer/MessageWithContent.tsx; dependencies: [8183, 8178, 8184, 1244, 8352, 2] */
|
|
import GuildAutomodMessageStore from '../../../guild_automod/GuildAutomodMessageStore.tsx'; /* Metro dependency 8183 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as RowGeneratorConstantsModule from './RowGeneratorConstants.tsx'; /* Metro dependency 8178 */
|
|
|
|
function _fun65624(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8367:6, offset: 0x01bd5821, size: 140 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/messages/native/renderer/MessageWithContent.tsx');
|
|
exports.generateMessageRowData = generateMessageRowData;
|
|
function generateMessageRowData(a0, a1, a2) { // fn#65625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8367:238, offset: 0x01bd58ad, size: 710 bytes, params: 4, frame: 34
|
|
var r3;
|
|
var defaultImport2;
|
|
var createBackgroundHighlight;
|
|
var guildAutomodMessageStoreBinding;
|
|
const changeType = a0.changeType;
|
|
const message = a0.message;
|
|
const roleStyle = a0.roleStyle;
|
|
const isFirst = a0.isFirst;
|
|
const isEditing = a0.isEditing;
|
|
const separatorBefore = a0.separatorBefore;
|
|
const canAddNewReactions = a0.canAddNewReactions;
|
|
const reactionsTheme = a0.reactionsTheme;
|
|
const isSystemDM = a0.isSystemDM;
|
|
const r20 = isSystemDM !== undefined && isSystemDM;
|
|
const canShowImages = a0.canShowImages;
|
|
const r21 = canShowImages === undefined || canShowImages;
|
|
const truncation = a0.truncation;
|
|
const renderContentOnly = a0.renderContentOnly;
|
|
const pushFeedbackType = a0.pushFeedbackType;
|
|
const alwaysShowAddReaction = a0.alwaysShowAddReaction;
|
|
const r4 = alwaysShowAddReaction !== undefined && alwaysShowAddReaction;
|
|
const overrideBackgroundHighlight = a0.overrideBackgroundHighlight;
|
|
const showContentInventoryEntryFallbackEmbed = a0.showContentInventoryEntryFallbackEmbed;
|
|
const object = {};
|
|
const MESSAGE = RowType.MESSAGE;
|
|
object.type = MESSAGE;
|
|
object.message = (importDefault(8184) /* metro dependency 8184: createMessageContent */)({options: a1,
|
|
message: message, roleStyle: roleStyle, isFirst: isFirst, isEditing: isEditing, canShowImages: r21,
|
|
isSystemDM: r20, isInlineReplyPreview: false, pushFeedbackType: pushFeedbackType,
|
|
renderContentOnly: renderContentOnly,
|
|
showContentInventoryEntryFallbackEmbed: showContentInventoryEntryFallbackEmbed});
|
|
object.canAddNewReactions = canAddNewReactions;
|
|
const intl = (IndexNativeModule).intl;
|
|
let string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
object.addNewReactionAccessibilityLabel = Reflect.apply(string, intl, [t.lfIHs4]);
|
|
object.reactionsTheme = reactionsTheme;
|
|
object.highlightLabel = intl.string(t['IOS/dU']);
|
|
object.renderContentOnly = renderContentOnly;
|
|
object.separatorBefore = separatorBefore;
|
|
object.changeType = changeType;
|
|
object.truncation = truncation;
|
|
object.alwaysShowAddReaction = r4;
|
|
if (overrideBackgroundHighlight != null) {
|
|
r3 = overrideBackgroundHighlight;
|
|
} else {
|
|
defaultImport2 = importDefault(8352) /* metro dependency 8352: RowGeneratorUtils */;
|
|
createBackgroundHighlight = defaultImport2.createBackgroundHighlight;
|
|
guildAutomodMessageStoreBinding = GuildAutomodMessageStore;
|
|
r3 = Reflect.apply(createBackgroundHighlight, defaultImport2, [{message: message, theme: a2,
|
|
isEditing: isEditing,
|
|
isAutomodBlockedMessage: guildAutomodMessageStoreBinding.getMessage(message.id) != null}]);
|
|
}
|
|
object.backgroundHighlight = r3;
|
|
const defaultImport3 = importDefault(8352) /* metro dependency 8352: RowGeneratorUtils */;
|
|
object.swipeActions = defaultImport3.createSwipeActions(a1.enableSwipeActions && a0.canReply,
|
|
a1.enableSwipeActions && a0.canEdit);
|
|
object.replyAccessibilityLabel = intl.string(t['5IEsGx']);
|
|
string = intl.string;
|
|
const I3ltXO = t.I3ltXO;
|
|
object.forwardAccessibilityLabel = Reflect.apply(string, intl, [I3ltXO]);
|
|
object.threadAccessibilityLabel = intl.string(t.rBIGBL);
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun65624, 8182, [8183, 8178, 8184, 1244, 8352,
|
|
2]) /* metro module 8182, dependencies: [8183, 8178, 8184, 1244, 8352, 2] */;
|