2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 7659
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 61310
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: generateMessageRowData
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [7660, 7655, 7661, 1212, 7827, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: generateMessageRowData
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 7659 (generateMessageRowData)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import { RowType } from "Changeset";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("createThreadEmbed").fileFinishedImporting("modules/messages/native/renderer/MessageWithContent.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const generateMessageRowData = function generateMessageRowData(canShowImages, options, theme) {
|
|
|
|
|
let alwaysShowAddReaction;
|
|
|
|
|
let canAddNewReactions;
|
|
|
|
|
let changeType;
|
|
|
|
|
let isEditing;
|
|
|
|
|
let isFirst;
|
|
|
|
|
let isSystemDM;
|
|
|
|
|
let message;
|
|
|
|
|
let pushFeedbackType;
|
|
|
|
|
let reactionsTheme;
|
|
|
|
|
let renderContentOnly;
|
|
|
|
|
let roleStyle;
|
|
|
|
|
let separatorBefore;
|
|
|
|
|
let truncation;
|
|
|
|
|
({ message, isEditing, isSystemDM } = canShowImages);
|
|
|
|
|
let tmp = undefined !== isSystemDM;
|
|
|
|
|
({ changeType, roleStyle, isFirst, separatorBefore, canAddNewReactions, reactionsTheme } = canShowImages);
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = isSystemDM;
|
|
|
|
|
}
|
|
|
|
|
canShowImages = canShowImages.canShowImages;
|
|
|
|
|
({ renderContentOnly, alwaysShowAddReaction } = canShowImages);
|
|
|
|
|
let tmp3 = undefined !== alwaysShowAddReaction;
|
|
|
|
|
({ truncation, pushFeedbackType } = canShowImages);
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
tmp3 = alwaysShowAddReaction;
|
|
|
|
|
}
|
|
|
|
|
let overrideBackgroundHighlight = canShowImages.overrideBackgroundHighlight;
|
2026-07-25 08:10:48 +00:00
|
|
|
obj = { type: RowType.MESSAGE, message: importDefault(7661)(obj), canAddNewReactions };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { options, message, roleStyle, isFirst, isEditing, canShowImages: undefined === canShowImages || canShowImages, isSystemDM: tmp, isInlineReplyPreview: false, pushFeedbackType, renderContentOnly, showContentInventoryEntryFallbackEmbed: canShowImages.showContentInventoryEntryFallbackEmbed };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.addNewReactionAccessibilityLabel = intl.string(require(1212) /* getSystemLocale */.t.lfIHs4);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.reactionsTheme = reactionsTheme;
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.highlightLabel = intl2.string(require(1212) /* getSystemLocale */.t["IOS/dU"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.renderContentOnly = renderContentOnly;
|
|
|
|
|
obj.separatorBefore = separatorBefore;
|
|
|
|
|
obj.changeType = changeType;
|
|
|
|
|
obj.truncation = truncation;
|
|
|
|
|
obj.alwaysShowAddReaction = tmp3;
|
|
|
|
|
if (null == overrideBackgroundHighlight) {
|
|
|
|
|
obj = { message, theme, isEditing, isAutomodBlockedMessage: null != message.getMessage(message.id) };
|
2026-07-25 08:10:48 +00:00
|
|
|
overrideBackgroundHighlight = importDefault(7827).createBackgroundHighlight(obj);
|
|
|
|
|
const obj3 = importDefault(7827);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj.backgroundHighlight = overrideBackgroundHighlight;
|
|
|
|
|
let canReply = options.enableSwipeActions;
|
|
|
|
|
if (canReply) {
|
|
|
|
|
canReply = canShowImages.canReply;
|
|
|
|
|
}
|
2026-07-25 08:10:48 +00:00
|
|
|
obj.swipeActions = importDefault(7827).createSwipeActions(canReply, options.enableSwipeActions && canShowImages.canEdit);
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl3 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.replyAccessibilityLabel = intl3.string(require(1212) /* getSystemLocale */.t["5IEsGx"]);
|
|
|
|
|
const intl4 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.forwardAccessibilityLabel = intl4.string(require(1212) /* getSystemLocale */.t.I3ltXO);
|
|
|
|
|
const intl5 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.threadAccessibilityLabel = intl5.string(require(1212) /* getSystemLocale */.t.rBIGBL);
|
2026-07-22 07:54:56 +00:00
|
|
|
const forcedTheme = options.forcedTheme;
|
|
|
|
|
let tmp9;
|
|
|
|
|
if (null != forcedTheme) {
|
|
|
|
|
tmp9 = forcedTheme;
|
|
|
|
|
}
|
|
|
|
|
obj.forcedTheme = tmp9;
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
};
|