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

511 lines
21 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 15545
// Function ID: 119662
2026-07-20 16:05:17 +00:00
// Name: YouAvatar
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 27, 1340, 4811, 5630, 8043, 5510, 1345, 33, 15538, 15157, 477, 8042, 8017, 11989, 11990, 8045, 8320, 1334, 8379, 11919, 4544, 9034, 689, 1212, 15546, 1457, 7922, 8018, 8033, 566, 1324, 8015, 8019, 12217, 15547, 12103, 12109, 12110, 11905, 15548, 12113, 14725, 11921, 11890, 7582, 12119, 15550, 11976, 12124, 12131, 8162, 3992, 5449, 11901, 8317, 8254, 11645, 8685, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 15545 (YouAvatar)
2026-07-24 07:16:23 +00:00
import getStatusLabel from "getStatusLabel";
import initialize from "initialize";
import get_ActivityIndicator from "Link";
2026-07-23 10:11:24 +00:00
import { useIsContentShown } from "_isNativeReflectConstruct";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_9 from "_isNativeReflectConstruct";
import { UserProfileSections } from "USER_PROFILE_TOOLTIP_DELAY";
import { UserProfileThemeTypes } from "ARBITRARY_LARGE_OFFSET";
import { ContentDismissActionType } from "ContentDismissActionType";
2026-07-24 07:16:23 +00:00
import jsxProd from "useProfileTheme";
2026-07-23 10:11:24 +00:00
let closure_13;
let closure_14;
let closure_15;
let closure_5;
let closure_6;
const require = arg1;
2026-07-20 16:05:17 +00:00
function YouAvatar(arg0) {
const callback = React.useCallback(() => {
2026-07-23 10:11:24 +00:00
const result = outer1_0(outer1_2[10]).trackYouTabAvatarPress();
const obj = outer1_0(outer1_2[10]);
const result1 = outer1_0(outer1_2[11]).showYouAccountActionSheet();
2026-07-20 16:05:17 +00:00
}, []);
2026-07-23 10:11:24 +00:00
let obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
const isAndroidResult = obj.isAndroid();
obj = {};
const merged = Object.assign(arg0);
obj["onPress"] = callback;
obj["importantForAccessibility"] = "no-hide-descendants";
obj["accessibilityElementsHidden"] = isAndroidResult;
obj["accessible"] = !isAndroidResult && undefined;
2026-07-25 08:10:48 +00:00
return closure_13(importDefault(8042), obj);
2026-07-20 16:05:17 +00:00
}
function YouScreenWidgetsBoardContainer(containerBackground) {
let activeSection;
let containerBorderColor;
let isRefreshEnabled;
let userId;
containerBackground = containerBackground.containerBackground;
2026-07-23 10:11:24 +00:00
({ userId, activeSection, isRefreshEnabled, containerBorderColor } = containerBackground);
2026-07-25 08:10:48 +00:00
const tmp = importDefault(8017)();
2026-07-20 16:05:17 +00:00
const items = [tmp.card, ];
if (isRefreshEnabled) {
let obj = { backgroundColor: containerBackground, borderColor: containerBorderColor, borderWidth: 1 };
items[1] = obj;
let tmp2 = items;
} else {
obj = { backgroundColor: containerBackground };
items[1] = obj;
tmp2 = items;
}
2026-07-24 07:16:23 +00:00
obj = { style: tmp.profileContent };
2026-07-25 08:10:48 +00:00
const items1 = [callback2(importDefault(11989), {}), ];
2026-07-24 07:16:23 +00:00
const obj1 = { userId, isVisible: activeSection === UserProfileSections.WIDGETS, cardStyle: tmp2 };
2026-07-25 08:10:48 +00:00
items1[1] = callback2(importDefault(11990), obj1);
2026-07-24 07:16:23 +00:00
obj.children = items1;
return callback3(closure_6, obj);
2026-07-20 16:05:17 +00:00
}
function EditSection(navigateToProfileCustomization) {
navigateToProfileCustomization = navigateToProfileCustomization.navigateToProfileCustomization;
let dependencyMap;
let callback;
2026-07-25 08:10:48 +00:00
let obj = navigateToProfileCustomization(8045);
2026-07-20 16:05:17 +00:00
const trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
const ref = React.useRef(null);
2026-07-25 08:10:48 +00:00
let obj1 = navigateToProfileCustomization(8320);
2026-07-20 16:05:17 +00:00
const isDisplayNameStylesFlywheelSettersEnabled = obj1.useIsDisplayNameStylesFlywheelSettersEnabled("YouScreenUserProfileContent");
2026-07-25 08:10:48 +00:00
const tmp = trackUserProfileAction(8017)();
navigateToProfileCustomization(8379);
2026-07-20 16:05:17 +00:00
if (isDisplayNameStylesFlywheelSettersEnabled) {
if (!tmp4) {
2026-07-23 10:11:24 +00:00
let items = [navigateToProfileCustomization(1334).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK];
2026-07-20 16:05:17 +00:00
}
const tmp10 = callback(tmp6(items), 2);
dependencyMap = tmp11;
2026-07-23 10:11:24 +00:00
const tmp14 = tmp10[0] === navigateToProfileCustomization(1334).DismissibleContent.DISPLAY_NAME_STYLES_FLYWHEEL_MOBILE_PROFILE_COACHMARK;
2026-07-20 16:05:17 +00:00
callback = tmp14;
const items1 = [navigateToProfileCustomization, trackUserProfileAction, tmp14, tmp10[1]];
obj = {};
callback = React.useCallback(() => {
trackUserProfileAction({ action: "EDIT_PROFILE" });
2026-07-23 10:11:24 +00:00
const result = navigateToProfileCustomization(_undefined[10]).trackYouTabEditProfilePress();
2026-07-20 16:05:17 +00:00
navigateToProfileCustomization();
2026-07-23 10:11:24 +00:00
if (c3) {
_undefined(outer1_12.TAKE_ACTION);
2026-07-20 16:05:17 +00:00
}
}, items1);
obj = { style: tmp.primaryButtons };
obj1 = { ref, variant: "primary" };
2026-07-23 10:11:24 +00:00
const obj2 = { size: "sm", color: trackUserProfileAction(689).colors.WHITE };
2026-07-25 08:10:48 +00:00
obj1.icon = callback2(navigateToProfileCustomization(9034).PencilIcon, obj2);
2026-07-23 10:11:24 +00:00
const intl = navigateToProfileCustomization(1212).intl;
obj1.text = intl.string(navigateToProfileCustomization(1212).t.AAjhgi);
2026-07-20 16:05:17 +00:00
obj1.onPress = callback;
obj1.grow = true;
2026-07-25 08:10:48 +00:00
obj.secondaryButton = callback2(navigateToProfileCustomization(4544).Button, obj1);
const items2 = [callback2(trackUserProfileAction(11919), obj), ];
2026-07-20 16:05:17 +00:00
const obj3 = { targetRef: ref, visible: tmp14, markAsDismissed: tmp10[1] };
2026-07-25 08:10:48 +00:00
items2[1] = callback2(trackUserProfileAction(15546), obj3);
2026-07-20 16:05:17 +00:00
obj.children = items2;
2026-07-24 07:16:23 +00:00
return callback3(closure_15, obj);
2026-07-20 16:05:17 +00:00
}
items = [];
}
2026-07-23 10:11:24 +00:00
({ ScrollView: closure_5, View: closure_6 } = get_ActivityIndicator);
2026-07-24 07:16:23 +00:00
({ jsx: closure_13, jsxs: closure_14, Fragment: closure_15 } = jsxProd);
2026-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").fileFinishedImporting("modules/user_profile/native/YouScreenUserProfileContent.tsx");
2026-07-20 16:05:17 +00:00
export default function YouScreenUserProfileContent(user) {
let activeProfileTabSectionIndex;
let avatarBackground;
let fillHeight;
let handleTabChange;
let measureFill;
let navigateToProfileCustomization;
let pagerRef;
let secondaryColor;
let statusBackground;
let style;
let theme;
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-07-23 10:11:24 +00:00
let c5;
2026-07-20 16:05:17 +00:00
let navigation;
2026-07-23 10:11:24 +00:00
let trackUserProfileAction;
let c8;
let customStatusActivity;
2026-07-20 16:05:17 +00:00
let UserProfileSections;
let UserProfileThemeTypes;
2026-07-23 10:11:24 +00:00
let containerBackground;
2026-07-20 16:05:17 +00:00
let containerBorderColor;
let enabled;
2026-07-23 10:11:24 +00:00
let c15;
let shouldShowExpiringTrialOfferCard;
let stateFromStores1;
let c18;
2026-07-20 16:05:17 +00:00
let boardTabIndex;
let wishlistTabIndex;
let first1;
2026-07-23 10:11:24 +00:00
let closure_22;
2026-07-20 16:05:17 +00:00
let handlePageContentSize;
let activeProfileTabSection;
let setActiveProfileTabSection;
let restoreActiveIndex;
2026-07-23 10:11:24 +00:00
let c27;
2026-07-20 16:05:17 +00:00
let callback3;
let callback4;
let callback5;
let segmentedControlState;
2026-07-23 10:11:24 +00:00
let closure_32;
const tmp = navigateToFriends(navigateToPremium[14])();
c5 = tmp;
2026-07-24 07:16:23 +00:00
let obj = user(navigateToPremium[27]);
2026-07-20 16:05:17 +00:00
navigation = obj.useNavigation();
2026-07-24 07:16:23 +00:00
let obj1 = user(navigateToPremium[17]);
2026-07-23 10:11:24 +00:00
trackUserProfileAction = obj1.useUserProfileAnalyticsContext().trackUserProfileAction;
2026-07-24 07:16:23 +00:00
let tmp3 = navigateToFriends(navigateToPremium[28])(user.id);
2026-07-23 10:11:24 +00:00
c8 = tmp3;
2026-07-24 07:16:23 +00:00
let obj2 = user(navigateToPremium[29]);
2026-07-23 10:11:24 +00:00
customStatusActivity = obj2.useCustomStatusActivity();
2026-07-24 07:16:23 +00:00
let obj3 = user(navigateToPremium[31]);
2026-07-23 10:11:24 +00:00
let items = [c8];
const stateFromStores = obj3.useStateFromStores(items, () => _undefined2.getStatus());
2026-07-24 07:16:23 +00:00
let tmp7 = navigateToFriends(navigateToPremium[32])("YouScreenUserProfileContent");
2026-07-20 16:05:17 +00:00
UserProfileSections = tmp7;
2026-07-24 07:16:23 +00:00
const tmp8 = navigateToFriends(navigateToPremium[33])({ user, displayProfile: tmp3 });
2026-07-20 16:05:17 +00:00
const primaryColor = tmp8.primaryColor;
UserProfileThemeTypes = tmp9;
({ theme, secondaryColor } = tmp8);
2026-07-24 07:16:23 +00:00
let obj4 = user(navigateToPremium[34]);
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;
({ avatarBackground, statusBackground } = userProfileColors);
2026-07-23 10:11:24 +00:00
let items1 = [trackUserProfileAction];
2026-07-24 07:16:23 +00:00
let tmp5 = navigateToFriends(navigateToPremium[30])(tmp3);
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" });
const result = user(navigateToPremium[11]).showYouAccountActionSheet();
}, items1);
2026-07-24 07:16:23 +00:00
let obj5 = user(navigateToPremium[35]);
2026-07-20 16:05:17 +00:00
enabled = obj5.useVirtualCurrencyMobileEnabled().enabled;
2026-07-23 10:11:24 +00:00
const tmp13 = navigateToShop(initialTab.useState(null), 2);
2026-07-20 16:05:17 +00:00
const first = tmp13[0];
2026-07-23 10:11:24 +00:00
c15 = tmp14;
2026-07-24 07:16:23 +00:00
let obj7 = user(navigateToPremium[36]);
2026-07-23 10:11:24 +00:00
shouldShowExpiringTrialOfferCard = obj7.useShouldShowExpiringTrialOfferCard();
2026-07-24 07:16:23 +00:00
let obj8 = user(navigateToPremium[31]);
2026-07-23 10:11:24 +00:00
let items2 = [customStatusActivity];
stateFromStores1 = obj8.useStateFromStores(items2, () => customStatusActivity.getFirstWishlistId(user.id));
2026-07-24 07:16:23 +00:00
let obj9 = user(navigateToPremium[37]);
2026-07-23 10:11:24 +00:00
let tmp17 = obj9.useDisplayableBoardWidgets(user.id).length > 0;
c18 = tmp17;
2026-07-24 07:16:23 +00:00
let obj10 = user(navigateToPremium[38]);
2026-07-20 16:05:17 +00:00
const profileTabIndices = obj10.useProfileTabIndices(tmp17, true);
boardTabIndex = profileTabIndices.boardTabIndex;
wishlistTabIndex = profileTabIndices.wishlistTabIndex;
2026-07-23 10:11:24 +00:00
let tmp19 = navigateToShop(initialTab.useState(0), 2);
2026-07-20 16:05:17 +00:00
first1 = tmp19[0];
2026-07-23 10:11:24 +00:00
closure_22 = tmp19[1];
const callback1 = initialTab.useCallback((nativeEvent) => {
2026-07-20 16:05:17 +00:00
callback(nativeEvent.nativeEvent.layout.width);
}, []);
2026-07-24 07:16:23 +00:00
let obj11 = user(navigateToPremium[39]);
2026-07-20 16:05:17 +00:00
const pageHeights = obj11.usePageHeights();
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-07-23 10:11:24 +00:00
const ref = initialTab.useRef(null);
2026-07-24 07:16:23 +00:00
const profileSectionTabs = user(navigateToPremium[38]).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-07-23 10:11:24 +00:00
c27 = tmp25;
const items4 = [customStatusActivity, tmp13[1]];
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-07-24 07:16:23 +00:00
tmp2 = navigateToFriends(navigateToPremium[40])();
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-23 10:11:24 +00:00
outer1_28();
2026-07-20 16:05:17 +00:00
});
}, items5);
let labelResult;
if (null != first) {
labelResult = first.label();
}
const items6 = [containerBackground, containerBorderColor, tmp7, tmp, navigateToPremium, shouldShowExpiringTrialOfferCard, navigateToShop, null != primaryColor, enabled, user, tmp3, navigateToFriends];
2026-07-23 10:11:24 +00:00
callback4 = initialTab.useCallback(() => {
const items = [_undefined.card, ];
if (c10) {
2026-07-20 16:05:17 +00:00
let obj = { backgroundColor: containerBackground, borderColor: containerBorderColor, borderWidth: 1 };
items[1] = obj;
let tmp2 = items;
} else {
obj = { backgroundColor: containerBackground };
items[1] = obj;
tmp2 = items;
}
obj = { style: items1 };
2026-07-23 10:11:24 +00:00
items1 = [_undefined.cards, _undefined.profileContent];
2026-07-20 16:05:17 +00:00
const obj1 = { navigateToPremium, style: tmp2 };
2026-07-24 07:16:23 +00:00
const items2 = [containerBorderColor(navigateToFriends(navigateToPremium[41]), obj1), , , , , , , , , ];
2026-07-20 16:05:17 +00:00
let tmp7 = !shouldShowExpiringTrialOfferCard;
if (tmp7) {
2026-07-23 10:11:24 +00:00
const obj2 = { navigateToPremium, navigateToShop, hasCustomProfileTheme: c11 };
2026-07-24 07:16:23 +00:00
tmp7 = containerBorderColor(navigateToFriends(navigateToPremium[42]), obj2);
2026-07-20 16:05:17 +00:00
}
items2[1] = tmp7;
let tmp14 = enabled;
if (enabled) {
const obj3 = { style: tmp2 };
2026-07-24 07:16:23 +00:00
tmp14 = containerBorderColor(navigateToFriends(navigateToPremium[43]), obj3);
2026-07-20 16:05:17 +00:00
}
items2[2] = tmp14;
const obj4 = { user, currentUser: user, style: tmp2 };
2026-07-24 07:16:23 +00:00
items2[3] = containerBorderColor(navigateToFriends(navigateToPremium[44]), obj4);
2026-07-23 10:11:24 +00:00
const obj5 = { userId: user.id, displayProfile: c8 };
2026-07-20 16:05:17 +00:00
let tmp20;
2026-07-23 10:11:24 +00:00
if (!c10) {
2026-07-20 16:05:17 +00:00
tmp20 = tmp2;
}
obj5.style = tmp20;
2026-07-24 07:16:23 +00:00
items2[4] = containerBorderColor(navigateToFriends(navigateToPremium[45]), obj5);
2026-07-23 10:11:24 +00:00
let tmp21 = c10;
if (c10) {
2026-07-24 07:16:23 +00:00
tmp21 = containerBorderColor(navigateToFriends(navigateToPremium[46]), {});
2026-07-20 16:05:17 +00:00
}
items2[5] = tmp21;
const obj6 = { userId: user.id };
let tmp26;
2026-07-23 10:11:24 +00:00
if (!c10) {
2026-07-20 16:05:17 +00:00
tmp26 = tmp2;
}
obj6.style = tmp26;
2026-07-24 07:16:23 +00:00
items2[6] = containerBorderColor(user(navigateToPremium[47]).UserProfileAccountConnectionsCard, obj6);
2026-07-20 16:05:17 +00:00
const obj7 = { userId: user.id };
let tmp28;
2026-07-23 10:11:24 +00:00
if (!c10) {
2026-07-20 16:05:17 +00:00
tmp28 = tmp2;
}
obj7.style = tmp28;
2026-07-24 07:16:23 +00:00
items2[7] = containerBorderColor(user(navigateToPremium[47]).UserProfileApplicationRoleConnectionsCard, obj7);
2026-07-20 16:05:17 +00:00
const obj8 = { userId: user.id, navigateToFriends, style: tmp2 };
2026-07-24 07:16:23 +00:00
items2[8] = containerBorderColor(navigateToFriends(navigateToPremium[48]), obj8);
2026-07-20 16:05:17 +00:00
const obj9 = { userId: user.id };
let tmp31;
const tmp18 = containerBorderColor;
2026-07-24 07:16:23 +00:00
const tmp19 = navigateToFriends(navigateToPremium[45]);
2026-07-20 16:05:17 +00:00
const tmp25 = containerBorderColor;
const tmp27 = containerBorderColor;
const tmp29 = containerBorderColor;
2026-07-24 07:16:23 +00:00
const tmp5 = enabled;
2026-07-20 16:05:17 +00:00
const tmp6 = navigation;
2026-07-23 10:11:24 +00:00
if (!c10) {
2026-07-20 16:05:17 +00:00
tmp31 = tmp2;
}
obj9.style = tmp31;
2026-07-24 07:16:23 +00:00
items2[9] = tmp29(navigateToFriends(navigateToPremium[49]), obj9);
2026-07-20 16:05:17 +00:00
obj.children = items2;
return tmp5(tmp6, obj);
}, items6);
2026-07-23 10:11:24 +00:00
const items7 = [tmp.profileContent, stateFromStores1, first1, activeProfileTabSection === UserProfileSections.WISHLIST, user.id];
callback5 = initialTab.useCallback(() => {
let obj = { style: _undefined.profileContent };
2026-07-20 16:05:17 +00:00
if (null == stateFromStores1) {
2026-07-24 07:16:23 +00:00
let tmp3Result = containerBorderColor(user(navigateToPremium[50]).WishlistEmptyState, {});
2026-07-20 16:05:17 +00:00
} else {
obj = { wishlistId: stateFromStores1 };
let tmp9;
if (first1 > 0) {
tmp9 = first1;
}
obj.containerWidth = tmp9;
2026-07-23 10:11:24 +00:00
obj.isVisible = c27;
2026-07-24 07:16:23 +00:00
tmp3Result = containerBorderColor(navigateToFriends(navigateToPremium[50]), obj);
2026-07-20 16:05:17 +00:00
const tmp3 = containerBorderColor;
2026-07-24 07:16:23 +00:00
const tmp6 = navigateToFriends(navigateToPremium[50]);
2026-07-20 16:05:17 +00:00
}
const items = [tmp3Result, ];
obj = { userId: user.id, wishlistId: stateFromStores1 };
let tmp17;
if (first1 > 0) {
tmp17 = first1;
}
obj.containerWidth = tmp17;
2026-07-24 07:16:23 +00:00
items[1] = containerBorderColor(navigateToFriends(navigateToPremium[51]), obj);
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-24 07:16:23 +00:00
return enabled(navigation, obj);
2026-07-20 16:05:17 +00:00
}, items7);
2026-07-23 10:11:24 +00:00
const items8 = [callback4, callback5, handlePageContentSize, tmp17, boardTabIndex, wishlistTabIndex, user.id, activeProfileTabSection, tmp7, containerBackground, containerBorderColor];
const memo = initialTab.useMemo(() => {
2026-07-20 16:05:17 +00:00
let obj = { id: "main" };
2026-07-24 07:16:23 +00:00
const intl = user(navigateToPremium[25]).intl;
obj.label = intl.string(user(navigateToPremium[25]).t.LXw470);
2026-07-20 16:05:17 +00:00
obj = {
scrollEnabled: false,
onContentSizeChange(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return outer1_23(0, arg0, arg1);
2026-07-20 16:05:17 +00:00
},
children: callback4()
};
2026-07-23 10:11:24 +00:00
obj.page = containerBorderColor(c5, obj);
2026-07-20 16:05:17 +00:00
const items = [obj];
2026-07-23 10:11:24 +00:00
if (c18) {
2026-07-20 16:05:17 +00:00
obj = { id: "board" };
2026-07-24 07:16:23 +00:00
const intl2 = user(navigateToPremium[25]).intl;
obj.label = intl2.string(user(navigateToPremium[25]).t.laViwx);
2026-07-20 16:05:17 +00:00
const obj1 = {
scrollEnabled: false,
onContentSizeChange(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return outer1_23(outer1_19, arg0, arg1);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
const obj2 = { userId: user.id, activeSection: activeProfileTabSection, isRefreshEnabled: c10, containerBackground, containerBorderColor };
2026-07-20 16:05:17 +00:00
obj1.children = containerBorderColor(stateFromStores1, obj2);
2026-07-23 10:11:24 +00:00
obj.page = containerBorderColor(c5, obj1, boardTabIndex);
2026-07-20 16:05:17 +00:00
items.push(obj);
}
const obj3 = { id: "wishlist" };
2026-07-24 07:16:23 +00:00
const intl3 = user(navigateToPremium[25]).intl;
obj3.label = intl3.string(user(navigateToPremium[25]).t["7lZ31J"]);
2026-07-23 10:11:24 +00:00
obj3.page = containerBorderColor(c5, {
2026-07-20 16:05:17 +00:00
scrollEnabled: false,
onContentSizeChange(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return outer1_23(outer1_20, arg0, arg1);
2026-07-20 16:05:17 +00:00
},
children: callback5()
}, wishlistTabIndex);
items.push(obj3);
return items;
}, items8);
2026-07-24 07:16:23 +00:00
const obj13 = user(navigateToPremium[38]);
obj = { pageWidth: first1, defaultIndex: activeProfileTabSectionIndex, itemSpacing: navigateToFriends(navigateToPremium[24]).space.PX_24, items: memo, onPageChange: handleTabChange };
segmentedControlState = user(navigateToPremium[52]).useSegmentedControlState(obj);
const obj14 = user(navigateToPremium[52]);
const pagerFillHeight = user(navigateToPremium[39]).usePagerFillHeight();
2026-07-20 16:05:17 +00:00
const items9 = [segmentedControlState, restoreActiveIndex];
({ pagerRef, fillHeight, measureFill } = pagerFillHeight);
2026-07-23 10:11:24 +00:00
const layoutEffect = initialTab.useLayoutEffect(() => {
2026-07-20 16:05:17 +00:00
restoreActiveIndex(segmentedControlState);
}, items9);
2026-07-24 07:16:23 +00:00
const obj16 = user(navigateToPremium[39]);
const pagesHeightStyle = user(navigateToPremium[39]).usePagesHeightStyle(segmentedControlState, pageHeights.pageHeights, fillHeight);
2026-07-23 10:11:24 +00:00
closure_32 = initialTab.useRef(segmentedControlState.setActiveIndex);
2026-07-20 16:05:17 +00:00
const items10 = [segmentedControlState];
2026-07-23 10:11:24 +00:00
const effect1 = initialTab.useEffect(() => {
closure_32.current = segmentedControlState.setActiveIndex;
2026-07-20 16:05:17 +00:00
}, items10);
2026-07-24 07:16:23 +00:00
const obj17 = user(navigateToPremium[39]);
2026-07-20 16:05:17 +00:00
const items11 = [initialTab, navigation, wishlistTabIndex, setActiveProfileTabSection];
2026-07-24 07:16:23 +00:00
const focusEffect = user(navigateToPremium[27]).useFocusEffect(initialTab.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (undefined !== initialTab) {
let num = 0;
2026-07-23 10:11:24 +00:00
if (initialTab === _undefined3.WISHLIST) {
2026-07-20 16:05:17 +00:00
num = wishlistTabIndex;
}
const _setTimeout = setTimeout;
const timeout = setTimeout(() => {
2026-07-23 10:11:24 +00:00
if (outer1_4 === constants.WISHLIST) {
2026-07-20 16:05:17 +00:00
let MAIN = constants.WISHLIST;
} else {
MAIN = constants.MAIN;
}
2026-07-23 10:11:24 +00:00
outer1_25(MAIN);
outer1_32.current(num, false, true);
outer1_6.setParams({ initialTab: undefined });
2026-07-20 16:05:17 +00:00
}, 80);
}
return () => {
if (null != closure_0) {
const _clearTimeout = clearTimeout;
clearTimeout(closure_0);
}
2026-07-23 10:11:24 +00:00
if (!outer1_6.isFocused()) {
const parent = outer1_6.getParent();
2026-07-20 16:05:17 +00:00
if (tmp5) {
const obj = { initialTab: constants.MAIN };
2026-07-23 10:11:24 +00:00
outer1_6.setParams(obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp5 = null != parent && parent.isFocused();
2026-07-20 16:05:17 +00:00
}
};
}, items11));
obj = { style };
obj1 = {};
obj2 = { style: items12 };
2026-07-23 10:11:24 +00:00
items12 = [tmp.profileContentWrapper, { paddingTop: 0 }];
2026-07-20 16:05:17 +00:00
obj3 = { user, backgroundColor: avatarBackground, statusStyle: { backgroundColor: statusBackground }, animate: flag };
2026-07-23 10:11:24 +00:00
const items13 = [containerBorderColor(shouldShowExpiringTrialOfferCard, obj3), , , ];
2026-07-20 16:05:17 +00:00
obj4 = { ref, customStatusActivity, hasCustomProfileTheme: tmp9, style: items14, emojiOnlyStyle: tmp.emojiOnlyCustomStatusBubble, editEnabled: true };
2026-07-23 10:11:24 +00:00
items14 = [, ];
({ customStatusBubble: arr15[0], customStatusBubbleInset: arr15[1] } = tmp);
2026-07-20 16:05:17 +00:00
obj4.placeholderText = labelResult;
obj4.prompt = first;
2026-07-24 07:16:23 +00:00
items13[1] = containerBorderColor(navigateToFriends(navigateToPremium[55]), obj4);
2026-07-20 16:05:17 +00:00
obj5 = { style: items15 };
2026-07-23 10:11:24 +00:00
items15 = [, ];
({ primaryInfo: arr16[0], profileContent: arr16[1] } = tmp);
let obj6 = { user };
2026-07-20 16:05:17 +00:00
let pronouns;
2026-07-24 07:16:23 +00:00
const obj18 = user(navigateToPremium[27]);
2026-07-20 16:05:17 +00:00
const tmp38 = containerBorderColor;
const tmp39 = containerBorderColor;
2026-07-24 07:16:23 +00:00
const tmp40 = enabled;
2026-07-20 16:05:17 +00:00
const tmp41 = navigation;
2026-07-24 07:16:23 +00:00
const tmp42 = enabled;
2026-07-20 16:05:17 +00:00
const tmp43 = navigation;
const tmp44 = containerBorderColor;
if (null != tmp3) {
pronouns = tmp3.pronouns;
}
obj6.pronouns = pronouns;
obj6.badges = tmp5;
obj6.badgeContainerBackground = containerBackground;
obj6.onPressDisplayName = callback;
2026-07-24 07:16:23 +00:00
let intl = user(navigateToPremium[25]).intl;
2026-07-20 16:05:17 +00:00
obj7 = {};
2026-07-24 07:16:23 +00:00
const tmp45 = navigateToFriends(navigateToPremium[56]);
obj7.status = user(navigateToPremium[57]).getStatusLabel(stateFromStores);
const obj27 = user(navigateToPremium[57]);
let intl2 = user(navigateToPremium[25]).intl;
obj6.displayNameAccessibilityHint = "" + intl.formatToPlainString(user(navigateToPremium[25]).t["er+FRD"], obj7) + ", " + intl2.string(user(navigateToPremium[25]).t.C6COaT);
2026-07-20 16:05:17 +00:00
obj6.themeType = UserProfileThemeTypes.YOU_SCREEN;
obj6.showChevron = true;
2026-07-23 10:11:24 +00:00
const items16 = [tmp44(tmp45, obj6), containerBorderColor(c18, { navigateToProfileCustomization })];
2026-07-20 16:05:17 +00:00
obj5.children = items16;
items13[2] = tmp42(tmp43, obj5);
obj8 = { style: { flex: 1 }, onLayout: callback1 };
obj9 = { style: tmp.profileTablist };
obj10 = { state: segmentedControlState };
let str;
if (null != primaryColor) {
str = "gradient-background";
}
obj10.variant = str;
2026-07-24 07:16:23 +00:00
obj9.children = containerBorderColor(user(navigateToPremium[58]).Tabs, obj10);
2026-07-20 16:05:17 +00:00
const items17 = [containerBorderColor(navigation, obj9), ];
2026-07-24 07:16:23 +00:00
obj11 = { ref: pagerRef, onLayout: measureFill, style: pagesHeightStyle, children: containerBorderColor(user(navigateToPremium[59]).SegmentedControlPages, { state: segmentedControlState }) };
items17[1] = containerBorderColor(navigateToFriends(navigateToPremium[53]).View, obj11);
2026-07-20 16:05:17 +00:00
obj8.children = items17;
2026-07-24 07:16:23 +00:00
items13[3] = enabled(navigation, obj8);
2026-07-20 16:05:17 +00:00
obj2.children = items13;
obj1.children = tmp40(tmp41, obj2);
2026-07-24 07:16:23 +00:00
obj.children = tmp39(user(navigateToPremium[54]).LayerScope, obj1);
return tmp38(navigateToFriends(navigateToPremium[53]).View, obj);
2026-07-20 16:05:17 +00:00
};