// Module ID: 11184 // Function ID: 11185 // Name: UserProfilePrimaryInfo // Dependencies: [19, 17, 8209, 7222, 1074, 7958, 8220, 21, 4574, 576, 10931, 10932, 9470, 5137, 11185, 4570, 11187, 7743, 4432, 11219, 1114, 11221, 8210, 11222, 7396, 1925, 4272, 8268, 11224, 11225, 11229, 5461, 1242, 7742, 1115, 11230, 11231, 11232, 1477, 8191, 9216, 4418, 2] // Exports: default // Module 11184 (UserProfilePrimaryInfo) import nativeDefault from "native" /* 576 */; import ToastActionCreatorsDefault from "ToastActionCreators" /* 4272 */; import UserUtilsDefault from "UserUtils" /* 4418 */; import Text_Text from "Text/Text" /* 4570 */; import Pressables from "Pressables" /* 5137 */; import GuildTagUtils from "GuildTagUtils" /* 8191 */; import BadgeId from "BadgeId" /* 8210 */; import GuildTagDefault from "GuildTag" /* 9216 */; import BotTagDefault from "BotTag" /* 9470 */; import UsernameWithEffectsDefault from "UsernameWithEffects" /* 10931 */; import BadgeUtils from "BadgeUtils" /* 11231 */; import noop from "module_19" /* 19 */; require = fn; class DisplayName { constructor(arg0) { user = global.user; ({ guildId, name, themeType, onPress, showChevron } = global); if (showChevron === undefined) { showChevron = false; } ({ pendingDisplayNameStyles, displayNameAccessibilityRole } = global); closure_1 = undefined; tmp = closure_16(); closure_1 = tmp; tmp2 = undefined; if (null != themeType) { tmp3 = closure_18; tmp2 = closure_18[themeType]; } if (tmp2 == null) { tmp2 = closure_17; } renderBotTag = function renderBotTag() { if (user.isSystemUser()) { const obj2 = { style: closure_1.botTag, type: BotTagDefault.Types.SYSTEM_DM, verified: obj.isVerifiedBot() }; let tmp = map1(BotTagDefault, obj2); } else { tmp = null; if (obj.bot) { const obj3 = { style: closure_1.botTag, type: BotTagDefault.Types.BOT, verified: obj.isVerifiedBot() }; tmp = map1(BotTagDefault, obj3); } } return tmp; }; headingVariant = tmp2.headingVariant; if (null == onPress) { tmp5 = jsxs; tmp6 = View; obj = { children: null }; tmp7 = jsx; tmp8 = closure_1; tmp9 = closure_2; obj1 = { userId: null, guildId: null, userName: null, variant: null, effectDisplayType: null, lineClamp: 2, pendingDisplayNameStyles: null, defaultColor: "mobile-text-heading-primary", accessibilityRole: null, style: null, containerStyle: null }; obj1.userId = user.id; obj1.guildId = guildId; obj1.userName = name; obj1.variant = headingVariant; tmp11 = user; tmp10 = closure_1(closure_2[10]); obj1.effectDisplayType = user(closure_2[11]).EffectDisplayType.STATIC; obj1.pendingDisplayNameStyles = pendingDisplayNameStyles; obj1.accessibilityRole = displayNameAccessibilityRole; ({ displayNameText: obj2.style, displayNameText: obj2.containerStyle } = tmp); items = [, ]; items[0] = jsx(tmp10, obj1); num = 0; items[1] = renderBotTag(); obj.children = items; tmp12Result = jsxs(View, obj); } else { tmp12 = jsxs; tmp13 = user; tmp14 = closure_2; obj5 = { onPress: null, accessibilityRole: "button", accessibilityLabel: null, accessibilityHint: null, style: null, children: null }; obj5.onPress = onPress; obj5.accessibilityLabel = name; obj5.accessibilityHint = global.accessibilityHint; obj5.style = tmp.displayName; tmp16 = closure_1; tmp15 = jsx; obj6 = { userId: null, guildId: null, userName: null, variant: null, effectDisplayType: null, lineClamp: 2, pendingDisplayNameStyles: null, defaultColor: "mobile-text-heading-primary", accessibilityRole: null, style: null, containerStyle: null }; obj6.userId = user.id; obj6.guildId = guildId; obj6.userName = name; obj6.variant = headingVariant; tmp17 = closure_1(closure_2[10]); obj6.effectDisplayType = user(closure_2[11]).EffectDisplayType.STATIC; obj6.pendingDisplayNameStyles = pendingDisplayNameStyles; obj6.accessibilityRole = displayNameAccessibilityRole; ({ displayNameText: obj4.style, displayNameText: obj4.containerStyle } = tmp); items1 = [, , ]; items1[0] = jsx(tmp17, obj6); num2 = 0; items1[1] = renderBotTag(); if (showChevron) { showChevron = tmp15(tmp13(tmp14[14]).ChevronSmallDownIcon, { size: "sm", color: "icon-muted" }); } items1[2] = showChevron; obj5.children = items1; tmp12Result = tmp12(user(closure_2[13]).PressableOpacity, obj5); } return tmp12Result; } } class UserTagAndPronouns { constructor(arg0) { userTag = global.userTag; ({ pronouns, themeType, onPressUserTag } = global); userTagAccessibilityHint = global.userTagAccessibilityHint; textVariant = undefined; ({ onPressPronouns, pronounsAccessibilityHint } = global); tmp2 = null != pronouns; tmp = closure_16(); if (tmp2) { num = 0; tmp2 = pronouns.length > 0; } tmp3 = undefined; if (null != themeType) { tmp4 = closure_18; tmp3 = closure_18[themeType]; } if (tmp3 == null) { tmp3 = closure_17; } textVariant = tmp3.textVariant; items = [, , , ]; items[0] = onPressUserTag; items[1] = textVariant; items[2] = userTag; items[3] = userTagAccessibilityHint; tmp5 = jsxs; tmp6 = View; obj = { style: tmp.detailsText, children: null }; items1 = [, ]; items1[0] = textVariant.useCallback(() => { if (null == userTag) { return null; } else { const obj2 = { variant: textVariant, color: "mobile-text-heading-primary", lineClamp: 2, children: tmp }; const tmp9 = map1(Text_Text.Text, obj2); if (null != onPressUserTag) { const obj3 = { onPress: tmp10, accessibilityRole: "button", accessibilityLabel: tmp, accessibilityHint: userTagAccessibilityHint, children: tmp9 }; let tmp5Result = tmp5(Pressables.PressableOpacity, obj3); } else { const obj = { children: tmp9 }; tmp5Result = tmp5(hasOwnProperty, obj); } return tmp5Result; } }, items)(); if (!tmp2) { items1[1] = tmp2; obj.children = items1; return tmp5(tmp6, obj); } else { tmp8 = jsx; Text = userTag; tmp8Result = userTagAccessibilityHint; tmp7 = Fragment; obj1 = { variant: null, color: "mobile-text-heading-primary", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: null }; obj1.variant = textVariant; tmp10 = DIVIDER_DOT; obj1.children = DIVIDER_DOT; items2 = [, ]; items2[0] = jsx(userTag(userTagAccessibilityHint[15]).Text, obj1); if (null != onPressUserTag) { obj8 = { onPress: null, accessibilityRole: "button", accessibilityLabel: null, accessibilityHint: null, children: null }; obj8.onPress = onPressPronouns; obj8.accessibilityLabel = pronouns; obj8.accessibilityHint = pronounsAccessibilityHint; Text = Text(tmp8Result[15]).Text; obj9 = { variant: null, color: "mobile-text-heading-primary", lineClamp: 1, children: null }; obj9.variant = textVariant; obj9.children = pronouns; tmp8Result = tmp8(Text, obj9); obj8.children = tmp8Result; tmp8Result1 = tmp8(Text(tmp8Result[13]).PressableOpacity, obj8); } else { obj10 = { children: null }; obj11 = { variant: null, color: "mobile-text-heading-primary", lineClamp: 1, children: null }; obj11.variant = textVariant; obj11.children = pronouns; obj10.children = tmp8(Text(tmp8Result[15]).Text, obj11); tmp8Result1 = tmp8(tmp6, obj10); } obj12 = { children: null }; items2[1] = tmp8Result1; obj12.children = items2; tmp5Result = tmp5(tmp7, obj12); } return; } } function ProfileBadge(source) { source = source.source; const catalogBadge = source.catalogBadge; const id = source.id; const label = source.label; ({ badgeSize, themeType, showToastOnPress } = source); if (showToastOnPress === undefined) { showToastOnPress = true; } closure_4 = undefined; closure_5 = undefined; let items = closure_16(); if (null != badgeSize) { const size = { width: badgeSize, height: badgeSize }; } const ref = label.useRef(null); closure_4 = source(id[16]).useTieredTenureBadgeClickHandler(id, source.userId, themeType); let obj2 = source(id[16]); closure_5 = source(id[17]).useAdUser("profile_badge"); let obj3 = source(id[17]); const rootNavigationRef = source(id[18]).getRootNavigationRef(); let currentRoute; if (null != rootNavigationRef) { if (rootNavigationRef.isReady()) { currentRoute = rootNavigationRef.getCurrentRoute(); } } let flag; if (currentRoute != null) { const params = currentRoute.params; if (params != null) { flag = params.showOrbsBadgeCoachmark; } } if (flag == null) { flag = false; } let obj4 = source(id[18]); const orbsBadgeCoachmark = source(id[19]).useOrbsBadgeCoachmark({ disabled: !flag }); const intl = tmp3(tmp4[20]).intl; const formatToPlainStringResult = intl.formatToPlainString(source(id[20]).t.A0LN9t, { badgeLabel: label }); let tmp9 = themeType === UserProfileThemeTypes.YOU_SCREEN; if (tmp9) { tmp9 = typeof id === "string"; } let tmp10 = null; if (tmp9) { let obj5 = { targetRef: ref, badgeId: id }; tmp10 = closure_13(catalogBadge(tmp4[21]), obj5); } let tmp13 = themeType !== UserProfileThemeTypes.YOU_SCREEN || typeof id !== "string"; if (!tmp13) { let tmp14 = "orb_profile_badge" !== id; if (tmp14) { tmp14 = id !== getBadgeName(tmp3(tmp4[22]).BadgeId.ORB_PROFILE); } tmp13 = tmp14; } if (!tmp13) { tmp13 = null == orbsBadgeCoachmark; } let tmp16 = null; if (!tmp13) { const obj6 = { badgeRef: ref }; let merged = Object.assign(orbsBadgeCoachmark.props); tmp16 = closure_13(catalogBadge(tmp4[19]), obj6); const tmp19 = catalogBadge(tmp4[19]); } const obj7 = { children: null }; if (showToastOnPress) { let PressableOpacity = tmp3(tmp4[13]).PressableOpacity; let obj8 = { accessibilityRole: "image", accessibilityLabel: formatToPlainStringResult, onPress() { if (null == closure_4) { if (id !== getBadgeName(BadgeId.BadgeId.GIFTING)) { let info_label; if (catalogBadge != null) { info_label = catalogBadge.info_label; } let tmp10 = info_label; if (tmp5Result.isNullOrEmpty(info_label)) { tmp10 = label; } const tmp11 = importDefault; tmp5Result = tmp5(1925); const obj = { key: null, content: null, icon: null }; const _HermesInternal = HermesInternal; obj.key = "PROFILE_BADGE-" + label; obj.content = tmp10; obj.icon = source; ToastActionCreatorsDefault.open(obj); if (tmp3 === tmp5(8268).QUEST_COMPLETED_BADGE) { if (tmp5Result7.shouldMigrateToAdAnalyticsInterface(tmp5(11224).AdAnalyticsInterfaceExperimentStep.STEP_4_VIEWED_NON_IMPRESSION, "quest_completed_badge_toast")) { const obj2 = { type: tmp5(11229).AdUserActionType.VIEW_INTERNAL_SURFACE_IMPRESSION, surfaceId: tmp5(5461).QuestContent.QUEST_BADGE, isTargeted: false }; tmp5(11225).captureAdUserAction(obj2); const tmp5Result8 = tmp5(11225); } else { const obj3 = {}; const tmp11Result = tmp11(1242); const merged = Object.assign(tmp5(7742).getContentProperties(tmp5(5461).QuestContent.QUEST_BADGE)); let advertisingId = null; if (null != closure_5) { advertisingId = null; if (tmp5Result10.isIOS()) { advertisingId = tmp19.advertisingId; } tmp5Result10 = tmp5(1115); } obj3.apple_advertising_id = advertisingId; let advertisingId1 = null; if (null != closure_5) { advertisingId1 = null; if (tmp5Result11.isAndroid()) { advertisingId1 = tmp19.advertisingId; } tmp5Result11 = tmp5(1115); } obj3.android_advertising_id = advertisingId1; obj3.is_targeted = false; tmp11Result.track(constants.QUEST_CONTENT_VIEWED, obj3); const tmp5Result9 = tmp5(7742); } tmp5Result7 = tmp5(11224); } } else { const obj5 = { screen: constants2.PREMIUM_GIFTING, params: {} }; tmp5(7396).openUserSettings(obj5); const tmp5Result12 = tmp5(7396); } tmp3 = id; } else { tmp(); } }, ref, children: null }; if (null != source) { const obj9 = { style: null, source: null }; items = [, ]; items[0] = items.badge; items[1] = tmp; obj9.style = items; obj9.source = source; let tmp24Result = tmp24(closure_4, obj9); } else { tmp24Result = null; if (null != catalogBadge) { const obj10 = { badge: catalogBadge, size: badgeSize }; tmp24Result = tmp24(catalogBadge(tmp4[23]), obj10); } } obj8.children = tmp24Result; PressableOpacity = tmp24(PressableOpacity, obj8); obj8 = [PressableOpacity, tmp10, tmp16]; obj7.children = obj8; } else { const obj11 = { accessible: true, accessibilityRole: "image", accessibilityLabel: formatToPlainStringResult, ref, children: null }; if (null != source) { const obj12 = { style: null, source: null }; const items1 = [items.badge, tmp]; obj12.style = items1; obj12.source = source; let tmp24Result2 = tmp24(closure_4, obj12); } else { tmp24Result2 = null; if (null != catalogBadge) { const obj13 = { badge: catalogBadge, size: badgeSize }; tmp24Result2 = tmp24(catalogBadge(tmp4[23]), obj13); } } obj11.children = tmp24Result2; const items2 = [tmp24(closure_5, obj11), tmp10, tmp16]; obj7.children = items2; return tmp22(tmp23, obj7); } } class ProfileBadgeRows { constructor(arg0) { userId = global.userId; badges = global.badges; ({ catalogBadges, isTryItOut, style } = global); themeType = global.themeType; showToastOnPress = global.showToastOnPress; closure_5 = undefined; badgeSize = undefined; badgeRowHorizontalPadding = undefined; closure_8 = undefined; closure_9 = undefined; closure_10 = undefined; width = undefined; tmp = closure_16(); closure_5 = tmp; tmp2 = undefined; if (null != themeType) { tmp3 = closure_18; tmp2 = closure_18[themeType]; } if (tmp2 == null) { tmp2 = closure_17; } badgeSize = tmp2.badgeSize; badgeRowHorizontalPadding = tmp2.badgeRowHorizontalPadding; tmp4 = userId; tmp5 = style; obj = userId(style[35]); isBadgeManagementEnabled = obj.useIsBadgeManagementEnabled({ location: "ProfileBadgeRows" }); closure_8 = isBadgeManagementEnabled; obj2 = themeType; items = []; items[0] = badges; closure_9 = themeType.useMemo(() => BadgeUtils.getLegacyIconUrlByBadgeId(badges), items); mapped = badges.map((id) => { const obj = { id: id.id, userId, source: null, label: null, badgeSize: null, themeType: null, showToastOnPress: null }; const obj2 = { uri: BadgeUtils.getProfileBadgeIconUrl(id) }; obj.source = obj2; obj.label = id.description; obj.badgeSize = badgeSize; obj.themeType = themeType; obj.showToastOnPress = showToastOnPress; return map1(ProfileBadge, obj, id.id); }); closure_10 = mapped; if (isTryItOut) { isTryItOut = null == badges.find((id) => "premium" === id.id); } if (isTryItOut) { tmp7 = jsx; tmp8 = ProfileBadge; obj1 = { source: null, id: "premium", userId: null, label: null, badgeSize: null, showToastOnPress: null }; tmp9 = badges; obj1.source = badges(tmp5[37]); obj1.userId = userId; intl = tmp4(tmp5[20]).intl; obj11 = { date: null }; tmp10 = globalThis; _Date = Date; tmp11 = new.target; tmp12 = new.target; date = new Date(); tmp14 = date; obj11.date = date; obj1.label = intl.formatToPlainString(tmp4(tmp5[20]).t["8zbGNR"], obj11); obj1.badgeSize = badgeSize; obj1.showToastOnPress = showToastOnPress; arr1 = mapped.push(jsx(ProfileBadge, obj1)); } width = badges(tmp5[38])().width; items1 = [, , , , ]; items1[0] = mapped; items1[1] = badgeRowHorizontalPadding; items1[2] = badgeSize; items1[3] = width; items1[4] = isBadgeManagementEnabled; memo = obj2.useMemo(() => { if (isBadgeManagementEnabled) { return []; } else { const _Math = Math; const rounded = Math.floor((width - 2 * isBadgeManagementEnabled - 2 * badgeRowHorizontalPadding + 4) / (badgeSize + 4)); const _Array = Array; const obj = { length: null }; const _Math2 = Math; obj.length = Math.ceil(mapped.length / rounded); return Array.from(obj, (arg0, arg1) => mapped.slice(arg1 * rounded, (arg1 + 1) * rounded)); } }, items1); if (isBadgeManagementEnabled) { mapped1 = undefined; if (catalogBadges != null) { num = 0; substr = catalogBadges.slice(0, tmp4(tmp5[36]).MAX_DISPLAYED_PROFILE_BADGES); mapped1 = substr.map((badge_id) => { value = closure_9.get(badge_id.badge_id); let obj = getBadgeName(badge_id.badge_id); if (obj.startsWith(DEFAULT_PREMIUM_BADGE_ID)) { obj = DEFAULT_PREMIUM_BADGE_ID; } const obj2 = { id: obj, userId, catalogBadge: badge_id, source: null, label: null, badgeSize: null, themeType: null, showToastOnPress: null }; let tmp5; if (null != value) { const obj3 = { uri: value }; tmp5 = obj3; } obj2.source = tmp5; obj2.label = badge_id.name; obj2.badgeSize = badgeSize; obj2.themeType = themeType; obj2.showToastOnPress = showToastOnPress; return map1(ProfileBadge, obj2, badge_id.badge_id); }); } if (mapped1 == null) { num2 = 0; mapped1 = mapped.slice(0, tmp4(tmp5[36]).MAX_DISPLAYED_PROFILE_BADGES); } length = undefined; if (catalogBadges != null) { length = catalogBadges.length; } if (length == null) { length = mapped.length; } diff = length - mapped1.length; num3 = 0; tmp24Result1 = null; if (0 !== mapped1.length) { tmp24 = jsx; tmp25 = closure_5; obj12 = { style: null, children: null }; items2 = []; items2[0] = tmp.badges; obj12.style = items2; obj13 = { style: null, children: null }; items3 = [, , , ]; ({ badgeRow: arr9[0], limitedBadgeRow: arr9[1] } = tmp); obj14 = { paddingHorizontal: null }; obj14.paddingHorizontal = badgeRowHorizontalPadding; items3[2] = obj14; items3[3] = style; obj13.style = items3; items4 = [, ]; items4[0] = mapped1; tmp24Result = diff > 0; tmp26 = jsxs; if (tmp24Result) { obj15 = { variant: null, color: "mobile-text-heading-primary", accessibilityLabel: null, children: null }; obj15.variant = tmp2.textVariant; intl2 = tmp4(tmp5[20]).intl; obj16 = { overflow_count: null }; obj16.overflow_count = diff; obj15.accessibilityLabel = intl2.formatToPlainString(tmp4(tmp5[20]).t.eIHfGZ, obj16); tmp22 = globalThis; _HermesInternal = HermesInternal; str = "+"; obj15.children = "+" + diff; tmp24Result = tmp24(tmp4(tmp5[15]).Text, obj15); } items4[1] = tmp24Result; obj13.children = items4; obj12.children = tmp26(tmp25, obj13); tmp24Result1 = tmp24(tmp25, obj12); } return tmp24Result1; } else { tmp16 = jsx; tmp17 = closure_5; obj17 = { style: null, children: null }; items5 = []; items5[0] = tmp.badges; obj17.style = items5; obj17.children = memo.map((children, index) => { const obj = { style: null, children }; const items = [badgeRow.badgeRow, { paddingHorizontal: badgeRowHorizontalPadding }, style]; obj.style = items; return map1(hasOwnProperty, obj, index); }); return jsx(closure_5, obj17); } } } function GuildTag(style) { ({ user, themeType, showToastOnPress } = style); if (showToastOnPress === undefined) { showToastOnPress = false; } const tmp = closure_16(); let primaryGuild; if (user != null) { primaryGuild = user.primaryGuild; } const userPrimaryGuild = GuildTagUtils.getUserPrimaryGuild(primaryGuild); let tmp6; ({ tag, guildId } = userPrimaryGuild); if (null != themeType) { tmp6 = dependencyMap[themeType]; } if (tmp6 == null) { tmp6 = closure_17; } ({ guildTagTextVariant, badgeSize, guildTagBadgeSize, guildTagHorizontalPadding } = tmp6); let tmp9 = null; if (null != tag) { tmp9 = null; if (null != guildId) { const obj2 = { style: null, children: null }; const items = [tmp.guildTag, , ]; const obj3 = { minHeight: badgeSize + 4, paddingHorizontal: guildTagHorizontalPadding }; items[1] = obj3; items[2] = style.style; obj2.style = items; const obj4 = { userId: user.id, disabledTooltip: !showToastOnPress, containerStyles: tmp.transparentBackground, textStyle: null, badgeSize: null, textVariant: null }; const obj5 = { lineHeight: tmp8 }; obj4.textStyle = obj5; obj4.badgeSize = guildTagBadgeSize; obj4.textVariant = guildTagTextVariant; obj2.children = map1(GuildTagDefault, obj4); tmp9 = map1(hasOwnProperty, obj2); } } return tmp9; } get_ActivityIndicator = fn(17); ({ Image: closure_4, View: hasOwnProperty } = get_ActivityIndicator); const getBadgeName = fn(8209).getBadgeName; let Constants = fn(7222); ({ DIVIDER_DOT: closure_7, PROFILE_SIDE_PADDING: closure_8, UserProfileThemeTypes } = Constants); Constants = fn(1074); ({ AnalyticEvents: c10, UserSettingsSections: closure_11 } = Constants); const GuildTagBadgeSize = fn(7958).GuildTagBadgeSize; const DEFAULT_PREMIUM_BADGE_ID = fn(8220).DEFAULT_PREMIUM_BADGE_ID; const jsxProd = fn(21); ({ jsx: map1, jsxs: closure_14, Fragment: closure_15 } = jsxProd); const createStyles = fn(4574); let obj2 = { container: { flexDirection: "column" }, displayName: { flexDirection: "row", alignItems: "center", columnGap: 4 }, displayNameText: { flexShrink: 1, minWidth: 0 }, details: { flexDirection: "row", flexWrap: "wrap", gap: 8 }, detailsText: { flexDirection: "row", flexWrap: "wrap", alignContent: "center", paddingVertical: 2 }, botTag: { marginLeft: 4 }, guildTag: { alignSelf: "center", justifyContent: "center", borderRadius: nativeDefault.radii.sm, columnGap: 4 }, transparentBackground: { backgroundColor: "transparent" }, badge: { resizeMode: "contain" }, badges: { alignSelf: "center", flexDirection: "column", justifyContent: "flex-start", rowGap: 8 }, badgeRow: null, limitedBadgeRow: null }; let obj3 = { alignSelf: "center", justifyContent: "center", borderRadius: nativeDefault.radii.sm, columnGap: 4 }; obj2.badgeRow = { borderRadius: nativeDefault.radii.sm, paddingVertical: 2, justifyContent: "flex-start", flexDirection: "row", marginRight: "auto", columnGap: 4 }; obj2.limitedBadgeRow = { alignItems: "center" }; let value = createStyles.createStyles(obj2); let closure_17 = { headingVariant: "heading-xl/bold", textVariant: "text-md/normal", badgeSize: 20, badgeRowHorizontalPadding: 7, guildTagBadgeSize: GuildTagBadgeSize.SIZE_16, guildTagTextVariant: "text-sm/medium", guildTagHorizontalPadding: 8 }; const collapsedCategories = { [UserProfileThemeTypes.PREVIEW]: { headingVariant: "heading-lg/bold", textVariant: "text-sm/normal", badgeSize: 16, badgeRowHorizontalPadding: 6, guildTagBadgeSize: GuildTagBadgeSize.SIZE_12, guildTagTextVariant: "text-xs/medium", guildTagHorizontalPadding: 6 } }; let size = fn(2); const result = size.fileFinishedImporting("modules/user_profile/native/UserProfilePrimaryInfo.tsx"); export default function UserProfilePrimaryInfo(arg0) { ({ user, displayName, themeType, showBadgeToastOnPress } = arg0); ({ guildId, pronouns, style, badges, catalogBadges, badgeContainerBackground, onPressDisplayName, displayNameAccessibilityHint, displayNameAccessibilityRole, onPressUserTag, userTagAccessibilityHint, onPressPronouns, pronounsAccessibilityHint, showChevron, pendingDisplayNameStyles } = arg0); const tmp = closure_16(); const obj = { backgroundColor: badgeContainerBackground }; const name = UserUtilsDefault.useName(user); const obj4 = { style: null, children: null }; const items = [tmp.container, style]; obj4.style = items; const obj5 = { user, guildId, name: null, themeType: null, onPress: null, accessibilityHint: null, displayNameAccessibilityRole: null, showChevron: null, pendingDisplayNameStyles: null }; let tmp8 = name; const userTag = UserUtilsDefault.useUserTag(user); if ("" !== displayName) { if (displayName == null) { displayName = name; } tmp8 = displayName; } obj5.name = tmp8; obj5.themeType = themeType; obj5.onPress = onPressDisplayName; obj5.accessibilityHint = displayNameAccessibilityHint; obj5.displayNameAccessibilityRole = displayNameAccessibilityRole; obj5.showChevron = showChevron; obj5.pendingDisplayNameStyles = pendingDisplayNameStyles; const items1 = [map1(DisplayName, obj5), ]; const obj6 = { style: tmp.details, children: null }; let tmp11 = null; if (!user.isProvisional) { tmp11 = userTag; } const items2 = [map1(UserTagAndPronouns, { userTag: tmp11, pronouns, themeType, onPressUserTag, userTagAccessibilityHint, onPressPronouns, pronounsAccessibilityHint }), map1(GuildTag, { user, themeType, style: obj, showToastOnPress: showBadgeToastOnPress }), map1(ProfileBadgeRows, { userId: user.id, badges, catalogBadges, style: obj, themeType, showToastOnPress: showBadgeToastOnPress })]; obj6.children = items2; items1[1] = closure_1_14(hasOwnProperty, obj6); obj4.children = items1; return closure_1_14(hasOwnProperty, obj4); }; export { DisplayName }; export { UserTagAndPronouns }; export { ProfileBadgeRows };