2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 9380
|
|
|
|
|
// Function ID: 9381
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ChatPreview
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [19, 17, 5081, 4802, 2065, 1390, 7748, 21, 5092, 587, 4827, 9381, 7747, 9383, 9600, 9613, 4793, 1126, 9599, 12, 9338, 5103, 9614, 9674, 9677, 5445, 1894, 9678, 7990, 9385, 7900, 10695, 10696, 10738, 10739, 11190, 12393, 11487, 1382, 6814, 6185, 5088, 558, 576, 2041, 504, 1497, 5944, 5924, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 9380 (ChatPreview)
|
2026-09-18 19:45:33 +00:00
|
|
|
import _modDef12 from "module_12" /* 12 */;
|
2026-10-07 22:43:51 +00:00
|
|
|
import nativeDefault from "native" /* 587 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import PlatformUtils from "PlatformUtils" /* 1382 */;
|
|
|
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1497 */;
|
|
|
|
|
import KeyboardManagerUtilsAll from "KeyboardManagerUtils" /* 1894 */;
|
|
|
|
|
import native from "native" /* 4827 */;
|
|
|
|
|
import Text_Text from "Text/Text" /* 5088 */;
|
|
|
|
|
import transitionToChannel from "transitionToChannel" /* 5103 */;
|
|
|
|
|
import InteractionComponentTypes from "InteractionComponentTypes" /* 5445 */;
|
|
|
|
|
import RowGeneratorDefault from "RowGenerator" /* 7747 */;
|
|
|
|
|
import canAddNewReactionsDefault from "canAddNewReactions" /* 7990 */;
|
|
|
|
|
import ChatManagerDefault from "ChatManager" /* 9381 */;
|
|
|
|
|
import messages_MessagesUtils from "messages/MessagesUtils" /* 9383 */;
|
|
|
|
|
import reactions_ReactionUtils from "reactions/ReactionUtils" /* 9385 */;
|
|
|
|
|
import computeScrollDataDefault from "computeScrollData" /* 9599 */;
|
|
|
|
|
import NativeChatUtils from "NativeChatUtils" /* 9600 */;
|
|
|
|
|
import handleMessagesTapLink2 from "handleMessagesTapLink" /* 9614 */;
|
|
|
|
|
import showLongPressURLActionSheetDefault from "showLongPressURLActionSheet" /* 9674 */;
|
|
|
|
|
import MessageDataSnowflakeUtils from "MessageDataSnowflakeUtils" /* 9677 */;
|
|
|
|
|
import showLongPressMessageActionSheet2 from "showLongPressMessageActionSheet" /* 9678 */;
|
|
|
|
|
import handleMessagesTapImage from "handleMessagesTapImage" /* 10695 */;
|
|
|
|
|
import handleMessagesTapChannel from "handleMessagesTapChannel" /* 10696 */;
|
|
|
|
|
import contentHandlers2 from "contentHandlers" /* 10739 */;
|
|
|
|
|
import GuildNSFWDefault from "GuildNSFW" /* 11190 */;
|
|
|
|
|
import ChatDefault from "Chat" /* 11487 */;
|
|
|
|
|
import ChannelSpoilerDefault from "ChannelSpoiler" /* 12393 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import react_native from "react-native" /* 17 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import AccessibilityStore from "AccessibilityStore" /* 5081 */;
|
|
|
|
|
import ActionSheetStore from "ActionSheetStore" /* 4802 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2065 */;
|
|
|
|
|
import UserStore from "UserStore" /* 1390 */;
|
|
|
|
|
import RowGeneratorConstants from "RowGeneratorConstants" /* 7748 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import createStyles from "createStyles" /* 5092 */;
|
2026-10-02 13:37:24 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-21 13:40:21 +00:00
|
|
|
|
|
|
|
|
const NativeChatUtilsDefault = NativeChatUtils;
|
2026-10-12 16:32:48 +00:00
|
|
|
let map;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let StyleSheet;
|
|
|
|
|
let c10;
|
|
|
|
|
let closure_12;
|
|
|
|
|
let closure_14;
|
|
|
|
|
let hasOwnProperty;
|
|
|
|
|
let map1;
|
|
|
|
|
let obj2;
|
|
|
|
|
let obj3;
|
|
|
|
|
let obj4;
|
|
|
|
|
let tmp;
|
|
|
|
|
let unpackModuleId;
|
2026-10-12 16:32:48 +00:00
|
|
|
const handleMessagesLongPressChannel = tmp(10738);
|
2026-10-01 14:13:23 +00:00
|
|
|
({ View: hasOwnProperty, StyleSheet } = react_native);
|
|
|
|
|
({ Changeset: c10, RowType: unpackModuleId, SeparatorType: closure_12 } = RowGeneratorConstants);
|
|
|
|
|
({ jsx: map1, jsxs: closure_14 } = Fragment);
|
|
|
|
|
let obj = { chat: { flex: 1, overflow: "hidden" }, containerInner: obj2, jumpToChatButtonContainer: obj3, jumpToChatButton: obj4, jumpToChatText: { textAlign: "center", flex: 1, lineHeight: 44 } };
|
|
|
|
|
obj2 = { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
|
|
|
|
|
const createLegacyClassComponentStyles = createStyles.createLegacyClassComponentStyles;
|
|
|
|
|
obj3 = { flexShrink: 0, backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH };
|
|
|
|
|
obj4 = { height: 44, borderTopWidth: StyleSheet.hairlineWidth, borderTopColor: nativeDefault.colors.BORDER_SUBTLE };
|
2026-10-12 16:32:48 +00:00
|
|
|
const authStore3 = createLegacyClassComponentStyles(obj);
|
2026-10-01 14:13:23 +00:00
|
|
|
const PureComponent = react.PureComponent;
|
2026-09-18 19:45:33 +00:00
|
|
|
class ChatPreviewBase extends PureComponent {
|
|
|
|
|
constructor() {
|
2026-10-01 14:13:23 +00:00
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
|
|
|
|
|
require = applyArgumentsResult;
|
|
|
|
|
let tmp3 = new ChatManagerDefault();
|
2026-09-18 19:45:33 +00:00
|
|
|
applyArgumentsResult.chatManager = tmp3;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp4 = new RowGeneratorDefault();
|
2026-09-18 19:45:33 +00:00
|
|
|
applyArgumentsResult.rowGenerator = tmp4;
|
2026-10-01 14:13:23 +00:00
|
|
|
applyArgumentsResult.chatRef = react.createRef();
|
2026-09-18 19:45:33 +00:00
|
|
|
applyArgumentsResult.didPositionInitialScroll = false;
|
|
|
|
|
applyArgumentsResult.handleCompleteFirstLayout = function handleCompleteFirstLayout() {
|
2026-10-01 14:13:23 +00:00
|
|
|
if (!require.didPositionInitialScroll) {
|
|
|
|
|
require.didPositionInitialScroll = true;
|
|
|
|
|
if (require.props.initialScrollToTop) {
|
|
|
|
|
const obj3 = messages_MessagesUtils;
|
|
|
|
|
obj3.scrollToTopMessage(require.chatRef, require.chatManager);
|
2026-09-21 13:40:21 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp3 = null != tmp.scrollData && tmp.scrollData.type === NativeChatUtils.ChatScrollType.SCROLL;
|
2026-09-21 13:40:21 +00:00
|
|
|
if (tmp3) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = { animated: require.scrollData.animate, highlight: require.scrollData.highlight, position: require.scrollData.position };
|
|
|
|
|
const obj = NativeChatUtilsDefault;
|
|
|
|
|
obj.scrollTo(require.chatRef.current, require.scrollData.index, obj2);
|
2026-09-21 13:40:21 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.setup = function setup() {
|
2026-10-01 14:13:23 +00:00
|
|
|
let c0;
|
|
|
|
|
let chatManager2;
|
|
|
|
|
let constants2;
|
|
|
|
|
let messages;
|
|
|
|
|
let rowGenerator;
|
|
|
|
|
let tmp6;
|
2026-09-18 19:45:33 +00:00
|
|
|
let flag = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
c0 = undefined;
|
|
|
|
|
messages = undefined;
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_3;
|
|
|
|
|
map = undefined;
|
2026-09-18 19:45:33 +00:00
|
|
|
let items;
|
|
|
|
|
let items1;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp = require;
|
|
|
|
|
const tmp2 = require;
|
|
|
|
|
const props = require.props;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ channel: c0, messages } = props);
|
2026-10-01 14:13:23 +00:00
|
|
|
const roleStyle = props.roleStyle;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != messages) {
|
|
|
|
|
const rowGenerator2 = tmp2.rowGenerator;
|
|
|
|
|
let obj2 = { renderEmbeds: tmp6, inlineEmbedMedia: tmp5, inlineAttachmentMedia: tmp4, constrainedWidth: tmp2.props.width };
|
|
|
|
|
rowGenerator2.setOptions(obj2);
|
|
|
|
|
const chatManager5 = tmp2.chatManager;
|
|
|
|
|
chatManager5.setup(messages);
|
2026-10-01 14:13:23 +00:00
|
|
|
closure_3 = flag ? tmp31.UPDATE : tmp31.NOOP;
|
|
|
|
|
let tmp8 = tmp;
|
2026-09-18 19:45:33 +00:00
|
|
|
const chatManager = tmp2.chatManager;
|
|
|
|
|
const previousMessages = chatManager.getPreviousMessages();
|
2026-10-01 14:13:23 +00:00
|
|
|
let tmp9 = globalThis;
|
2026-09-18 19:45:33 +00:00
|
|
|
const _Array = Array;
|
|
|
|
|
map = null;
|
|
|
|
|
if (Array.isArray(previousMessages)) {
|
|
|
|
|
const _Map = Map;
|
2026-10-01 14:13:23 +00:00
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
2026-09-18 19:45:33 +00:00
|
|
|
map = new Map(previousMessages.map((id) => {
|
2026-10-01 14:13:23 +00:00
|
|
|
const items = [id.id, id];
|
2026-09-18 19:45:33 +00:00
|
|
|
return items;
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
items = [];
|
|
|
|
|
let item = messages.forEach((item) => {
|
|
|
|
|
const first = items[0];
|
|
|
|
|
if (null != first) {
|
2026-10-01 14:13:23 +00:00
|
|
|
if (closure_2_1(closure_2_3[15])(c0, first[first.length - 1], item)) {
|
2026-09-18 19:45:33 +00:00
|
|
|
items = [item];
|
2026-10-01 14:13:23 +00:00
|
|
|
items.unshift(items);
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
|
|
|
|
first.unshift(item);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
items1 = [item];
|
2026-10-01 14:13:23 +00:00
|
|
|
items.unshift(items1);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
items1 = [];
|
|
|
|
|
let item1 = items.forEach((arr, index) => {
|
2026-10-01 14:13:23 +00:00
|
|
|
let c1;
|
|
|
|
|
let obj8;
|
2026-10-12 16:32:48 +00:00
|
|
|
const f157469 = (message) => {
|
2026-10-01 14:13:23 +00:00
|
|
|
const content = obj3.content;
|
|
|
|
|
const obj = { rowType: constants2.MESSAGE, changeType: constants.NOOP, roleStyle, message, isFirst: message === closure_0 };
|
|
|
|
|
content.unshift(obj);
|
|
|
|
|
};
|
|
|
|
|
let closure_0 = tmp;
|
2026-09-18 19:45:33 +00:00
|
|
|
let isSameDayResult = items[items.length - 1] === arr;
|
|
|
|
|
messages = false;
|
|
|
|
|
let timestamp = null;
|
|
|
|
|
if (!isSameDayResult) {
|
|
|
|
|
timestamp = tmp2[index + 1][0].timestamp;
|
|
|
|
|
}
|
|
|
|
|
if (!isSameDayResult) {
|
|
|
|
|
isSameDayResult = null == timestamp;
|
|
|
|
|
}
|
|
|
|
|
if (!isSameDayResult) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let tmp6 = _undefined;
|
|
|
|
|
let obj = _undefined(changeType[16]);
|
|
|
|
|
isSameDayResult = obj.isSameDay(tmp.timestamp, timestamp);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
let flag = false;
|
|
|
|
|
if (!isSameDayResult) {
|
|
|
|
|
messages = true;
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
let tmp8 = items1[items1.length - 1];
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj2 = { roleStyle, rowType: constants.BLOCKED_GROUP, changeType, message: tmp, isFirst: true, content: [], text: "", revealed: false };
|
|
|
|
|
const tmp11 = changeType;
|
|
|
|
|
const tmp9 = roleStyle;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (arr[arr.length - 1].blocked) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp25 = null != tmp8 && tmp8.rowType === constants.BLOCKED_GROUP;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp25) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj3 = { rowType: constants.BLOCKED_GROUP };
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged = Object.assign(obj2);
|
2026-10-01 14:13:23 +00:00
|
|
|
items1.push(obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
tmp8 = obj3;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
obj3 = tmp8;
|
2026-10-12 16:32:48 +00:00
|
|
|
const item = arr.forEach(f157469);
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp8.revealed = arr[arr.length - 1].id === messages.revealedMessageId;
|
|
|
|
|
tmp8.context = arr[arr.length - 1].id;
|
2026-09-21 13:40:21 +00:00
|
|
|
const intl2 = _undefined(changeType[17]).intl;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj4 = { count: tmp8.content.length };
|
2026-09-21 13:40:21 +00:00
|
|
|
tmp8.text = intl2.formatToPlainString(_undefined(changeType[17]).t["+FcYM/"], obj4);
|
2026-10-01 14:13:23 +00:00
|
|
|
} else if (arr[arr.length - 1].ignored) {
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp14 = tmp8;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp13 = null != tmp8 && tmp8.rowType === constants.IGNORED_GROUP;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp13) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj5 = { rowType: constants.IGNORED_GROUP };
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged1 = Object.assign(obj2);
|
2026-10-01 14:13:23 +00:00
|
|
|
items1.push(obj5);
|
2026-09-18 19:45:33 +00:00
|
|
|
tmp14 = obj5;
|
|
|
|
|
}
|
|
|
|
|
obj5 = tmp14;
|
2026-10-12 16:32:48 +00:00
|
|
|
const item1 = arr.forEach(f157469);
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp14.revealed = arr[arr.length - 1].id === messages.revealedMessageId;
|
|
|
|
|
tmp14.context = arr[arr.length - 1].id;
|
2026-09-21 13:40:21 +00:00
|
|
|
const intl = _undefined(changeType[17]).intl;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj6 = { count: tmp14.content.length };
|
2026-09-21 13:40:21 +00:00
|
|
|
tmp14.text = intl.formatToPlainString(_undefined(changeType[17]).t["VFWjc+"], obj6);
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
|
|
|
|
const item2 = arr.forEach((id) => {
|
2026-10-01 14:13:23 +00:00
|
|
|
let tmp6;
|
|
|
|
|
const obj = map;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != map) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let UPDATE;
|
|
|
|
|
if (obj.get(id.id) !== id) {
|
|
|
|
|
UPDATE = constants.UPDATE;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = { roleStyle, rowType: constants2.MESSAGE, changeType: UPDATE, message: id, isFirst: id === closure_0, isEditing: false, separatorBefore: tmp6 };
|
|
|
|
|
tmp6 = id === closure_0;
|
|
|
|
|
const push = items1.push;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (tmp6) {
|
|
|
|
|
tmp6 = c1;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
push(obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
UPDATE = changeType;
|
2026-09-18 19:45:33 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (flag) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let push = arr.push;
|
|
|
|
|
const obj7 = { roleStyle: tmp9, rowType: constants2.DAY, changeType: tmp11, text: obj8.dateFormat(arr[arr.length - 1].timestamp, "LL") };
|
|
|
|
|
obj8 = _undefined(changeType[16]);
|
|
|
|
|
push(obj7);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
});
|
2026-10-01 14:13:23 +00:00
|
|
|
let tmp13 = items1;
|
|
|
|
|
let tmp14 = items1;
|
2026-09-18 19:45:33 +00:00
|
|
|
for (const item10042 of items1) {
|
2026-10-01 14:13:23 +00:00
|
|
|
({ chatManager: chatManager2, rowGenerator } = require);
|
2026-09-18 19:45:33 +00:00
|
|
|
let row = chatManager2.createRow(rowGenerator.generate(item10042));
|
|
|
|
|
continue;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj = require;
|
|
|
|
|
const chatManager3 = require.chatManager;
|
2026-09-18 19:45:33 +00:00
|
|
|
const changeset = chatManager3.createChangeset();
|
2026-10-01 14:13:23 +00:00
|
|
|
const chatManager4 = require.chatManager;
|
2026-09-18 19:45:33 +00:00
|
|
|
const jumpTargetId = tmp3.jumpTargetId;
|
2026-09-21 13:40:21 +00:00
|
|
|
const previousRows = chatManager4.getPreviousRows();
|
2026-10-12 16:32:48 +00:00
|
|
|
let obj3 = { rows: previousRows, scrollToMessageId: jumpTargetId, jumpTargetId, jumpType: "Symbol", shouldInitialScroll: "Array", animated: 0, scrollPosition: 2, focusTargetId: 0 };
|
2026-10-01 14:13:23 +00:00
|
|
|
require.scrollData = computeScrollDataDefault(obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp7) {
|
2026-09-21 13:40:21 +00:00
|
|
|
if (obj.didPositionInitialScroll) {
|
|
|
|
|
obj.updateContent(changeset, obj.scrollData);
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
obj.updateContent(changeset, undefined);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.updateContent = function updateContent(changeset, scrollData) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const current = require.chatRef.current;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != current) {
|
|
|
|
|
const obj2 = { rows: changeset, isLoadingAtTop: false, scrollData };
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = NativeChatUtilsDefault;
|
|
|
|
|
obj.updateRows(current, obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.getMessage = function getMessage(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
const arr = _modDef12;
|
|
|
|
|
return arr.find(require.props.messages, (id) => id.id === closure_0 || id.nonce === closure_0);
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleJumpToChat = function handleJumpToChat() {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_129_0;
|
|
|
|
|
let closure_129_2;
|
|
|
|
|
let jumpToChatProps;
|
|
|
|
|
let onBeforeJumpToMessage;
|
|
|
|
|
({ channelId: closure_129_0, jumpToChatProps } = require.props);
|
2026-09-18 19:45:33 +00:00
|
|
|
const jumpTargetId = jumpToChatProps.jumpTargetId;
|
2026-10-01 14:13:23 +00:00
|
|
|
({ onBeforeJumpToMessage, conversationId: closure_129_2 } = jumpToChatProps);
|
2026-09-18 19:45:33 +00:00
|
|
|
if (onBeforeJumpToMessage != null) {
|
2026-09-28 16:18:32 +00:00
|
|
|
let result = onBeforeJumpToMessage("footer_cta");
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
if (null != jumpTargetId) {
|
|
|
|
|
const resolved = Promise.resolve();
|
|
|
|
|
resolved.then(() => {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = closure_2_0(closure_2_3[20]);
|
|
|
|
|
const result = obj.setSelectedConversation(closure_1_0, closure_1_2, { shouldJump: false });
|
|
|
|
|
const obj2 = closure_2_0(closure_2_3[21]);
|
|
|
|
|
obj2.transitionToMessage(closure_1_0, jumpTargetId, { navigationReplace: true });
|
2026-09-18 19:45:33 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleTapLink = function handleTapLink(nativeEvent) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let props;
|
2026-09-18 19:45:33 +00:00
|
|
|
nativeEvent = nativeEvent.nativeEvent;
|
|
|
|
|
const data = nativeEvent.data;
|
|
|
|
|
if ("bindJumpToMessage" === data.action) {
|
|
|
|
|
if (null != data.targetChannelId) {
|
|
|
|
|
if (null != data.targetMessageId) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let jumpToChatProps = require.props.jumpToChatProps;
|
2026-09-18 19:45:33 +00:00
|
|
|
let onBeforeJumpToMessage = jumpToChatProps.onBeforeJumpToMessage;
|
|
|
|
|
if (onBeforeJumpToMessage != null) {
|
|
|
|
|
let result = onBeforeJumpToMessage("message_link");
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj2 = transitionToChannel;
|
|
|
|
|
obj2.transitionToMessage(data.targetChannelId, data.targetMessageId, { navigationReplace: true });
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj = {
|
2026-09-18 19:45:33 +00:00
|
|
|
allowWithinModal: true,
|
|
|
|
|
chatInputRef: "a",
|
|
|
|
|
handleTransitionToThread(arg0, arg1, source) {
|
|
|
|
|
const jumpToChatProps = props.props.jumpToChatProps;
|
|
|
|
|
const onBeforeJumpToMessage = jumpToChatProps.onBeforeJumpToMessage;
|
|
|
|
|
if (onBeforeJumpToMessage != null) {
|
|
|
|
|
const result = onBeforeJumpToMessage("thread_link");
|
|
|
|
|
}
|
|
|
|
|
channel = channel.getChannel(arg1);
|
|
|
|
|
if (null != channel) {
|
|
|
|
|
const obj2 = { source, navigationReplace: true };
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = transitionToChannel;
|
|
|
|
|
obj.transitionToThread(channel, obj2);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
},
|
2026-10-01 14:13:23 +00:00
|
|
|
message: require.getMessage(data.messageId),
|
|
|
|
|
messageChannel: channel,
|
2026-10-12 16:32:48 +00:00
|
|
|
selectedChannelId: "asc",
|
2026-10-01 14:13:23 +00:00
|
|
|
tapLinkData: nativeEvent
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
2026-10-01 14:13:23 +00:00
|
|
|
const handleMessagesTapLink = handleMessagesTapLink2.handleMessagesTapLink;
|
|
|
|
|
handleMessagesTapLink2;
|
|
|
|
|
channel = require.props.channel;
|
|
|
|
|
const result1 = handleMessagesTapLink(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleLongPressLink = function handleLongPressLink(nativeEvent) {
|
|
|
|
|
const url = nativeEvent.nativeEvent.url;
|
2026-10-01 14:13:23 +00:00
|
|
|
const hasActionSheetOpen = require.props.hasActionSheetOpen || null == url || "" === url;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!hasActionSheetOpen) {
|
|
|
|
|
const obj = { urlString: url };
|
|
|
|
|
showLongPressURLActionSheetDefault(obj);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleLongPressMessage = function handleLongPressMessage(nativeEvent) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let componentMediaIndex;
|
|
|
|
|
let mediaIndex;
|
|
|
|
|
let mediaType;
|
|
|
|
|
let tmp9;
|
|
|
|
|
const obj = MessageDataSnowflakeUtils;
|
|
|
|
|
const nativeSyntheticEventData = obj.getNativeSyntheticEventData(nativeEvent);
|
2026-09-18 19:45:33 +00:00
|
|
|
({ mediaIndex, mediaType, componentMediaIndex } = nativeSyntheticEventData);
|
2026-10-01 14:13:23 +00:00
|
|
|
const props = require.props;
|
2026-09-18 19:45:33 +00:00
|
|
|
channel = props.channel;
|
|
|
|
|
if (!props.hasActionSheetOpen) {
|
|
|
|
|
const message = obj2.getMessage(tmp4);
|
|
|
|
|
if (null != message) {
|
|
|
|
|
const user = UserStore.getUser(message.author.id);
|
|
|
|
|
if (null != user) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const getLongPressSelectedMedia = messages_MessagesUtils.getLongPressSelectedMedia;
|
|
|
|
|
const tmpResult = messages_MessagesUtils;
|
|
|
|
|
const tmpResult3 = InteractionComponentTypes;
|
|
|
|
|
const longPressSelectedMedia = getLongPressSelectedMedia(message, mediaIndex, mediaType, tmpResult3.asComponentId(tmp5), componentMediaIndex);
|
|
|
|
|
const obj4 = KeyboardManagerUtilsAll;
|
|
|
|
|
const result = obj4.dismissGlobalKeyboard();
|
|
|
|
|
const obj3 = { actionSheetSource: "Preview", analyticsLocation: require.props.analyticsLocation, canAddNewReactions: tmp9, channel, message, selectedMedia: longPressSelectedMedia, user };
|
|
|
|
|
tmp9 = true === tmp6;
|
|
|
|
|
const showLongPressMessageActionSheet = showLongPressMessageActionSheet2.showLongPressMessageActionSheet;
|
|
|
|
|
showLongPressMessageActionSheet2;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (tmp9) {
|
|
|
|
|
tmp9 = null != channel;
|
|
|
|
|
}
|
|
|
|
|
if (tmp9) {
|
|
|
|
|
tmp9 = canAddNewReactionsDefault(channel);
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const result1 = showLongPressMessageActionSheet(obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleLongPressReaction = function handleLongPressReaction(nativeEvent) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = MessageDataSnowflakeUtils;
|
|
|
|
|
const nativeSyntheticEventData = obj.getNativeSyntheticEventData(nativeEvent);
|
2026-09-18 19:45:33 +00:00
|
|
|
const reaction = nativeSyntheticEventData.reaction;
|
2026-10-01 14:13:23 +00:00
|
|
|
if (!require.props.hasActionSheetOpen) {
|
2026-09-18 19:45:33 +00:00
|
|
|
let emoji;
|
2026-10-12 16:32:48 +00:00
|
|
|
const handleViewPreviewReactions = tmp(9385).handleViewPreviewReactions;
|
2026-10-01 14:13:23 +00:00
|
|
|
reactions_ReactionUtils;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != reaction) {
|
|
|
|
|
emoji = reaction.emoji;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const result = handleViewPreviewReactions(tmp4, tmp5, emoji);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleTapReaction = function handleTapReaction(nativeEvent) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let isBurst;
|
|
|
|
|
let messageId;
|
|
|
|
|
let reaction;
|
|
|
|
|
const props = require.props;
|
2026-09-18 19:45:33 +00:00
|
|
|
channel = props.channel;
|
|
|
|
|
if (!props.hasActionSheetOpen) {
|
|
|
|
|
if (true === tmp) {
|
|
|
|
|
if (null != channel) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = MessageDataSnowflakeUtils;
|
|
|
|
|
const nativeSyntheticEventData = obj2.getNativeSyntheticEventData(nativeEvent);
|
2026-09-18 19:45:33 +00:00
|
|
|
({ reaction, messageId, isBurst } = nativeSyntheticEventData);
|
|
|
|
|
let tmp5 = null;
|
2026-10-01 14:13:23 +00:00
|
|
|
const handleAddOrRemoveReaction = messages_MessagesUtils.handleAddOrRemoveReaction;
|
|
|
|
|
const tmp15 = require;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != reaction) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = { emoji: reaction.emoji };
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged = Object.assign(reaction);
|
|
|
|
|
tmp5 = obj;
|
|
|
|
|
}
|
|
|
|
|
let MESSAGE = nativeEvent.nativeEvent.location;
|
|
|
|
|
if (MESSAGE == null) {
|
2026-10-12 16:32:48 +00:00
|
|
|
MESSAGE = tmp15(7900).ReactionLocations.MESSAGE;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const result = handleAddOrRemoveReaction(messageId, channel, tmp5, isBurst, MESSAGE);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleTapImage = function handleTapImage(nativeEvent) {
|
|
|
|
|
nativeEvent = nativeEvent.nativeEvent;
|
2026-10-01 14:13:23 +00:00
|
|
|
const message = require.getMessage(nativeEvent.id);
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != message) {
|
|
|
|
|
channel = ChannelStore.getChannel(message.getChannelId());
|
|
|
|
|
if (null != channel) {
|
2026-10-02 13:37:24 +00:00
|
|
|
const obj = { tapImageData: nativeEvent, allowWithinModal: true, message, messageChannel: channel, selectedChannelId: "IconComponent", showContextName: null };
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = handleMessagesTapImage;
|
|
|
|
|
const result = obj2.handleMessagesTapImage(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleTapChannel = function handleTapChannel(nativeEvent) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let props;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj = MessageDataSnowflakeUtils;
|
2026-10-01 14:13:23 +00:00
|
|
|
const data = obj.getNativeSyntheticEventData(nativeEvent).data;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj2 = handleMessagesTapChannel;
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj3 = {
|
|
|
|
|
data,
|
2026-09-18 19:45:33 +00:00
|
|
|
navigationReplace: true,
|
|
|
|
|
onBeforeNavigate() {
|
|
|
|
|
const jumpToChatProps = props.props.jumpToChatProps;
|
|
|
|
|
const onBeforeJumpToMessage = jumpToChatProps.onBeforeJumpToMessage;
|
|
|
|
|
let result;
|
|
|
|
|
if (onBeforeJumpToMessage != null) {
|
|
|
|
|
result = onBeforeJumpToMessage("channel_link");
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
};
|
|
|
|
|
let result = obj2.handleMessagesTapChannel(obj3);
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleLongPressChannel = function handleLongPressChannel(arg0) {
|
|
|
|
|
MessageDataSnowflakeUtils;
|
2026-10-01 14:13:23 +00:00
|
|
|
if (!require.props.hasActionSheetOpen) {
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj = { data: tmp4 };
|
|
|
|
|
const tmpResult = handleMessagesLongPressChannel;
|
2026-10-01 14:13:23 +00:00
|
|
|
const result = tmpResult.handleMessagesLongPressChannel(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-10-07 22:43:51 +00:00
|
|
|
applyArgumentsResult.handleTapAttachmentTextPreview = function handleTapAttachmentTextPreview(arg0) {
|
|
|
|
|
if (!require.props.hasActionSheetOpen) {
|
|
|
|
|
const contentHandlers = contentHandlers2.contentHandlers;
|
|
|
|
|
const result = contentHandlers.onTapAttachmentTextPreview(arg0);
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-09-18 19:45:33 +00:00
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
componentDidMount() {
|
|
|
|
|
const self = this;
|
|
|
|
|
const tmp = null != this.props.messages && false !== self.props.canAccessChannel;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
self.setup();
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
componentWillUnmount() {
|
|
|
|
|
if (null != this.chatRef.current) {
|
|
|
|
|
const chatManager = this.chatManager;
|
|
|
|
|
chatManager.clear();
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
}
|
|
|
|
|
componentDidUpdate(messages) {
|
|
|
|
|
const self = this;
|
|
|
|
|
const tmp = messages.messages === this.props.messages && messages.width === self.props.width;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
self.setup(messages.width !== self.props.width);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp3 = messages.canAccessChannel !== self.props.canAccessChannel && null != self.props.messages;
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
self.setup(self.props.canAccessChannel);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
render() {
|
|
|
|
|
let PressableOpacity;
|
|
|
|
|
let channel;
|
|
|
|
|
let isSpoilerHidden;
|
|
|
|
|
let items1;
|
|
|
|
|
let obj10;
|
|
|
|
|
let obj17;
|
|
|
|
|
let prop;
|
|
|
|
|
let prop1;
|
|
|
|
|
let tmp14;
|
|
|
|
|
let tmp6Result2;
|
|
|
|
|
const self = this;
|
|
|
|
|
const tmp = closure_15(this.context);
|
|
|
|
|
const props = this.props;
|
|
|
|
|
({ channel, isSpoilerHidden } = props);
|
|
|
|
|
if (props.isNSFWHidden) {
|
|
|
|
|
let guild_id;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
guild_id = channel.guild_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != guild_id) {
|
|
|
|
|
const obj3 = { guildId: null, channelId: null };
|
|
|
|
|
({ guild_id: obj8.guildId, id: obj8.channelId } = channel);
|
|
|
|
|
tmp14 = map1(GuildNSFWDefault, obj3);
|
|
|
|
|
}
|
|
|
|
|
const items = [tmp.containerInner, ];
|
|
|
|
|
let tmp24 = null != self.props.backgroundColor;
|
2026-10-12 16:32:48 +00:00
|
|
|
const tmp21 = syncedClientThemes;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp22 = hasOwnProperty;
|
|
|
|
|
if (tmp24) {
|
|
|
|
|
tmp24 = { backgroundColor: self.props.backgroundColor };
|
|
|
|
|
const obj4 = { backgroundColor: self.props.backgroundColor };
|
|
|
|
|
}
|
|
|
|
|
const obj5 = { style: items, children: items1 };
|
|
|
|
|
items[1] = tmp24;
|
|
|
|
|
items1 = [tmp14, tmp6Result2];
|
|
|
|
|
return tmp21(tmp22, obj5);
|
|
|
|
|
}
|
|
|
|
|
if (isSpoilerHidden) {
|
|
|
|
|
let guild_id1;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
guild_id1 = channel.guild_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != guild_id1) {
|
|
|
|
|
const obj6 = { guildId: null, channelId: null };
|
|
|
|
|
({ guild_id: obj7.guildId, id: obj7.channelId } = channel);
|
|
|
|
|
tmp14 = map1(ChannelSpoilerDefault, obj6);
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-07 22:43:51 +00:00
|
|
|
const obj = { ref: self.chatRef, style: tmp.chat, inverted: true, onTapLink: self.handleTapLink, onTapChannel: self.handleTapChannel, onLongPressChannel: self.handleLongPressChannel, onTapAttachmentTextPreview: self.handleTapAttachmentTextPreview, onLongPressLink: self.handleLongPressLink, onLongPressMessage: self.handleLongPressMessage, onLongPressReaction: self.handleLongPressReaction, onTapReaction: self.handleTapReaction, onTapImage: self.handleTapImage, onCompleteFirstLayout: prop, onFirstLayout: prop1 };
|
2026-10-01 14:13:23 +00:00
|
|
|
prop = undefined;
|
|
|
|
|
const tmp8 = ChatDefault;
|
|
|
|
|
const obj2 = PlatformUtils;
|
|
|
|
|
if (obj2.isIOS()) {
|
|
|
|
|
prop = self.handleCompleteFirstLayout;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
prop1 = undefined;
|
|
|
|
|
const tmp9Result = PlatformUtils;
|
|
|
|
|
if (!tmp9Result.isIOS()) {
|
|
|
|
|
prop1 = self.handleCompleteFirstLayout;
|
|
|
|
|
}
|
|
|
|
|
const obj9 = { bottom: true, style: tmp.jumpToChatButtonContainer, children: map1(PressableOpacity, obj10) };
|
|
|
|
|
const tmp6Result = map1(tmp8, obj);
|
2026-10-12 16:32:48 +00:00
|
|
|
const SafeAreaPaddingView = tmp9(6814).SafeAreaPaddingView;
|
2026-10-01 14:13:23 +00:00
|
|
|
obj10 = { accessibilityRole: "button", style: tmp.jumpToChatButton, onPress: self.handleJumpToChat, children: map1(Text_Text.Text, obj17) };
|
2026-10-12 16:32:48 +00:00
|
|
|
PressableOpacity = tmp9(6185).PressableOpacity;
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp14 = tmp6Result;
|
|
|
|
|
obj17 = { style: tmp.jumpToChatText, variant: "text-md/medium", color: "interactive-text-default", children: self.props.jumpToChatProps.jumpToChatText };
|
|
|
|
|
tmp6Result2 = map1(SafeAreaPaddingView, obj9);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
}
|
|
|
|
|
const prototype = ChatPreviewBase.prototype;
|
|
|
|
|
ChatPreviewBase.contextType = native.ThemeContext;
|
2026-09-18 19:45:33 +00:00
|
|
|
ChatPreviewBase.defaultProps = { withSafeArea: true };
|
2026-10-12 16:32:48 +00:00
|
|
|
let tmp7 = ReactCompilerGating.isReactCompilerEnabled() ? (function ChatPreview(channelId) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let content;
|
|
|
|
|
let roleStyle;
|
|
|
|
|
let tmp11;
|
|
|
|
|
let tmp13;
|
|
|
|
|
let tmp17;
|
|
|
|
|
let tmp18;
|
|
|
|
|
let tmp7;
|
|
|
|
|
let tmp8;
|
|
|
|
|
const obj = channelId(576);
|
|
|
|
|
const cResult = obj.c(19);
|
|
|
|
|
channelId = channelId.channelId;
|
2026-10-12 16:32:48 +00:00
|
|
|
const InlineAttachmentMedia = channelId(2041).InlineAttachmentMedia;
|
2026-10-02 13:37:24 +00:00
|
|
|
const setting = InlineAttachmentMedia.useSetting();
|
2026-10-12 16:32:48 +00:00
|
|
|
const InlineEmbedMedia = channelId(2041).InlineEmbedMedia;
|
2026-10-02 13:37:24 +00:00
|
|
|
const setting1 = InlineEmbedMedia.useSetting();
|
2026-10-12 16:32:48 +00:00
|
|
|
const RenderEmbeds = channelId(2041).RenderEmbeds;
|
2026-10-02 13:37:24 +00:00
|
|
|
const setting2 = RenderEmbeds.useSetting();
|
|
|
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const items = [AccessibilityStore];
|
|
|
|
|
const fn = function s() {
|
|
|
|
|
return roleStyle.roleStyle;
|
|
|
|
|
};
|
|
|
|
|
cResult[0] = items;
|
|
|
|
|
cResult[1] = fn;
|
|
|
|
|
tmp7 = items;
|
|
|
|
|
tmp8 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
[tmp7, tmp8] = cResult;
|
|
|
|
|
}
|
|
|
|
|
const tmpResult = channelId(504);
|
|
|
|
|
const stateFromStores = tmpResult.useStateFromStores(tmp7, tmp8);
|
|
|
|
|
if (cResult[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const items1 = [ChannelStore];
|
|
|
|
|
cResult[2] = items1;
|
|
|
|
|
tmp11 = items1;
|
|
|
|
|
} else {
|
|
|
|
|
tmp11 = cResult[2];
|
|
|
|
|
}
|
|
|
|
|
if (cResult[3] !== channelId) {
|
2026-10-12 16:32:48 +00:00
|
|
|
class C {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cResult[3] = channelId;
|
2026-10-12 16:32:48 +00:00
|
|
|
cResult[4] = C;
|
|
|
|
|
tmp13 = C;
|
2026-10-02 13:37:24 +00:00
|
|
|
} else {
|
2026-10-12 16:32:48 +00:00
|
|
|
class C {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const tmpResult5 = channelId(504);
|
|
|
|
|
const stateFromStores1 = tmpResult5.useStateFromStores(tmp11, tmp13);
|
|
|
|
|
const width = useWindowDimensionsDefault().width;
|
2026-10-12 16:32:48 +00:00
|
|
|
const tmpResult6 = channelId(5944);
|
2026-10-02 13:37:24 +00:00
|
|
|
const isChannelSpoilerGated = tmpResult6.useIsChannelSpoilerGated(stateFromStores1);
|
2026-10-12 16:32:48 +00:00
|
|
|
const tmpResult7 = channelId(5924);
|
2026-10-02 13:37:24 +00:00
|
|
|
const isChannelContentGated = tmpResult7.useIsChannelContentGated(stateFromStores1);
|
|
|
|
|
if (cResult[5] === Symbol.for("react.memo_cache_sentinel")) {
|
2026-10-12 16:32:48 +00:00
|
|
|
class C {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const items2 = [ActionSheetStore];
|
2026-10-12 16:32:48 +00:00
|
|
|
const fn2 = function f() {
|
|
|
|
|
return null != content.getContent();
|
|
|
|
|
};
|
2026-10-02 13:37:24 +00:00
|
|
|
cResult[5] = items2;
|
2026-10-12 16:32:48 +00:00
|
|
|
cResult[6] = fn2;
|
|
|
|
|
tmp18 = fn2;
|
2026-10-02 13:37:24 +00:00
|
|
|
tmp17 = items2;
|
|
|
|
|
} else {
|
2026-10-12 16:32:48 +00:00
|
|
|
class C {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tmp18 = cResult[6];
|
|
|
|
|
}
|
|
|
|
|
const tmpResult8 = channelId(504);
|
|
|
|
|
const stateFromStores2 = tmpResult8.useStateFromStores(tmp17, tmp18);
|
|
|
|
|
if (cResult[7] === stateFromStores1) {
|
2026-10-12 16:32:48 +00:00
|
|
|
class C {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const obj2 = { inlineAttachmentMedia: setting, inlineEmbedMedia: setting1, renderEmbeds: setting2, roleStyle: stateFromStores, channel: stateFromStores1, width, isSpoilerHidden: isChannelSpoilerGated, isNSFWHidden: isChannelContentGated, canAccessChannel: !isChannelSpoilerGated && !isChannelContentGated, hasActionSheetOpen: stateFromStores2 };
|
|
|
|
|
const merged = Object.assign(channelId);
|
|
|
|
|
cResult[7] = stateFromStores1;
|
|
|
|
|
cResult[8] = stateFromStores2;
|
|
|
|
|
cResult[9] = setting;
|
|
|
|
|
cResult[10] = setting1;
|
|
|
|
|
cResult[11] = isChannelContentGated;
|
|
|
|
|
cResult[12] = isChannelSpoilerGated;
|
|
|
|
|
cResult[13] = channelId;
|
|
|
|
|
cResult[14] = setting2;
|
|
|
|
|
cResult[15] = stateFromStores;
|
|
|
|
|
cResult[16] = !isChannelSpoilerGated && !isChannelContentGated;
|
|
|
|
|
cResult[17] = width;
|
|
|
|
|
cResult[18] = closure_13(ChatPreviewBase, obj2);
|
|
|
|
|
closure_13(ChatPreviewBase, obj2);
|
2026-10-12 16:32:48 +00:00
|
|
|
}) : (function ChatPreview(channelId) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let content;
|
|
|
|
|
let roleStyle;
|
|
|
|
|
let stateFromStores2;
|
2026-09-18 19:45:33 +00:00
|
|
|
channelId = channelId.channelId;
|
2026-10-12 16:32:48 +00:00
|
|
|
const InlineAttachmentMedia = channelId(2041).InlineAttachmentMedia;
|
2026-09-18 19:45:33 +00:00
|
|
|
const setting = InlineAttachmentMedia.useSetting();
|
2026-10-12 16:32:48 +00:00
|
|
|
const InlineEmbedMedia = channelId(2041).InlineEmbedMedia;
|
2026-09-18 19:45:33 +00:00
|
|
|
const setting1 = InlineEmbedMedia.useSetting();
|
2026-10-12 16:32:48 +00:00
|
|
|
const RenderEmbeds = channelId(2041).RenderEmbeds;
|
2026-09-18 19:45:33 +00:00
|
|
|
const setting2 = RenderEmbeds.useSetting();
|
|
|
|
|
const items = [AccessibilityStore];
|
|
|
|
|
const obj = channelId(504);
|
2026-10-01 14:13:23 +00:00
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => roleStyle.roleStyle);
|
2026-09-18 19:45:33 +00:00
|
|
|
const items1 = [ChannelStore];
|
|
|
|
|
const obj2 = channelId(504);
|
2026-10-01 14:13:23 +00:00
|
|
|
const stateFromStores1 = obj2.useStateFromStores(items1, () => ChannelStore.getChannel(channelId));
|
|
|
|
|
const width = useWindowDimensionsDefault().width;
|
2026-10-12 16:32:48 +00:00
|
|
|
const obj3 = channelId(5944);
|
2026-10-01 14:13:23 +00:00
|
|
|
const isChannelSpoilerGated = obj3.useIsChannelSpoilerGated(stateFromStores1);
|
2026-10-12 16:32:48 +00:00
|
|
|
const obj4 = channelId(5924);
|
2026-10-01 14:13:23 +00:00
|
|
|
const isChannelContentGated = obj4.useIsChannelContentGated(stateFromStores1);
|
2026-09-18 19:45:33 +00:00
|
|
|
const items2 = [ActionSheetStore];
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj6 = { inlineAttachmentMedia: setting, inlineEmbedMedia: setting1, renderEmbeds: setting2, roleStyle: stateFromStores, channel: stateFromStores1, width, isSpoilerHidden: isChannelSpoilerGated, isNSFWHidden: isChannelContentGated, canAccessChannel: !isChannelSpoilerGated && !isChannelContentGated, hasActionSheetOpen: stateFromStores2 };
|
|
|
|
|
const obj5 = channelId(504);
|
|
|
|
|
stateFromStores2 = obj5.useStateFromStores(items2, () => null != content.getContent());
|
2026-09-18 19:45:33 +00:00
|
|
|
const merged = Object.assign(channelId);
|
|
|
|
|
return closure_13(ChatPreviewBase, obj6);
|
2026-10-02 13:37:24 +00:00
|
|
|
});
|
|
|
|
|
let result = size.fileFinishedImporting("components_native/common/ChatPreview.tsx");
|
|
|
|
|
|
|
|
|
|
export const ChatPreview = tmp7;
|