Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,90 @@
/* Metro module 8691; source: modules/custom_status/native/CustomStatusPreview.tsx; dependencies: [31, 27, 6816, 33, 4501, 697, 8490, 8501, 8494, 8496, 8497, 4015, 4080, 8692, 1962, 3868, 8507, 8510, 8511, 8513, 8695, 8474, 2] */
function _fun68302(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:6, offset: 0x01c47e2c, size: 237 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(6816) /* metro dependency 6816: Constants */;
const env0_5 = value.PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING;
const env0_6 = value.UserProfileThemeTypes;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun68303);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/native/CustomStatusPreview.tsx');
exports.default = CustomStatusPreview;
}
function _fun68303(a0) { // fn#68303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:255, offset: 0x01c47f19, size: 166 bytes, params: 2, frame: 18
const object = {'flex': 1, 'position': 'relative', 'overflow': 'hidden', 'width': 323, 'maxHeight': 301};
const value = 1;
object.borderWidth = a0 ? undefined : value;
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
object.borderColor = a0 ? colors.BORDER_MUTED : colors.BACKGROUND_SURFACE_HIGH;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const SHADOW_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_HIGH;
copyDataProperties(object, SHADOW_HIGH, importDefault);
return {profileContainer: object, profileEffect: {zIndex: value}};
}
function CustomStatusPreview({user, pendingStatusText, pendingStatusEmoji, placeholderText}) { // fn#68304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:639, offset: 0x01c47fbf, size: 843 bytes, params: 2, frame: 40
var r8;
var value;
const value3 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(user.id);
const value4 = (importDefault(8501) /* metro dependency 8501: useBadges */)(value3);
const {theme, primaryColor,
secondaryColor} = (importDefault(8494) /* metro dependency 8494: useProfileTheme */)({user: user,
displayProfile: value3});
const value6 = primaryColor != null;
const styles = useStyles(value6);
const value7 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
const {gradientFallbackBackground, avatarBackground,
containerBackground} = (require(8497) /* metro dependency 8497: useUserProfileColors */).useUserProfileColors({theme: theme,
primaryColor: primaryColor, secondaryColor: secondaryColor});
const value9 = env0_3.useCallback(_fun68305, [user, pendingStatusText, pendingStatusEmoji]);
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
const items3 = [styles.profileContainer];
const items2 = [((Component) => <Component user={user} displayProfile={value3} bannerHeight={132} disableInteraction />)(importDefault(8507) /* metro dependency 8507: UserProfileBanner */)];
const value11 = ((Component) => <Component user={user} backgroundColor={avatarBackground} disableStatus />)(importDefault(8510) /* metro dependency 8510: UserProfileAvatar */);
const UserProfileGradientContainer = importDefault(8511) /* metro dependency 8511: UserProfileGradientContainer */;
const items4 = [value7.profileContentWrapper];
items4[1] = value7.profileContent;
let r18 = pendingStatusText !== '' || pendingStatusEmoji !== null;
r18 = !r18 ? placeholderText !== '' : r18;
items4[2] = !r18 && ({paddingTop: PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING});
const value16 = ((Component) => <Component hasCustomProfileTheme={value6} style={value7.customStatusBubble} emojiOnlyStyle={value7.emojiOnlyCustomStatusBubble} onPressTruncatedStatus={value9} previewEmoji={pendingStatusEmoji} previewText={pendingStatusText} placeholderText={placeholderText} />)(importDefault(8513) /* metro dependency 8513: UserProfileCustomStatusBubble */);
const UserProfilePrimaryInfo = importDefault(8695) /* metro dependency 8695: UserProfilePrimaryInfo */;
const PREVIEW = UserProfileThemeTypes.PREVIEW;
items2[1] = <View>{value11}<UserProfileGradientContainer fallbackBackground={gradientFallbackBackground} primaryColor={primaryColor} secondaryColor={primaryColor} containerStyle={items4}>{value16}<UserProfilePrimaryInfo user={user} themeType={PREVIEW} pronouns={value3?.pronouns} badges={value4} badgeContainerBackground={containerBackground} showBadgeToastOnPress={false} /></UserProfileGradientContainer></View>;
const value17 = value3?.profileEffect != null;
if (value17) {
value = importDefault(8474) /* metro dependency 8474: ProfileEffect */;
value = ((Component) => <Component skuId={value3 == null ? undefined : value3.profileEffect.skuId} style={styles.profileEffect} />)(value);
r8 = value;
} else {
r8 = value17;
}
items2[2] = r8;
return (
<ThemeContextProvider
theme={theme}
primaryColor={primaryColor}
secondaryColor={secondaryColor}
>
<View style={items3}>
{items2}
</View>
</ThemeContextProvider>
);
}
function _fun68305() { // fn#68305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:1050, offset: 0x01c4830a, size: 140 bytes, params: 1, frame: 18
let value = environment.__proto__;
require(dependencyMap[11]).dismissKeyboard();
value = importDefault(dependencyMap[12]);
value.openLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths),
'UserProfileCustomStatusActionSheet', {user: user, previewText: pendingStatusText,
previewEmoji: pendingStatusEmoji}, 'stack');
}