Files
discord-decomp/sources/modules/user_profile/native/YouScreenUserProfileContent.tsx
T
2026-07-27 16:20:00 +03:00

378 lines
24 KiB
TypeScript

/* Metro module 14916; source: modules/user_profile/native/YouScreenUserProfileContent.tsx; dependencies: [57, 31, 27, 6876, 5189, 8516, 6816, 1376, 33, 14911, 14746, 477, 8510, 8496, 8514, 7013, 1365, 8867, 4578, 9646, 697, 1244, 14917, 1485, 8490, 6882, 8501, 566, 1357, 8494, 8497, 4127, 14918, 10345, 5176, 8524, 14919, 10352, 14239, 10210, 8762, 7331, 10361, 14921, 10327, 10373, 8853, 4017, 6517, 8513, 8695, 9122, 8859, 8861, 2] */
function _fun112836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:6, offset: 0x023ddcd5, size: 328 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.ScrollView;
const env0_6 = value.View;
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
const userProfileStore = importDefault(5189) /* metro dependency 5189: UserProfileStore */;
const env0_9 = (require(8516) /* metro dependency 8516: Constants */).UserProfileSections;
const env0_10 = (require(6816) /* metro dependency 6816: Constants */).UserProfileThemeTypes;
const env0_11 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.Fragment;
const env0_14 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/YouScreenUserProfileContent.tsx');
exports.default = YouScreenUserProfileContent;
}
function YouAvatar_112837(a0) { // fn#112837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:307, offset: 0x023dde1d, size: 153 bytes, params: 2, frame: 16
const value2 = env0_4.useCallback(_fun112838, []);
const value3 = undefined;
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
return ((Component) => <Component {...a0} {...{['onPress']: value2}} {...{['importantForAccessibility']: 'no-hide-descendants'}} {...{['accessibilityElementsHidden']: isAndroid2}} {...{['accessible']: !isAndroid2 && value3}} />)(importDefault(8510) /* metro dependency 8510: UserProfileAvatar */);
}
function EditSection_112839({navigateToProfileCustomization}) { // fn#112839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:590, offset: 0x023ddef1, size: 538 bytes, params: 2, frame: 31
const value2 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
const userProfileAnalyticsContextModule = require(8514) /* metro dependency 8514: UserProfileAnalyticsContext */;
const useUserProfileAnalyticsContext = userProfileAnalyticsContextModule.useUserProfileAnalyticsContext;
const trackUserProfileAction = Reflect.apply(useUserProfileAnalyticsContext, userProfileAnalyticsContextModule,
[]).trackUserProfileAction;
const value3 = env0_4.useRef(null);
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
const useSelectedDismissibleContent = useSelectedDismissibleContentModule.useSelectedDismissibleContent;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
let DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP = DismissibleContent.DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP;
const value5 = env0_3(Reflect.apply(useSelectedDismissibleContent, useSelectedDismissibleContentModule,
[[DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP]]), 2);
const property = value5[0];
const property2 = value5[1];
DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP = DismissibleContent.DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP;
const value6 = property === DISPLAY_NAME_STYLES_MOBILE_PROFILE_TOOLTIP;
const value7 = env0_4.useCallback(_fun112840, [navigateToProfileCustomization, trackUserProfileAction, value6,
property2]);
const jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
const UserProfileTextButtonGroup = importDefault(8867) /* metro dependency 8867: UserProfileTextButtonGroup */;
const primaryButtons = value2.primaryButtons;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const object = {ref: value3, variant: 'primary'};
const PencilIcon = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object.icon = <PencilIcon size="sm" color={WHITE} />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const AAjhgi = (require(1244) /* metro dependency 1244: indexNative */).t.AAjhgi;
object.text = Reflect.apply(string, intl, [AAjhgi]);
object.onPress = value7;
object.grow = true;
return (
<>
<UserProfileTextButtonGroup style={primaryButtons} secondaryButton={<Button {...object} />} />
{((Component) => <Component targetRef={value3} visible={value6} markAsDismissed={property2} />)(importDefault(14917) /* metro dependency 14917: DisplayNameStylesCoachmark */)}
</>
);
}
function YouScreenUserProfileContent({user, style, navigateToProfileCustomization, navigateToFriends, navigateToPremium, navigateToShop, initialTab, animateAvatar}) { // fn#112841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:1499, offset: 0x023de168, size: 2298 bytes, params: 2, frame: 58
var object3;
const env0_3 = navigateToShop;
const env0_4 = initialTab;
animateAvatar = animateAvatar === undefined || animateAvatar;
const value4 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
const value5 = (require(1485) /* metro dependency 1485 */).useNavigation();
const userProfileAnalyticsContextModule = require(8514) /* metro dependency 8514: UserProfileAnalyticsContext */;
const useUserProfileAnalyticsContext = userProfileAnalyticsContextModule.useUserProfileAnalyticsContext;
const trackUserProfileAction = Reflect.apply(useUserProfileAnalyticsContext, userProfileAnalyticsContextModule,
[]).trackUserProfileAction;
const value6 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(user.id);
const value7 = (require(6882) /* metro dependency 6882: userSettingToActivity */).useCustomStatusActivity();
const value8 = (importDefault(8501) /* metro dependency 8501: useBadges */)(value6);
const status = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelfPresenceStore], function() {
return SelfPresenceStore.getStatus();
});
const value9 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('YouScreenUserProfileContent');
const {theme, primaryColor,
secondaryColor} = (importDefault(8494) /* metro dependency 8494: useProfileTheme */)({user: user,
displayProfile: value6});
const value11 = primaryColor != null;
const {containerBackground, containerBorderColor, avatarBackground,
statusBackground} = (require(8497) /* metro dependency 8497: useUserProfileColors */).useUserProfileColors({theme: theme,
primaryColor: primaryColor, secondaryColor: secondaryColor});
let binding = env0_4;
const value13 = binding.useRef(null);
binding = env0_4;
let useCallback = binding.useCallback;
const value14 = Reflect.apply(useCallback, binding, [_fun112843, [trackUserProfileAction]]);
const useVirtualCurrencyMobileEnabledModule = require(4127) /* metro dependency 4127: useVirtualCurrencyMobileEnabled */;
const useVirtualCurrencyMobileEnabled = useVirtualCurrencyMobileEnabledModule.useVirtualCurrencyMobileEnabled;
const enabled = Reflect.apply(useVirtualCurrencyMobileEnabled, useVirtualCurrencyMobileEnabledModule, []).enabled;
binding = env0_4;
let useState = binding.useState;
const value16 = env0_3(Reflect.apply(useState, binding, [null]), 2);
let property = value16[0];
const property2 = value16[1];
const value19 = (require(14918) /* metro dependency 14918: useShouldShowExpiringTrialOfferCard */).useShouldShowExpiringTrialOfferCard();
const firstWishlistId = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserProfileStore],
function() {
return UserProfileStore.getFirstWishlistId(user.id);
});
const [property3, env0_19] = env0_3(env0_4.useState(0), 2);
const value22 = env0_4.useCallback(_fun112845, []);
const {pageHeights,
handlePageContentSize} = (require(10345) /* metro dependency 10345: useSegmentedPagesHeight */).usePageHeights();
binding = env0_4;
useState = binding.useState;
let WISHLIST = UserProfileSections.WISHLIST;
const value25 = env0_3(Reflect.apply(useState, binding, [initialTab === WISHLIST]), 2);
const property4 = value25[0];
const env0_22 = value25[1];
const value26 = env0_4.useCallback(_fun112846, [trackUserProfileAction]);
const value27 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('YouScreenUserProfileContent');
const value28 = env0_4.useCallback(_fun112847, [value7, property2]);
const moduleValue11 = require(1485) /* metro dependency 1485 */;
let useFocusEffect = moduleValue11.useFocusEffect;
binding = env0_4;
useCallback = binding.useCallback;
Reflect.apply(useFocusEffect, moduleValue11, [Reflect.apply(useCallback, binding, [_fun112848, [value28,
value27]])]);
env0_4.useEffect(_fun112849, [value28, value27]);
const r33 = property?.label();
const value32 = env0_4.useMemo(_fun112853, [env0_4.useCallback(_fun112851, [containerBackground,
containerBorderColor, value9, value4, navigateToPremium, value19, navigateToShop, value11, enabled, user,
value6, navigateToFriends]), env0_4.useCallback(_fun112852, [value4.profileContent, firstWishlistId, property3,
property4]), handlePageContentSize]);
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
object3 = {pageWidth: property3};
WISHLIST = UserProfileSections.WISHLIST;
object3.defaultIndex = initialTab !== WISHLIST ? 0 : 1;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.itemSpacing = PX_24;
object3.items = value32;
object3.onPageChange = value26;
const value33 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [object3]);
const value34 = (require(10345) /* metro dependency 10345: useSegmentedPagesHeight */).usePagesHeightStyle(value33,
pageHeights);
const env0_28 = env0_4.useRef(value33.setActiveIndex);
env0_4.useEffect(_fun112856, [value33]);
const moduleValue14 = moduleValue11;
useFocusEffect = moduleValue14.useFocusEffect;
binding = env0_4;
useCallback = binding.useCallback;
Reflect.apply(useFocusEffect, moduleValue14, [Reflect.apply(useCallback, binding, [_fun112857, [initialTab,
value5]])]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const LayerScope = (require(6517) /* metro dependency 6517: LayerScopeNative */).LayerScope;
const items3 = [value4.profileContentWrapper];
items3[1] = {paddingTop: 0};
const items2 = [<YouAvatar_112837 user={user} backgroundColor={avatarBackground} statusStyle={{backgroundColor: statusBackground}} animate={animateAvatar} />];
items2[1] = ((Component) => <Component ref={value13} customStatusActivity={value7} hasCustomProfileTheme={value11} style={[value4.customStatusBubble,
value4.customStatusBubbleInset]} emojiOnlyStyle={value4.emojiOnlyCustomStatusBubble} editEnabled placeholderText={r33} prompt={property} />)(importDefault(8513) /* metro dependency 8513: UserProfileCustomStatusBubble */);
const items4 = [value4.primaryInfo];
items4[1] = value4.profileContent;
const UserProfilePrimaryInfo = importDefault(8695) /* metro dependency 8695: UserProfilePrimaryInfo */;
const pronouns = value6?.pronouns;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['er+FRD'];
const object2 = {};
object2.status = (require(9122) /* metro dependency 9122: getChannelA11yLabel */).getStatusLabel(status);
const value36 = Reflect.apply(formatToPlainString, intl, [property, object2]);
const string = intl.string;
const C6COaT = (require(1244) /* metro dependency 1244: indexNative */).t.C6COaT;
const value37 = Reflect.apply(string, intl, [C6COaT]);
const YOU_SCREEN = UserProfileThemeTypes.YOU_SCREEN;
items2[2] = <View style={items4}><UserProfilePrimaryInfo user={user} pronouns={pronouns} badges={value8} badgeContainerBackground={containerBackground} onPressDisplayName={value14} displayNameAccessibilityHint={'' + value36 + ', ' + value37} themeType={YOU_SCREEN} showChevron /><EditSection_112839 navigateToProfileCustomization={navigateToProfileCustomization} /></View>;
const profileTablist = value4.profileTablist;
const Tabs = (require(8859) /* metro dependency 8859: TabsNative */).Tabs;
const view = <View style={profileTablist}><Tabs state={value33} variant={value11 ? 'gradient-background' : undefined} /></View>;
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const SegmentedControlPages = (require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages;
items2[3] = <View style={{flex: 1}} onLayout={value22}>{view}<View3 style={value34}><SegmentedControlPages state={value33} /></View3></View>;
return (
<View2 style={style}>
<LayerScope>
<View style={items3}>
{items2}
</View>
</LayerScope>
</View2>
);
}
function _fun112838() { // fn#112838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:350, offset: 0x023ddeb6, size: 59 bytes, params: 1, frame: 13
const value = environment.__proto__;
(require(14911) /* metro dependency 14911: Tracking */).trackYouTabAvatarPress();
(require(14746) /* metro dependency 14746: showYouAccountActionSheet */).showYouAccountActionSheet();
}
function _fun112840() { // fn#112840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:980, offset: 0x023de10b, size: 93 bytes, params: 1, frame: 14
trackUserProfileAction({action: 'EDIT_PROFILE'});
(require(14911) /* metro dependency 14911: Tracking */).trackYouTabEditProfilePress();
navigateToProfileCustomization();
if (result) {
env0_2(ContentDismissActionType.TAKE_ACTION);
}
}
function _fun112843() { // fn#112843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:2246, offset: 0x023dea75, size: 61 bytes, params: 1, frame: 12
trackUserProfileAction({action: 'PRESS_SET_STATUS'});
const value = environment.__proto__;
(require(14746) /* metro dependency 14746: showYouAccountActionSheet */).showYouAccountActionSheet();
}
function _fun112845({nativeEvent}) { // fn#112845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:2597, offset: 0x023dead2, size: 36 bytes, params: 2, frame: 11
env0_19(nativeEvent.layout.width);
}
function _fun112846(a0) { // fn#112846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:2798, offset: 0x023deaf6, size: 76 bytes, params: 2, frame: 14
const value2 = a0 === 1;
env0_22(value2);
trackUserProfileAction({action: 'PRESS_SECTION',
section: value2 ? UserProfileSections.WISHLIST : UserProfileSections.MAIN});
}
function _fun112847() { // fn#112847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:2957, offset: 0x023deb42, size: 58 bytes, params: 1, frame: 13
var r1;
const binding = env0_15;
let value = null;
if (value == env0_9) {
value = environment.__proto__;
value = (importDefault(8524) /* metro dependency 8524: getRandomCustomStatusPrompt */)();
r1 = value;
} else {
r1 = value;
}
binding(r1);
}
function _fun112848() { // fn#112848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:3037, offset: 0x023deb7c, size: 24 bytes, params: 1, frame: 9
if (!env0_23) {
env0_24();
}
}
function _fun112849() { // fn#112849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:3076, offset: 0x023deb94, size: 38 bytes, params: 1, frame: 11
if (env0_23) {
global.setImmediate(_fun112850);
}
}
function _fun112851() { // fn#112851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:3173, offset: 0x023debc9, size: 753 bytes, params: 1, frame: 24
const binding = env0_10;
const items4 = [env0_5.card];
if (binding) {
items4[1] = {backgroundColor: containerBackground, borderColor: containerBorderColor, borderWidth: 1};
} else {
items4[1] = {backgroundColor: containerBackground};
}
const items2 = [env0_5.cards];
items2[1] = env0_5.profileContent;
const value3 = undefined;
const items3 = [((Component) => <Component navigateToPremium={navigateToPremium} style={items4} />)(importDefault(14919) /* metro dependency 14919: YouExpiringTrialOfferCard */)];
items3[1] = !env0_16 && ((Component) => <Component navigateToPremium={navigateToPremium} navigateToShop={navigateToShop} hasCustomProfileTheme={env0_11} />)(importDefault(10352) /* metro dependency 10352: UserProfileDismissibleUpsells */);
items3[2] = enabled && ((Component) => <Component style={items4} />)(importDefault(14239) /* metro dependency 14239: BalanceWidgetMenu */);
const UserProfileActivity = importDefault(10210) /* metro dependency 10210: UserProfileActivity */;
let userBinding = user;
items3[3] = <UserProfileActivity user={userBinding} currentUser={userBinding} style={env0_10 ? value3 : items4} />;
items3[4] = ((Component) => <Component userId={user.id} displayProfile={env0_8} style={env0_10 ? value3 : items4} />)(importDefault(8762) /* metro dependency 8762: UserProfileAboutMeCard */);
items3[5] = env0_10 && ((Component) => <Component />)(importDefault(7331) /* metro dependency 7331: FormDivider */);
const UserProfileAccountConnectionsCard = (require(10361) /* metro dependency 10361: UserProfileConnections */).UserProfileAccountConnectionsCard;
items3[6] = <UserProfileAccountConnectionsCard userId={user.id} style={env0_10 ? value3 : items4} />;
const UserProfileApplicationRoleConnectionsCard = (require(10361) /* metro dependency 10361: UserProfileConnections */).UserProfileApplicationRoleConnectionsCard;
items3[7] = <UserProfileApplicationRoleConnectionsCard userId={user.id} style={env0_10 ? value3 : items4} />;
const UserProfileYourFriendsCard = importDefault(14921) /* metro dependency 14921: UserProfileYourFriendsCard */;
userBinding = user;
items3[8] = <UserProfileYourFriendsCard userId={userBinding.id} navigateToFriends={navigateToFriends} style={items4} />;
items3[9] = ((Component) => <Component userId={userBinding.id} style={env0_10 ? value3 : items4} />)(importDefault(10327) /* metro dependency 10327: UserProfileNote */);
return (
<View style={items2}>
{items3}
</View>
);
}
function _fun112852() { // fn#112852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:3912, offset: 0x023deeba, size: 172 bytes, params: 1, frame: 20
var r0;
let value = environment.__proto__;
const profileContent = env0_5.profileContent;
if (firstWishlistId == null) {
const WishlistEmptyState = (require(10373) /* metro dependency 10373: UserProfileWishlistGrid */).WishlistEmptyState;
r0 = <WishlistEmptyState />;
} else {
value = undefined;
value = ((Component) => <Component wishlistId={firstWishlistId} containerWidth={env0_18 > 0 ? env0_18 : value} isVisible={env0_21} />)(importDefault(10373) /* metro dependency 10373: UserProfileWishlistGrid */);
r0 = value;
}
return (
<View style={profileContent}>
{r0}
</View>
);
}
function _fun112853() { // fn#112853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:4110, offset: 0x023def66, size: 249 bytes, params: 1, frame: 22
let object2 = {id: 'main'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const LXw470 = (require(1244) /* metro dependency 1244: indexNative */).t.LXw470;
object2.label = Reflect.apply(string, intl, [LXw470]);
object2.page = <ScrollView scrollEnabled={false} onContentSizeChange={function(a0, a1) {
return handlePageContentSize(0, a0, a1);
}}>{env0_25()}</ScrollView>;
const items2 = [object2];
object2 = {id: 'wishlist'};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7lZ31J']);
object2.page = <ScrollView scrollEnabled={false} onContentSizeChange={function(a0, a1) {
return handlePageContentSize(1, a0, a1);
}}>{env0_26()}</ScrollView>;
items2[1] = object2;
return items2;
}
function _fun112856() { // fn#112856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:4645, offset: 0x023df094, size: 27 bytes, params: 1, frame: 2
env0_28.current = env0_27.setActiveIndex;
}
function _fun112857() { // fn#112857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:4726, offset: 0x023df0af, size: 82 bytes, params: 1, frame: 14
var environment;
var r1;
var WISHLIST;
var value;
let initialTabBinding = initialTab;
if (initialTabBinding !== undefined) {
initialTabBinding = initialTab;
value = environment.__proto__;
WISHLIST = UserProfileSections.WISHLIST;
value = 0;
r1 = initialTabBinding !== WISHLIST ? value : 1;
var env0_0 = global.setTimeout(_fun112858, 80);
}
return _fun112859;
}
function _fun112850() { // fn#112850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:3099, offset: 0x023debba, size: 15 bytes, params: 1, frame: 9
env1_24();
}
function _fun112858() { // fn#112858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:4791, offset: 0x023df101, size: 56 bytes, params: 1, frame: 16
env1_28.current(env0_1, false, true);
env1_6.setParams({initialTab: undefined});
}
function _fun112859() { // fn#112859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15113:4861, offset: 0x023df139, size: 125 bytes, params: 1, frame: 12
var parent;
var setParams;
if (env0_0 != null) {
global.clearTimeout(env0_0);
}
let binding = env1_6;
if (!binding.isFocused()) {
binding = env1_6;
parent = binding.getParent();
if (parent != null && parent.isFocused()) {
binding = env1_6;
setParams = binding.setParams;
value = environment.__proto__.__proto__;
Reflect.apply(setParams, binding, [{initialTab: UserProfileSections.MAIN}]);
}
}
}