decord/source/modules/message_request/native/RestrictedMessagePreviewHeader.tsx

100 lines
5.1 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 16711
// Function ID: 16712
2026-07-20 16:05:17 +00:00
// Name: RestrictedMessagePreviewHeader
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 17, 12231, 21, 4478, 709, 5961, 4322, 8911, 5989, 4193, 4445, 9246, 2008, 8572, 6195, 4723, 5076, 1233, 1296, 4474, 16694, 6012, 16712, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 16711 (RestrictedMessagePreviewHeader)
import ThemesDefault from "Themes" /* 709 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-09-02 09:53:35 +00:00
import { MOBILE_MESSAGE_REQUESTS_MODAL_KEY as closure_5 } from "MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL" /* 12231 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { container: null, avatar: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { alignItems: "flex-start", gap: ThemesDefault.space.PX_8, paddingVertical: ThemesDefault.space.PX_12 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginBottom: ThemesDefault.space.PX_4 };
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj1 = { marginBottom: ThemesDefault.space.PX_4 };
let result = require("set").fileFinishedImporting("modules/message_request/native/RestrictedMessagePreviewHeader.tsx");
2026-07-20 16:05:17 +00:00
export default function RestrictedMessagePreviewHeader(channel) {
channel = channel.channel;
const user = channel.user;
2026-07-29 08:29:29 +00:00
let analyticsLocations;
let userTag;
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-07-23 10:11:24 +00:00
analyticsLocations = user(analyticsLocations[6])().analyticsLocations;
let obj = user(analyticsLocations[7]);
2026-07-20 16:05:17 +00:00
const name = obj.getName(user);
2026-08-24 06:08:38 +00:00
obj1 = user(analyticsLocations[7]);
2026-07-29 08:29:29 +00:00
userTag = obj1.getUserTag(user, { decoration: "never", identifiable: "always" });
2026-07-20 16:05:17 +00:00
const items = [user.id, channel.id, analyticsLocations];
2026-07-23 10:11:24 +00:00
const callback = userTag.useCallback(() => {
2026-07-20 16:05:17 +00:00
user(analyticsLocations[8])({ userId: user.id, channelId: channel.id, sourceAnalyticsLocations: analyticsLocations });
}, items);
const items1 = [userTag];
const items2 = [user];
2026-07-23 10:11:24 +00:00
const callback1 = userTag.useCallback(() => {
2026-07-20 16:05:17 +00:00
channel(analyticsLocations[9]).copy(userTag);
const obj = channel(analyticsLocations[9]);
const result = channel(analyticsLocations[10]).presentUsernameCopied();
}, items1);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
2026-08-24 06:08:38 +00:00
callback2 = userTag.useCallback(() => {
2026-07-20 16:05:17 +00:00
let obj = user(analyticsLocations[11]);
obj = {
user,
onPressMutualGuild(arg0) {
2026-09-02 09:53:35 +00:00
const result = callback(8572).trackUserProfileAction({ action: "PRESS_MUTUAL_GUILD" });
const obj = callback(8572);
callback(6195).transitionToGuild(arg0);
const obj2 = callback(6195);
2026-09-01 10:26:29 +00:00
callback2(4445).hideActionSheet();
const obj3 = callback2(4445);
callback2(4723).popWithKey(closure_5);
2026-07-20 16:05:17 +00:00
}
};
obj.openLazy(channel(analyticsLocations[13])(analyticsLocations[12], analyticsLocations.paths), "MutualGuildsActionSheet", obj);
}, items2);
2026-07-29 08:29:29 +00:00
obj = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, children: null };
2026-07-23 10:11:24 +00:00
const intl = channel(analyticsLocations[18]).intl;
2026-07-29 08:29:29 +00:00
obj[1] = intl.string(channel(analyticsLocations[18]).t.iXAna6);
obj[2] = callback;
2026-08-24 06:08:38 +00:00
obj1 = { style: tmp.avatar, user, guildId: channel.guild_id, size: channel(analyticsLocations[19]).AvatarSizes.XXLARGE, avatarDecoration: user.avatarDecoration };
2026-07-29 08:29:29 +00:00
obj[3] = callback(channel(analyticsLocations[19]).Avatar, obj1);
2026-07-23 10:11:24 +00:00
const items3 = [callback(channel(analyticsLocations[17]).PressableOpacity, obj), , , , , ];
2026-07-29 08:29:29 +00:00
let obj2 = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, children: null };
2026-07-23 10:11:24 +00:00
const intl2 = channel(analyticsLocations[18]).intl;
2026-07-29 08:29:29 +00:00
obj2[1] = intl2.string(channel(analyticsLocations[18]).t.iXAna6);
obj2[2] = callback;
obj2[3] = callback(channel(analyticsLocations[20]).Text, { variant: "heading-xxl/extrabold", color: "mobile-text-heading-primary", children: name });
2026-07-23 10:11:24 +00:00
items3[1] = callback(channel(analyticsLocations[17]).PressableOpacity, obj2);
2026-07-29 08:29:29 +00:00
const isProvisional = user.isProvisional;
let tmp11Result = !isProvisional;
if (!isProvisional) {
let obj3 = { accessibilityRole: "button", accessibilityHint: null, onPress: null, children: null };
const intl3 = tmp12(tmp3[18]).intl;
obj3[1] = intl3.string(tmp12(tmp3[18]).t.y5MwJy);
obj3[2] = callback1;
const obj4 = { variant: "heading-lg/medium", color: "text-default", children: null };
obj4[2] = userTag;
obj3[3] = tmp11(tmp12(tmp3[20]).Text, obj4);
tmp11Result = tmp11(tmp12(tmp3[17]).PressableOpacity, obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items3[2] = tmp11Result;
const obj5 = { variant: "text-md/medium", color: "text-default", children: null };
const intl4 = tmp12(tmp3[18]).intl;
obj5[2] = intl4.formatToPlainString(channel(analyticsLocations[18]).t["Qvg+6+"], { username: name });
items3[3] = callback(channel(analyticsLocations[20]).Text, obj5);
2026-08-24 06:08:38 +00:00
const obj6 = { userId: user.id, onPress: callback2, iconSize: channel(analyticsLocations[22]).GuildIconSizes.XSMALL, textVariant: "text-md/medium" };
2026-07-29 08:29:29 +00:00
items3[4] = callback(user(analyticsLocations[21]), obj6);
2026-07-23 10:11:24 +00:00
items3[5] = callback(user(analyticsLocations[23]), { channel, user });
2026-07-29 08:29:29 +00:00
obj[1] = items3;
2026-07-20 16:05:17 +00:00
return closure_7(View, obj);
};