Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
974 lines
42 KiB
TypeScript
974 lines
42 KiB
TypeScript
// Module ID: 13155
|
|
// Function ID: 13156
|
|
// Name: UserProfileContent
|
|
// Dependencies: [32, 19, 17, 8870, 1979, 4255, 1371, 8246, 7694, 8269, 7282, 1074, 7225, 1954, 21, 8327, 504, 4574, 11246, 1896, 11213, 11209, 8276, 7236, 9134, 4451, 8173, 13156, 1114, 12715, 13157, 4546, 8328, 4759, 7263, 4304, 11249, 9299, 13091, 5027, 10341, 576, 9601, 13159, 8767, 13160, 8316, 8329, 1611, 13158, 13166, 13167, 7385, 11247, 8255, 13168, 8313, 8324, 8869, 13169, 9124, 13170, 13171, 13172, 13173, 13174, 12722, 13175, 13093, 13180, 11303, 7259, 13143, 13181, 13146, 13186, 13192, 9885, 8342, 8330, 13198, 4343, 13199, 13219, 13220, 13225, 13226, 7230, 12709, 12711, 13231, 2]
|
|
|
|
// Module 13155 (UserProfileContent)
|
|
import util from "util" /* 1114 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
|
import ToastUtils from "ToastUtils" /* 4304 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4574 */;
|
|
import ClipboardUtils from "ClipboardUtils" /* 7263 */;
|
|
import UserProfileSharedStylesDefault from "UserProfileSharedStyles" /* 8327 */;
|
|
import UserProfileWidgetsBoardDefault from "UserProfileWidgetsBoard" /* 8767 */;
|
|
import RelationshipActionCreatorsDefault from "RelationshipActionCreators" /* 9134 */;
|
|
import closeVoicePanelsDefault from "closeVoicePanels" /* 9601 */;
|
|
import UserProfileAboutMeCardDefault from "UserProfileAboutMeCard" /* 11303 */;
|
|
import UserProfileAlertUtils from "UserProfileAlertUtils" /* 12715 */;
|
|
import ProvisionalAccountExplainer from "ProvisionalAccountExplainer" /* 12722 */;
|
|
import UserProfileActivityDefault from "UserProfileActivity" /* 13093 */;
|
|
import UserProfileActivityTabDefault from "UserProfileActivityTab" /* 13160 */;
|
|
import PendingBadgeSettings from "PendingBadgeSettings" /* 13168 */;
|
|
import UserProfilePrivateInfoBannerDefault from "UserProfilePrivateInfoBanner" /* 13174 */;
|
|
import UserProfileDismissibleUpsellsDefault from "UserProfileDismissibleUpsells" /* 13175 */;
|
|
import UserProfileConnections from "UserProfileConnections" /* 13181 */;
|
|
import UserProfileWishlistGrid from "UserProfileWishlistGrid" /* 13186 */;
|
|
import UserProfileWishlistSuggestionsGridDefault from "UserProfileWishlistSuggestionsGrid" /* 13192 */;
|
|
import UserProfileIncomingFriendRequestDefault from "UserProfileIncomingFriendRequest" /* 13220 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import WishlistStore from "WishlistStore" /* 8870 */;
|
|
import GuildStore from "GuildStore" /* 1979 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4255 */;
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
import UserProfileSettingsStore from "UserProfileSettingsStore" /* 8246 */;
|
|
import UserProfileStore from "UserProfileStore" /* 7694 */;
|
|
|
|
const UserProfileWishlistGridDefault = UserProfileWishlistGrid;
|
|
|
|
require = fn;
|
|
function CustomStatusBubble(guildId) {
|
|
({ customStatusActivity, user } = guildId);
|
|
guildId = guildId.guildId;
|
|
const channelId = guildId.channelId;
|
|
const isPreviewingChanges = guildId.isPreviewingChanges;
|
|
({ hasCustomProfileTheme, bubbleRef } = guildId);
|
|
const tmp3 = guildId(channelId[15])();
|
|
const items = [UserStore];
|
|
const items1 = [user];
|
|
let stateFromStores = user(channelId[16]).useStateFromStores(items, () => {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let id;
|
|
if (currentUser != null) {
|
|
id = currentUser.id;
|
|
}
|
|
return id === user.id;
|
|
}, items1);
|
|
const items2 = [channelId, guildId, user];
|
|
let tmp7 = null;
|
|
const callback = noop.useCallback(() => {
|
|
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(11246, dependencyMap.paths), "UserProfileCustomStatusActionSheet", { user, guildId, channelId }, "stack");
|
|
}, items2);
|
|
if (null == customStatusActivity) {
|
|
tmp7 = null;
|
|
if (stateFromStores) {
|
|
tmp7 = null;
|
|
if (!isPreviewingChanges) {
|
|
tmp7 = tmp(tmp2[20])();
|
|
}
|
|
}
|
|
}
|
|
const ref = noop.useRef(tmp7);
|
|
let labelResult;
|
|
if (null != ref.current) {
|
|
const current = ref.current;
|
|
labelResult = current.label();
|
|
}
|
|
const obj2 = { ref: bubbleRef, customStatusActivity, hasCustomProfileTheme, editEnabled: null, onPressTruncatedStatus: null, style: null, emojiOnlyStyle: null, placeholderText: null, prompt: null };
|
|
const obj = user(channelId[16]);
|
|
const tmp10 = closure_19;
|
|
if (stateFromStores) {
|
|
stateFromStores = !isPreviewingChanges;
|
|
}
|
|
obj2.editEnabled = stateFromStores;
|
|
let tmp12;
|
|
if (!isPreviewingChanges) {
|
|
tmp12 = callback;
|
|
}
|
|
obj2.onPressTruncatedStatus = tmp12;
|
|
const items3 = [, ];
|
|
({ customStatusBubble: arr4[0], customStatusBubbleInset: arr4[1] } = tmp3);
|
|
obj2.style = items3;
|
|
obj2.emojiOnlyStyle = tmp3.emojiOnlyCustomStatusBubble;
|
|
obj2.placeholderText = labelResult;
|
|
obj2.prompt = ref.current;
|
|
return tmp10(guildId(channelId[21]), obj2);
|
|
}
|
|
function RemoveFriendIconButton(user) {
|
|
user = user.user;
|
|
let newestAnalyticsLocation;
|
|
function handleConfirm() {
|
|
trackUserProfileAction({ action: "REMOVE_FRIEND" });
|
|
RelationshipActionCreatorsDefault.removeFriend(user.id, { location: newestAnalyticsLocation });
|
|
}
|
|
const trackUserProfileAction = user(newestAnalyticsLocation[22]).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
newestAnalyticsLocation = trackUserProfileAction(newestAnalyticsLocation[23])().newestAnalyticsLocation;
|
|
const obj = user(newestAnalyticsLocation[22]);
|
|
const userDisplayName = trackUserProfileAction(newestAnalyticsLocation[25]).useName(user);
|
|
const obj3 = { size: "sm", variant: "secondary-overlay", icon: closure_19(user(newestAnalyticsLocation[27]).UserCheckIcon, { size: "sm", color: "white" }), accessibilityLabel: null, onPress: null };
|
|
const intl = user(newestAnalyticsLocation[28]).intl;
|
|
obj3.accessibilityLabel = intl.string(user(newestAnalyticsLocation[28]).t.cvSt1J);
|
|
obj3.onPress = function onPress() {
|
|
UserProfileAlertUtils.confirmRemoveFriend({ userDisplayName, onConfirm: handleConfirm });
|
|
};
|
|
return closure_19(user(newestAnalyticsLocation[26]).IconButton, obj3);
|
|
}
|
|
function RemoveGameFriendIconButton(user) {
|
|
user = user.user;
|
|
const guildId = user.guildId;
|
|
const channelId = user.channelId;
|
|
const items = [channelId, guildId, user];
|
|
const callback = noop.useCallback(() => {
|
|
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(13157, dependencyMap.paths), "UserProfileGameFriendActionSheet", { user, guildId, channelId }, "stack");
|
|
}, items);
|
|
const obj = { size: "sm", variant: "secondary-overlay", icon: closure_19(user(channelId[31]).UserPlatformIcon, { size: "sm", color: "white" }), accessibilityLabel: null, onPress: null };
|
|
const intl = user(channelId[28]).intl;
|
|
obj.accessibilityLabel = intl.string(user(channelId[28]).t.cvSt1J);
|
|
obj.onPress = callback;
|
|
return closure_19(user(channelId[26]).IconButton, obj);
|
|
}
|
|
class PrimaryInfo {
|
|
constructor(arg0) {
|
|
({ user, displayProfile, displayNameOverride, pronounsOverride, badgesOverride, isPreviewingChanges } = global);
|
|
closure_0 = undefined;
|
|
trackUserProfileAction = undefined;
|
|
tmp2 = closure_2;
|
|
({ channelId, pendingDisplayNameStyles, style, badgeContainerBackground } = global);
|
|
tmp = trackUserProfileAction;
|
|
obj = trackUserProfileAction(closure_2[25]);
|
|
userTag = obj.useUserTag(user);
|
|
closure_0 = userTag;
|
|
tmp4 = trackUserProfileAction(closure_2[32])(displayProfile);
|
|
obj2 = trackUserProfileAction(closure_2[33]);
|
|
guildId = undefined;
|
|
if (displayProfile != null) {
|
|
guildId = displayProfile.guildId;
|
|
}
|
|
name = obj2.useName(guildId, channelId, user);
|
|
tmp7 = name;
|
|
if (null != displayNameOverride) {
|
|
num = 0;
|
|
tmp7 = name;
|
|
if (displayNameOverride.trim().length > 0) {
|
|
tmp7 = displayNameOverride;
|
|
}
|
|
}
|
|
tmp8 = closure_0;
|
|
obj3 = closure_0(tmp2[22]);
|
|
trackUserProfileAction = obj3.useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
items = [, ];
|
|
items[0] = trackUserProfileAction;
|
|
items[1] = userTag;
|
|
callback = closure_4.useCallback(() => {
|
|
trackUserProfileAction({ action: "COPY_USERNAME" });
|
|
ClipboardUtils.copy(userTag);
|
|
const result = ToastUtils.presentUsernameCopied();
|
|
}, items);
|
|
tmp10 = jsx;
|
|
obj1 = { 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 };
|
|
guildId1 = undefined;
|
|
tmpResult = tmp(tmp2[36]);
|
|
if (displayProfile != null) {
|
|
guildId1 = displayProfile.guildId;
|
|
}
|
|
obj1.guildId = guildId1;
|
|
obj1.displayName = tmp7;
|
|
if (pronounsOverride == null) {
|
|
pronouns = undefined;
|
|
if (displayProfile != null) {
|
|
pronouns = displayProfile.pronouns;
|
|
}
|
|
pronounsOverride = pronouns;
|
|
}
|
|
obj1.pronouns = pronounsOverride;
|
|
if (badgesOverride == null) {
|
|
badgesOverride = tmp4;
|
|
}
|
|
obj1.badges = badgesOverride;
|
|
obj1.style = style;
|
|
obj1.badgeContainerBackground = badgeContainerBackground;
|
|
tmp14 = undefined;
|
|
if (!isPreviewingChanges) {
|
|
tmp14 = callback;
|
|
}
|
|
obj1.onPressDisplayName = tmp14;
|
|
intl = tmp8(tmp2[28]).intl;
|
|
obj1.displayNameAccessibilityHint = intl.string(tmp8(tmp2[28]).t.y5MwJy);
|
|
tmp15 = undefined;
|
|
if (!isPreviewingChanges) {
|
|
tmp15 = callback;
|
|
}
|
|
obj1.onPressUserTag = tmp15;
|
|
fn = undefined;
|
|
if (!isPreviewingChanges) {
|
|
fn = () => {
|
|
trackUserProfileAction({ action: "PRESS_PRONOUNS" });
|
|
ToastUtils.presentUserPronouns();
|
|
};
|
|
}
|
|
obj1.onPressPronouns = fn;
|
|
obj1.showBadgeToastOnPress = !isPreviewingChanges;
|
|
obj1.pendingDisplayNameStyles = pendingDisplayNameStyles;
|
|
return tmp10(tmpResult, obj1);
|
|
}
|
|
}
|
|
function EditSection(guildId) {
|
|
guildId = guildId.guildId;
|
|
let trackUserProfileAction;
|
|
const tmp = trackUserProfileAction;
|
|
const tmp3 = trackUserProfileAction(8327)();
|
|
trackUserProfileAction = guildId(8276).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
const obj = guildId(8276);
|
|
const items = [GuildStore];
|
|
const stateFromStores = guildId(504).useStateFromStores(items, () => GuildStore.getGuild(guildId));
|
|
dependencyMap = trackUserProfileAction(9299)();
|
|
closure_3 = trackUserProfileAction(9299)({ guild: stateFromStores });
|
|
const obj3 = { style: tmp3.primaryButtons, maxWidth: ACTION_SHEET_MAX_WIDTH, primaryButton: null, secondaryButton: null };
|
|
const obj2 = guildId(504);
|
|
const obj4 = { variant: "primary", icon: null, text: null, onPress: null, grow: true };
|
|
const tmp7 = trackUserProfileAction(13091);
|
|
obj4.icon = closure_19(guildId(10341).PencilIcon, { size: "sm", color: trackUserProfileAction(576).colors.WHITE });
|
|
if (null != stateFromStores) {
|
|
const intl2 = tmp4(1114).intl;
|
|
let stringResult = intl2.string(tmp4(1114).t.HmFaFB);
|
|
} else {
|
|
const intl = tmp4(1114).intl;
|
|
stringResult = intl.string(tmp4(1114).t.s5vZlQ);
|
|
}
|
|
obj4.text = stringResult;
|
|
obj4.onPress = function onPress() {
|
|
trackUserProfileAction({ action: "EDIT_PROFILE" });
|
|
ActionSheetActionCreatorsDefault.hideAllActionSheets();
|
|
closeVoicePanelsDefault();
|
|
closure_2();
|
|
};
|
|
obj3.primaryButton = closure_19(guildId(5027).Button, obj4);
|
|
let tmp6Result;
|
|
if (null != stateFromStores) {
|
|
const obj6 = { variant: "primary", icon: null, text: null, onPress: null, grow: true };
|
|
const obj7 = { size: "sm", color: tmp(576).colors.WHITE };
|
|
obj6.icon = tmp6(tmp4(10341).PencilIcon, obj7);
|
|
const intl3 = tmp4(1114).intl;
|
|
obj6.text = intl3.string(tmp4(1114).t["PKQB/H"]);
|
|
obj6.onPress = function onPress() {
|
|
trackUserProfileAction({ action: "EDIT_GUILD_PROFILE" });
|
|
ActionSheetActionCreatorsDefault.hideAllActionSheets();
|
|
closeVoicePanelsDefault();
|
|
closure_3();
|
|
};
|
|
tmp6Result = tmp6(tmp4(5027).Button, obj6);
|
|
}
|
|
obj3.secondaryButton = tmp6Result;
|
|
return closure_19(tmp7, obj3);
|
|
}
|
|
function UserProfileWidgetsBoardContainer(isCurrentUser) {
|
|
isCurrentUser = isCurrentUser.isCurrentUser;
|
|
({ userId, isVisible, containerBackground } = isCurrentUser);
|
|
const tmp3 = UserProfileSharedStylesDefault();
|
|
const items = [tmp3.card, { backgroundColor: containerBackground }];
|
|
const obj = { style: tmp3.profileContent, children: null };
|
|
if (isCurrentUser) {
|
|
isCurrentUser = closure_1_19(tmp(13159), {});
|
|
}
|
|
const items1 = [isCurrentUser, closure_1_19(UserProfileWidgetsBoardDefault, { userId, isVisible, cardStyle: items })];
|
|
obj.children = items1;
|
|
return closure_1_20(timestampProducer, obj);
|
|
}
|
|
function UserProfileActivityTabContainer(arg0) {
|
|
({ user, currentUser, guildId, channelId, containerBackground } = arg0);
|
|
const tmp = UserProfileSharedStylesDefault();
|
|
const items = [tmp.card, { backgroundColor: containerBackground }];
|
|
const obj = { style: null, children: closure_1_19(UserProfileActivityTabDefault, { user, currentUser, guildId, channelId, cardStyle: items }) };
|
|
const items1 = [, ];
|
|
({ cards: arr2[0], profileContent: arr2[1] } = tmp);
|
|
obj.style = items1;
|
|
return closure_1_19(timestampProducer, obj);
|
|
}
|
|
get_ActivityIndicator = fn(17);
|
|
({ ScrollView: hasOwnProperty, View: metroRequire } = get_ActivityIndicator);
|
|
const UserProfileSections = fn(8269).UserProfileSections;
|
|
const Constants = fn(7282);
|
|
({ PROFILE_CONTENT_BOTTOM_PADDING: closure_14, PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING: closure_15 } = Constants);
|
|
const RelationshipTypes = fn(1074).RelationshipTypes;
|
|
const ACTION_SHEET_MAX_WIDTH = fn(7225).ACTION_SHEET_MAX_WIDTH;
|
|
const ContentDismissActionType = fn(1954).ContentDismissActionType;
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_19, jsxs: closure_20, Fragment: closure_21 } = jsxProd);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/user_profile/native/UserProfileContent.tsx");
|
|
|
|
export default noop.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;
|
|
let isCurrentUser;
|
|
let userProfileGameFriendApplicationIds;
|
|
let guild_id;
|
|
let name;
|
|
let pendingBio;
|
|
pendingBadgeDisplayOrder = undefined;
|
|
let pendingBadgeHiddenBadges;
|
|
closure_17 = undefined;
|
|
let hasCustomProfileTheme;
|
|
let containerBackground;
|
|
let stateFromStores1;
|
|
let stateFromStores2;
|
|
closure_22 = undefined;
|
|
closure_23 = undefined;
|
|
closure_24 = undefined;
|
|
let boardTabIndex;
|
|
let activityTabIndex;
|
|
let wishlistTabIndex;
|
|
c28 = undefined;
|
|
let handlePageContentSize;
|
|
let markAsDismissed;
|
|
setActiveProfileTabSection = undefined;
|
|
let restoreActiveIndex;
|
|
let isVisible;
|
|
let isVisible2;
|
|
let callback2;
|
|
let callback3;
|
|
let callback4;
|
|
let callback5;
|
|
let segmentedControlState;
|
|
let obj8;
|
|
({ disableMessage, disableStatus, location: _location, initialSection, scrollPosition } = user);
|
|
const tmp3 = channel(displayProfile[15])();
|
|
closure_7 = tmp3;
|
|
const tmp4 = channel(displayProfile[46])(closure_17);
|
|
({ bannerAnimatedStyle, bannerImageAnimatedStyle, contentAnimatedStyle, blurAnimatedProps, showBlur } = channel(displayProfile[47])({ scrollPosition, bannerHeight: tmp4 }));
|
|
const tmp5 = channel(displayProfile[47])({ scrollPosition, bannerHeight: tmp4 });
|
|
const trackUserProfileAction = user(displayProfile[22]).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
let obj = user(displayProfile[22]);
|
|
let items = [isCurrentUser];
|
|
const stateFromStores = user(displayProfile[16]).useStateFromStores(items, () => isCurrentUser.getCurrentUser());
|
|
let id;
|
|
if (stateFromStores != null) {
|
|
id = stateFromStores.id;
|
|
}
|
|
isCurrentUser = tmp9;
|
|
let obj2 = user(displayProfile[16]);
|
|
let items1 = [stateFromStores];
|
|
const stateFromStoresObject = user(displayProfile[16]).useStateFromStoresObject(items1, () => ({ relationshipType: RelationshipStore.getRelationshipType(user.id), originApplicationId: RelationshipStore.getOriginApplicationId(user.id) }));
|
|
({ relationshipType, originApplicationId } = stateFromStoresObject);
|
|
const tmp6Result = user(displayProfile[16]);
|
|
const incomingGameRelationshipsForUser = user(displayProfile[49]).useIncomingGameRelationshipsForUser(user.id);
|
|
const tmp6Result20 = user(displayProfile[49]);
|
|
const isGameFriends = user(displayProfile[50]).useIsGameFriends(user.id);
|
|
const tmp6Result21 = user(displayProfile[50]);
|
|
userProfileGameFriendApplicationIds = user(displayProfile[51]).useUserProfileGameFriendApplicationIds({ userId: user.id });
|
|
if (null != displayProfile) {
|
|
const guildId = displayProfile.guildId;
|
|
guild_id = guildId;
|
|
} else if (channel != null) {
|
|
guild_id = channel.guild_id;
|
|
}
|
|
let obj3 = { userId: user.id };
|
|
const tmp6Result22 = user(displayProfile[51]);
|
|
let id1;
|
|
if (channel != null) {
|
|
id1 = channel.id;
|
|
}
|
|
name = channel(displayProfile[33]).useName(guild_id, id1, user);
|
|
let items2 = [guild_id, user];
|
|
const memo = isPreviewingChanges.useMemo(() => {
|
|
if (null != guild_id) {
|
|
if (null != user) {
|
|
const obj = {};
|
|
const items = [tmp2.id];
|
|
obj[tmp] = items;
|
|
}
|
|
return {};
|
|
}
|
|
}, items2);
|
|
const tmpResult = channel(displayProfile[33]);
|
|
const subscribeGuildMembers = user(displayProfile[52]).useSubscribeGuildMembers(memo, "UserProfileContent");
|
|
const tmp17 = channel(displayProfile[53])(user.id);
|
|
const tmp6Result23 = user(displayProfile[52]);
|
|
const items3 = [userProfileGameFriendApplicationIds];
|
|
const stateFromStoresObject1 = user(displayProfile[16]).useStateFromStoresObject(items3, () => userProfileGameFriendApplicationIds.getPendingChanges());
|
|
pendingBio = stateFromStoresObject1.pendingBio;
|
|
({ pendingAccentColor, pendingThemeColors, pendingBadgeDisplayOrder } = stateFromStoresObject1);
|
|
pendingBadgeHiddenBadges = stateFromStoresObject1.pendingBadgeHiddenBadges;
|
|
({ pendingBanner, pendingAvatar, pendingAvatarDecoration, pendingGlobalName, pendingPronouns, pendingLegacyUsernameDisabled, pendingDisplayNameStyles } = stateFromStoresObject1);
|
|
const tmp6Result24 = user(displayProfile[16]);
|
|
const pendingAvatarSrc = user(displayProfile[54]).getPendingAvatarSrc({ userId: user.id, image: pendingAvatar });
|
|
const tmp20 = channel(displayProfile[32])(displayProfile, pendingLegacyUsernameDisabled);
|
|
closure_17 = tmp20;
|
|
const items4 = [tmp20, pendingBadgeDisplayOrder, pendingBadgeHiddenBadges];
|
|
const memo1 = isPreviewingChanges.useMemo(() => PendingBadgeSettings.applyPendingBadgeSettingsToProfileBadges(closure_17, { pendingBadgeDisplayOrder, pendingBadgeHiddenBadges }), items4);
|
|
let obj5 = { user, displayProfile, pendingThemeColors: null };
|
|
let tmp23;
|
|
let obj4 = { userId: user.id, image: pendingAvatar };
|
|
const tmp6Result25 = user(displayProfile[54]);
|
|
if (isPreviewingChanges) {
|
|
tmp23 = pendingThemeColors;
|
|
}
|
|
obj5.pendingThemeColors = tmp23;
|
|
const tmpResult1Result = channel(displayProfile[56])(obj5);
|
|
const primaryColor = tmpResult1Result.primaryColor;
|
|
hasCustomProfileTheme = tmp25;
|
|
({ theme, secondaryColor } = tmpResult1Result);
|
|
const tmpResult5 = channel(displayProfile[56]);
|
|
const userProfileColors = user(displayProfile[57]).useUserProfileColors({ theme, primaryColor, secondaryColor });
|
|
containerBackground = userProfileColors.containerBackground;
|
|
({ avatarBackground, statusBackground } = userProfileColors);
|
|
const tmp6Result26 = user(displayProfile[57]);
|
|
const ref1 = isPreviewingChanges.useRef(null);
|
|
const ref = isPreviewingChanges.useRef(null);
|
|
const items5 = [guild_id];
|
|
stateFromStores1 = user(displayProfile[16]).useStateFromStores(items5, () => UserProfileStore.getFirstWishlistId(user.id));
|
|
const tmp6Result27 = user(displayProfile[16]);
|
|
const fetchWishlist = user(displayProfile[58]).useFetchWishlist({ wishlistId: stateFromStores1, userId: user.id });
|
|
let obj6 = { wishlistId: stateFromStores1, userId: user.id };
|
|
const tmp6Result28 = user(displayProfile[58]);
|
|
const items6 = [closure_7];
|
|
const items7 = [stateFromStores1];
|
|
stateFromStores2 = user(displayProfile[16]).useStateFromStores(items6, () => {
|
|
let wishlist = null;
|
|
if (null != stateFromStores1) {
|
|
wishlist = WishlistStore.getWishlist(tmp);
|
|
}
|
|
return wishlist;
|
|
}, items7);
|
|
const items8 = [stateFromStores2, id === user.id];
|
|
let tmp32 = tmp9;
|
|
if (id !== user.id) {
|
|
let tmp33 = null != stateFromStores2;
|
|
if (tmp33) {
|
|
tmp33 = arr11.length > 0;
|
|
}
|
|
tmp32 = tmp33;
|
|
}
|
|
closure_22 = tmp32;
|
|
const tmp6Result29 = user(displayProfile[16]);
|
|
const tmp34 = user(displayProfile[60]).useDisplayableBoardWidgets(user.id).length > 0;
|
|
closure_23 = tmp34;
|
|
const tmp6Result30 = user(displayProfile[60]);
|
|
const tmp35 = user(displayProfile[61]).useIsRecentActivityMobileEnabled("UserProfileContent") && null != stateFromStores;
|
|
closure_24 = tmp35;
|
|
const tmp6Result31 = user(displayProfile[61]);
|
|
const profileTabIndices = user(displayProfile[62]).useProfileTabIndices(tmp34, tmp35, tmp32);
|
|
boardTabIndex = profileTabIndices.boardTabIndex;
|
|
activityTabIndex = profileTabIndices.activityTabIndex;
|
|
wishlistTabIndex = profileTabIndices.wishlistTabIndex;
|
|
const tmp6Result32 = user(displayProfile[62]);
|
|
[tmp38, c28] = showUserProfileActionSheet(isPreviewingChanges.useState(0), 2);
|
|
const callback = obj9.useCallback((nativeEvent) => {
|
|
_undefined(nativeEvent.nativeEvent.layout.width);
|
|
}, []);
|
|
const tmp37 = showUserProfileActionSheet(isPreviewingChanges.useState(0), 2);
|
|
const pageHeights = user(displayProfile[63]).usePageHeights();
|
|
handlePageContentSize = pageHeights.handlePageContentSize;
|
|
const tmp6Result33 = user(displayProfile[63]);
|
|
const wishlistViewerCoachmark = user(displayProfile[64]).useWishlistViewerCoachmark({ isCurrentUser: tmp9, shouldShowWishlistTab: tmp32 });
|
|
isVisible = wishlistViewerCoachmark.isVisible;
|
|
markAsDismissed = wishlistViewerCoachmark.markAsDismissed;
|
|
const items9 = [trackUserProfileAction, isVisible, markAsDismissed];
|
|
const callback1 = obj9.useCallback((section) => {
|
|
trackUserProfileAction({ action: "PRESS_SECTION", section });
|
|
if (tmp2) {
|
|
markAsDismissed(ContentDismissActionType.INDIRECT_ACTION);
|
|
}
|
|
}, items9);
|
|
const tmp6Result34 = user(displayProfile[64]);
|
|
const profileSectionTabs = user(displayProfile[62]).useProfileSectionTabs({ initialUserProfileSection: initialSection, wishlistTabIndex, boardTabIndex, activityTabIndex, onTabChange: callback1 });
|
|
({ activeProfileTabSection, setActiveProfileTabSection } = profileSectionTabs);
|
|
restoreActiveIndex = profileSectionTabs.restoreActiveIndex;
|
|
isVisible = tmp44;
|
|
isVisible2 = tmp45;
|
|
const items10 = [navigateToPremium];
|
|
({ handleTabChange, activeProfileTabSectionIndex } = profileSectionTabs);
|
|
callback2 = obj9.useCallback(() => {
|
|
ActionSheetActionCreatorsDefault.hideAllActionSheets();
|
|
if (navigateToPremium != null) {
|
|
navigateToPremium();
|
|
}
|
|
}, items10);
|
|
const items11 = [navigateToShop];
|
|
callback3 = obj9.useCallback(() => {
|
|
ActionSheetActionCreatorsDefault.hideAllActionSheets();
|
|
if (navigateToShop != null) {
|
|
navigateToShop();
|
|
}
|
|
}, items11);
|
|
const items12 = [user, stateFromStores, containerBackground, tmp3, isPreviewingChanges, callback2, callback3, null != primaryColor, guild_id, userProfileGameFriendApplicationIds, displayProfile, name, pendingBio, channel, showUserProfileActionSheet];
|
|
callback4 = obj9.useCallback(() => {
|
|
if (null != user) {
|
|
if (null != stateFromStores) {
|
|
const items = [closure_7.card, ];
|
|
const obj2 = { backgroundColor: containerBackground };
|
|
items[1] = obj2;
|
|
const obj3 = { style: null, children: null };
|
|
const items1 = [, ];
|
|
({ cards: arr3[0], profileContent: arr3[1] } = closure_7);
|
|
obj3.style = items1;
|
|
let _private;
|
|
if (displayProfile != null) {
|
|
_private = tmp40.private;
|
|
}
|
|
if (_private) {
|
|
const obj = { username: name, containerBackground };
|
|
_private = closure_2_19(UserProfilePrivateInfoBannerDefault, obj);
|
|
}
|
|
const items2 = [_private, , , , , , , , , , ];
|
|
let isProvisional = tmp.isProvisional;
|
|
if (isProvisional) {
|
|
const obj4 = { style: items, userId: tmp.id, iconSize: 16 };
|
|
isProvisional = closure_2_19(ProvisionalAccountExplainer.UserProfileProvisionalAccountExplainerCard, obj4);
|
|
}
|
|
items2[1] = isProvisional;
|
|
let tmp10 = tmp.id === tmp35.id;
|
|
if (tmp10) {
|
|
tmp10 = !isPreviewingChanges;
|
|
}
|
|
if (tmp10) {
|
|
const obj5 = { navigateToPremium: callback2, navigateToShop: callback3, hasCustomProfileTheme };
|
|
tmp10 = closure_2_19(UserProfileDismissibleUpsellsDefault, obj5);
|
|
}
|
|
items2[2] = tmp10;
|
|
const obj6 = { user: tmp, currentUser: tmp35, guildId: guild_id, style: items };
|
|
items2[3] = closure_2_19(UserProfileActivityDefault, obj6);
|
|
let tmp18Result = userProfileGameFriendApplicationIds.length > 0;
|
|
if (tmp18Result) {
|
|
const obj7 = { userId: tmp.id, applicationIds: tmp22 };
|
|
tmp18Result = tmp18(tmp19(13180), obj7);
|
|
}
|
|
items2[4] = tmp18Result;
|
|
const obj9 = { userId: tmp.id, displayProfile, pendingBio: null };
|
|
let tmp26;
|
|
if (isPreviewingChanges) {
|
|
tmp26 = pendingBio;
|
|
}
|
|
obj9.pendingBio = tmp26;
|
|
items2[5] = closure_2_19(UserProfileAboutMeCardDefault, obj9);
|
|
let tmp18Result4 = null != tmp21;
|
|
if (tmp18Result4) {
|
|
const obj10 = { userId: tmp.id, guildId: tmp21 };
|
|
tmp18Result4 = tmp18(tmp19(7259), obj10);
|
|
}
|
|
items2[6] = tmp18Result4;
|
|
guild_id = undefined;
|
|
if (channel != null) {
|
|
guild_id = tmp28.guild_id;
|
|
}
|
|
let tmp18Result5 = null != guild_id;
|
|
if (tmp18Result5) {
|
|
const obj11 = { user: tmp, currentUser: tmp35, guildId: null, channelId: null, showUserProfile: null };
|
|
({ guild_id: obj8.guildId, id: obj8.channelId } = tmp28);
|
|
obj11.showUserProfile = showUserProfileActionSheet;
|
|
tmp18Result5 = tmp18(tmp19(13143), obj11);
|
|
}
|
|
items2[7] = tmp18Result5;
|
|
const obj12 = { userId: tmp.id };
|
|
items2[8] = closure_2_19(UserProfileConnections.UserProfileAccountConnectionsCard, obj12);
|
|
const obj13 = { userId: tmp.id };
|
|
items2[9] = closure_2_19(UserProfileConnections.UserProfileApplicationRoleConnectionsCard, obj13);
|
|
let tmp18Result6 = !tmp25;
|
|
if (!isPreviewingChanges) {
|
|
const obj25 = { userId: tmp.id, onBack: showUserProfileActionSheet };
|
|
tmp18Result6 = tmp18(tmp19(13146), obj25);
|
|
}
|
|
items2[10] = tmp18Result6;
|
|
obj3.children = items2;
|
|
return closure_2_20(timestampProducer, obj3);
|
|
}
|
|
}
|
|
return null;
|
|
}, items12);
|
|
const items13 = [tmp3.profileContent, stateFromStores1, activeProfileTabSection === name.WISHLIST, user.id, id === user.id];
|
|
callback5 = obj9.useCallback(() => {
|
|
const obj = { style: closure_7.profileContent, children: null };
|
|
if (null == stateFromStores1) {
|
|
let tmp10 = closure_2_19(UserProfileWishlistGrid.WishlistEmptyState, {});
|
|
let tmp9 = closure_2_19;
|
|
} else {
|
|
const obj2 = { wishlistId: tmp3, maxWidth: ACTION_SHEET_MAX_WIDTH, isVisible };
|
|
tmp9 = closure_2_19;
|
|
tmp10 = closure_2_19(UserProfileWishlistGridDefault, obj2);
|
|
}
|
|
const items = [tmp10, ];
|
|
let tmp9Result = closure_10;
|
|
if (closure_10) {
|
|
const obj3 = { userId: user.id, wishlistId: tmp3, maxWidth: ACTION_SHEET_MAX_WIDTH };
|
|
tmp9Result = tmp9(UserProfileWishlistSuggestionsGridDefault, obj3);
|
|
}
|
|
items[1] = tmp9Result;
|
|
obj.children = items;
|
|
return closure_2_20(timestampProducer, obj);
|
|
}, items13);
|
|
const items14 = [handlePageContentSize, callback4, callback5, tmp34, tmp35, tmp32, boardTabIndex, activityTabIndex, wishlistTabIndex, user, stateFromStores, guild_id, , , , ];
|
|
let id2;
|
|
if (channel != null) {
|
|
id2 = channel.id;
|
|
}
|
|
items14[12] = id2;
|
|
items14[13] = activeProfileTabSection === name.WIDGETS;
|
|
items14[14] = id === user.id;
|
|
items14[15] = containerBackground;
|
|
const memo2 = obj9.useMemo(() => {
|
|
const obj = { id: "main", label: null, page: null };
|
|
const intl = util.intl;
|
|
obj.label = intl.string(util.t.LXw470);
|
|
obj.page = closure_2_19(hasOwnProperty, {
|
|
scrollEnabled: false,
|
|
onContentSizeChange(arg0, arg1) {
|
|
return handlePageContentSize(0, arg0, arg1);
|
|
},
|
|
children: callback4()
|
|
});
|
|
const items = [obj];
|
|
if (closure_23) {
|
|
const obj3 = { id: "board", label: null, page: null };
|
|
const intl2 = tmp(1114).intl;
|
|
obj3.label = intl2.string(tmp(1114).t.laViwx);
|
|
const obj4 = {
|
|
scrollEnabled: false,
|
|
onContentSizeChange(arg0, arg1) {
|
|
return handlePageContentSize(boardTabIndex, arg0, arg1);
|
|
},
|
|
children: null
|
|
};
|
|
const obj5 = { userId: user.id, isVisible: isVisible2, isCurrentUser, containerBackground };
|
|
obj4.children = tmp3(UserProfileWidgetsBoardContainer, obj5);
|
|
obj3.page = tmp3(tmp4, obj4, boardTabIndex);
|
|
items.push(obj3);
|
|
}
|
|
let tmp12 = closure_24;
|
|
if (closure_24) {
|
|
tmp12 = null != stateFromStores;
|
|
}
|
|
if (tmp12) {
|
|
const obj6 = { id: "activity", label: null, page: null };
|
|
const intl3 = tmp(1114).intl;
|
|
obj6.label = intl3.string(tmp(1114).t.chq59f);
|
|
const obj7 = {
|
|
scrollEnabled: false,
|
|
onContentSizeChange(arg0, arg1) {
|
|
return handlePageContentSize(activityTabIndex, arg0, arg1);
|
|
},
|
|
children: null
|
|
};
|
|
obj8 = { user, currentUser: stateFromStores, guildId: guild_id, channelId: null, containerBackground: null };
|
|
let id;
|
|
if (channel != null) {
|
|
id = channel.id;
|
|
}
|
|
obj8.channelId = id;
|
|
obj8.containerBackground = containerBackground;
|
|
obj7.children = tmp3(UserProfileActivityTabContainer, obj8);
|
|
obj6.page = tmp3(tmp4, obj7, activityTabIndex);
|
|
items.push(obj6);
|
|
}
|
|
if (closure_22) {
|
|
const obj9 = { id: "wishlist", label: null, page: null };
|
|
const intl4 = tmp(1114).intl;
|
|
obj9.label = intl4.string(tmp(1114).t["7lZ31J"]);
|
|
const obj10 = {
|
|
scrollEnabled: false,
|
|
onContentSizeChange(arg0, arg1) {
|
|
return handlePageContentSize(wishlistTabIndex, arg0, arg1);
|
|
},
|
|
children: callback5()
|
|
};
|
|
obj9.page = tmp3(tmp4, obj10, wishlistTabIndex);
|
|
items.push(obj9);
|
|
}
|
|
return items;
|
|
}, items14);
|
|
const tmp6Result35 = user(displayProfile[62]);
|
|
const tmp6Result36 = user(displayProfile[77]);
|
|
segmentedControlState = tmp6Result36.useSegmentedControlState({ pageWidth: tmp38, defaultIndex: activeProfileTabSectionIndex, itemSpacing: channel(displayProfile[41]).space.PX_24, items: memo2, onPageChange: handleTabChange });
|
|
let obj7 = { pageWidth: tmp38, defaultIndex: activeProfileTabSectionIndex, itemSpacing: channel(displayProfile[41]).space.PX_24, items: memo2, onPageChange: handleTabChange };
|
|
const pagerFillHeight = user(displayProfile[63]).usePagerFillHeight();
|
|
const items15 = [segmentedControlState, restoreActiveIndex];
|
|
({ pagerRef, fillHeight, measureFill } = pagerFillHeight);
|
|
const layoutEffect = obj9.useLayoutEffect(() => {
|
|
restoreActiveIndex(segmentedControlState);
|
|
}, items15);
|
|
const tmp6Result37 = user(displayProfile[63]);
|
|
const items16 = [segmentedControlState, wishlistTabIndex, markAsDismissed, setActiveProfileTabSection];
|
|
const pagesHeightStyle = user(displayProfile[63]).usePagesHeightStyle(segmentedControlState, pageHeights.pageHeights, fillHeight);
|
|
if (null != user) {
|
|
if (null != stateFromStores) {
|
|
obj8 = { backgroundColor: containerBackground };
|
|
if (isPreviewingChanges) {
|
|
let OpenableUserProfileAvatar = tmp(tmp98);
|
|
} else {
|
|
OpenableUserProfileAvatar = tmp6(tmp98).OpenableUserProfileAvatar;
|
|
}
|
|
let obj10 = { user, displayProfile, bannerHeight: tmp4, pendingBanner: null, pendingAvatarSrc: null, pendingAccentColor: null, pendingThemeColors: null, disableInteraction: null, bannerAnimatedStyle: null, bannerImageAnimatedStyle: null, blurAnimatedProps: null, showBlur: null, privateBanner: null };
|
|
let tmp60;
|
|
if (isPreviewingChanges) {
|
|
tmp60 = pendingBanner;
|
|
}
|
|
obj10.pendingBanner = tmp60;
|
|
let tmp61;
|
|
if (isPreviewingChanges) {
|
|
tmp61 = pendingAvatarSrc;
|
|
}
|
|
obj10.pendingAvatarSrc = tmp61;
|
|
let tmp62;
|
|
if (isPreviewingChanges) {
|
|
if (null != pendingAccentColor) {
|
|
tmp62 = pendingAccentColor;
|
|
}
|
|
}
|
|
obj10.pendingAccentColor = tmp62;
|
|
let tmp63;
|
|
if (isPreviewingChanges) {
|
|
if (null != pendingThemeColors) {
|
|
tmp63 = pendingThemeColors;
|
|
}
|
|
}
|
|
obj10.pendingThemeColors = tmp63;
|
|
obj10.disableInteraction = isPreviewingChanges;
|
|
obj10.bannerAnimatedStyle = bannerAnimatedStyle;
|
|
obj10.bannerImageAnimatedStyle = bannerImageAnimatedStyle;
|
|
obj10.blurAnimatedProps = blurAnimatedProps;
|
|
obj10.showBlur = showBlur;
|
|
let _private;
|
|
if (displayProfile != null) {
|
|
_private = displayProfile.private;
|
|
}
|
|
let tmp58Result;
|
|
if (true === _private) {
|
|
let obj11 = { primaryColor };
|
|
tmp58Result = tmp58(tmp(tmp2[80]), obj11);
|
|
}
|
|
obj10.privateBanner = tmp58Result;
|
|
const items17 = [containerBackground(tmp(tmp2[79]), obj10), , ];
|
|
let tmp56Result = !isPreviewingChanges;
|
|
if (!isPreviewingChanges) {
|
|
const items18 = [tmp3.bannerButtons, , ];
|
|
let _private1;
|
|
if (displayProfile != null) {
|
|
_private1 = displayProfile.private;
|
|
}
|
|
if (_private1) {
|
|
_private1 = tmp3.bannerButtonsWithPrivateBanner;
|
|
}
|
|
let obj12 = { style: null, children: null };
|
|
items18[1] = _private1;
|
|
items18[2] = bannerAnimatedStyle;
|
|
obj12.style = items18;
|
|
let tmp68 = null;
|
|
if (null != stateFromStores) {
|
|
tmp68 = null;
|
|
if (user.id !== stateFromStores.id) {
|
|
tmp68 = null;
|
|
if (!user.bot) {
|
|
if (relationshipType === pendingBadgeHiddenBadges.FRIEND) {
|
|
let obj13 = { user };
|
|
let tmp58Result6 = tmp58(closure_23, obj13);
|
|
} else {
|
|
tmp58Result6 = null;
|
|
if (isGameFriends) {
|
|
const obj14 = { user };
|
|
tmp58Result6 = tmp58(closure_24, obj14);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const items19 = [tmp68, ];
|
|
const obj15 = { user, currentUser: stateFromStores, displayProfile, channel };
|
|
items19[1] = tmp58(tmp(tmp2[82]), obj15);
|
|
obj12.children = items19;
|
|
tmp56Result = tmp56(tmp(tmp2[81]).View, obj12);
|
|
}
|
|
items17[1] = tmp56Result;
|
|
const obj16 = { style: contentAnimatedStyle, children: null };
|
|
const obj17 = { user, guildId: guild_id, disableStatus, pendingAvatarSrc: null, pendingAvatarDecoration: null, backgroundColor: null, statusStyle: null };
|
|
let tmp74;
|
|
if (isPreviewingChanges) {
|
|
tmp74 = pendingAvatarSrc;
|
|
}
|
|
obj17.pendingAvatarSrc = tmp74;
|
|
let tmp75;
|
|
if (isPreviewingChanges) {
|
|
tmp75 = pendingAvatarDecoration;
|
|
}
|
|
obj17.pendingAvatarDecoration = tmp75;
|
|
obj17.backgroundColor = avatarBackground;
|
|
const obj18 = { backgroundColor: statusBackground };
|
|
obj17.statusStyle = obj18;
|
|
const items20 = [containerBackground(OpenableUserProfileAvatar, obj17), ];
|
|
const items21 = [tmp3.profileContentWrapper, ];
|
|
if (!tmp9) {
|
|
let num2 = 0;
|
|
if (null == tmp17) {
|
|
num2 = pendingBadgeDisplayOrder;
|
|
}
|
|
} else {
|
|
num2 = 0;
|
|
}
|
|
const obj19 = { style: null, children: null };
|
|
const obj20 = { paddingTop: num2, paddingBottom: channel(displayProfile[48])().bottom + pendingBio };
|
|
items21[1] = obj20;
|
|
obj19.style = items21;
|
|
const obj21 = { customStatusActivity: tmp17, user, guildId: guild_id, channelId: null, hasCustomProfileTheme: null, showUserProfileActionSheet: null, isPreviewingChanges: null, bubbleRef: null };
|
|
let id3;
|
|
if (channel != null) {
|
|
id3 = channel.id;
|
|
}
|
|
obj21.channelId = id3;
|
|
obj21.hasCustomProfileTheme = tmp25;
|
|
obj21.showUserProfileActionSheet = showUserProfileActionSheet;
|
|
obj21.isPreviewingChanges = isPreviewingChanges;
|
|
obj21.bubbleRef = ref;
|
|
const items22 = [containerBackground(closure_22, obj21), , ];
|
|
let tmp56Result2 = null;
|
|
if (null != stateFromStores) {
|
|
const obj22 = { style: null, children: null };
|
|
const items23 = [, ];
|
|
({ primaryInfo: arr27[0], profileContent: arr27[1] } = tmp3);
|
|
obj22.style = items23;
|
|
const obj23 = { user, channelId: null, displayProfile: null, displayNameOverride: null, pronounsOverride: null, badgesOverride: null, pendingDisplayNameStyles: null, badgeContainerBackground: null, isPreviewingChanges: null };
|
|
let id4;
|
|
if (channel != null) {
|
|
id4 = channel.id;
|
|
}
|
|
obj23.channelId = id4;
|
|
obj23.displayProfile = displayProfile;
|
|
let tmp83;
|
|
if (isPreviewingChanges) {
|
|
tmp83 = pendingGlobalName;
|
|
}
|
|
obj23.displayNameOverride = tmp83;
|
|
let tmp84;
|
|
if (isPreviewingChanges) {
|
|
tmp84 = pendingPronouns;
|
|
}
|
|
obj23.pronounsOverride = tmp84;
|
|
let tmp85;
|
|
if (isPreviewingChanges) {
|
|
tmp85 = memo1;
|
|
}
|
|
obj23.badgesOverride = tmp85;
|
|
let tmp86;
|
|
if (isPreviewingChanges) {
|
|
tmp86 = pendingDisplayNameStyles;
|
|
}
|
|
obj23.pendingDisplayNameStyles = tmp86;
|
|
obj23.badgeContainerBackground = containerBackground;
|
|
obj23.isPreviewingChanges = isPreviewingChanges;
|
|
const items24 = [tmp58(boardTabIndex, obj23), , , , , , ];
|
|
let tmp58Result7 = user.id !== stateFromStores.id;
|
|
if (tmp58Result7) {
|
|
const obj24 = { user, guildId: guild_id };
|
|
tmp58Result7 = tmp58(tmp(tmp2[83]), obj24);
|
|
}
|
|
items24[1] = tmp58Result7;
|
|
let tmp58Result8 = relationshipType === pendingBadgeHiddenBadges.PENDING_INCOMING;
|
|
if (tmp58Result8) {
|
|
let obj25 = { user, channelId: null, guildId: null, applicationId: null, style: null, showUserProfile: null };
|
|
let id5;
|
|
if (channel != null) {
|
|
id5 = channel.id;
|
|
}
|
|
obj25.channelId = id5;
|
|
obj25.guildId = guild_id;
|
|
obj25.applicationId = originApplicationId;
|
|
obj25.style = obj8;
|
|
obj25.showUserProfile = showUserProfileActionSheet;
|
|
tmp58Result8 = tmp58(tmp(tmp2[84]), obj25);
|
|
const tmpResult7 = tmp(tmp2[84]);
|
|
}
|
|
items24[2] = tmp58Result8;
|
|
items24[3] = incomingGameRelationshipsForUser.map((applicationId) => {
|
|
const obj = { user, isGameRelationship: true, applicationId: applicationId.applicationId, channelId: null, guildId: null, style: null, showUserProfile: null };
|
|
let id;
|
|
if (channel != null) {
|
|
id = channel.id;
|
|
}
|
|
obj.channelId = id;
|
|
obj.guildId = guild_id;
|
|
obj.style = obj8;
|
|
obj.showUserProfile = showUserProfileActionSheet;
|
|
return closure_2_19(UserProfileIncomingFriendRequestDefault, obj, applicationId.applicationId);
|
|
});
|
|
const obj26 = { user, style: obj8 };
|
|
items24[4] = tmp58(tmp(tmp2[85]), obj26);
|
|
let tmp58Result9 = user.id === stateFromStores.id && !isPreviewingChanges;
|
|
if (tmp58Result9) {
|
|
const obj27 = { guildId: guild_id };
|
|
tmp58Result9 = tmp58(activityTabIndex, obj27);
|
|
}
|
|
items24[5] = tmp58Result9;
|
|
let tmp58Result10 = user.id !== stateFromStores.id;
|
|
if (tmp58Result10) {
|
|
const obj28 = { user, disableCalls: null, disableMessage: null, location: null, hasCustomProfileTheme: null, style: null };
|
|
if (!disableCalls) {
|
|
disableCalls = relationshipType === tmp88.BLOCKED;
|
|
}
|
|
if (!disableCalls) {
|
|
disableCalls = user.isProvisional;
|
|
}
|
|
obj28.disableCalls = disableCalls;
|
|
obj28.disableMessage = disableMessage;
|
|
obj28.location = _location;
|
|
obj28.hasCustomProfileTheme = tmp25;
|
|
obj28.style = tmp3.primaryButtons;
|
|
tmp58Result10 = tmp58(tmp(tmp2[86]), obj28);
|
|
const tmpResult8 = tmp(tmp2[86]);
|
|
}
|
|
items24[6] = tmp58Result10;
|
|
obj22.children = items24;
|
|
tmp56Result2 = tmp56(tmp76, obj22);
|
|
tmp88 = pendingBadgeHiddenBadges;
|
|
}
|
|
items22[1] = tmp56Result2;
|
|
if (!tmp32) {
|
|
if (!tmp34) {
|
|
if (!tmp35) {
|
|
let callback4Result = callback4();
|
|
}
|
|
const obj29 = { children: null };
|
|
items22[2] = callback4Result;
|
|
obj19.children = items22;
|
|
items20[1] = tmp56(tmp76, obj19);
|
|
obj16.children = items20;
|
|
items17[2] = tmp56(tmp(tmp2[81]).View, obj16);
|
|
obj29.children = items17;
|
|
return tmp56(tmp57, obj29);
|
|
}
|
|
}
|
|
const obj30 = { onLayout: callback, children: null };
|
|
const obj31 = { style: tmp3.profileTablist, children: null };
|
|
const obj32 = { state: segmentedControlState, variant: null };
|
|
let str;
|
|
if (tmp25) {
|
|
str = "overlay";
|
|
}
|
|
const obj33 = { children: null };
|
|
obj32.variant = str;
|
|
const items25 = [containerBackground(tmp6(tmp2[88]).Tabs, obj32), ];
|
|
const obj34 = { ref: ref1, style: null, collapsable: false, pointerEvents: "box-none" };
|
|
const rect = { position: "absolute", left: null, top: 0, right: 0, bottom: 0 };
|
|
const _Math = Math;
|
|
rect.left = `${Math.max(wishlistTabIndex, 0) / arr18.length * 100}%`;
|
|
obj34.style = rect;
|
|
items25[1] = containerBackground(navigateToShop, obj34);
|
|
obj31.children = items25;
|
|
const items26 = [stateFromStores1(navigateToShop, obj31), , ];
|
|
const obj35 = { ref: pagerRef, onLayout: measureFill, style: pagesHeightStyle, children: null };
|
|
const obj36 = { state: segmentedControlState };
|
|
obj35.children = containerBackground(tmp6(tmp2[89]).SegmentedControlPages, obj36);
|
|
items26[1] = containerBackground(tmp(tmp2[81]).View, obj35);
|
|
const obj37 = { anchorRef: ref1, isVisible, markAsDismissed, onViewWishlist: tmp55 };
|
|
items26[2] = containerBackground(tmp(tmp2[90]), obj37);
|
|
obj33.children = items26;
|
|
obj30.children = stateFromStores1(tmp6(tmp2[87]).LayerScope, obj33);
|
|
callback4Result = tmp58(tmp76, obj30);
|
|
tmp57 = stateFromStores2;
|
|
const tmpResult6 = tmp(tmp2[79]);
|
|
}
|
|
}
|
|
return null;
|
|
});
|
|
export { PrimaryInfo };
|