decord/source/modules/user_profile/native/NonUserBotProfileContent.tsx
2026-07-31 08:44:05 +00:00

148 lines
5.8 KiB
TypeScript

// Module ID: 8385
// Function ID: 8386
// Dependencies: [19, 17, 5567, 5248, 21, 8083, 8111, 4383, 4032, 8099, 8377, 8386, 1581, 8081, 8085, 5547, 3893, 8387, 4054, 8108, 8389, 1236, 11970, 2]
// Module 8385
import { View } from "UserProfileOverscrollBanner";
import ARBITRARY_LARGE_OFFSET from "ARBITRARY_LARGE_OFFSET";
import { ACTION_SHEET_MAX_WIDTH } from "ACTION_SHEET_START_HEIGHT_RATIO";
import jsxProd from "getSystemLocale";
import importAllResult from "OpenableUserProfileAvatar";
let c4;
let c5;
let c9;
let error;
let metroImportAll;
const require = arg1;
({ PROFILE_CONTENT_BOTTOM_PADDING: c4, PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING: c5 } = ARBITRARY_LARGE_OFFSET);
({ jsx: error, jsxs: metroImportAll, Fragment: c9 } = jsxProd);
const memoResult = require("OpenableUserProfileAvatar").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;
const tmp3 = importDefault(8083)();
let obj = trackUserProfileAction(8111);
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
let obj1 = importDefault(4383);
let guild_id;
if (channel != null) {
guild_id = channel.guild_id;
}
let id;
if (channel != null) {
id = channel.id;
}
const name = obj1.useName(guild_id, id, user);
let tmpResult = tmp(4032);
importDefault = tmpResult.useUserTag(user);
const tmp9 = importDefault(8377)(ACTION_SHEET_MAX_WIDTH);
const tmp8 = importDefault(8099)(displayProfile);
({ bannerAnimatedStyle, bannerImageAnimatedStyle, contentAnimatedStyle, blurAnimatedProps, showBlur } = importDefault(8386)({ scrollPosition: scrollPosition.scrollPosition, bannerHeight: tmp9 }));
const tmp10 = importDefault(8386)({ scrollPosition: scrollPosition.scrollPosition, bannerHeight: tmp9 });
({ theme, primaryColor, secondaryColor } = importDefault(8081)({ user, displayProfile }));
const tmp11 = importDefault(8081)({ user, displayProfile });
const userProfileColors = trackUserProfileAction(8085).useUserProfileColors({ theme, primaryColor, secondaryColor });
const containerBackground = userProfileColors.containerBackground;
if (null == user) {
return null;
} else {
obj = { user: null, displayProfile: null, bannerHeight: null, bannerAnimatedStyle: null, bannerImageAnimatedStyle: null, blurAnimatedProps: null, showBlur: null };
obj[0] = user;
obj[1] = displayProfile;
obj[2] = tmp9;
obj[3] = bannerAnimatedStyle;
obj[4] = bannerImageAnimatedStyle;
obj[5] = blurAnimatedProps;
obj[6] = showBlur;
const items = [callback(tmp(8387), obj), ];
obj = { style: null, children: null };
obj[0] = contentAnimatedStyle;
obj1 = { user: null, guildId: null, backgroundColor: null, disableStatus: true };
obj1[0] = user;
let guildId;
if (displayProfile != null) {
guildId = displayProfile.guildId;
}
obj1[1] = guildId;
obj1[2] = tmp13;
const items1 = [callback(tmp4(8108).OpenableUserProfileAvatar, obj1), ];
const obj2 = { style: null, children: null };
const items2 = [, , ];
({ profileContentWrapper: arr2[0], profileContent: arr2[1] } = tmp3);
const obj3 = { paddingTop: null, paddingBottom: null };
obj3[0] = closure_5;
obj3[1] = tmp(1581)().bottom + closure_4;
items2[2] = obj3;
obj2[0] = items2;
const obj4 = { style: null, children: null };
obj4[0] = tmp3.primaryInfo;
const obj5 = { user: null, guildId: null, displayName: null, pronouns: null, badges: null, badgeContainerBackground: null, displayNameAccessibilityHint: null, onPressDisplayName: null, onPressUserTag: null, onPressPronouns: null, showBadgeToastOnPress: true };
obj5[0] = user;
let guild_id1;
tmpResult = tmp(8389);
if (channel != null) {
guild_id1 = channel.guild_id;
}
obj5[1] = guild_id1;
obj5[2] = name;
let pronouns;
if (displayProfile != null) {
pronouns = displayProfile.pronouns;
}
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 obj6 = { children: null };
obj5[3] = pronouns;
obj5[4] = tmp8;
obj5[5] = containerBackground;
const intl = tmp4(1236).intl;
obj5[6] = intl.string(tmp4(1236).t.y5MwJy);
obj5[7] = handleCopyUsername;
obj5[8] = handleCopyUsername;
obj5[9] = function onPressPronouns() {
trackUserProfileAction({ action: "PRESS_PRONOUNS" });
trackUserProfileAction(outer1_2[16]).presentUserPronouns();
};
obj4[1] = callback(tmpResult, obj5);
const items3 = [callback(View, obj4), ];
const obj7 = { style: null, children: null };
obj7[0] = tmp3.cards;
const obj8 = { userId: null, displayProfile: null, channel: null, style: null };
obj8[0] = user.id;
obj8[1] = displayProfile;
obj8[2] = channel;
const items4 = [tmp3.card, ];
const obj9 = { backgroundColor: null };
obj9[0] = containerBackground;
items4[1] = obj9;
obj8[3] = items4;
obj7[1] = callback(tmp(11970), obj8);
items3[1] = callback(View, obj7);
obj2[1] = items3;
items1[1] = closure_8(View, obj2);
obj[1] = items1;
items[1] = closure_8(tmp(4054).View, obj);
obj6[0] = items;
return closure_8(closure_9, obj6);
}
const tmp4Result = trackUserProfileAction(8085);
});
let result = require("ARBITRARY_LARGE_OFFSET").fileFinishedImporting("modules/user_profile/native/NonUserBotProfileContent.tsx");
export default memoResult;