/* Metro module 8759; source: modules/user_profile/native/NonUserBotProfileContent.tsx; dependencies: [31, 27, 6816, 6276, 33, 8496, 8514, 4617, 3995, 8501, 8752, 8760, 1585, 8494, 8497, 6797, 3856, 8761, 4017, 8510, 8695, 1244, 8762, 2] */
function _fun68545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8944:6, offset: 0x01c52f0c, size: 242 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const constantsModule = require(6816) /* metro dependency 6816: Constants */;
const env0_4 = constantsModule.PROFILE_CONTENT_BOTTOM_PADDING;
const env0_5 = constantsModule.PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING;
const env0_6 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
const value3 = require(33) /* metro dependency 33 */;
const env0_7 = value3.jsx;
const env0_8 = value3.jsxs;
const env0_9 = value3.Fragment;
value = value.memo(NonUserBotProfileContent);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/NonUserBotProfileContent.tsx');
exports.default = value;
}
function NonUserBotProfileContent({user, channel, displayProfile, scrollPosition}) { // fn#68546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8944:300, offset: 0x01c52ffe, size: 1017 bytes, params: 2, frame: 40
const value3 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
const userProfileAnalyticsContextModule = require(8514) /* metro dependency 8514: UserProfileAnalyticsContext */;
const useUserProfileAnalyticsContext = userProfileAnalyticsContextModule.useUserProfileAnalyticsContext;
const env0_0 = Reflect.apply(useUserProfileAnalyticsContext, userProfileAnalyticsContextModule,
[]).trackUserProfileAction;
const defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
const useName = defaultImport.useName;
let guild_id = channel?.guild_id;
const value4 = Reflect.apply(useName, defaultImport, [guild_id, channel?.id, user]);
const env0_1 = (importDefault(3995) /* metro dependency 3995: UserUtils */).useUserTag(user);
const value5 = (importDefault(8501) /* metro dependency 8501: useBadges */)(displayProfile);
const value6 = (importDefault(8752) /* metro dependency 8752: useUserProfileBannerHeight */)(ACTION_SHEET_MAX_WIDTH);
const {bannerAnimatedStyle, bannerImageAnimatedStyle, contentAnimatedStyle, blurAnimatedProps,
showBlur} = (importDefault(8760) /* metro dependency 8760: useUserProfileOverscrollStyles */)({scrollPosition: scrollPosition,
bannerHeight: value6});
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const {theme, primaryColor,
secondaryColor} = (importDefault(8494) /* metro dependency 8494: useProfileTheme */)({user: user,
displayProfile: displayProfile});
const {avatarBackground,
containerBackground} = (require(8497) /* metro dependency 8497: useUserProfileColors */).useUserProfileColors({theme: theme,
primaryColor: primaryColor, secondaryColor: secondaryColor});
if (user == null) {
return null;
}
const closure = onPressDisplayName;
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const value10 = ((Component) => )(importDefault(8761) /* metro dependency 8761: UserProfileOverscrollBanner */);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const value11 = ((Component) => )(importDefault(8510) /* metro dependency 8510: UserProfileAvatar */);
const items3 = [value3.profileContentWrapper];
items3[1] = value3.profileContent;
items3[2] = {paddingTop: PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING,
paddingBottom: bottom + PROFILE_CONTENT_BOTTOM_PADDING};
const primaryInfo = value3.primaryInfo;
const UserProfilePrimaryInfo = importDefault(8695) /* metro dependency 8695: UserProfilePrimaryInfo */;
guild_id = channel?.guild_id;
const pronouns = displayProfile?.pronouns;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<>
{value10}
{value11}
{((Component) => )(importDefault(8762) /* metro dependency 8762: UserProfileAboutMeCard */)}
>
);
}
function NonUserBotProfileContentOnPressDisplayName() { // fn#68547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8944:1019, owner: NonUserBotProfileContent.onPressDisplayName, offset: 0x01c533f7, size: 88 bytes, params: 1, frame: 14
trackUserProfileAction({action: 'COPY_USERNAME'});
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_1);
(require(3856) /* metro dependency 3856: ToastUtils */).presentUsernameCopied();
}
function NonUserBotProfileContentOnPressPronouns() { // fn#68548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8944:1827, owner: NonUserBotProfileContent.onPressPronouns, offset: 0x01c5344f, size: 61 bytes, params: 1, frame: 12
trackUserProfileAction({action: 'PRESS_PRONOUNS'});
const value = environment.__proto__;
(require(3856) /* metro dependency 3856: ToastUtils */).presentUserPronouns();
}