209 lines
8.6 KiB
TypeScript
209 lines
8.6 KiB
TypeScript
// Module ID: 15123
|
|
// Function ID: 114127
|
|
// Name: ICYMIForumThreadRow
|
|
// Dependencies: []
|
|
// Exports: default
|
|
|
|
// Module 15123 (ICYMIForumThreadRow)
|
|
class ICYMIForumThreadRow {
|
|
constructor(arg0) {
|
|
channel = global.channel;
|
|
arg1 = channel;
|
|
message = global.message;
|
|
importDefault = message;
|
|
tmp = f114134();
|
|
obj = arg1(dependencyMap[7]);
|
|
items = [];
|
|
items[0] = defineProperty;
|
|
stateFromStores = obj.useStateFromStores(items, () => {
|
|
let guildId;
|
|
if (null != channel) {
|
|
guildId = channel.getGuildId();
|
|
}
|
|
return guild.getGuild(guildId);
|
|
});
|
|
dependencyMap = stateFromStores;
|
|
author = message.author;
|
|
importAll = author;
|
|
obj2 = arg1(dependencyMap[7]);
|
|
items1 = [];
|
|
items1[0] = closure_5;
|
|
items2 = [, ];
|
|
items2[0] = author.id;
|
|
id = undefined;
|
|
stateFromStores1 = obj2.useStateFromStores(items1, () => channel.getChannel(channel.parent_id));
|
|
tmp4 = importAll;
|
|
if (null != stateFromStores) {
|
|
id = stateFromStores.id;
|
|
}
|
|
items2[1] = id;
|
|
effect = importAll.useEffect(() => {
|
|
let id;
|
|
if (null != stateFromStores) {
|
|
id = stateFromStores.id;
|
|
}
|
|
if (null != id) {
|
|
let id1;
|
|
if (null != stateFromStores) {
|
|
id1 = stateFromStores.id;
|
|
}
|
|
const items = [author.id];
|
|
const membersById = message(stateFromStores[8]).requestMembersById(id1, items);
|
|
const obj = message(stateFromStores[8]);
|
|
}
|
|
}, items2);
|
|
items3 = [, , ];
|
|
items3[0] = channel;
|
|
items3[1] = stateFromStores;
|
|
items3[2] = message.id;
|
|
callback = importAll.useCallback(() => {
|
|
let obj = message(stateFromStores[9]);
|
|
obj.itemInteracted(message.id, "forum_thread", "press_forum_thread");
|
|
obj = { itemId: message.id, itemType: "forum_thread", actionParameters: { <string:2204214729>: -17936187456.435856, <string:1672982865>: -754166156867405600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, <string:1370399429>: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002788266142641192, <string:3949021540>: 35924081385589870000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 } };
|
|
message(stateFromStores[9]).feedItemActioned(obj);
|
|
let tmp3 = null != channel;
|
|
if (tmp3) {
|
|
tmp3 = null != stateFromStores;
|
|
}
|
|
if (tmp3) {
|
|
channel(stateFromStores[10]).navigateToPost(channel.id, stateFromStores.id, message.id);
|
|
const obj4 = channel(stateFromStores[10]);
|
|
}
|
|
}, items3);
|
|
items4 = [, ];
|
|
items4[0] = channel.parent_id;
|
|
items4[1] = message.id;
|
|
callback1 = importAll.useCallback(() => {
|
|
if (null != channel.parent_id) {
|
|
let obj = message(stateFromStores[9]);
|
|
obj.itemInteracted(message.id, "forum_thread", "long_press_forum_thread");
|
|
obj = { itemId: message.id, itemType: "forum_thread", actionParameters: {} };
|
|
message(stateFromStores[9]).feedItemActioned(obj);
|
|
const obj2 = message(stateFromStores[9]);
|
|
const result = channel(stateFromStores[11]).openChannelLongPressActionSheet(channel.parent_id);
|
|
const obj4 = channel(stateFromStores[11]);
|
|
}
|
|
}, items4);
|
|
obj3 = arg1(dependencyMap[12]);
|
|
gravityMessage = obj3.useGravityMessage(message);
|
|
tmp11 = null;
|
|
if (null != channel) {
|
|
tmp11 = null;
|
|
if (null != channel.guild_id) {
|
|
tmp11 = null;
|
|
if (null != stateFromStores) {
|
|
tmp11 = null;
|
|
if (null != author) {
|
|
tmp11 = null;
|
|
if (null != stateFromStores1) {
|
|
tmp12 = jsxs;
|
|
tmp13 = importDefault;
|
|
tmp14 = dependencyMap;
|
|
num = 14;
|
|
obj = {};
|
|
tmp16 = arg1;
|
|
num2 = 15;
|
|
tmp15 = importDefault(dependencyMap[14]);
|
|
intl = arg1(dependencyMap[15]).intl;
|
|
obj.actionLabel = intl.string(arg1(dependencyMap[15]).t.bYNuVx);
|
|
obj.id = gravityMessage.id;
|
|
str = "forum_thread";
|
|
obj.interactionType = "forum_thread";
|
|
obj.channelId = channel.parent_id;
|
|
num3 = 16;
|
|
obj5 = importDefault(dependencyMap[16]);
|
|
obj.timestamp = obj5.extractTimestamp(gravityMessage.id);
|
|
obj.onHeaderPress = callback;
|
|
obj.onHeaderLongPress = callback1;
|
|
obj.message = gravityMessage;
|
|
flag = true;
|
|
obj.shouldFeatureUser = true;
|
|
tmp17 = jsx;
|
|
num4 = 17;
|
|
obj1 = {};
|
|
obj1.onPress = callback;
|
|
obj1.onLongPress = callback1;
|
|
str2 = "button";
|
|
obj1.accessibilityRole = "button";
|
|
num5 = 130;
|
|
obj1.unstable_pressDelay = 130;
|
|
obj1.style = tmp.pressable;
|
|
tmp18 = jsxs;
|
|
tmp19 = View;
|
|
obj2 = {};
|
|
obj2.style = tmp.container;
|
|
tmp20 = jsx;
|
|
num6 = 18;
|
|
obj3 = { hasMaxConnections: "<string:1091687288>", isBoostOnlySubscription: "/assets/design/components/Icon/native/redesign/generated/images" };
|
|
obj3.children = tmp10;
|
|
items5 = [, , ];
|
|
items5[0] = jsx(arg1(dependencyMap[18]).Text, obj3);
|
|
tmp21 = jsx;
|
|
obj4 = {};
|
|
obj4.style = tmp.subtitle;
|
|
num7 = 19;
|
|
obj10 = importDefault(dependencyMap[19]);
|
|
obj4.children = obj10.parseInlineReply(message.content, true);
|
|
items5[1] = jsx(arg1(dependencyMap[18]).Text, obj4);
|
|
tmp22 = jsx;
|
|
num8 = 20;
|
|
obj5 = {};
|
|
obj5.message = message;
|
|
obj5.visible = global.visible;
|
|
obj5.itemType = "forum_thread";
|
|
items5[2] = jsx(importDefault(dependencyMap[20]), obj5);
|
|
obj2.children = items5;
|
|
obj1.children = jsxs(View, obj2);
|
|
items6 = [, ];
|
|
items6[0] = jsx(arg1(dependencyMap[17]).PressableHighlight, obj1);
|
|
tmp23 = jsx;
|
|
tmp24 = View;
|
|
obj6 = {};
|
|
obj6.style = tmp.footer;
|
|
tmp25 = jsx;
|
|
tmp26 = View;
|
|
obj7 = {};
|
|
obj7.style = tmp.ICYMICardInteractionRow;
|
|
tmp27 = jsx;
|
|
num9 = 21;
|
|
obj8 = {};
|
|
obj8.message = gravityMessage;
|
|
obj8.channel = channel;
|
|
obj8.guild = stateFromStores;
|
|
str3 = "base";
|
|
obj8.backgroundVariant = "base";
|
|
obj8.id = gravityMessage.id;
|
|
obj8.itemType = "forum_thread";
|
|
obj7.children = jsx(importDefault(dependencyMap[21]), obj8);
|
|
obj6.children = jsx(View, obj7);
|
|
items6[1] = jsx(View, obj6);
|
|
obj.children = items6;
|
|
tmp11 = jsxs(tmp15, obj);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return tmp11;
|
|
}
|
|
}
|
|
let closure_3 = importAll(dependencyMap[0]);
|
|
const View = arg1(dependencyMap[1]).View;
|
|
let closure_5 = importDefault(dependencyMap[2]);
|
|
let closure_6 = importDefault(dependencyMap[3]);
|
|
({ jsx: closure_7, jsxs: closure_8 } = arg1(dependencyMap[4]));
|
|
const tmp2 = arg1(dependencyMap[4]);
|
|
let closure_9 = arg1(dependencyMap[5]).createICYMIStyles((marginHorizontal) => {
|
|
let obj = { pressable: obj, container: obj };
|
|
obj = { flex: 1, paddingLeft: marginHorizontal.inset };
|
|
obj = { marginHorizontal: marginHorizontal.margin, subtitle: { marginTop: importDefault(dependencyMap[6]).space.PX_8, marginBottom: marginHorizontal.margin }, footer: { justifyContent: "flex-end", paddingLeft: marginHorizontal.inset, marginTop: marginHorizontal.margin, gap: marginHorizontal.margin }, threadAsComments: { marginHorizontal: marginHorizontal.margin }, ICYMICardInteractionRow: { marginHorizontal: marginHorizontal.margin, marginBottom: marginHorizontal.margin } };
|
|
return obj;
|
|
});
|
|
const obj = arg1(dependencyMap[5]);
|
|
const result = arg1(dependencyMap[22]).fileFinishedImporting("modules/icymi/native/ICYMIForumThreadRow.tsx");
|
|
|
|
export default function ForumThreadRowWrapper(message) {
|
|
return callback(ICYMIForumThreadRow, { message: message.message, channel: message.threadChannel, visible: message.visible });
|
|
};
|
|
export const MAX_AVATARS_IN_PILE = 3;
|
|
export { ICYMIForumThreadRow };
|