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

531 lines
23 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16148
// Function ID: 16149
2026-07-20 16:05:17 +00:00
// Name: YouAvatar
2026-08-25 06:04:03 +00:00
// Dependencies: [32, 19, 17, 1383, 5104, 7227, 8932, 5882, 1388, 21, 16141, 15729, 500, 8989, 8982, 12546, 12547, 8935, 9385, 9670, 11535, 1377, 6131, 12478, 4815, 9822, 712, 1236, 16149, 16150, 16151, 1501, 8462, 9594, 8983, 589, 1367, 8970, 8979, 12428, 16152, 12664, 12670, 12671, 9603, 16153, 12674, 15243, 12480, 9680, 7552, 12680, 16155, 12533, 12685, 12692, 9103, 4120, 5821, 9596, 9615, 9180, 12172, 12174, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 16148 (YouAvatar)
2026-08-24 06:08:38 +00:00
import set from "set" /* 500 */;
2026-08-25 06:04:03 +00:00
import useSharedStylesDefault from "useSharedStyles" /* 8982 */;
import OpenableUserProfileAvatarDefault from "OpenableUserProfileAvatar" /* 8989 */;
import UserProfileWidgetsBoardEditNoticeDefault from "UserProfileWidgetsBoardEditNotice" /* 12546 */;
import WidgetRendererDefault from "WidgetRenderer" /* 12547 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { useIsContentShown } from "withContent" /* 1383 */;
2026-08-25 06:04:03 +00:00
import closure_8 from "filterPlayingActivities" /* 5104 */;
import closure_9 from "createUserWidgetFromServer" /* 7227 */;
import { UserProfileSections } from "USER_PROFILE_TOOLTIP_DELAY" /* 8932 */;
import { UserProfileThemeTypes } from "ARBITRARY_LARGE_OFFSET" /* 5882 */;
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
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function YouAvatar(arg0) {
const callback = React.useCallback(() => {
2026-08-25 06:04:03 +00:00
const result = callback(16141).trackYouTabAvatarPress();
const obj = callback(16141);
const result1 = callback(15729).showYouAccountActionSheet();
2026-07-20 16:05:17 +00:00
}, []);
2026-08-24 06:08:38 +00:00
let obj = set;
2026-07-20 16:05:17 +00:00
const isAndroidResult = obj.isAndroid();
obj = {};
const merged = Object.assign(arg0);
2026-07-29 08:29:29 +00:00
obj.onPress = callback;
obj.importantForAccessibility = "no-hide-descendants";
obj.accessibilityElementsHidden = isAndroidResult;
obj.accessible = !isAndroidResult;
2026-08-24 06:08:38 +00:00
return closure_13(OpenableUserProfileAvatarDefault, obj);
2026-07-20 16:05:17 +00:00
}
function YouScreenWidgetsBoardContainer(containerBackground) {
containerBackground = containerBackground.containerBackground;
2026-07-23 10:11:24 +00:00
({ userId, activeSection, isRefreshEnabled, containerBorderColor } = containerBackground);
2026-08-24 06:08:38 +00:00
const tmp3 = useSharedStylesDefault();
2026-07-29 08:29:29 +00:00
const items = [tmp3.card, ];
2026-07-20 16:05:17 +00:00
if (isRefreshEnabled) {
2026-07-29 08:29:29 +00:00
let obj = { backgroundColor: null, borderColor: null, borderWidth: 1 };
obj[0] = containerBackground;
obj[1] = containerBorderColor;
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-07-29 08:29:29 +00:00
let tmp4 = items;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
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
tmp4 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: tmp3.profileContent, children: null };
2026-08-24 06:08:38 +00:00
const items1 = [callback2(UserProfileWidgetsBoardEditNoticeDefault, {}), callback2(WidgetRendererDefault, { userId, isVisible: activeSection === UserProfileSections.WIDGETS, cardStyle: tmp4 })];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-24 07:16:23 +00:00
return callback3(closure_6, obj);
2026-07-20 16:05:17 +00:00
}
function EditSection(navigateToProfileCustomization) {
navigateToProfileCustomization = navigateToProfileCustomization.navigateToProfileCustomization;
2026-08-25 06:04:03 +00:00
let canSet = navigateToProfileCustomization.isProfileLoaded;
2026-07-29 08:29:29 +00:00
let trackUserProfileAction;
2026-08-12 06:57:52 +00:00
let first;
2026-07-20 16:05:17 +00:00
let callback;
2026-08-12 06:57:52 +00:00
let obj = navigateToProfileCustomization(first[17]);
2026-07-29 08:29:29 +00:00
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
2026-08-24 06:08:38 +00:00
obj1 = React;
2026-07-20 16:05:17 +00:00
const ref = React.useRef(null);
2026-08-12 06:57:52 +00:00
let obj2 = navigateToProfileCustomization(first[18]);
2026-07-29 08:29:29 +00:00
const isDisplayNameStylesFlywheelSettersEnabled = obj2.useIsDisplayNameStylesFlywheelSettersEnabled("YouScreenUserProfileContent");
2026-08-12 06:57:52 +00:00
let obj3 = navigateToProfileCustomization(first[19]);
const isBadgeManagementEnabled = obj3.useIsBadgeManagementEnabled({ location: "YouScreenUserProfileContent" });
2026-08-24 06:08:38 +00:00
let obj4 = navigateToProfileCustomization(first[20]);
const tmp8 = useIsContentShown(navigateToProfileCustomization(first[21]).DismissibleContent.USER_PROFILE_PREMIUM_AND_SHOP_ENTRY_POINTS);
2026-08-25 06:04:03 +00:00
let tmp9 = canSet;
if (canSet) {
2026-08-12 06:57:52 +00:00
tmp9 = isDisplayNameStylesFlywheelSettersEnabled;
}
if (tmp9) {
tmp9 = !tmp8;
}
const items = [];
if (tmp9) {
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-25 06:04:03 +00:00
let hasBadges = canSet;
if (canSet) {
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-25 06:04:03 +00:00
if (canSet) {
canSet = obj4.useCustomTypingIndicatorConfig("YouScreenUserProfileContent").canSet;
2026-08-24 06:08:38 +00:00
}
2026-08-25 06:04:03 +00:00
if (canSet) {
canSet = !tmp8;
2026-08-24 06:08:38 +00:00
}
2026-08-25 06:04:03 +00:00
if (canSet) {
2026-08-24 06:08:38 +00:00
items.push(tmp4(tmp2[21]).DismissibleContent.CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK);
}
const tmp3 = trackUserProfileAction(first[14])();
const tmp13 = callback(navigateToProfileCustomization(first[22]).useSelectedDismissibleContent(items), 2);
first = tmp13[0];
callback = tmp15;
const items1 = [navigateToProfileCustomization, trackUserProfileAction, first, tmp13[1]];
2026-08-12 06:57:52 +00:00
obj = { children: null };
callback = obj1.useCallback(() => {
trackUserProfileAction({ action: "EDIT_PROFILE" });
const result = navigateToProfileCustomization(first[10]).trackYouTabEditProfilePress();
navigateToProfileCustomization();
if (null != first) {
2026-08-24 06:08:38 +00:00
callback(closure_1_12.TAKE_ACTION);
2026-08-12 06:57:52 +00:00
}
}, items1);
obj = { style: tmp3.primaryButtons, secondaryButton: null };
2026-08-24 06:08:38 +00:00
const tmp4Result = navigateToProfileCustomization(first[22]);
2026-08-12 06:57:52 +00:00
obj1 = { ref, variant: "primary", icon: null, text: null, onPress: null, grow: true };
2026-08-24 06:08:38 +00:00
obj2 = { size: "sm", color: tmp(tmp2[26]).colors.WHITE };
obj1[2] = callback2(navigateToProfileCustomization(first[25]).PencilIcon, obj2);
const intl = tmp4(tmp2[27]).intl;
obj1[3] = intl.string(navigateToProfileCustomization(first[27]).t.AAjhgi);
2026-08-12 06:57:52 +00:00
obj1[4] = callback;
2026-08-24 06:08:38 +00:00
obj[1] = callback2(navigateToProfileCustomization(first[24]).Button, obj1);
const items2 = [callback2(trackUserProfileAction(first[23]), obj), , , ];
obj3 = { targetRef: ref, visible: first === tmp4(tmp2[21]).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK, markAsDismissed: tmp15 };
items2[1] = callback2(trackUserProfileAction(first[28]), obj3);
obj4 = { targetRef: ref, visible: first === tmp4(tmp2[21]).DismissibleContent.BADGE_CUSTOMIZATION_COACHMARK, markAsDismissed: tmp15, onTryItOut: navigateToProfileCustomization };
items2[2] = callback2(trackUserProfileAction(first[29]), obj4);
const tmpResult = trackUserProfileAction(first[23]);
items2[3] = callback2(trackUserProfileAction(first[30]), { targetRef: ref, visible: first === navigateToProfileCustomization(first[21]).DismissibleContent.CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK, markAsDismissed: tmp13[1] });
2026-08-12 06:57:52 +00:00
obj[0] = items2;
return callback3(closure_15, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ ScrollView: c5, View: closure_6 } = get_ActivityIndicator);
({ jsx: map1, jsxs: closure_14, Fragment: closure_15 } = jsxProd);
2026-08-24 06:08:38 +00:00
let result = require("set").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;
}
2026-08-24 06:08:38 +00:00
closure_5 = undefined;
2026-07-20 16:05:17 +00:00
let navigation;
2026-07-23 10:11:24 +00:00
let trackUserProfileAction;
2026-08-24 06:08:38 +00:00
closure_8 = undefined;
2026-07-23 10:11:24 +00:00
let customStatusActivity;
2026-08-24 06:08:38 +00:00
UserProfileSections = undefined;
UserProfileThemeTypes = undefined;
2026-07-23 10:11:24 +00:00
let containerBackground;
2026-07-20 16:05:17 +00:00
let containerBorderColor;
let enabled;
2026-08-24 06:08:38 +00:00
c15 = undefined;
2026-07-23 10:11:24 +00:00
let shouldShowExpiringTrialOfferCard;
let stateFromStores1;
2026-08-24 06:08:38 +00:00
closure_18 = undefined;
2026-07-20 16:05:17 +00:00
let boardTabIndex;
let wishlistTabIndex;
2026-07-29 08:29:29 +00:00
let first;
2026-08-24 06:08:38 +00:00
closure_22 = undefined;
2026-07-20 16:05:17 +00:00
let handlePageContentSize;
let activeProfileTabSection;
let setActiveProfileTabSection;
let restoreActiveIndex;
2026-08-24 06:08:38 +00:00
closure_27 = undefined;
2026-07-20 16:05:17 +00:00
let callback3;
let callback4;
let callback5;
let segmentedControlState;
2026-08-24 06:08:38 +00:00
closure_32 = 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;
let obj = user(navigateToPremium[31]);
2026-07-20 16:05:17 +00:00
navigation = obj.useNavigation();
2026-08-24 06:08:38 +00:00
obj1 = user(navigateToPremium[17]);
2026-07-23 10:11:24 +00:00
trackUserProfileAction = obj1.useUserProfileAnalyticsContext().trackUserProfileAction;
2026-08-24 06:08:38 +00:00
let tmp6 = navigateToFriends(navigateToPremium[32])(user.id);
closure_8 = tmp6;
let obj2 = user(navigateToPremium[33]);
2026-07-23 10:11:24 +00:00
customStatusActivity = obj2.useCustomStatusActivity();
2026-08-24 06:08:38 +00:00
const arr = navigateToFriends(navigateToPremium[34])(tmp6);
let obj3 = user(navigateToPremium[35]);
let items = [closure_8];
const stateFromStores = obj3.useStateFromStores(items, () => status.getStatus());
const tmp9 = navigateToFriends(navigateToPremium[36])("YouScreenUserProfileContent");
2026-08-12 06:57:52 +00:00
UserProfileSections = tmp9;
2026-08-24 06:08:38 +00:00
const tmp10 = navigateToFriends(navigateToPremium[37])({ user, displayProfile: tmp6 });
2026-08-12 06:57:52 +00:00
const primaryColor = tmp10.primaryColor;
UserProfileThemeTypes = tmp11;
({ theme, secondaryColor } = tmp10);
2026-08-24 06:08:38 +00:00
let obj4 = user(navigateToPremium[38]);
2026-07-20 16:05:17 +00:00
const userProfileColors = obj4.useUserProfileColors({ theme, primaryColor, secondaryColor });
2026-07-23 10:11:24 +00:00
containerBackground = userProfileColors.containerBackground;
2026-07-20 16:05:17 +00:00
containerBorderColor = userProfileColors.containerBorderColor;
2026-07-29 08:29:29 +00:00
let obj5 = initialTab;
2026-07-20 16:05:17 +00:00
({ avatarBackground, statusBackground } = userProfileColors);
2026-07-23 10:11:24 +00:00
let items1 = [trackUserProfileAction];
const callback = initialTab.useCallback(() => {
2026-07-20 16:05:17 +00:00
trackUserProfileAction({ action: "PRESS_SET_STATUS" });
const result = user(navigateToPremium[11]).showYouAccountActionSheet();
}, items1);
2026-08-24 06:08:38 +00:00
let obj6 = user(navigateToPremium[39]);
2026-07-29 08:29:29 +00:00
enabled = obj6.useVirtualCurrencyMobileEnabled().enabled;
const ref = initialTab.useRef(null);
2026-08-12 06:57:52 +00:00
[obj8, tmp16] = navigateToShop(initialTab.useState(null), 2);
c15 = tmp16;
2026-08-24 06:08:38 +00:00
obj8 = user(navigateToPremium[40]);
2026-07-29 08:29:29 +00:00
shouldShowExpiringTrialOfferCard = obj8.useShouldShowExpiringTrialOfferCard();
2026-08-24 06:08:38 +00:00
let obj9 = user(navigateToPremium[35]);
2026-07-23 10:11:24 +00:00
let items2 = [customStatusActivity];
2026-07-29 08:29:29 +00:00
stateFromStores1 = obj9.useStateFromStores(items2, () => customStatusActivity.getFirstWishlistId(user.id));
2026-08-24 06:08:38 +00:00
let obj10 = user(navigateToPremium[41]);
2026-08-12 06:57:52 +00:00
const tmp19 = obj10.useDisplayableBoardWidgets(user.id).length > 0;
2026-08-24 06:08:38 +00:00
closure_18 = tmp19;
let obj11 = user(navigateToPremium[42]);
2026-08-12 06:57:52 +00:00
const profileTabIndices = obj11.useProfileTabIndices(tmp19, true);
2026-07-20 16:05:17 +00:00
boardTabIndex = profileTabIndices.boardTabIndex;
wishlistTabIndex = profileTabIndices.wishlistTabIndex;
2026-08-12 06:57:52 +00:00
const tmp21 = navigateToShop(initialTab.useState(0), 2);
first = tmp21[0];
closure_22 = tmp21[1];
2026-07-23 10:11:24 +00:00
const callback1 = initialTab.useCallback((nativeEvent) => {
2026-07-20 16:05:17 +00:00
callback(nativeEvent.nativeEvent.layout.width);
}, []);
2026-08-12 06:57:52 +00:00
let tmp15 = navigateToShop(initialTab.useState(null), 2);
2026-08-24 06:08:38 +00:00
const pageHeights = user(navigateToPremium[43]).usePageHeights();
2026-07-20 16:05:17 +00:00
handlePageContentSize = pageHeights.handlePageContentSize;
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-24 06:08:38 +00:00
const obj13 = user(navigateToPremium[43]);
const profileSectionTabs = user(navigateToPremium[42]).useProfileSectionTabs({ initialUserProfileSection: initialTab, wishlistTabIndex, boardTabIndex, onTabChange: callback2 });
2026-07-20 16:05:17 +00:00
activeProfileTabSection = profileSectionTabs.activeProfileTabSection;
setActiveProfileTabSection = profileSectionTabs.setActiveProfileTabSection;
restoreActiveIndex = profileSectionTabs.restoreActiveIndex;
2026-08-24 06:08:38 +00:00
closure_27 = tmp27;
2026-08-12 06:57:52 +00:00
const items4 = [customStatusActivity, tmp16];
2026-07-20 16:05:17 +00:00
({ handleTabChange, activeProfileTabSectionIndex } = profileSectionTabs);
2026-07-23 10:11:24 +00:00
callback3 = initialTab.useCallback(() => {
2026-07-20 16:05:17 +00:00
let tmp2 = null;
if (null == customStatusActivity) {
2026-08-24 06:08:38 +00:00
tmp2 = navigateToFriends(navigateToPremium[44])();
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
c15(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-07-29 08:29:29 +00:00
callback();
2026-07-20 16:05:17 +00:00
});
}, items5);
let labelResult;
2026-07-29 08:29:29 +00:00
if (null != obj7) {
labelResult = obj7.label();
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
const items6 = [containerBackground, containerBorderColor, tmp9, tmp3, navigateToPremium, shouldShowExpiringTrialOfferCard, navigateToShop, null != primaryColor, enabled, user, tmp6, navigateToFriends];
2026-07-29 08:29:29 +00:00
callback4 = obj5.useCallback(() => {
2026-08-24 06:08:38 +00:00
const items = [closure_5.card, ];
if (closure_10) {
2026-07-29 08:29:29 +00:00
let obj = { backgroundColor: null, borderColor: null, borderWidth: 1 };
obj[0] = containerBackground;
obj[1] = containerBorderColor;
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-07-29 08:29:29 +00:00
let tmp4 = tmp2;
let tmp5 = items;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
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
tmp4 = tmp2;
tmp5 = items;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: items1, children: null };
items1 = [, ];
({ cards: arr2[0], profileContent: arr2[1] } = tmp4);
2026-08-24 06:08:38 +00:00
const items2 = [containerBorderColor(navigateToFriends(navigateToPremium[45]), { navigateToPremium, style: tmp5 }), , , , , , , , , ];
2026-07-29 08:29:29 +00:00
let tmp10Result = !shouldShowExpiringTrialOfferCard;
if (!shouldShowExpiringTrialOfferCard) {
const obj2 = { navigateToPremium: null, navigateToShop: null, hasCustomProfileTheme: null };
obj2[0] = navigateToPremium;
obj2[1] = navigateToShop;
2026-08-24 06:08:38 +00:00
obj2[2] = closure_11;
tmp10Result = tmp10(tmp11(tmp12[46]), obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[1] = tmp10Result;
tmp10Result = enabled;
2026-07-20 16:05:17 +00:00
if (enabled) {
2026-07-29 08:29:29 +00:00
const obj3 = { style: null };
obj3[0] = tmp5;
2026-08-24 06:08:38 +00:00
tmp10Result = tmp10(tmp11(tmp12[47]), obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[2] = tmp10Result;
2026-08-24 06:08:38 +00:00
items2[3] = containerBorderColor(navigateToFriends(navigateToPremium[48]), { user, currentUser: user, style: tmp5 });
const obj5 = { userId: user.id, displayProfile: closure_8, style: null };
2026-07-20 16:05:17 +00:00
let tmp20;
2026-08-24 06:08:38 +00:00
let tmp11Result = tmp11(tmp12[49]);
if (!closure_10) {
2026-07-29 08:29:29 +00:00
tmp20 = tmp5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj5[2] = tmp20;
items2[4] = containerBorderColor(tmp11Result, obj5);
let tmp10Result1 = tmp;
2026-08-24 06:08:38 +00:00
if (closure_10) {
tmp10Result1 = tmp10(tmp11(tmp12[50]), {});
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[5] = tmp10Result1;
const obj6 = { userId: user.id, style: null };
let tmp23;
2026-08-24 06:08:38 +00:00
if (!closure_10) {
2026-07-29 08:29:29 +00:00
tmp23 = tmp5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj6[1] = tmp23;
2026-08-24 06:08:38 +00:00
items2[6] = containerBorderColor(user(navigateToPremium[51]).UserProfileAccountConnectionsCard, obj6);
2026-07-29 08:29:29 +00:00
const obj7 = { userId: user.id, style: null };
let tmp24;
2026-08-24 06:08:38 +00:00
if (!closure_10) {
2026-07-29 08:29:29 +00:00
tmp24 = tmp5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj7[1] = tmp24;
2026-08-24 06:08:38 +00:00
items2[7] = containerBorderColor(user(navigateToPremium[51]).UserProfileApplicationRoleConnectionsCard, obj7);
items2[8] = containerBorderColor(navigateToFriends(navigateToPremium[52]), { userId: user.id, navigateToFriends, style: tmp5 });
2026-07-29 08:29:29 +00:00
const obj9 = { userId: user.id, style: null };
let tmp26;
2026-08-24 06:08:38 +00:00
tmp11Result = tmp11(tmp12[53]);
if (!closure_10) {
2026-07-29 08:29:29 +00:00
tmp26 = tmp5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj9[1] = tmp26;
items2[9] = containerBorderColor(tmp11Result, obj9);
obj[1] = items2;
return enabled(navigation, obj);
2026-07-20 16:05:17 +00:00
}, items6);
2026-07-29 08:29:29 +00:00
const items7 = [tmp3.profileContent, stateFromStores1, first, activeProfileTabSection === UserProfileSections.WISHLIST, user.id];
callback5 = obj5.useCallback(() => {
2026-08-24 06:08:38 +00:00
let obj = { style: closure_5.profileContent, children: null };
2026-07-20 16:05:17 +00:00
if (null == stateFromStores1) {
2026-08-24 06:08:38 +00:00
let tmp4Result = containerBorderColor(user(navigateToPremium[54]).WishlistEmptyState, {});
2026-07-29 08:29:29 +00:00
let tmp6 = navigateToPremium;
let tmp4 = containerBorderColor;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp4 = containerBorderColor;
tmp6 = navigateToPremium;
obj = { wishlistId: null, containerWidth: null, isVisible: null };
obj[0] = tmp3;
let tmp8;
if (first > 0) {
tmp8 = first;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp8;
2026-08-24 06:08:38 +00:00
obj[2] = closure_27;
tmp4Result = tmp4(navigateToFriends(navigateToPremium[54]), obj);
const tmp7 = navigateToFriends(navigateToPremium[54]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [tmp4Result, ];
obj = { userId: user.id, wishlistId: tmp3, containerWidth: null };
let tmp15;
if (first > 0) {
tmp15 = first;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = tmp15;
2026-08-24 06:08:38 +00:00
items[1] = tmp4(navigateToFriends(tmp6[55]), obj);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-24 07:16:23 +00:00
return enabled(navigation, obj);
2026-07-20 16:05:17 +00:00
}, items7);
2026-08-12 06:57:52 +00:00
const items8 = [callback4, callback5, handlePageContentSize, tmp19, boardTabIndex, wishlistTabIndex, user.id, activeProfileTabSection, tmp9, containerBackground, containerBorderColor];
2026-07-29 08:29:29 +00:00
const memo = obj5.useMemo(() => {
let obj = { id: "main", label: null, page: null };
2026-08-24 06:08:38 +00:00
const intl = user(navigateToPremium[27]).intl;
obj[1] = intl.string(user(navigateToPremium[27]).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-08-24 06:08:38 +00:00
obj[2] = containerBorderColor(closure_5, obj);
2026-07-20 16:05:17 +00:00
const items = [obj];
2026-08-24 06:08:38 +00:00
if (closure_18) {
2026-07-29 08:29:29 +00:00
obj = { id: "board", label: null, page: null };
2026-08-24 06:08:38 +00:00
const intl2 = tmp(tmp2[27]).intl;
obj[1] = intl2.string(tmp(tmp2[27]).t.laViwx);
obj1 = { scrollEnabled: false, onContentSizeChange: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[1] = function onContentSizeChange(arg0, arg1) {
return callback(closure_19, arg0, arg1);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const obj2 = { userId: null, activeSection: null, isRefreshEnabled: null, containerBackground: null, containerBorderColor: null };
obj2[0] = user.id;
obj2[1] = activeProfileTabSection;
2026-08-24 06:08:38 +00:00
obj2[2] = closure_10;
2026-07-29 08:29:29 +00:00
obj2[3] = containerBackground;
obj2[4] = containerBorderColor;
obj1[2] = tmp3(stateFromStores1, obj2);
obj[2] = tmp3(tmp4, obj1, boardTabIndex);
2026-07-20 16:05:17 +00:00
items.push(obj);
}
2026-07-29 08:29:29 +00:00
const obj3 = { id: "wishlist", label: null, page: null };
2026-08-24 06:08:38 +00:00
const intl3 = tmp(tmp2[27]).intl;
obj3[1] = intl3.string(user(navigateToPremium[27]).t["7lZ31J"]);
obj3[2] = containerBorderColor(closure_5, {
2026-07-20 16:05:17 +00:00
scrollEnabled: false,
onContentSizeChange(arg0, arg1) {
2026-07-29 08:29:29 +00:00
return callback(closure_20, arg0, arg1);
2026-07-20 16:05:17 +00:00
},
children: callback5()
}, wishlistTabIndex);
items.push(obj3);
return items;
}, items8);
2026-08-24 06:08:38 +00:00
let tmp4Result = tmp4(tmp2[56]);
obj = { pageWidth: first, defaultIndex: activeProfileTabSectionIndex, itemSpacing: tmp(tmp2[26]).space.PX_24, items: memo, onPageChange: handleTabChange };
2026-07-29 08:29:29 +00:00
segmentedControlState = tmp4Result.useSegmentedControlState(obj);
2026-08-24 06:08:38 +00:00
tmp4Result = tmp4(tmp2[43]);
2026-07-29 08:29:29 +00:00
const pagerFillHeight = tmp4Result.usePagerFillHeight();
2026-07-20 16:05:17 +00:00
const items9 = [segmentedControlState, restoreActiveIndex];
({ pagerRef, fillHeight, measureFill } = pagerFillHeight);
2026-07-29 08:29:29 +00:00
const layoutEffect = obj5.useLayoutEffect(() => {
2026-07-20 16:05:17 +00:00
restoreActiveIndex(segmentedControlState);
}, items9);
2026-08-24 06:08:38 +00:00
const obj14 = user(navigateToPremium[42]);
const pagesHeightStyle = user(navigateToPremium[43]).usePagesHeightStyle(segmentedControlState, pageHeights.pageHeights, fillHeight);
2026-07-29 08:29:29 +00:00
closure_32 = obj5.useRef(segmentedControlState.setActiveIndex);
2026-07-20 16:05:17 +00:00
const items10 = [segmentedControlState];
2026-07-29 08:29:29 +00:00
const effect1 = obj5.useEffect(() => {
2026-07-23 10:11:24 +00:00
closure_32.current = segmentedControlState.setActiveIndex;
2026-07-20 16:05:17 +00:00
}, items10);
2026-08-24 06:08:38 +00:00
const tmp4Result1 = user(navigateToPremium[43]);
2026-07-20 16:05:17 +00:00
const items11 = [initialTab, navigation, wishlistTabIndex, setActiveProfileTabSection];
2026-08-24 06:08:38 +00:00
const focusEffect = user(navigateToPremium[31]).useFocusEffect(obj5.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (undefined !== initialTab) {
let num = 0;
2026-08-24 06:08:38 +00:00
if (tmp === constants.WISHLIST) {
2026-07-20 16:05:17 +00:00
num = wishlistTabIndex;
}
const _setTimeout = setTimeout;
const timeout = setTimeout(() => {
2026-08-24 06:08:38 +00:00
closure_1_25(closure_1_4 === constants.WISHLIST ? constants.WISHLIST : constants.MAIN);
closure_1_32.current(num, false, true);
closure_1_6.setParams({ initialTab: "r" });
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-08-24 06:08:38 +00:00
let obj = closure_1_6;
if (!closure_1_6.isFocused()) {
2026-07-29 08:29:29 +00:00
const parent = obj.getParent();
let isFocusedResult;
if (parent != null) {
isFocusedResult = parent.isFocused();
}
if (isFocusedResult) {
obj = { initialTab: null };
obj[0] = constants.MAIN;
obj.setParams(obj);
2026-07-20 16:05:17 +00:00
}
}
};
}, items11));
2026-07-29 08:29:29 +00:00
obj = { style, children: null };
obj1 = { style: items12, children: null };
items12 = [tmp3.profileContentWrapper, { paddingTop: 0 }];
const items13 = [containerBorderColor(shouldShowExpiringTrialOfferCard, { user, backgroundColor: avatarBackground, statusStyle: { backgroundColor: statusBackground }, animate: flag }), , , ];
2026-08-12 06:57:52 +00:00
obj2 = { ref, customStatusActivity, hasCustomProfileTheme: tmp11, style: items14, emojiOnlyStyle: tmp3.emojiOnlyCustomStatusBubble, editEnabled: true, placeholderText: labelResult, prompt: obj7 };
2026-07-23 10:11:24 +00:00
items14 = [, ];
2026-08-12 06:57:52 +00:00
({ customStatusBubble: arr16[0], customStatusBubbleInset: arr16[1] } = tmp3);
2026-08-24 06:08:38 +00:00
items13[1] = containerBorderColor(navigateToFriends(navigateToPremium[59]), obj2);
2026-07-29 08:29:29 +00:00
obj3 = { style: items15, children: null };
2026-07-23 10:11:24 +00:00
items15 = [, ];
2026-08-12 06:57:52 +00:00
({ primaryInfo: arr17[0], profileContent: arr17[1] } = tmp3);
2026-07-29 08:29:29 +00:00
obj4 = { 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-08-24 06:08:38 +00:00
const tmp4Result2 = 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-07-29 08:29:29 +00:00
obj4[1] = pronouns;
2026-08-12 06:57:52 +00:00
obj4[2] = arr;
2026-07-29 08:29:29 +00:00
obj4[3] = containerBackground;
obj4[4] = callback;
2026-08-24 06:08:38 +00:00
let intl = tmp4(tmp2[27]).intl;
2026-07-29 08:29:29 +00:00
obj5 = { status: null };
2026-08-24 06:08:38 +00:00
const tmpResult = navigateToFriends(navigateToPremium[60]);
obj5[0] = user(navigateToPremium[61]).getStatusLabel(stateFromStores);
const tmp4Result3 = user(navigateToPremium[61]);
let intl2 = tmp4(tmp2[27]).intl;
obj4[5] = "" + intl.formatToPlainString(user(navigateToPremium[27]).t["er+FRD"], obj5) + ", " + intl2.string(user(navigateToPremium[27]).t.C6COaT);
2026-07-29 08:29:29 +00:00
obj4[6] = UserProfileThemeTypes.YOU_SCREEN;
2026-08-12 06:57:52 +00:00
const items16 = [containerBorderColor(tmpResult, obj4), ];
obj6 = { navigateToProfileCustomization, hasBadges: arr.length > 0, isProfileLoaded: null != tmp6 };
2026-08-24 06:08:38 +00:00
items16[1] = containerBorderColor(closure_18, obj6);
2026-07-29 08:29:29 +00:00
obj3[1] = items16;
items13[2] = enabled(navigation, obj3);
2026-08-12 06:57:52 +00:00
obj7 = { style: { flex: 1 }, onLayout: callback1, children: null };
obj8 = { style: tmp3.profileTablist, children: null };
obj9 = { state: segmentedControlState, variant: null };
2026-07-20 16:05:17 +00:00
let str;
if (null != primaryColor) {
str = "gradient-background";
}
2026-08-12 06:57:52 +00:00
obj10 = { children: null };
obj9[1] = str;
2026-08-24 06:08:38 +00:00
obj8[1] = containerBorderColor(user(navigateToPremium[62]).Tabs, obj9);
2026-08-12 06:57:52 +00:00
const items17 = [containerBorderColor(navigation, obj8), ];
2026-08-24 06:08:38 +00:00
obj11 = { ref: pagerRef, onLayout: measureFill, style: pagesHeightStyle, children: tmp40(tmp4(tmp2[63]).SegmentedControlPages, { state: segmentedControlState }) };
items17[1] = containerBorderColor(navigateToFriends(navigateToPremium[57]).View, obj11);
2026-08-12 06:57:52 +00:00
obj7[2] = items17;
items13[3] = enabled(navigation, obj7);
2026-07-29 08:29:29 +00:00
obj1[1] = items13;
2026-08-12 06:57:52 +00:00
obj10[0] = enabled(navigation, obj1);
2026-08-24 06:08:38 +00:00
obj[1] = containerBorderColor(user(navigateToPremium[58]).LayerScope, obj10);
return containerBorderColor(navigateToFriends(navigateToPremium[57]).View, obj);
2026-07-20 16:05:17 +00:00
};