decord/source/modules/user_profile/native/UserProfileContent.tsx

1031 lines
41 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12542
// Function ID: 12543
2026-07-20 16:05:17 +00:00
// Name: CustomStatusBubble
2026-08-25 06:04:03 +00:00
// Dependencies: [32, 19, 17, 9504, 1910, 4034, 1922, 8417, 7227, 8932, 5882, 676, 5504, 1388, 21, 8982, 589, 4347, 9612, 2009, 9603, 9596, 8935, 5834, 9391, 4224, 7896, 12543, 1236, 12178, 12544, 4319, 8983, 4573, 5862, 4097, 9615, 10289, 12478, 4815, 9822, 712, 10682, 12546, 12547, 8972, 8984, 1629, 12545, 12667, 12668, 6035, 9613, 8429, 8970, 8979, 1367, 9503, 12669, 12664, 12670, 12671, 12672, 12673, 12185, 12674, 12480, 12679, 9680, 5857, 12530, 12680, 12533, 12685, 12692, 9103, 8989, 8985, 12699, 4120, 12700, 12716, 12717, 12721, 12722, 5821, 12172, 12174, 12727, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 12542 (CustomStatusBubble)
import useSharedStylesDefault from "useSharedStyles" /* 8982 */;
import WidgetRendererDefault from "WidgetRenderer" /* 12547 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import importAllResult from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_7 from "get" /* 9504 */;
2026-08-24 06:08:38 +00:00
import closure_8 from "createGuildRecordFromRust" /* 1910 */;
2026-08-25 06:04:03 +00:00
import closure_9 from "markAllUserIdListsStale" /* 4034 */;
2026-08-24 06:08:38 +00:00
import closure_10 from "mergeGuildAvatar" /* 1922 */;
2026-08-25 06:04:03 +00:00
import closure_11 from "handleFormOpen" /* 8417 */;
import closure_12 from "createUserWidgetFromServer" /* 7227 */;
import { UserProfileSections } from "USER_PROFILE_TOOLTIP_DELAY" /* 8932 */;
import ARBITRARY_LARGE_OFFSET from "ARBITRARY_LARGE_OFFSET" /* 5882 */;
2026-08-24 06:08:38 +00:00
import { RelationshipTypes } from "ME" /* 676 */;
2026-08-25 06:04:03 +00:00
import { ACTION_SHEET_MAX_WIDTH } from "ACTION_SHEET_START_HEIGHT_RATIO" /* 5504 */;
2026-08-24 06:08:38 +00:00
import { ContentDismissActionType } from "ContentDismissActionType" /* 1388 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function CustomStatusBubble(guildId) {
({ customStatusActivity, user } = guildId);
guildId = guildId.guildId;
const channelId = guildId.channelId;
const isPreviewingChanges = guildId.isPreviewingChanges;
({ hasCustomProfileTheme, bubbleRef } = guildId);
2026-07-29 08:29:29 +00:00
const tmp3 = guildId(channelId[15])();
2026-07-23 10:11:24 +00:00
let obj = user(channelId[16]);
2026-08-24 06:08:38 +00:00
const items = [closure_10];
2026-07-20 16:05:17 +00:00
const items1 = [user];
let stateFromStores = obj.useStateFromStores(items, () => {
2026-08-24 06:08:38 +00:00
const currentUser = closure_1_10.getCurrentUser();
2026-07-20 16:05:17 +00:00
let id;
2026-07-29 08:29:29 +00:00
if (currentUser != null) {
2026-07-20 16:05:17 +00:00
id = currentUser.id;
}
return id === user.id;
}, items1);
const items2 = [channelId, guildId, user];
2026-07-29 08:29:29 +00:00
let tmp7 = null;
2026-07-20 16:05:17 +00:00
const callback = importAllResult.useCallback(() => {
let obj = guildId(channelId[17]);
obj = { user, guildId, channelId };
obj.openLazy(user(channelId[19])(channelId[18], channelId.paths), "UserProfileCustomStatusActionSheet", obj, "stack");
}, items2);
if (null == customStatusActivity) {
2026-07-29 08:29:29 +00:00
tmp7 = null;
2026-07-20 16:05:17 +00:00
if (stateFromStores) {
2026-07-29 08:29:29 +00:00
tmp7 = null;
2026-07-20 16:05:17 +00:00
if (!isPreviewingChanges) {
2026-07-29 08:29:29 +00:00
tmp7 = tmp(tmp2[20])();
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
const ref = importAllResult.useRef(tmp7);
2026-07-20 16:05:17 +00:00
let labelResult;
if (null != ref.current) {
const current = ref.current;
labelResult = current.label();
}
2026-07-29 08:29:29 +00:00
obj = { ref: bubbleRef, customStatusActivity, hasCustomProfileTheme, editEnabled: null, onPressTruncatedStatus: null, style: null, emojiOnlyStyle: null, placeholderText: null, prompt: null };
2026-07-20 16:05:17 +00:00
if (stateFromStores) {
stateFromStores = !isPreviewingChanges;
}
2026-07-29 08:29:29 +00:00
obj[3] = stateFromStores;
2026-07-20 16:05:17 +00:00
let tmp12;
if (!isPreviewingChanges) {
tmp12 = callback;
}
2026-07-29 08:29:29 +00:00
obj[4] = tmp12;
2026-07-20 16:05:17 +00:00
const items3 = [, ];
2026-07-29 08:29:29 +00:00
({ customStatusBubble: arr4[0], customStatusBubbleInset: arr4[1] } = tmp3);
obj[5] = items3;
obj[6] = tmp3.emojiOnlyCustomStatusBubble;
obj[7] = labelResult;
obj[8] = ref.current;
2026-07-23 10:11:24 +00:00
return closure_19(guildId(channelId[21]), obj);
2026-07-20 16:05:17 +00:00
}
function RemoveFriendIconButton(user) {
user = user.user;
2026-07-23 10:11:24 +00:00
let trackUserProfileAction;
let newestAnalyticsLocation;
2026-08-24 06:08:38 +00:00
closure_4 = undefined;
2026-07-20 16:05:17 +00:00
function handleConfirm() {
trackUserProfileAction({ action: "REMOVE_FRIEND" });
let obj = trackUserProfileAction(newestAnalyticsLocation[24]);
obj = { location: newestAnalyticsLocation };
obj.removeFriend(user.id, obj);
}
2026-07-23 10:11:24 +00:00
let obj = user(newestAnalyticsLocation[22]);
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
newestAnalyticsLocation = trackUserProfileAction(newestAnalyticsLocation[23])().newestAnalyticsLocation;
2026-07-29 08:29:29 +00:00
closure_4 = trackUserProfileAction(newestAnalyticsLocation[25]).useName(user);
2026-08-24 06:08:38 +00:00
obj = { size: "sm", variant: "secondary-overlay", icon: callback(user(newestAnalyticsLocation[27]).UserCheckIcon, { size: "sm", color: "white" }), accessibilityLabel: null, onPress: null };
2026-07-23 10:11:24 +00:00
const intl = user(newestAnalyticsLocation[28]).intl;
2026-07-29 08:29:29 +00:00
obj[3] = intl.string(user(newestAnalyticsLocation[28]).t.cvSt1J);
obj[4] = function onPress() {
2026-07-20 16:05:17 +00:00
let obj = user(newestAnalyticsLocation[29]);
2026-07-29 08:29:29 +00:00
obj = { userDisplayName: closure_4, onConfirm: handleConfirm };
2026-07-20 16:05:17 +00:00
obj.confirmRemoveFriend(obj);
};
2026-07-23 10:11:24 +00:00
return callback(user(newestAnalyticsLocation[26]).IconButton, obj);
2026-07-20 16:05:17 +00:00
}
function RemoveGameFriendIconButton(user) {
user = user.user;
const guildId = user.guildId;
const channelId = user.channelId;
const items = [channelId, guildId, user];
const callback = importAllResult.useCallback(() => {
let obj = guildId(channelId[17]);
obj = { user, guildId, channelId };
obj.openLazy(user(channelId[19])(channelId[30], channelId.paths), "UserProfileGameFriendActionSheet", obj, "stack");
}, items);
2026-08-24 06:08:38 +00:00
let obj = { size: "sm", variant: "secondary-overlay", icon: callback(user(channelId[31]).UserPlatformIcon, { size: "sm", color: "white" }), accessibilityLabel: null, onPress: null };
2026-07-23 10:11:24 +00:00
const intl = user(channelId[28]).intl;
2026-07-29 08:29:29 +00:00
obj[3] = intl.string(user(channelId[28]).t.cvSt1J);
obj[4] = callback;
2026-07-23 10:11:24 +00:00
return callback(user(channelId[26]).IconButton, obj);
2026-07-20 16:05:17 +00:00
}
class PrimaryInfo {
constructor(arg0) {
({ user, displayProfile, displayNameOverride, pronounsOverride, badgesOverride, isPreviewingChanges } = global);
2026-08-24 06:08:38 +00:00
closure_0 = undefined;
2026-07-23 10:11:24 +00:00
trackUserProfileAction = undefined;
2026-07-29 08:29:29 +00:00
tmp2 = closure_2;
2026-07-20 16:05:17 +00:00
({ channelId, pendingDisplayNameStyles, style, badgeContainerBackground } = global);
2026-07-29 08:29:29 +00:00
tmp = trackUserProfileAction;
obj = require("nameFromUser");
2026-07-20 16:05:17 +00:00
userTag = obj.useUserTag(user);
2026-08-24 06:08:38 +00:00
closure_0 = userTag;
2026-07-29 08:29:29 +00:00
tmp4 = require("useBadges")(displayProfile);
2026-07-23 10:11:24 +00:00
obj2 = require("getNickname");
2026-07-20 16:05:17 +00:00
guildId = undefined;
2026-07-29 08:29:29 +00:00
if (displayProfile != null) {
2026-07-20 16:05:17 +00:00
guildId = displayProfile.guildId;
}
name = obj2.useName(guildId, channelId, user);
2026-07-29 08:29:29 +00:00
tmp7 = name;
2026-07-20 16:05:17 +00:00
if (null != displayNameOverride) {
num = 0;
2026-07-29 08:29:29 +00:00
tmp7 = name;
2026-07-20 16:05:17 +00:00
if (displayNameOverride.trim().length > 0) {
2026-07-29 08:29:29 +00:00
tmp7 = displayNameOverride;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
tmp8 = closure_0;
2026-07-23 10:11:24 +00:00
obj3 = require("UserProfileAnalyticsProvider");
2026-07-20 16:05:17 +00:00
trackUserProfileAction = obj3.useUserProfileAnalyticsContext().trackUserProfileAction;
items = [, ];
items[0] = trackUserProfileAction;
items[1] = userTag;
2026-08-24 06:08:38 +00:00
callback = closure_4.useCallback(() => {
2026-07-20 16:05:17 +00:00
trackUserProfileAction({ action: "COPY_USERNAME" });
2026-08-24 06:08:38 +00:00
userTag(closure_1_2[34]).copy(userTag);
const obj = userTag(closure_1_2[34]);
const result = userTag(closure_1_2[35]).presentUsernameCopied();
2026-07-20 16:05:17 +00:00
}, items);
2026-07-29 08:29:29 +00:00
tmp10 = jsx;
obj = { user, guildId: null, displayName: null, pronouns: null, badges: null, style: null, badgeContainerBackground: null, onPressDisplayName: null, displayNameAccessibilityHint: null, onPressUserTag: null, onPressPronouns: null, showBadgeToastOnPress: null, pendingDisplayNameStyles: null };
2026-07-20 16:05:17 +00:00
guildId1 = undefined;
2026-07-29 08:29:29 +00:00
tmpResult = require("DisplayName");
if (displayProfile != null) {
2026-07-20 16:05:17 +00:00
guildId1 = displayProfile.guildId;
}
2026-07-29 08:29:29 +00:00
obj[1] = guildId1;
obj[2] = tmp7;
if (pronounsOverride == null) {
2026-07-20 16:05:17 +00:00
pronouns = undefined;
2026-07-29 08:29:29 +00:00
if (displayProfile != null) {
2026-07-20 16:05:17 +00:00
pronouns = displayProfile.pronouns;
}
pronounsOverride = pronouns;
}
2026-07-29 08:29:29 +00:00
obj[3] = pronounsOverride;
if (badgesOverride == null) {
badgesOverride = tmp4;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = badgesOverride;
obj[5] = style;
obj[6] = badgeContainerBackground;
tmp14 = undefined;
2026-07-20 16:05:17 +00:00
if (!isPreviewingChanges) {
2026-07-29 08:29:29 +00:00
tmp14 = callback;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[7] = tmp14;
2026-07-23 10:11:24 +00:00
intl = require("getSystemLocale").intl;
2026-07-29 08:29:29 +00:00
obj[8] = intl.string(require("getSystemLocale").t.y5MwJy);
tmp15 = undefined;
2026-07-20 16:05:17 +00:00
if (!isPreviewingChanges) {
2026-07-29 08:29:29 +00:00
tmp15 = callback;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[9] = tmp15;
2026-07-20 16:05:17 +00:00
fn = undefined;
if (!isPreviewingChanges) {
fn = () => {
trackUserProfileAction({ action: "PRESS_PRONOUNS" });
2026-08-24 06:08:38 +00:00
userTag(closure_1_2[35]).presentUserPronouns();
2026-07-20 16:05:17 +00:00
};
}
2026-07-29 08:29:29 +00:00
obj[10] = fn;
obj[11] = !isPreviewingChanges;
obj[12] = pendingDisplayNameStyles;
return tmp10(tmpResult, obj);
2026-07-20 16:05:17 +00:00
}
}
function EditSection(guildId) {
2026-07-23 10:11:24 +00:00
guildId = guildId.guildId;
2026-07-29 08:29:29 +00:00
let trackUserProfileAction;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
closure_3 = undefined;
2026-08-25 06:04:03 +00:00
let obj = guildId(8935);
2026-07-29 08:29:29 +00:00
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
2026-08-24 06:08:38 +00:00
obj1 = guildId(589);
const items = [closure_8];
const stateFromStores = obj1.useStateFromStores(items, () => closure_1_8.getGuild(guildId));
2026-08-25 06:04:03 +00:00
dependencyMap = trackUserProfileAction(10289)();
closure_3 = trackUserProfileAction(10289)({ guild: stateFromStores });
obj = { style: trackUserProfileAction(8982)().primaryButtons, maxWidth: ACTION_SHEET_MAX_WIDTH, primaryButton: null, secondaryButton: null };
2026-07-29 08:29:29 +00:00
const tmp = trackUserProfileAction;
2026-08-25 06:04:03 +00:00
const tmp3 = trackUserProfileAction(8982)();
2026-07-29 08:29:29 +00:00
obj = { variant: "primary", icon: null, text: null, onPress: null, grow: true };
2026-08-24 06:08:38 +00:00
obj1 = { size: "sm", color: trackUserProfileAction(712).colors.WHITE };
2026-08-25 06:04:03 +00:00
obj[1] = callback(guildId(9822).PencilIcon, obj1);
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-07-29 08:29:29 +00:00
const intl2 = tmp4(1236).intl;
let stringResult = intl2.string(tmp4(1236).t.HmFaFB);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp4(1236).intl;
stringResult = intl.string(tmp4(1236).t.s5vZlQ);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = stringResult;
obj[3] = function onPress() {
2026-07-20 16:05:17 +00:00
trackUserProfileAction({ action: "EDIT_PROFILE" });
2026-08-25 06:04:03 +00:00
trackUserProfileAction(4347).hideActionSheet();
trackUserProfileAction(10682)();
2026-07-23 10:11:24 +00:00
dependencyMap();
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
obj[2] = callback(guildId(4815).Button, obj);
2026-07-29 08:29:29 +00:00
let tmp6Result;
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "primary", icon: null, text: null, onPress: null, grow: true };
const obj3 = { size: "sm", color: null };
obj3[1] = tmp(712).colors.WHITE;
2026-08-25 06:04:03 +00:00
obj2[1] = tmp6(tmp4(9822).PencilIcon, obj3);
2026-07-29 08:29:29 +00:00
const intl3 = tmp4(1236).intl;
obj2[2] = intl3.string(tmp4(1236).t["PKQB/H"]);
obj2[3] = function onPress() {
2026-07-20 16:05:17 +00:00
trackUserProfileAction({ action: "EDIT_GUILD_PROFILE" });
2026-08-25 06:04:03 +00:00
trackUserProfileAction(4347).hideActionSheet();
trackUserProfileAction(10682)();
2026-07-23 10:11:24 +00:00
callback();
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
tmp6Result = tmp6(tmp4(4815).Button, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = tmp6Result;
2026-08-25 06:04:03 +00:00
return callback(trackUserProfileAction(12478), obj);
2026-07-20 16:05:17 +00:00
}
2026-07-24 07:16:23 +00:00
function UserProfileWidgetsBoardContainer(isCurrentUser) {
isCurrentUser = isCurrentUser.isCurrentUser;
({ userId, isVisible, containerBackground } = isCurrentUser);
2026-08-24 06:08:38 +00:00
const tmp3 = useSharedStylesDefault();
2026-07-29 08:29:29 +00:00
const items = [tmp3.card, { backgroundColor: containerBackground }];
const obj = { style: tmp3.profileContent, children: null };
2026-07-24 07:16:23 +00:00
if (isCurrentUser) {
2026-08-25 06:04:03 +00:00
isCurrentUser = callback(tmp(12546), {});
2026-07-24 07:16:23 +00:00
}
2026-08-24 06:08:38 +00:00
const items1 = [isCurrentUser, callback(WidgetRendererDefault, { userId, isVisible, cardStyle: items })];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-24 07:16:23 +00:00
return closure_20(closure_6, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c4 = importAllResult;
({ ScrollView: c5, View: closure_6 } = get_ActivityIndicator);
2026-07-23 10:11:24 +00:00
({ PROFILE_CONTENT_BOTTOM_PADDING: closure_14, PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING: closure_15 } = ARBITRARY_LARGE_OFFSET);
({ jsx: closure_19, jsxs: closure_20, Fragment: closure_21 } = jsxProd);
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function UserProfileContent(user) {
user = user.user;
const channel = user.channel;
const displayProfile = user.displayProfile;
const showUserProfileActionSheet = user.showUserProfileActionSheet;
({ disableCalls, isPreviewingChanges } = user);
const navigateToPremium = user.navigateToPremium;
const navigateToShop = user.navigateToShop;
2026-08-24 06:08:38 +00:00
closure_7 = undefined;
2026-07-29 08:29:29 +00:00
let trackUserProfileAction;
let stateFromStores;
2026-08-24 06:08:38 +00:00
closure_10 = undefined;
2026-07-23 10:11:24 +00:00
let userProfileGameFriendApplicationIds;
let guild_id;
let name;
2026-07-20 16:05:17 +00:00
let pendingBio;
2026-08-24 06:08:38 +00:00
closure_15 = undefined;
2026-07-23 10:11:24 +00:00
let containerBackground;
2026-08-24 06:08:38 +00:00
closure_17 = undefined;
2026-07-23 10:11:24 +00:00
let stateFromStores1;
2026-07-20 16:05:17 +00:00
let stateFromStores2;
2026-08-24 06:08:38 +00:00
closure_20 = undefined;
closure_21 = undefined;
2026-07-23 10:11:24 +00:00
let boardTabIndex;
let wishlistTabIndex;
2026-08-24 06:08:38 +00:00
c24 = undefined;
2026-07-23 10:11:24 +00:00
let handlePageContentSize;
2026-07-20 16:05:17 +00:00
let isVisible;
let markAsDismissed;
setActiveProfileTabSection = undefined;
let restoreActiveIndex;
2026-08-24 06:08:38 +00:00
closure_30 = undefined;
closure_31 = undefined;
2026-07-20 16:05:17 +00:00
let callback2;
let callback3;
let callback4;
let callback5;
let segmentedControlState;
2026-07-29 08:29:29 +00:00
let obj4;
2026-07-20 16:05:17 +00:00
({ disableMessage, disableStatus, location: _location, initialSection, scrollPosition } = user);
2026-07-29 08:29:29 +00:00
const tmp3 = channel(displayProfile[15])();
2026-08-24 06:08:38 +00:00
closure_7 = tmp3;
const tmp4 = channel(displayProfile[45])(closure_17);
2026-07-29 08:29:29 +00:00
({ bannerAnimatedStyle, bannerImageAnimatedStyle, contentAnimatedStyle, blurAnimatedProps, showBlur } = channel(displayProfile[46])({ scrollPosition, bannerHeight: tmp4 }));
2026-07-23 10:11:24 +00:00
let obj = user(displayProfile[22]);
2026-07-29 08:29:29 +00:00
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
2026-08-24 06:08:38 +00:00
obj1 = user(displayProfile[16]);
let items = [closure_10];
stateFromStores = obj1.useStateFromStores(items, () => currentUser.getCurrentUser());
2026-07-20 16:05:17 +00:00
let id;
2026-07-29 08:29:29 +00:00
if (stateFromStores != null) {
2026-07-20 16:05:17 +00:00
id = stateFromStores.id;
}
2026-08-24 06:08:38 +00:00
closure_10 = tmp9;
2026-07-29 08:29:29 +00:00
let tmp6Result = tmp6(tmp2[16]);
2026-07-23 10:11:24 +00:00
let items1 = [stateFromStores];
2026-07-29 08:29:29 +00:00
const stateFromStoresObject = tmp6Result.useStateFromStoresObject(items1, () => ({ relationshipType: stateFromStores.getRelationshipType(user.id), originApplicationId: stateFromStores.getOriginApplicationId(user.id) }));
({ relationshipType, originApplicationId } = stateFromStoresObject);
tmp6Result = tmp6(tmp2[48]);
const incomingGameRelationshipsForUser = tmp6Result.useIncomingGameRelationshipsForUser(user.id);
const tmp5 = channel(displayProfile[46])({ scrollPosition, bannerHeight: tmp4 });
const isGameFriends = user(displayProfile[49]).useIsGameFriends(user.id);
const tmp6Result1 = user(displayProfile[49]);
2026-07-20 16:05:17 +00:00
obj = { userId: user.id };
2026-07-29 08:29:29 +00:00
userProfileGameFriendApplicationIds = user(displayProfile[50]).useUserProfileGameFriendApplicationIds(obj);
2026-07-20 16:05:17 +00:00
if (null != displayProfile) {
const guildId = displayProfile.guildId;
2026-07-29 08:29:29 +00:00
guild_id = guildId;
} else if (channel != null) {
2026-07-20 16:05:17 +00:00
guild_id = channel.guild_id;
}
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(tmp2[33]);
2026-07-20 16:05:17 +00:00
let id1;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
id1 = channel.id;
}
2026-07-29 08:29:29 +00:00
name = tmpResult.useName(guild_id, id1, user);
let obj8 = isPreviewingChanges;
2026-07-23 10:11:24 +00:00
let items2 = [guild_id, user];
const memo = isPreviewingChanges.useMemo(() => {
2026-07-20 16:05:17 +00:00
if (null != guild_id) {
if (null != user) {
const obj = {};
2026-07-29 08:29:29 +00:00
const items = [tmp2.id];
obj[tmp] = items;
2026-07-20 16:05:17 +00:00
}
return {};
}
}, items2);
2026-07-29 08:29:29 +00:00
const tmp6Result2 = user(displayProfile[50]);
const subscribeGuildMembers = user(displayProfile[51]).useSubscribeGuildMembers(memo, "UserProfileContent");
const tmp17 = channel(displayProfile[52])(user.id);
const tmp6Result3 = user(displayProfile[51]);
2026-07-23 10:11:24 +00:00
const items3 = [userProfileGameFriendApplicationIds];
2026-07-29 08:29:29 +00:00
const stateFromStoresObject1 = user(displayProfile[16]).useStateFromStoresObject(items3, () => userProfileGameFriendApplicationIds.getPendingChanges());
2026-07-20 16:05:17 +00:00
pendingBio = stateFromStoresObject1.pendingBio;
2026-07-29 08:29:29 +00:00
({ pendingAccentColor, pendingThemeColors, pendingBanner, pendingAvatar, pendingAvatarDecoration, pendingGlobalName, pendingPronouns, pendingLegacyUsernameDisabled, pendingDisplayNameStyles } = stateFromStoresObject1);
const tmp6Result4 = user(displayProfile[16]);
2026-07-20 16:05:17 +00:00
obj = { userId: user.id, image: pendingAvatar };
2026-07-29 08:29:29 +00:00
const pendingAvatarSrc = user(displayProfile[53]).getPendingAvatarSrc(obj);
const tmp6Result5 = user(displayProfile[53]);
obj1 = { user, displayProfile, pendingThemeColors: null };
let tmp22;
tmpResult = tmp(tmp2[54]);
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-07-29 08:29:29 +00:00
tmp22 = pendingThemeColors;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[2] = tmp22;
const tmpResult1Result = tmpResult(obj1);
const primaryColor = tmpResult1Result.primaryColor;
2026-08-24 06:08:38 +00:00
closure_15 = tmp24;
2026-07-29 08:29:29 +00:00
({ theme, secondaryColor } = tmpResult1Result);
const tmp20 = channel(displayProfile[32])(displayProfile, pendingLegacyUsernameDisabled);
const userProfileColors = user(displayProfile[55]).useUserProfileColors({ theme, primaryColor, secondaryColor });
2026-07-23 10:11:24 +00:00
containerBackground = userProfileColors.containerBackground;
2026-07-20 16:05:17 +00:00
({ avatarBackground, statusBackground } = userProfileColors);
2026-07-29 08:29:29 +00:00
let tmp26 = channel(displayProfile[56])("UserProfileContent");
2026-08-24 06:08:38 +00:00
closure_17 = tmp26;
2026-07-29 08:29:29 +00:00
const tmp6Result6 = user(displayProfile[55]);
const ref1 = obj8.useRef(null);
const ref = obj8.useRef(null);
2026-07-23 10:11:24 +00:00
const items4 = [guild_id];
2026-07-29 08:29:29 +00:00
stateFromStores1 = user(displayProfile[16]).useStateFromStores(items4, () => guild_id.getFirstWishlistId(user.id));
const tmp6Result7 = user(displayProfile[16]);
const fetchWishlist = user(displayProfile[57]).useFetchWishlist({ wishlistId: stateFromStores1, userId: user.id });
let obj2 = { wishlistId: stateFromStores1, userId: user.id };
const tmp6Result8 = user(displayProfile[57]);
2026-08-24 06:08:38 +00:00
const items5 = [closure_7];
2026-07-20 16:05:17 +00:00
const items6 = [stateFromStores1];
2026-07-29 08:29:29 +00:00
stateFromStores2 = user(displayProfile[16]).useStateFromStores(items5, () => {
2026-07-20 16:05:17 +00:00
let wishlist = null;
if (null != stateFromStores1) {
2026-08-24 06:08:38 +00:00
wishlist = wishlist.getWishlist(tmp);
2026-07-20 16:05:17 +00:00
}
return wishlist;
}, items6);
2026-08-24 06:08:38 +00:00
const items7 = [stateFromStores2, id === user.id];
let tmp32 = tmp9;
2026-07-20 16:05:17 +00:00
if (id !== user.id) {
2026-08-24 06:08:38 +00:00
let tmp33 = null != stateFromStores2;
if (tmp33) {
tmp33 = arr10.length > 0;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp32 = tmp33;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
closure_20 = tmp32;
const tmp6Result9 = user(displayProfile[16]);
let tmp34 = user(displayProfile[59]).useDisplayableBoardWidgets(user.id).length > 0;
closure_21 = tmp34;
const tmp6Result10 = user(displayProfile[59]);
const profileTabIndices = user(displayProfile[60]).useProfileTabIndices(tmp34, tmp32);
2026-07-23 10:11:24 +00:00
boardTabIndex = profileTabIndices.boardTabIndex;
wishlistTabIndex = profileTabIndices.wishlistTabIndex;
2026-08-24 06:08:38 +00:00
const tmp6Result11 = user(displayProfile[60]);
[tmp37, c24] = showUserProfileActionSheet(obj8.useState(0), 2);
2026-07-29 08:29:29 +00:00
const callback = obj8.useCallback((nativeEvent) => {
2026-08-24 06:08:38 +00:00
_undefined(nativeEvent.nativeEvent.layout.width);
2026-07-20 16:05:17 +00:00
}, []);
2026-08-24 06:08:38 +00:00
const tmp36 = showUserProfileActionSheet(obj8.useState(0), 2);
const pageHeights = user(displayProfile[61]).usePageHeights();
2026-07-23 10:11:24 +00:00
handlePageContentSize = pageHeights.handlePageContentSize;
2026-08-24 06:08:38 +00:00
const tmp6Result12 = user(displayProfile[61]);
const wishlistViewerCoachmark = user(displayProfile[62]).useWishlistViewerCoachmark({ isCurrentUser: tmp9, shouldShowWishlistTab: tmp32 });
2026-07-20 16:05:17 +00:00
isVisible = wishlistViewerCoachmark.isVisible;
markAsDismissed = wishlistViewerCoachmark.markAsDismissed;
const items8 = [trackUserProfileAction, isVisible, markAsDismissed];
2026-07-29 08:29:29 +00:00
const callback1 = obj8.useCallback((section) => {
2026-07-20 16:05:17 +00:00
trackUserProfileAction({ action: "PRESS_SECTION", section });
if (tmp2) {
markAsDismissed(stateFromStores1.INDIRECT_ACTION);
}
}, items8);
2026-08-24 06:08:38 +00:00
const tmp6Result13 = user(displayProfile[62]);
const profileSectionTabs = user(displayProfile[60]).useProfileSectionTabs({ initialUserProfileSection: initialSection, wishlistTabIndex, boardTabIndex, onTabChange: callback1 });
2026-07-20 16:05:17 +00:00
({ activeProfileTabSection, setActiveProfileTabSection } = profileSectionTabs);
restoreActiveIndex = profileSectionTabs.restoreActiveIndex;
2026-08-24 06:08:38 +00:00
closure_30 = tmp43;
closure_31 = tmp44;
2026-07-20 16:05:17 +00:00
const items9 = [navigateToPremium];
({ handleTabChange, activeProfileTabSectionIndex } = profileSectionTabs);
2026-07-29 08:29:29 +00:00
callback2 = obj8.useCallback(() => {
2026-07-20 16:05:17 +00:00
channel(displayProfile[17]).hideActionSheet();
2026-07-29 08:29:29 +00:00
if (navigateToPremium != null) {
2026-07-20 16:05:17 +00:00
navigateToPremium();
}
}, items9);
const items10 = [navigateToShop];
2026-07-29 08:29:29 +00:00
callback3 = obj8.useCallback(() => {
2026-07-20 16:05:17 +00:00
channel(displayProfile[17]).hideActionSheet();
2026-07-29 08:29:29 +00:00
if (navigateToShop != null) {
2026-07-20 16:05:17 +00:00
navigateToShop();
}
}, items10);
2026-07-29 08:29:29 +00:00
const items11 = [user, stateFromStores, containerBackground, tmp3, isPreviewingChanges, tmp26, callback2, callback3, null != primaryColor, guild_id, userProfileGameFriendApplicationIds, displayProfile, name, pendingBio, channel, showUserProfileActionSheet];
callback4 = obj8.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (null != user) {
if (null != stateFromStores) {
2026-08-24 06:08:38 +00:00
const items = [wishlist.card, ];
2026-07-29 08:29:29 +00:00
let obj = { backgroundColor: null };
obj[0] = containerBackground;
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items1 = [, ];
2026-08-24 06:08:38 +00:00
({ cards: arr3[0], profileContent: arr3[1] } = wishlist);
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-20 16:05:17 +00:00
let _private;
2026-07-29 08:29:29 +00:00
if (displayProfile != null) {
_private = tmp53.private;
2026-07-20 16:05:17 +00:00
}
if (_private) {
2026-07-29 08:29:29 +00:00
obj = { username: null, containerBackground: null };
obj[0] = name;
obj[1] = containerBackground;
2026-08-24 06:08:38 +00:00
_private = stateFromStores2(channel(displayProfile[63]), obj);
2026-07-20 16:05:17 +00:00
}
const items2 = [_private, , , , , , , , , , ];
2026-07-29 08:29:29 +00:00
let isProvisional = tmp.isProvisional;
2026-07-20 16:05:17 +00:00
if (isProvisional) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null, userId: null, iconSize: 16 };
2026-07-29 08:29:29 +00:00
obj1[0] = items;
obj1[1] = tmp.id;
2026-08-24 06:08:38 +00:00
isProvisional = stateFromStores2(user(displayProfile[64]).UserProfileProvisionalAccountExplainerCard, obj1);
2026-07-20 16:05:17 +00:00
}
items2[1] = isProvisional;
2026-07-29 08:29:29 +00:00
let tmp10 = tmp.id === tmp48.id;
if (tmp10) {
tmp10 = !isPreviewingChanges;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp10) {
const obj2 = { navigateToPremium: null, navigateToShop: null, hasCustomProfileTheme: null };
obj2[0] = callback2;
obj2[1] = callback3;
2026-08-24 06:08:38 +00:00
obj2[2] = closure_15;
tmp10 = stateFromStores2(channel(displayProfile[65]), obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[2] = tmp10;
const obj3 = { user: null, currentUser: null, guildId: null, style: null };
obj3[0] = tmp;
obj3[1] = tmp48;
obj3[2] = guild_id;
obj3[3] = items;
2026-08-24 06:08:38 +00:00
items2[3] = stateFromStores2(channel(displayProfile[66]), obj3);
2026-07-29 08:29:29 +00:00
let tmp18Result = userProfileGameFriendApplicationIds.length > 0;
if (tmp18Result) {
2026-08-24 06:08:38 +00:00
obj4 = { userId: null, applicationIds: null, style: null };
2026-07-29 08:29:29 +00:00
obj4[0] = tmp.id;
obj4[1] = tmp22;
let tmp26;
2026-08-24 06:08:38 +00:00
let tmp19Result = tmp19(tmp20[67]);
if (!closure_17) {
2026-07-29 08:29:29 +00:00
tmp26 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj4[2] = tmp26;
tmp18Result = tmp18(tmp19Result, obj4);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[4] = tmp18Result;
const obj5 = { userId: null, displayProfile: null, pendingBio: null, style: null };
obj5[0] = tmp.id;
obj5[1] = displayProfile;
let tmp29;
2026-08-24 06:08:38 +00:00
tmp19Result = tmp19(tmp20[68]);
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-07-29 08:29:29 +00:00
tmp29 = pendingBio;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj5[2] = tmp29;
let tmp31;
2026-08-24 06:08:38 +00:00
if (!closure_17) {
2026-07-29 08:29:29 +00:00
tmp31 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj5[3] = tmp31;
items2[5] = stateFromStores2(tmp19Result, obj5);
tmp18Result = null != tmp21;
if (tmp18Result) {
const obj6 = { userId: null, guildId: null, style: null };
obj6[0] = tmp.id;
obj6[1] = tmp21;
let tmp34;
if (!tmp30) {
tmp34 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj6[2] = tmp34;
2026-08-24 06:08:38 +00:00
tmp18Result = tmp18(tmp19(tmp20[69]), obj6);
const tmp19Result1 = tmp19(tmp20[69]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[6] = tmp18Result;
2026-07-23 10:11:24 +00:00
guild_id = undefined;
2026-07-29 08:29:29 +00:00
if (channel != null) {
guild_id = tmp35.guild_id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp18Result1 = null != guild_id;
if (tmp18Result1) {
const obj7 = { user: null, currentUser: null, guildId: null, channelId: null, showUserProfile: null, style: null };
obj7[0] = tmp;
obj7[1] = tmp48;
({ guild_id: obj8[2], id: obj8[3] } = tmp35);
obj7[4] = showUserProfileActionSheet;
let tmp40;
if (!tmp30) {
tmp40 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj7[5] = tmp40;
2026-08-24 06:08:38 +00:00
tmp18Result1 = tmp18(tmp19(tmp20[70]), obj7);
const tmp19Result2 = tmp19(tmp20[70]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[7] = tmp18Result1;
const obj8 = { userId: null, style: null };
obj8[0] = tmp.id;
let tmp42;
2026-08-24 06:08:38 +00:00
if (!closure_17) {
2026-07-29 08:29:29 +00:00
tmp42 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj8[1] = tmp42;
2026-08-24 06:08:38 +00:00
items2[8] = stateFromStores2(user(displayProfile[71]).UserProfileAccountConnectionsCard, obj8);
2026-07-29 08:29:29 +00:00
const obj9 = { userId: null, style: null };
obj9[0] = tmp.id;
let tmp43;
2026-08-24 06:08:38 +00:00
if (!closure_17) {
2026-07-29 08:29:29 +00:00
tmp43 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj9[1] = tmp43;
2026-08-24 06:08:38 +00:00
items2[9] = stateFromStores2(user(displayProfile[71]).UserProfileApplicationRoleConnectionsCard, obj9);
2026-07-29 08:29:29 +00:00
let tmp18Result2 = !tmp28;
if (!isPreviewingChanges) {
const obj10 = { userId: null, style: null, onBack: null };
obj10[0] = tmp.id;
let tmp46;
if (!tmp30) {
tmp46 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj10[1] = tmp46;
obj10[2] = showUserProfileActionSheet;
2026-08-24 06:08:38 +00:00
tmp18Result2 = tmp18(tmp19(tmp20[72]), obj10);
const tmp19Result3 = tmp19(tmp20[72]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[10] = tmp18Result2;
obj[1] = items2;
2026-08-24 06:08:38 +00:00
return closure_20(navigateToShop, obj);
2026-07-20 16:05:17 +00:00
}
}
return null;
}, items11);
2026-07-29 08:29:29 +00:00
const items12 = [tmp3.profileContent, stateFromStores1, activeProfileTabSection === name.WISHLIST, user.id, id === user.id];
callback5 = obj8.useCallback(() => {
2026-08-24 06:08:38 +00:00
let obj = { style: wishlist.profileContent, children: null };
2026-07-20 16:05:17 +00:00
if (null == stateFromStores1) {
2026-08-24 06:08:38 +00:00
let tmp10 = stateFromStores2(user(displayProfile[73]).WishlistEmptyState, {});
2026-07-29 08:29:29 +00:00
let tmp6 = displayProfile;
let tmp9 = stateFromStores2;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp6 = displayProfile;
obj = { wishlistId: null, maxWidth: null, isVisible: null };
obj[0] = tmp3;
2026-08-24 06:08:38 +00:00
obj[1] = closure_17;
obj[2] = closure_30;
2026-07-29 08:29:29 +00:00
tmp9 = stateFromStores2;
2026-08-24 06:08:38 +00:00
tmp10 = stateFromStores2(channel(displayProfile[73]), obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [tmp10, ];
2026-08-24 06:08:38 +00:00
let tmp9Result = closure_10;
if (closure_10) {
2026-07-29 08:29:29 +00:00
obj = { userId: null, wishlistId: null, maxWidth: null };
obj[0] = user.id;
obj[1] = tmp3;
2026-08-24 06:08:38 +00:00
obj[2] = closure_17;
tmp9Result = tmp9(channel(tmp6[74]), obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp9Result;
obj[1] = items;
2026-08-24 06:08:38 +00:00
return closure_20(navigateToShop, obj);
2026-07-20 16:05:17 +00:00
}, items12);
2026-08-24 06:08:38 +00:00
const items13 = [handlePageContentSize, callback4, callback5, tmp34, tmp32, boardTabIndex, wishlistTabIndex, user.id, activeProfileTabSection === name.WIDGETS, id === user.id, containerBackground];
2026-07-29 08:29:29 +00:00
const memo1 = obj8.useMemo(() => {
let obj = { id: "main", label: null, page: null };
2026-07-20 16:05:17 +00:00
const intl = user(displayProfile[28]).intl;
2026-07-29 08:29:29 +00:00
obj[1] = intl.string(user(displayProfile[28]).t.LXw470);
2026-07-20 16:05:17 +00:00
obj = {
scrollEnabled: false,
onContentSizeChange(arg0, arg1) {
2026-07-29 08:29:29 +00:00
return callback(0, arg0, arg1);
2026-07-20 16:05:17 +00:00
},
children: callback4()
};
2026-07-29 08:29:29 +00:00
obj[2] = stateFromStores2(navigateToPremium, obj);
2026-07-20 16:05:17 +00:00
const items = [obj];
2026-08-24 06:08:38 +00:00
if (closure_21) {
2026-07-29 08:29:29 +00:00
obj = { id: "board", label: null, page: null };
const intl2 = tmp(tmp2[28]).intl;
obj[1] = intl2.string(tmp(tmp2[28]).t.laViwx);
2026-08-24 06:08:38 +00:00
obj1 = { scrollEnabled: false, onContentSizeChange: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[1] = function onContentSizeChange(arg0, arg1) {
2026-08-24 06:08:38 +00:00
return callback(closure_22, arg0, arg1);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const obj2 = { userId: null, isVisible: null, isCurrentUser: null, containerBackground: null };
obj2[0] = user.id;
2026-08-24 06:08:38 +00:00
obj2[1] = closure_31;
obj2[2] = closure_10;
2026-07-29 08:29:29 +00:00
obj2[3] = containerBackground;
2026-08-24 06:08:38 +00:00
obj1[2] = tmp3(markAsDismissed, obj2);
2026-07-29 08:29:29 +00:00
obj[2] = tmp3(tmp4, obj1, boardTabIndex);
2026-07-20 16:05:17 +00:00
items.push(obj);
}
2026-08-24 06:08:38 +00:00
if (closure_20) {
2026-07-29 08:29:29 +00:00
const obj3 = { id: "wishlist", label: null, page: null };
const intl3 = tmp(tmp2[28]).intl;
obj3[1] = intl3.string(tmp(tmp2[28]).t["7lZ31J"]);
2026-08-24 06:08:38 +00:00
obj4 = { scrollEnabled: false, onContentSizeChange: null, children: null };
2026-07-29 08:29:29 +00:00
obj4[1] = function onContentSizeChange(arg0, arg1) {
2026-08-24 06:08:38 +00:00
return callback(closure_23, arg0, arg1);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj4[2] = callback5();
obj3[2] = tmp3(tmp4, obj4, wishlistTabIndex);
2026-07-20 16:05:17 +00:00
items.push(obj3);
}
return items;
}, items13);
2026-08-24 06:08:38 +00:00
const tmp6Result14 = user(displayProfile[60]);
const tmp6Result15 = user(displayProfile[75]);
segmentedControlState = tmp6Result15.useSegmentedControlState({ pageWidth: tmp37, defaultIndex: activeProfileTabSectionIndex, itemSpacing: channel(displayProfile[41]).space.PX_24, items: memo1, onPageChange: handleTabChange });
let obj3 = { pageWidth: tmp37, defaultIndex: activeProfileTabSectionIndex, itemSpacing: channel(displayProfile[41]).space.PX_24, items: memo1, onPageChange: handleTabChange };
const pagerFillHeight = user(displayProfile[61]).usePagerFillHeight();
2026-07-20 16:05:17 +00:00
const items14 = [segmentedControlState, restoreActiveIndex];
({ pagerRef, fillHeight, measureFill } = pagerFillHeight);
2026-07-29 08:29:29 +00:00
const layoutEffect = obj8.useLayoutEffect(() => {
2026-07-20 16:05:17 +00:00
restoreActiveIndex(segmentedControlState);
}, items14);
2026-08-24 06:08:38 +00:00
const tmp6Result16 = user(displayProfile[61]);
2026-07-20 16:05:17 +00:00
const items15 = [segmentedControlState, wishlistTabIndex, markAsDismissed, setActiveProfileTabSection];
2026-08-24 06:08:38 +00:00
const pagesHeightStyle = user(displayProfile[61]).usePagesHeightStyle(segmentedControlState, pageHeights.pageHeights, fillHeight);
2026-07-20 16:05:17 +00:00
if (null != user) {
if (null != stateFromStores) {
2026-07-29 08:29:29 +00:00
obj4 = { backgroundColor: null };
obj4[0] = containerBackground;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
let OpenableUserProfileAvatar = tmp(tmp96);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
OpenableUserProfileAvatar = tmp6(tmp96).OpenableUserProfileAvatar;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj5 = { user: null, displayProfile: null, bannerHeight: null, pendingBanner: null, pendingAvatarSrc: null, pendingAccentColor: null, pendingThemeColors: null, disableInteraction: null, bannerAnimatedStyle: null, bannerImageAnimatedStyle: null, blurAnimatedProps: null, showBlur: null, privateBanner: null };
obj5[0] = user;
obj5[1] = displayProfile;
obj5[2] = tmp4;
2026-08-24 06:08:38 +00:00
let tmp58;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp58 = pendingBanner;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj5[3] = tmp58;
let tmp59;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp59 = pendingAvatarSrc;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj5[4] = tmp59;
let tmp60;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
if (null != pendingAccentColor) {
2026-08-24 06:08:38 +00:00
tmp60 = pendingAccentColor;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
obj5[5] = tmp60;
let tmp61;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
if (null != pendingThemeColors) {
2026-08-24 06:08:38 +00:00
tmp61 = pendingThemeColors;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
obj5[6] = tmp61;
2026-07-29 08:29:29 +00:00
obj5[7] = isPreviewingChanges;
obj5[8] = bannerAnimatedStyle;
obj5[9] = bannerImageAnimatedStyle;
obj5[10] = blurAnimatedProps;
obj5[11] = showBlur;
2026-07-20 16:05:17 +00:00
let _private;
2026-07-29 08:29:29 +00:00
if (displayProfile != null) {
2026-07-20 16:05:17 +00:00
_private = displayProfile.private;
}
2026-08-24 06:08:38 +00:00
let tmp56Result;
2026-07-20 16:05:17 +00:00
if (true === _private) {
2026-07-29 08:29:29 +00:00
let obj6 = { primaryColor: null };
obj6[0] = primaryColor;
2026-08-24 06:08:38 +00:00
tmp56Result = tmp56(tmp(tmp2[78]), obj6);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj5[12] = tmp56Result;
const items16 = [stateFromStores2(tmp(tmp2[77]), obj5), , ];
let tmp54Result = !isPreviewingChanges;
2026-07-29 08:29:29 +00:00
if (!isPreviewingChanges) {
const items17 = [tmp3.bannerButtons, , ];
2026-07-20 16:05:17 +00:00
let _private1;
2026-07-29 08:29:29 +00:00
if (displayProfile != null) {
2026-07-20 16:05:17 +00:00
_private1 = displayProfile.private;
}
if (_private1) {
2026-07-29 08:29:29 +00:00
_private1 = tmp3.bannerButtonsWithPrivateBanner;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj7 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
items17[1] = _private1;
items17[2] = bannerAnimatedStyle;
2026-07-29 08:29:29 +00:00
obj7[0] = items17;
2026-08-24 06:08:38 +00:00
let tmp66 = null;
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-08-24 06:08:38 +00:00
tmp66 = null;
2026-07-20 16:05:17 +00:00
if (user.id !== stateFromStores.id) {
2026-08-24 06:08:38 +00:00
tmp66 = null;
2026-07-20 16:05:17 +00:00
if (!user.bot) {
2026-07-23 10:11:24 +00:00
if (relationshipType === containerBackground.FRIEND) {
2026-07-29 08:29:29 +00:00
obj8 = { user: null };
obj8[0] = user;
2026-08-24 06:08:38 +00:00
tmp56Result = tmp56(wishlistTabIndex, obj8);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
tmp56Result = null;
2026-07-20 16:05:17 +00:00
if (isGameFriends) {
2026-07-29 08:29:29 +00:00
let obj9 = { user: null };
obj9[0] = user;
2026-08-24 06:08:38 +00:00
tmp56Result = tmp56(c24, obj9);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
2026-08-24 06:08:38 +00:00
const items18 = [tmp66, ];
2026-07-29 08:29:29 +00:00
let obj10 = { user: null, currentUser: null, displayProfile: null, channel: null };
obj10[0] = user;
obj10[1] = stateFromStores;
obj10[2] = displayProfile;
obj10[3] = channel;
2026-08-24 06:08:38 +00:00
items18[1] = tmp56(tmp(tmp2[80]), obj10);
2026-07-29 08:29:29 +00:00
obj7[1] = items18;
2026-08-24 06:08:38 +00:00
tmp54Result = tmp54(tmp(tmp2[79]).View, obj7);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items16[1] = tmp54Result;
2026-07-29 08:29:29 +00:00
const obj11 = { style: null, children: null };
obj11[0] = contentAnimatedStyle;
const obj12 = { user: null, guildId: null, disableStatus: null, pendingAvatarSrc: null, pendingAvatarDecoration: null, backgroundColor: null, statusStyle: null };
obj12[0] = user;
obj12[1] = guild_id;
obj12[2] = disableStatus;
2026-08-24 06:08:38 +00:00
let tmp72;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp72 = pendingAvatarSrc;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj12[3] = tmp72;
let tmp73;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp73 = pendingAvatarDecoration;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj12[4] = tmp73;
2026-07-29 08:29:29 +00:00
obj12[5] = avatarBackground;
const obj13 = { backgroundColor: null };
obj13[0] = statusBackground;
obj12[6] = obj13;
const items19 = [stateFromStores2(OpenableUserProfileAvatar, obj12), ];
const items20 = [tmp3.profileContentWrapper, ];
if (!tmp9) {
let num2 = 0;
if (null == tmp17) {
2026-08-24 06:08:38 +00:00
num2 = closure_15;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-29 08:29:29 +00:00
num2 = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj14 = { style: null, children: null };
const obj15 = { paddingTop: null, paddingBottom: null };
obj15[0] = num2;
obj15[1] = channel(displayProfile[47])().bottom + pendingBio;
items20[1] = obj15;
obj14[0] = items20;
const obj16 = { customStatusActivity: null, user: null, guildId: null, channelId: null, hasCustomProfileTheme: null, showUserProfileActionSheet: null, isPreviewingChanges: null, bubbleRef: null };
obj16[0] = tmp17;
obj16[1] = user;
obj16[2] = guild_id;
2026-07-20 16:05:17 +00:00
let id2;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
id2 = channel.id;
}
2026-07-29 08:29:29 +00:00
obj16[3] = id2;
obj16[4] = tmp24;
obj16[5] = showUserProfileActionSheet;
obj16[6] = isPreviewingChanges;
obj16[7] = ref;
2026-08-24 06:08:38 +00:00
const items21 = [stateFromStores2(boardTabIndex, obj16), , ];
tmp54Result = null;
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-07-29 08:29:29 +00:00
const obj17 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items22 = [, ];
2026-07-29 08:29:29 +00:00
({ primaryInfo: arr26[0], profileContent: arr26[1] } = tmp3);
obj17[0] = items22;
const obj18 = { user: null, channelId: null, displayProfile: null, displayNameOverride: null, pronounsOverride: null, badgesOverride: null, pendingDisplayNameStyles: null, badgeContainerBackground: null, isPreviewingChanges: null };
obj18[0] = user;
let id3;
if (channel != null) {
2026-07-20 16:05:17 +00:00
id3 = channel.id;
}
2026-07-29 08:29:29 +00:00
obj18[1] = id3;
obj18[2] = displayProfile;
2026-08-24 06:08:38 +00:00
let tmp81;
if (isPreviewingChanges) {
tmp81 = pendingGlobalName;
}
obj18[3] = tmp81;
2026-07-29 08:29:29 +00:00
let tmp82;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp82 = pendingPronouns;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj18[4] = tmp82;
2026-07-29 08:29:29 +00:00
let tmp83;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp83 = tmp20;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj18[5] = tmp83;
2026-07-29 08:29:29 +00:00
let tmp84;
2026-07-20 16:05:17 +00:00
if (isPreviewingChanges) {
2026-08-24 06:08:38 +00:00
tmp84 = pendingDisplayNameStyles;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj18[6] = tmp84;
2026-07-29 08:29:29 +00:00
obj18[7] = containerBackground;
obj18[8] = isPreviewingChanges;
2026-08-24 06:08:38 +00:00
const items23 = [tmp56(handlePageContentSize, obj18), , , , , , ];
let tmp56Result1 = user.id !== stateFromStores.id;
if (tmp56Result1) {
2026-07-29 08:29:29 +00:00
const obj19 = { user: null, guildId: null };
obj19[0] = user;
obj19[1] = guild_id;
2026-08-24 06:08:38 +00:00
tmp56Result1 = tmp56(tmp(tmp2[81]), obj19);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items23[1] = tmp56Result1;
let tmp56Result2 = relationshipType === containerBackground.PENDING_INCOMING;
if (tmp56Result2) {
2026-07-29 08:29:29 +00:00
const obj20 = { user: null, channelId: null, guildId: null, applicationId: null, style: null, showUserProfile: null };
obj20[0] = user;
let id4;
if (channel != null) {
id4 = channel.id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj20[1] = id4;
obj20[2] = guild_id;
obj20[3] = originApplicationId;
obj20[4] = obj4;
obj20[5] = showUserProfileActionSheet;
2026-08-24 06:08:38 +00:00
tmp56Result2 = tmp56(tmp(tmp2[82]), obj20);
const tmpResult2 = tmp(tmp2[82]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items23[2] = tmp56Result2;
2026-07-20 16:05:17 +00:00
items23[3] = incomingGameRelationshipsForUser.map((applicationId) => {
2026-07-29 08:29:29 +00:00
const obj = { user, isGameRelationship: true, applicationId: applicationId.applicationId, channelId: null, guildId: null, style: null, showUserProfile: null };
2026-07-20 16:05:17 +00:00
let id;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
id = channel.id;
}
2026-07-29 08:29:29 +00:00
obj[3] = id;
obj[4] = guild_id;
obj[5] = obj4;
obj[6] = showUserProfileActionSheet;
2026-08-24 06:08:38 +00:00
return stateFromStores2(channel(displayProfile[82]), obj, applicationId.applicationId);
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
const obj21 = { user: null, style: null };
obj21[0] = user;
obj21[1] = obj4;
2026-08-24 06:08:38 +00:00
items23[4] = tmp56(tmp(tmp2[83]), obj21);
let tmp56Result3 = user.id === stateFromStores.id && !isPreviewingChanges;
if (tmp56Result3) {
2026-07-29 08:29:29 +00:00
const obj22 = { guildId: null };
obj22[0] = guild_id;
2026-08-24 06:08:38 +00:00
tmp56Result3 = tmp56(isVisible, obj22);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items23[5] = tmp56Result3;
let tmp56Result4 = user.id !== stateFromStores.id;
if (tmp56Result4) {
2026-07-29 08:29:29 +00:00
const obj23 = { user: null, disableCalls: null, disableMessage: null, location: null, hasCustomProfileTheme: null, style: null };
obj23[0] = user;
2026-07-20 16:05:17 +00:00
if (!disableCalls) {
2026-08-24 06:08:38 +00:00
disableCalls = relationshipType === tmp86.BLOCKED;
2026-07-20 16:05:17 +00:00
}
if (!disableCalls) {
disableCalls = user.isProvisional;
}
2026-07-29 08:29:29 +00:00
obj23[1] = disableCalls;
obj23[2] = disableMessage;
obj23[3] = _location;
obj23[4] = tmp24;
obj23[5] = tmp3.primaryButtons;
2026-08-24 06:08:38 +00:00
tmp56Result4 = tmp56(tmp(tmp2[84]), obj23);
const tmpResult3 = tmp(tmp2[84]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items23[6] = tmp56Result4;
2026-07-29 08:29:29 +00:00
obj17[1] = items23;
2026-08-24 06:08:38 +00:00
tmp54Result = tmp54(tmp74, obj17);
const tmp79 = handlePageContentSize;
tmp86 = containerBackground;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
items21[1] = tmp54Result;
if (!tmp32) {
if (!tmp34) {
2026-07-29 08:29:29 +00:00
let callback4Result = callback4();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj24 = { children: null };
items21[2] = callback4Result;
obj14[1] = items21;
2026-08-24 06:08:38 +00:00
items19[1] = tmp54(tmp74, obj14);
2026-07-29 08:29:29 +00:00
obj11[1] = items19;
2026-08-24 06:08:38 +00:00
items16[2] = tmp54(tmp(tmp2[79]).View, obj11);
2026-07-29 08:29:29 +00:00
obj24[0] = items16;
2026-08-24 06:08:38 +00:00
return tmp54(tmp55, obj24);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj25 = { onLayout: null, children: null };
obj25[0] = callback;
const obj26 = { style: null, children: null };
obj26[0] = tmp3.profileTablist;
const obj27 = { state: null, variant: null };
obj27[0] = segmentedControlState;
2026-07-20 16:05:17 +00:00
let str;
2026-07-29 08:29:29 +00:00
if (tmp24) {
2026-07-20 16:05:17 +00:00
str = "gradient-background";
}
2026-07-29 08:29:29 +00:00
const obj28 = { children: null };
obj27[1] = str;
2026-08-24 06:08:38 +00:00
const items24 = [stateFromStores2(tmp6(tmp2[86]).Tabs, obj27), ];
2026-07-29 08:29:29 +00:00
const obj29 = { ref: null, style: null, collapsable: false, pointerEvents: "box-none" };
obj29[0] = ref1;
const obj30 = { position: "absolute", left: null, top: 0, right: 0, bottom: 0 };
2026-07-20 16:05:17 +00:00
const _Math = Math;
2026-07-29 08:29:29 +00:00
obj30[1] = `${Math.max(wishlistTabIndex, 0) / arr17.length * 100}%`;
obj29[1] = obj30;
items24[1] = stateFromStores2(navigateToShop, obj29);
obj26[1] = items24;
2026-08-24 06:08:38 +00:00
const items25 = [closure_20(navigateToShop, obj26), , ];
2026-07-29 08:29:29 +00:00
const obj31 = { ref: null, onLayout: null, style: null, children: null };
obj31[0] = pagerRef;
obj31[1] = measureFill;
obj31[2] = pagesHeightStyle;
const obj32 = { state: null };
obj32[0] = segmentedControlState;
2026-08-24 06:08:38 +00:00
obj31[3] = stateFromStores2(tmp6(tmp2[87]).SegmentedControlPages, obj32);
items25[1] = stateFromStores2(tmp(tmp2[79]).View, obj31);
2026-07-29 08:29:29 +00:00
const obj33 = { anchorRef: null, isVisible: null, markAsDismissed: null, onViewWishlist: null };
obj33[0] = ref1;
obj33[1] = isVisible;
obj33[2] = markAsDismissed;
2026-08-24 06:08:38 +00:00
obj33[3] = tmp53;
items25[2] = stateFromStores2(tmp(tmp2[88]), obj33);
2026-07-29 08:29:29 +00:00
obj28[0] = items25;
2026-08-24 06:08:38 +00:00
obj25[1] = closure_20(tmp6(tmp2[85]).LayerScope, obj28);
callback4Result = tmp56(tmp74, obj25);
tmp55 = closure_21;
const tmp76 = boardTabIndex;
const tmpResult1 = tmp(tmp2[77]);
2026-07-20 16:05:17 +00:00
}
}
return null;
});
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileContent.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;
export { PrimaryInfo };