2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 16840
|
|
|
|
|
// Function ID: 16841
|
|
|
|
|
// Name: YouScreenUserProfileContent
|
|
|
|
|
// Dependencies: [32, 19, 17, 1949, 5293, 7635, 8209, 7222, 1954, 21, 16833, 16403, 1115, 8282, 8267, 13094, 8707, 8216, 9209, 11230, 11997, 1943, 7402, 13026, 4989, 10282, 576, 1114, 16841, 16842, 16829, 1484, 8212, 11142, 8268, 504, 8253, 8264, 12975, 16843, 9064, 13099, 13100, 11148, 16844, 13103, 15728, 13028, 11239, 8632, 13109, 16846, 13081, 13114, 13120, 9824, 4310, 7170, 11144, 11184, 9802, 12644, 12646, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 16840 (YouScreenUserProfileContent)
|
|
|
|
|
import util from "util" /* 1114 */;
|
|
|
|
|
import PlatformUtils from "PlatformUtils" /* 1115 */;
|
|
|
|
|
import UserProfileSharedStylesDefault from "UserProfileSharedStyles" /* 8267 */;
|
|
|
|
|
import UserProfileAvatarDefault from "UserProfileAvatar" /* 8282 */;
|
|
|
|
|
import FormDividerDefault from "FormDivider" /* 8632 */;
|
|
|
|
|
import UserProfileWidgetsBoardDefault from "UserProfileWidgetsBoard" /* 8707 */;
|
|
|
|
|
import getRandomCustomStatusPromptDefault from "getRandomCustomStatusPrompt" /* 11148 */;
|
|
|
|
|
import UserProfileAboutMeCardDefault from "UserProfileAboutMeCard" /* 11239 */;
|
|
|
|
|
import UserProfileActivityDefault from "UserProfileActivity" /* 13028 */;
|
|
|
|
|
import UserProfileNoteDefault from "UserProfileNote" /* 13081 */;
|
|
|
|
|
import UserProfileWidgetsBoardEditNoticeDefault from "UserProfileWidgetsBoardEditNotice" /* 13094 */;
|
|
|
|
|
import UserProfileConnections from "UserProfileConnections" /* 13109 */;
|
|
|
|
|
import UserProfileWishlistGrid from "UserProfileWishlistGrid" /* 13114 */;
|
|
|
|
|
import UserProfileWishlistSuggestionsGridDefault from "UserProfileWishlistSuggestionsGrid" /* 13120 */;
|
|
|
|
|
import showYouAccountActionSheet from "showYouAccountActionSheet" /* 16403 */;
|
|
|
|
|
import you_tracking_Tracking from "you/tracking/Tracking" /* 16833 */;
|
|
|
|
|
import YouExpiringTrialOfferCardDefault from "YouExpiringTrialOfferCard" /* 16844 */;
|
|
|
|
|
import UserProfileYourFriendsCardDefault from "UserProfileYourFriendsCard" /* 16846 */;
|
|
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import SelfPresenceStore from "SelfPresenceStore" /* 5293 */;
|
|
|
|
|
import UserProfileStore from "UserProfileStore" /* 7635 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const UserProfileWishlistGridDefault = UserProfileWishlistGrid;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
function YouAvatar(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const callback = noop.useCallback(() => {
|
|
|
|
|
const result = you_tracking_Tracking.trackYouTabAvatarPress();
|
|
|
|
|
const result1 = showYouAccountActionSheet.showYouAccountActionSheet();
|
2026-07-20 16:05:17 +00:00
|
|
|
}, []);
|
2026-09-10 05:38:07 +00:00
|
|
|
const isAndroidResult = PlatformUtils.isAndroid();
|
|
|
|
|
const obj2 = {};
|
|
|
|
|
const tmp3 = map1;
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.onPress = callback;
|
|
|
|
|
obj2.importantForAccessibility = "no-hide-descendants";
|
|
|
|
|
obj2.accessibilityElementsHidden = isAndroidResult;
|
|
|
|
|
obj2.accessible = !isAndroidResult;
|
|
|
|
|
return tmp3(UserProfileAvatarDefault, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-31 15:47:37 +00:00
|
|
|
function YouScreenWidgetsBoardContainer(arg0) {
|
|
|
|
|
({ userId, activeSection, containerBackground, containerBorderColor } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp = UserProfileSharedStylesDefault();
|
2026-08-31 15:47:37 +00:00
|
|
|
const items = [tmp.card, { backgroundColor: containerBackground, borderColor: containerBorderColor, borderWidth: 1 }];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { style: tmp.profileContent, children: null };
|
|
|
|
|
const items1 = [map1(UserProfileWidgetsBoardEditNoticeDefault, {}), map1(UserProfileWidgetsBoardDefault, { userId, isVisible: activeSection === UserProfileSections.WIDGETS, cardStyle: items })];
|
|
|
|
|
obj.children = items1;
|
|
|
|
|
return closure_1_14(timestampProducer, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function EditSection(navigateToProfileCustomization) {
|
|
|
|
|
navigateToProfileCustomization = navigateToProfileCustomization.navigateToProfileCustomization;
|
2026-08-26 06:04:24 +00:00
|
|
|
let isProfileLoaded = navigateToProfileCustomization.isProfileLoaded;
|
2026-07-29 08:29:29 +00:00
|
|
|
let trackUserProfileAction;
|
2026-08-12 06:57:52 +00:00
|
|
|
let first;
|
2026-09-10 05:38:07 +00:00
|
|
|
_slicedToArray = undefined;
|
|
|
|
|
const tmp3 = trackUserProfileAction(first[14])();
|
|
|
|
|
trackUserProfileAction = navigateToProfileCustomization(first[17]).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
|
|
|
const ref = noop.useRef(null);
|
|
|
|
|
const obj = navigateToProfileCustomization(first[17]);
|
|
|
|
|
const obj2 = noop;
|
|
|
|
|
const isDisplayNameStylesFlywheelSettersEnabled = navigateToProfileCustomization(first[18]).useIsDisplayNameStylesFlywheelSettersEnabled("YouScreenUserProfileContent");
|
|
|
|
|
const obj3 = navigateToProfileCustomization(first[18]);
|
|
|
|
|
const isBadgeManagementEnabled = navigateToProfileCustomization(first[19]).useIsBadgeManagementEnabled({ location: "YouScreenUserProfileContent" });
|
|
|
|
|
const obj4 = navigateToProfileCustomization(first[19]);
|
|
|
|
|
const customTypingIndicatorConfig = navigateToProfileCustomization(first[20]).useCustomTypingIndicatorConfig("YouScreenUserProfileContent");
|
2026-08-26 06:04:24 +00:00
|
|
|
({ canSet, entryPoint } = customTypingIndicatorConfig);
|
|
|
|
|
const tmp9 = useIsContentShown(navigateToProfileCustomization(first[21]).DismissibleContent.USER_PROFILE_PREMIUM_AND_SHOP_ENTRY_POINTS);
|
|
|
|
|
let tmp10 = isProfileLoaded;
|
|
|
|
|
if (isProfileLoaded) {
|
|
|
|
|
tmp10 = isDisplayNameStylesFlywheelSettersEnabled;
|
2026-08-12 06:57:52 +00:00
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
if (tmp10) {
|
|
|
|
|
tmp10 = !tmp9;
|
2026-08-12 06:57:52 +00:00
|
|
|
}
|
|
|
|
|
const items = [];
|
2026-08-26 06:04:24 +00:00
|
|
|
if (tmp10) {
|
2026-08-24 06:08:38 +00:00
|
|
|
items.push(tmp4(tmp2[21]).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
let hasBadges = isProfileLoaded;
|
|
|
|
|
if (isProfileLoaded) {
|
2026-08-12 06:57:52 +00:00
|
|
|
hasBadges = isBadgeManagementEnabled;
|
|
|
|
|
}
|
|
|
|
|
if (hasBadges) {
|
|
|
|
|
hasBadges = navigateToProfileCustomization.hasBadges;
|
|
|
|
|
}
|
|
|
|
|
if (hasBadges) {
|
2026-08-24 06:08:38 +00:00
|
|
|
items.push(tmp4(tmp2[21]).DismissibleContent.BADGE_CUSTOMIZATION_COACHMARK);
|
2026-08-12 06:57:52 +00:00
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
if (isProfileLoaded) {
|
|
|
|
|
isProfileLoaded = canSet;
|
2026-08-24 06:08:38 +00:00
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
if (isProfileLoaded) {
|
|
|
|
|
isProfileLoaded = "profile" === entryPoint;
|
2026-08-24 06:08:38 +00:00
|
|
|
}
|
2026-08-26 06:04:24 +00:00
|
|
|
if (isProfileLoaded) {
|
|
|
|
|
isProfileLoaded = !tmp9;
|
|
|
|
|
}
|
|
|
|
|
if (isProfileLoaded) {
|
2026-08-24 06:08:38 +00:00
|
|
|
items.push(tmp4(tmp2[21]).DismissibleContent.CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK);
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = navigateToProfileCustomization(first[20]);
|
|
|
|
|
const tmp14 = _slicedToArray(navigateToProfileCustomization(first[22]).useSelectedDismissibleContent(items), 2);
|
2026-08-26 06:04:24 +00:00
|
|
|
first = tmp14[0];
|
2026-09-10 05:38:07 +00:00
|
|
|
_slicedToArray = tmp16;
|
2026-08-26 06:04:24 +00:00
|
|
|
const items1 = [navigateToProfileCustomization, trackUserProfileAction, first, tmp14[1]];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj6 = { children: null };
|
|
|
|
|
const callback = obj2.useCallback(() => {
|
2026-08-12 06:57:52 +00:00
|
|
|
trackUserProfileAction({ action: "EDIT_PROFILE" });
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = you_tracking_Tracking.trackYouTabEditProfilePress();
|
2026-08-12 06:57:52 +00:00
|
|
|
navigateToProfileCustomization();
|
|
|
|
|
if (null != first) {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_3(ContentDismissActionType.TAKE_ACTION);
|
2026-08-12 06:57:52 +00:00
|
|
|
}
|
|
|
|
|
}, items1);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj7 = { style: tmp3.primaryButtons, secondaryButton: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp4Result = navigateToProfileCustomization(first[22]);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj8 = { ref, variant: "primary", icon: null, text: null, onPress: null, grow: true };
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult = trackUserProfileAction(first[23]);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj8.icon = closure_13(navigateToProfileCustomization(first[25]).PencilIcon, { size: "sm", color: trackUserProfileAction(first[26]).colors.WHITE });
|
|
|
|
|
const intl = tmp4(tmp2[27]).intl;
|
|
|
|
|
obj8.text = intl.string(navigateToProfileCustomization(first[27]).t.AAjhgi);
|
|
|
|
|
obj8.onPress = callback;
|
|
|
|
|
obj7.secondaryButton = closure_13(navigateToProfileCustomization(first[24]).Button, obj8);
|
|
|
|
|
const items2 = [closure_13(tmpResult, obj7), , , ];
|
|
|
|
|
const obj9 = { size: "sm", color: trackUserProfileAction(first[26]).colors.WHITE };
|
|
|
|
|
items2[1] = closure_13(trackUserProfileAction(first[28]), { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK, markAsDismissed: tmp14[1] });
|
|
|
|
|
const obj10 = { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK, markAsDismissed: tmp14[1] };
|
|
|
|
|
items2[2] = closure_13(trackUserProfileAction(first[29]), { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.BADGE_CUSTOMIZATION_COACHMARK, markAsDismissed: tmp14[1], onTryItOut: navigateToProfileCustomization });
|
|
|
|
|
const obj11 = { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.BADGE_CUSTOMIZATION_COACHMARK, markAsDismissed: tmp14[1], onTryItOut: navigateToProfileCustomization };
|
|
|
|
|
items2[3] = closure_13(trackUserProfileAction(first[30]), { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK, markAsDismissed: tmp14[1] });
|
|
|
|
|
obj6.children = items2;
|
|
|
|
|
return closure_14(closure_15, obj6);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
get_ActivityIndicator = fn(17);
|
|
|
|
|
({ ScrollView: hasOwnProperty, View: metroRequire } = get_ActivityIndicator);
|
|
|
|
|
const useIsContentShown = fn(1949).useIsContentShown;
|
|
|
|
|
let UserProfileSections = fn(8209).UserProfileSections;
|
|
|
|
|
const UserProfileThemeTypes = fn(7222).UserProfileThemeTypes;
|
|
|
|
|
const ContentDismissActionType = fn(1954).ContentDismissActionType;
|
|
|
|
|
const jsxProd = fn(21);
|
2026-07-29 08:29:29 +00:00
|
|
|
({ jsx: map1, jsxs: closure_14, Fragment: closure_15 } = jsxProd);
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("modules/user_profile/native/YouScreenUserProfileContent.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function YouScreenUserProfileContent(user) {
|
|
|
|
|
user = user.user;
|
|
|
|
|
const navigateToFriends = user.navigateToFriends;
|
|
|
|
|
const navigateToPremium = user.navigateToPremium;
|
|
|
|
|
const navigateToShop = user.navigateToShop;
|
|
|
|
|
const initialTab = user.initialTab;
|
|
|
|
|
let flag = user.animateAvatar;
|
|
|
|
|
({ style, navigateToProfileCustomization } = user);
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
let callback4;
|
|
|
|
|
let callback5;
|
|
|
|
|
let segmentedControlState;
|
2026-08-31 15:47:37 +00:00
|
|
|
closure_31 = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp3 = navigateToFriends(navigateToPremium[14])();
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_5 = tmp3;
|
2026-09-10 05:38:07 +00:00
|
|
|
const navigation = user(navigateToPremium[31]).useNavigation();
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = user(navigateToPremium[31]);
|
2026-09-10 05:38:07 +00:00
|
|
|
const trackUserProfileAction = user(navigateToPremium[17]).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
|
|
|
const tmp6 = navigateToFriends(navigateToPremium[32])(user.id);
|
|
|
|
|
const displayProfile = tmp6;
|
|
|
|
|
let obj2 = user(navigateToPremium[17]);
|
|
|
|
|
const customStatusActivity = user(navigateToPremium[33]).useCustomStatusActivity();
|
2026-08-24 06:08:38 +00:00
|
|
|
const arr = navigateToFriends(navigateToPremium[34])(tmp6);
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj3 = user(navigateToPremium[33]);
|
|
|
|
|
let items = [displayProfile];
|
|
|
|
|
const stateFromStores = user(navigateToPremium[35]).useStateFromStores(items, () => displayProfile.getStatus());
|
2026-08-31 15:47:37 +00:00
|
|
|
const tmp9 = navigateToFriends(navigateToPremium[36])({ user, displayProfile: tmp6 });
|
|
|
|
|
const primaryColor = tmp9.primaryColor;
|
|
|
|
|
UserProfileSections = tmp10;
|
|
|
|
|
({ theme, secondaryColor } = tmp9);
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj4 = user(navigateToPremium[35]);
|
|
|
|
|
const userProfileColors = user(navigateToPremium[37]).useUserProfileColors({ theme, primaryColor, secondaryColor });
|
|
|
|
|
const containerBackground = userProfileColors.containerBackground;
|
|
|
|
|
const containerBorderColor = userProfileColors.containerBorderColor;
|
2026-07-20 16:05:17 +00:00
|
|
|
({ avatarBackground, statusBackground } = userProfileColors);
|
2026-07-23 10:11:24 +00:00
|
|
|
let items1 = [trackUserProfileAction];
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj5 = user(navigateToPremium[37]);
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback = initialTab.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
trackUserProfileAction({ action: "PRESS_SET_STATUS" });
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = showYouAccountActionSheet.showYouAccountActionSheet();
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
2026-07-29 08:29:29 +00:00
|
|
|
const ref = initialTab.useRef(null);
|
2026-09-10 05:38:07 +00:00
|
|
|
const enabled = user(navigateToPremium[38]).useVirtualCurrencyMobileEnabled().enabled;
|
|
|
|
|
const obj7 = user(navigateToPremium[38]);
|
2026-08-31 15:47:37 +00:00
|
|
|
[obj8, tmp15] = navigateToShop(initialTab.useState(null), 2);
|
|
|
|
|
c14 = tmp15;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp14 = navigateToShop(initialTab.useState(null), 2);
|
|
|
|
|
const shouldShowExpiringTrialOfferCard = user(navigateToPremium[39]).useShouldShowExpiringTrialOfferCard();
|
|
|
|
|
const obj9 = user(navigateToPremium[39]);
|
2026-07-23 10:11:24 +00:00
|
|
|
let items2 = [customStatusActivity];
|
2026-09-10 05:38:07 +00:00
|
|
|
const stateFromStores1 = user(navigateToPremium[35]).useStateFromStores(items2, () => UserProfileStore.getFirstWishlistId(user.id));
|
|
|
|
|
const obj10 = user(navigateToPremium[35]);
|
|
|
|
|
const tmp18 = user(navigateToPremium[40]).useDisplayableBoardWidgets(user.id).length > 0;
|
2026-08-31 15:47:37 +00:00
|
|
|
closure_17 = tmp18;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj11 = user(navigateToPremium[40]);
|
|
|
|
|
const profileTabIndices = user(navigateToPremium[41]).useProfileTabIndices(tmp18, true);
|
|
|
|
|
const boardTabIndex = profileTabIndices.boardTabIndex;
|
|
|
|
|
const wishlistTabIndex = profileTabIndices.wishlistTabIndex;
|
2026-08-31 15:47:37 +00:00
|
|
|
const tmp20 = navigateToShop(initialTab.useState(0), 2);
|
2026-09-10 05:38:07 +00:00
|
|
|
const pageWidth = tmp20[0];
|
2026-08-31 15:47:37 +00:00
|
|
|
closure_21 = tmp20[1];
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback1 = initialTab.useCallback((nativeEvent) => {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_21(nativeEvent.nativeEvent.layout.width);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, []);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj12 = user(navigateToPremium[41]);
|
2026-08-31 15:47:37 +00:00
|
|
|
const pageHeights = user(navigateToPremium[42]).usePageHeights();
|
2026-09-10 05:38:07 +00:00
|
|
|
const handlePageContentSize = pageHeights.handlePageContentSize;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items3 = [trackUserProfileAction];
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback2 = initialTab.useCallback((section) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
trackUserProfileAction({ action: "PRESS_SECTION", section });
|
|
|
|
|
}, items3);
|
2026-08-31 15:47:37 +00:00
|
|
|
const obj13 = user(navigateToPremium[42]);
|
|
|
|
|
const profileSectionTabs = user(navigateToPremium[41]).useProfileSectionTabs({ initialUserProfileSection: initialTab, wishlistTabIndex, boardTabIndex, onTabChange: callback2 });
|
2026-09-10 05:38:07 +00:00
|
|
|
const activeProfileTabSection = profileSectionTabs.activeProfileTabSection;
|
|
|
|
|
const setActiveProfileTabSection = profileSectionTabs.setActiveProfileTabSection;
|
|
|
|
|
const restoreActiveIndex = profileSectionTabs.restoreActiveIndex;
|
|
|
|
|
const isVisible = tmp26;
|
2026-08-31 15:47:37 +00:00
|
|
|
const items4 = [customStatusActivity, tmp15];
|
2026-07-20 16:05:17 +00:00
|
|
|
({ handleTabChange, activeProfileTabSectionIndex } = profileSectionTabs);
|
2026-09-10 05:38:07 +00:00
|
|
|
const callback3 = initialTab.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = null;
|
|
|
|
|
if (null == customStatusActivity) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp2 = getRandomCustomStatusPromptDefault();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
_undefined(tmp2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items4);
|
|
|
|
|
const items5 = [callback3];
|
2026-07-23 10:11:24 +00:00
|
|
|
const effect = initialTab.useEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
setImmediate(() => {
|
2026-09-10 05:38:07 +00:00
|
|
|
callback3();
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
}, items5);
|
|
|
|
|
let labelResult;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (null != obj8) {
|
|
|
|
|
labelResult = obj8.label();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-31 15:47:37 +00:00
|
|
|
const items6 = [containerBackground, containerBorderColor, tmp3, navigateToPremium, shouldShowExpiringTrialOfferCard, navigateToShop, null != primaryColor, enabled, user, tmp6, navigateToFriends];
|
2026-09-10 05:38:07 +00:00
|
|
|
callback4 = obj6.useCallback(() => {
|
|
|
|
|
const items = [closure_5.card, { backgroundColor: containerBackground, borderColor: containerBorderColor, borderWidth: 1 }];
|
|
|
|
|
const obj2 = { style: null, children: null };
|
|
|
|
|
const items1 = [, ];
|
2026-08-31 15:47:37 +00:00
|
|
|
({ cards: arr2[0], profileContent: arr2[1] } = closure_5);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.style = items1;
|
|
|
|
|
const items2 = [map1(YouExpiringTrialOfferCardDefault, { navigateToPremium, style: items }), , , , , , , , , ];
|
2026-08-31 15:47:37 +00:00
|
|
|
let tmp3Result = !shouldShowExpiringTrialOfferCard;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!shouldShowExpiringTrialOfferCard) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = { navigateToPremium, navigateToShop, hasCustomProfileTheme };
|
|
|
|
|
tmp3Result = tmp3(tmp4(13103), obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-31 15:47:37 +00:00
|
|
|
items2[1] = tmp3Result;
|
2026-09-10 05:38:07 +00:00
|
|
|
let tmp3Result2 = enabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (enabled) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = { style: items };
|
|
|
|
|
tmp3Result2 = tmp3(tmp4(15728), obj5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
items2[2] = tmp3Result2;
|
|
|
|
|
items2[3] = map1(UserProfileActivityDefault, { user, currentUser: user, style: items });
|
|
|
|
|
items2[4] = map1(UserProfileAboutMeCardDefault, { userId: user.id, displayProfile });
|
|
|
|
|
items2[5] = map1(FormDividerDefault, {});
|
|
|
|
|
items2[6] = map1(UserProfileConnections.UserProfileAccountConnectionsCard, { userId: user.id });
|
|
|
|
|
items2[7] = map1(UserProfileConnections.UserProfileApplicationRoleConnectionsCard, { userId: user.id });
|
|
|
|
|
items2[8] = map1(UserProfileYourFriendsCardDefault, { userId: user.id, navigateToFriends, style: items });
|
|
|
|
|
items2[9] = map1(UserProfileNoteDefault, { userId: user.id });
|
|
|
|
|
obj2.children = items2;
|
|
|
|
|
return closure_2_14(timestampProducer, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items6);
|
2026-09-10 05:38:07 +00:00
|
|
|
const items7 = [tmp3.profileContent, stateFromStores1, pageWidth, activeProfileTabSection === UserProfileSections.WISHLIST, user.id];
|
|
|
|
|
callback5 = obj6.useCallback(() => {
|
|
|
|
|
const obj = { style: closure_5.profileContent, children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == stateFromStores1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let tmp4Result = map1(UserProfileWishlistGrid.WishlistEmptyState, {});
|
|
|
|
|
let tmp4 = map1;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp4 = map1;
|
|
|
|
|
const obj2 = { wishlistId: tmp3, containerWidth: null, isVisible: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp8;
|
|
|
|
|
if (first > 0) {
|
|
|
|
|
tmp8 = first;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.containerWidth = tmp8;
|
|
|
|
|
obj2.isVisible = isVisible;
|
|
|
|
|
tmp4Result = tmp4(UserProfileWishlistGridDefault, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [tmp4Result, ];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj3 = { userId: user.id, wishlistId: stateFromStores1, containerWidth: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp15;
|
|
|
|
|
if (first > 0) {
|
|
|
|
|
tmp15 = first;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.containerWidth = tmp15;
|
|
|
|
|
items[1] = tmp4(UserProfileWishlistSuggestionsGridDefault, obj3);
|
|
|
|
|
obj.children = items;
|
|
|
|
|
return closure_2_14(timestampProducer, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items7);
|
2026-08-31 15:47:37 +00:00
|
|
|
const items8 = [callback4, callback5, handlePageContentSize, tmp18, boardTabIndex, wishlistTabIndex, user.id, activeProfileTabSection, containerBackground, containerBorderColor];
|
2026-09-10 05:38:07 +00:00
|
|
|
const memo = obj6.useMemo(() => {
|
|
|
|
|
const obj = { id: "main", label: null, page: null };
|
|
|
|
|
const intl = util.intl;
|
|
|
|
|
obj.label = intl.string(util.t.LXw470);
|
|
|
|
|
obj.page = map1(hasOwnProperty, {
|
2026-07-20 16:05:17 +00:00
|
|
|
scrollEnabled: false,
|
|
|
|
|
onContentSizeChange(arg0, arg1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
return handlePageContentSize(0, arg0, arg1);
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
children: callback4()
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [obj];
|
2026-08-31 15:47:37 +00:00
|
|
|
if (closure_17) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = { userId: user.id, activeSection: activeProfileTabSection, containerBackground, containerBorderColor };
|
|
|
|
|
obj4.children = tmp3(YouScreenWidgetsBoardContainer, obj5);
|
|
|
|
|
obj3.page = tmp3(tmp4, obj4, boardTabIndex);
|
|
|
|
|
items.push(obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj6 = { id: "wishlist", label: null, page: null };
|
|
|
|
|
const intl3 = tmp(1114).intl;
|
|
|
|
|
obj6.label = intl3.string(util.t["7lZ31J"]);
|
|
|
|
|
const obj2 = {
|
2026-07-20 16:05:17 +00:00
|
|
|
scrollEnabled: false,
|
|
|
|
|
onContentSizeChange(arg0, arg1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
return handlePageContentSize(0, arg0, arg1);
|
|
|
|
|
},
|
|
|
|
|
children: callback4()
|
|
|
|
|
};
|
|
|
|
|
obj6.page = map1(hasOwnProperty, {
|
|
|
|
|
scrollEnabled: false,
|
|
|
|
|
onContentSizeChange(arg0, arg1) {
|
|
|
|
|
return handlePageContentSize(wishlistTabIndex, arg0, arg1);
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
children: callback5()
|
|
|
|
|
}, wishlistTabIndex);
|
2026-09-10 05:38:07 +00:00
|
|
|
items.push(obj6);
|
2026-07-20 16:05:17 +00:00
|
|
|
return items;
|
|
|
|
|
}, items8);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj14 = user(navigateToPremium[41]);
|
|
|
|
|
let tmp4Result = user(navigateToPremium[55]);
|
|
|
|
|
segmentedControlState = tmp4Result.useSegmentedControlState({ pageWidth, defaultIndex: activeProfileTabSectionIndex, itemSpacing: navigateToFriends(navigateToPremium[26]).space.PX_24, items: memo, onPageChange: handleTabChange });
|
|
|
|
|
const obj15 = { pageWidth, defaultIndex: activeProfileTabSectionIndex, itemSpacing: navigateToFriends(navigateToPremium[26]).space.PX_24, items: memo, onPageChange: handleTabChange };
|
|
|
|
|
const pagerFillHeight = user(navigateToPremium[42]).usePagerFillHeight();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items9 = [segmentedControlState, restoreActiveIndex];
|
|
|
|
|
({ pagerRef, fillHeight, measureFill } = pagerFillHeight);
|
2026-09-10 05:38:07 +00:00
|
|
|
const layoutEffect = obj6.useLayoutEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
restoreActiveIndex(segmentedControlState);
|
|
|
|
|
}, items9);
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp4Result5 = user(navigateToPremium[42]);
|
2026-08-31 15:47:37 +00:00
|
|
|
const pagesHeightStyle = user(navigateToPremium[42]).usePagesHeightStyle(segmentedControlState, pageHeights.pageHeights, fillHeight);
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_31 = obj6.useRef(segmentedControlState.setActiveIndex);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items10 = [segmentedControlState];
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect1 = obj6.useEffect(() => {
|
2026-08-31 15:47:37 +00:00
|
|
|
closure_31.current = segmentedControlState.setActiveIndex;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items10);
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp4Result6 = user(navigateToPremium[42]);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items11 = [initialTab, navigation, wishlistTabIndex, setActiveProfileTabSection];
|
2026-09-10 05:38:07 +00:00
|
|
|
const focusEffect = user(navigateToPremium[31]).useFocusEffect(obj6.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined !== initialTab) {
|
|
|
|
|
const _setTimeout = setTimeout;
|
|
|
|
|
const timeout = setTimeout(() => {
|
2026-09-10 05:38:07 +00:00
|
|
|
setActiveProfileTabSection(initialTab === UserProfileSections.WISHLIST ? UserProfileSections.WISHLIST : UserProfileSections.MAIN);
|
|
|
|
|
ref.current(num, false, true);
|
|
|
|
|
navigation.setParams({ initialTab: "disabled" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}, 80);
|
|
|
|
|
}
|
|
|
|
|
return () => {
|
|
|
|
|
if (null != closure_0) {
|
|
|
|
|
const _clearTimeout = clearTimeout;
|
2026-07-29 08:29:29 +00:00
|
|
|
clearTimeout(tmp);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
if (!navigation.isFocused()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const parent = obj.getParent();
|
|
|
|
|
let isFocusedResult;
|
|
|
|
|
if (parent != null) {
|
|
|
|
|
isFocusedResult = parent.isFocused();
|
|
|
|
|
}
|
|
|
|
|
if (isFocusedResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { initialTab: UserProfileSections.MAIN };
|
|
|
|
|
obj.setParams(obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}, items11));
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj16 = { style, children: null };
|
|
|
|
|
const obj17 = { style: null, children: null };
|
|
|
|
|
const items12 = [tmp3.profileContentWrapper, { paddingTop: 0 }];
|
|
|
|
|
obj17.style = items12;
|
2026-08-31 15:47:37 +00:00
|
|
|
const items13 = [enabled(stateFromStores1, { user, backgroundColor: avatarBackground, statusStyle: { backgroundColor: statusBackground }, animate: flag }), , , ];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj19 = { ref, customStatusActivity, hasCustomProfileTheme: null != primaryColor, style: null, emojiOnlyStyle: tmp3.emojiOnlyCustomStatusBubble, editEnabled: true, placeholderText: labelResult, prompt: obj8 };
|
|
|
|
|
const items14 = [, ];
|
2026-08-12 06:57:52 +00:00
|
|
|
({ customStatusBubble: arr16[0], customStatusBubbleInset: arr16[1] } = tmp3);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj19.style = items14;
|
|
|
|
|
items13[1] = enabled(navigateToFriends(navigateToPremium[58]), obj19);
|
|
|
|
|
const obj20 = { style: null, children: null };
|
|
|
|
|
const items15 = [, ];
|
2026-08-12 06:57:52 +00:00
|
|
|
({ primaryInfo: arr17[0], profileContent: arr17[1] } = tmp3);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj20.style = items15;
|
|
|
|
|
const obj21 = { user, pronouns: null, badges: null, badgeContainerBackground: null, onPressDisplayName: null, displayNameAccessibilityHint: null, themeType: null, showChevron: true };
|
2026-07-20 16:05:17 +00:00
|
|
|
let pronouns;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj18 = { user, backgroundColor: avatarBackground, statusStyle: { backgroundColor: statusBackground }, animate: flag };
|
|
|
|
|
const tmp4Result7 = user(navigateToPremium[31]);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6 != null) {
|
|
|
|
|
pronouns = tmp6.pronouns;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj21.pronouns = pronouns;
|
|
|
|
|
obj21.badges = arr;
|
|
|
|
|
obj21.badgeContainerBackground = containerBackground;
|
|
|
|
|
obj21.onPressDisplayName = callback;
|
2026-08-24 06:08:38 +00:00
|
|
|
let intl = tmp4(tmp2[27]).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj22 = { status: null };
|
2026-08-31 15:47:37 +00:00
|
|
|
const tmpResult = navigateToFriends(navigateToPremium[59]);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj22.status = user(navigateToPremium[60]).getStatusLabel(stateFromStores);
|
|
|
|
|
const tmp4Result8 = user(navigateToPremium[60]);
|
2026-08-24 06:08:38 +00:00
|
|
|
let intl2 = tmp4(tmp2[27]).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj21.displayNameAccessibilityHint = "" + intl.formatToPlainString(user(navigateToPremium[27]).t["er+FRD"], obj22) + ", " + intl2.string(user(navigateToPremium[27]).t.C6COaT);
|
|
|
|
|
obj21.themeType = containerBackground.YOU_SCREEN;
|
|
|
|
|
const items16 = [enabled(tmpResult, obj21), enabled(boardTabIndex, { navigateToProfileCustomization, hasBadges: arr.length > 0, isProfileLoaded: null != tmp6 })];
|
|
|
|
|
obj20.children = items16;
|
|
|
|
|
items13[2] = c14(navigation, obj20);
|
|
|
|
|
const obj24 = { style: { flex: 1 }, onLayout: callback1, children: null };
|
|
|
|
|
const obj25 = { style: tmp3.profileTablist, children: null };
|
|
|
|
|
const obj26 = { state: segmentedControlState, variant: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let str;
|
|
|
|
|
if (null != primaryColor) {
|
|
|
|
|
str = "gradient-background";
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj27 = { children: null };
|
|
|
|
|
obj26.variant = str;
|
|
|
|
|
obj25.children = enabled(user(navigateToPremium[61]).Tabs, obj26);
|
|
|
|
|
const items17 = [enabled(navigation, obj25), ];
|
|
|
|
|
const formatToPlainStringResult = intl.formatToPlainString(user(navigateToPremium[27]).t["er+FRD"], obj22);
|
|
|
|
|
const obj23 = { navigateToProfileCustomization, hasBadges: arr.length > 0, isProfileLoaded: null != tmp6 };
|
|
|
|
|
items17[1] = enabled(navigateToFriends(navigateToPremium[56]).View, { ref: pagerRef, onLayout: measureFill, style: pagesHeightStyle, children: enabled(user(navigateToPremium[62]).SegmentedControlPages, { state: segmentedControlState }) });
|
|
|
|
|
obj24.children = items17;
|
|
|
|
|
items13[3] = c14(navigation, obj24);
|
|
|
|
|
obj17.children = items13;
|
|
|
|
|
obj27.children = c14(navigation, obj17);
|
|
|
|
|
obj16.children = enabled(user(navigateToPremium[57]).LayerScope, obj27);
|
|
|
|
|
return enabled(navigateToFriends(navigateToPremium[56]).View, obj16);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|