// Module ID: 8351 // Function ID: 66887 // Dependencies: [31, 27, 5545, 5222, 33, 8055, 8083, 4354, 4004, 8071, 8343, 8352, 1557, 8053, 8057, 5525, 3865, 8353, 4026, 8080, 8355, 1212, 11934, 2] // Module 8351 import { View } from "get ActivityIndicator"; import ARBITRARY_LARGE_OFFSET from "ARBITRARY_LARGE_OFFSET"; import { ACTION_SHEET_MAX_WIDTH } from "ACTION_SHEET_START_HEIGHT_RATIO"; import jsxProd from "jsxProd"; import importAllResult from "result"; let closure_4; let closure_5; let closure_7; let closure_8; let closure_9; const require = arg1; ({ PROFILE_CONTENT_BOTTOM_PADDING: closure_4, PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING: closure_5 } = ARBITRARY_LARGE_OFFSET); ({ jsx: closure_7, jsxs: closure_8, Fragment: closure_9 } = jsxProd); const memoResult = require("result").memo(function NonUserBotProfileContent(scrollPosition) { let bannerAnimatedStyle; let bannerImageAnimatedStyle; let blurAnimatedProps; let channel; let contentAnimatedStyle; let displayProfile; let primaryColor; let secondaryColor; let showBlur; let theme; let user; ({ user, channel, displayProfile } = scrollPosition); let trackUserProfileAction; let importDefault; function handleCopyUsername() { trackUserProfileAction({ action: "COPY_USERNAME" }); trackUserProfileAction(outer1_2[15]).copy(closure_1); const obj = trackUserProfileAction(outer1_2[15]); const result = trackUserProfileAction(outer1_2[16]).presentUsernameCopied(); } const tmp = importDefault(8055)(); let obj = trackUserProfileAction(8083); trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction; let obj1 = importDefault(4354); let guild_id; if (null != channel) { guild_id = channel.guild_id; } let id; if (null != channel) { id = channel.id; } const name = obj1.useName(guild_id, id, user); let obj2 = importDefault(4004); importDefault = obj2.useUserTag(user); const tmp6 = importDefault(8343)(ACTION_SHEET_MAX_WIDTH); const tmp5 = importDefault(8071)(displayProfile); ({ bannerAnimatedStyle, bannerImageAnimatedStyle, contentAnimatedStyle, blurAnimatedProps, showBlur } = importDefault(8352)({ scrollPosition: scrollPosition.scrollPosition, bannerHeight: tmp6 })); const tmp7 = importDefault(8352)({ scrollPosition: scrollPosition.scrollPosition, bannerHeight: tmp6 }); ({ theme, primaryColor, secondaryColor } = importDefault(8053)({ user, displayProfile })); let obj3 = trackUserProfileAction(8057); const userProfileColors = obj3.useUserProfileColors({ theme, primaryColor, secondaryColor }); const containerBackground = userProfileColors.containerBackground; if (null == user) { return null; } else { obj = {}; obj = { user, displayProfile, bannerHeight: tmp6, bannerAnimatedStyle, bannerImageAnimatedStyle, blurAnimatedProps, showBlur }; const items = [callback(importDefault(8353), obj), ]; obj1 = { style: contentAnimatedStyle }; obj2 = { user }; let guildId; if (null != displayProfile) { guildId = displayProfile.guildId; } let tmp12; if (null != guildId) { tmp12 = guildId; } obj2.guildId = tmp12; obj2.backgroundColor = tmp10; obj2.disableStatus = true; const items1 = [callback(trackUserProfileAction(8080).OpenableUserProfileAvatar, obj2), ]; obj3 = {}; const items2 = [, , ]; ({ profileContentWrapper: arr2[0], profileContent: arr2[1] } = tmp); const obj4 = { paddingTop: closure_5, paddingBottom: importDefault(1557)().bottom + closure_4 }; items2[2] = obj4; obj3.style = items2; const obj5 = { style: tmp.primaryInfo }; const obj6 = { user }; let guild_id1; if (null != channel) { guild_id1 = channel.guild_id; } obj6.guildId = guild_id1; obj6.displayName = name; let pronouns; if (null != displayProfile) { pronouns = displayProfile.pronouns; } obj6.pronouns = pronouns; obj6.badges = tmp5; obj6.badgeContainerBackground = containerBackground; const intl = trackUserProfileAction(1212).intl; obj6.displayNameAccessibilityHint = intl.string(trackUserProfileAction(1212).t.y5MwJy); obj6.onPressDisplayName = handleCopyUsername; obj6.onPressUserTag = handleCopyUsername; obj6.onPressPronouns = function onPressPronouns() { trackUserProfileAction({ action: "PRESS_PRONOUNS" }); trackUserProfileAction(outer1_2[16]).presentUserPronouns(); }; obj6.showBadgeToastOnPress = true; obj5.children = callback(importDefault(8355), obj6); const items3 = [callback(View, obj5), ]; const obj7 = { style: tmp.cards }; const obj8 = { userId: user.id, displayProfile, channel }; const items4 = [tmp.card, ]; const obj9 = { backgroundColor: containerBackground }; items4[1] = obj9; obj8.style = items4; obj7.children = callback(importDefault(11934), obj8); items3[1] = callback(View, obj7); obj3.children = items3; items1[1] = closure_8(View, obj3); obj1.children = items1; items[1] = closure_8(importDefault(4026).View, obj1); obj.children = items; return closure_8(closure_9, obj); } const tmp8 = importDefault(8053)({ user, displayProfile }); }); let result = require("ARBITRARY_LARGE_OFFSET").fileFinishedImporting("modules/user_profile/native/NonUserBotProfileContent.tsx"); export default memoResult;