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,107 @@
/* Metro module 11955; source: modules/chat/native/placeholder/ChatPlaceholder.tsx; dependencies: [31, 27, 7729, 33, 4501, 697, 1585, 5463, 1478, 11956, 11957, 11958, 4017, 2] */
function _fun91741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:6, offset: 0x020704cb, size: 296 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
const env0_3 = (require(7729) /* metro dependency 7729: useChatBottomManagerUIStore */).useChatInputContainerHeight;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {};
copyDataProperties(object, StyleSheet.absoluteFillObject, undefined);
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object['paddingBottom'] = PX_24;
object['flexDirection'] = 'column-reverse';
object['overflow'] = 'hidden';
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{placeholder: object}]);
value = value.memo(ChatPlaceholder);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/ChatPlaceholder.tsx');
exports.default = value;
}
function ChatPlaceholder({screenIndex}) { // fn#91742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:340, offset: 0x020705f3, size: 371 bytes, params: 2, frame: 24
const styles = useStyles();
const value2 = useChatInputContainerHeight(screenIndex);
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({'isKeyboardAwareOnAndroid': false,
'includeKeyboardHeight': true}).insets;
const object2 = {};
object2.containerBottomInset = insets.bottom - value3.bottom;
object2.windowVerticalInset = value3.top + insets.bottom;
const containerBottomInset = object2.containerBottomInset;
const env0_2 = containerBottomInset;
const windowVerticalInset = object2.windowVerticalInset;
const binding = env0_2;
const value4 = binding.useMemo(_fun91743, [value2, containerBottomInset]);
const value5 = useLinesForRowIndexCallback();
const value6 = (importDefault(11956) /* metro dependency 11956: useChatPlaceholderAnimatedStyles */)({'visible': true,
'animated': true});
const value7 = binding.useMemo(_fun91746, [height, windowVerticalInset, value2, value5]);
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View style={[styles.placeholder, value4, value6]} pointerEvents="none">
{value7}
</View>
);
}
function _fun91743() { // fn#91743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:690, offset: 0x02070766, size: 23 bytes, params: 1, frame: 3
return {marginBottom: env0_0 + containerBottomInset};
}
function useLinesForRowIndexCallback() { // fn#91744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:725, owner: ChatPlaceholder.useLinesForRowIndexCallback, offset: 0x0207077d, size: 51 bytes, params: 1, frame: 13
const binding = env1_2;
const env0_0 = binding.useRef([]);
return binding.useCallback(_fun91745, []);
}
function _fun91746() { // fn#91746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:953, offset: 0x0207080c, size: 126 bytes, params: 1, frame: 23
var value4;
var push;
var jsxRuntimeEnv1_4Binding;
var ChatPlaceholderRow;
var object2;
var value5;
const items2 = [];
let value = 0;
let r2 = value;
let r3 = value;
reducibleLoop1: while (true) {
value = env0_4(r2);
value4 = r3 + (importDefault(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */)(value);
push = items2.push;
jsxRuntimeEnv1_4Binding = jsxRuntimeEnv1_4;
ChatPlaceholderRow = importDefault(11958) /* metro dependency 11958: ChatPlaceholderRow */;
object2 = {lines: value};
value = typeof r2 === 'bigint' ? r2 : +r2;
value5 = typeof value === 'bigint' ? value + 1n : +value + 1;
Reflect.apply(push, items2, [<ChatPlaceholderRow {...object2} key={value} />]);
value = height - env0_0;
if (value4 < value - windowVerticalInset) {
r2 = value5;
r3 = value4;
continue reducibleLoop1;
}
break reducibleLoop1;
}
return items2;
}
function _fun91745(a0) { // fn#91745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12141:805, offset: 0x020707b0, size: 92 bytes, params: 2, frame: 15
var r0;
var Math;
var value4;
const property = env0_0.current[a0];
if (property != null) {
r0 = property;
} else {
Math = global.Math;
value4 = Math.floor(3 * global.Math.random()) + 1;
env0_0.current[a0] = value4;
r0 = value4;
}
return r0;
}
@@ -0,0 +1,93 @@
/* Metro module 11958; source: modules/chat/native/placeholder/ChatPlaceholderRow.tsx; dependencies: [31, 27, 33, 1305, 4501, 697, 11957, 9671, 2] */
function _fun91753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12144:6, offset: 0x02070c52, size: 519 bytes, params: 8, frame: 26
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_3 = value2.jsx;
const env0_4 = value2.jsxs;
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const NORMAL = AvatarSizes.NORMAL;
const property = AVATAR_SIZE_MAP[NORMAL];
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object6 = {};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingLeft = PX_12;
const CHAT_PLACEHOLDER_ROW_MARGIN_TOP = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_MARGIN_TOP;
object6.paddingTop = CHAT_PLACEHOLDER_ROW_MARGIN_TOP;
object6.flexDirection = 'row';
object3.row = object6;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.rowInner = {marginHorizontal: PX_12, flex: 1};
const object7 = {};
let BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object7.backgroundColor = BACKGROUND_MOD_MUTED;
object7.height = property;
object7.width = property;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.placeholderAvatar = object7;
const object8 = {};
BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object8.backgroundColor = BACKGROUND_MOD_MUTED;
const CHAT_PLACEHOLDER_ROW_LINE_HEIGHT = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_LINE_HEIGHT;
object8.height = CHAT_PLACEHOLDER_ROW_LINE_HEIGHT;
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.placeholderText = object8;
const CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP;
object3.placeholderBody = {marginTop: CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP, width: '100%'};
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object3]);
value = value.memo(ChatPlaceholderRow);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/ChatPlaceholderRow.tsx');
exports.default = value;
}
function ChatPlaceholderRow({lines}) { // fn#91754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12144:762, offset: 0x02070e59, size: 400 bytes, params: 2, frame: 30
var r1;
var defaultImport;
var value7;
var push;
var jsxRuntimeEnv0_3Binding;
var placeholderText;
var placeholderBody;
var value8;
const styles = useStyles();
let Math = global.Math;
let floor = Math.floor;
const Math2 = global.Math;
const value3 = Reflect.apply(floor, Math, [10 * Math2.random()]);
Math = global.Math;
floor = Math.floor;
const Math3 = global.Math;
const value5 = Reflect.apply(floor, Math, [50 * Math3.random()]) + 10;
const items2 = [];
if (0 < lines) {
for (r1 = 0; true; r1 = value8) {
defaultImport = importDefault(9671) /* metro dependency 9671: getChatPlaceholderRowWidth */;
value7 = defaultImport(value3 + r1);
push = items2.push;
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
placeholderText = styles.placeholderText;
placeholderBody = styles.placeholderBody;
Reflect.apply(push, items2, [<View style={[placeholderText, placeholderBody,
{width: '' + value7 + '%'}]} key={r1} />]);
value8 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value8 < lines)) {
break;
}
}
}
const items3 = [<View style={styles.placeholderAvatar} />];
items3[1] = <View style={styles.rowInner}><View style={[styles.placeholderText,
{width: '' + value5 + '%'}]} />{items2}</View>;
return (
<View style={styles.row}>
{items3}
</View>
);
}
@@ -0,0 +1,24 @@
/* Metro module 11957; source: modules/chat/native/placeholder/getChatPlaceholderRowHeight.tsx; dependencies: [697, 1305, 2] */
function _fun91751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12143:6, offset: 0x02070b2a, size: 237 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const NORMAL = AvatarSizes.NORMAL;
const property = AVATAR_SIZE_MAP[NORMAL];
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/getChatPlaceholderRowHeight.tsx');
exports.default = getChatPlaceholderRowHeight;
exports.CHAT_PLACEHOLDER_ROW_MARGIN_TOP = PX_24;
exports.CHAT_PLACEHOLDER_ROW_AVATAR_HEIGHT = property;
exports.CHAT_PLACEHOLDER_ROW_LINE_HEIGHT = PX_16;
exports.CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP = PX_12;
}
function getChatPlaceholderRowHeight(a0) { // fn#91752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12143:323, offset: 0x02070c17, size: 59 bytes, params: 2, frame: 16
const Math = global.Math;
return PX_24 + Math.max(env0_1, PX_16 + a0 * (PX_16 + PX_12));
}
@@ -0,0 +1,15 @@
/* Metro module 9671; source: modules/chat/native/placeholder/getChatPlaceholderRowWidth.tsx; dependencies: [2] */
function _fun75781(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9857:6, offset: 0x01db9a0e, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/getChatPlaceholderRowWidth.tsx');
exports.default = function(a0) {
var Math = global.Math;
var value = Math.sin(a0);
value = 10000 * value;
Math = global.Math;
value -= Math.floor(value);
return 40 * value + 60;
};
}
@@ -0,0 +1,83 @@
/* Metro module 11956; source: modules/chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx; dependencies: [4502, 1305, 566, 4017, 4504, 4507, 2] */
function _fun91747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:6, offset: 0x0207088a, size: 169 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
object2 = {duration: 1300};
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
object2.easing = STANDARD_EASING;
object2 = {code: 'function useChatPlaceholderAnimatedStylesTsx1(){const{visible,animated,useReducedMotion,withRepeat,withSequence,withTiming,timingNone,TIMING_CONFIG}=this.__closure;if(!visible){return{opacity:0};}else if(!animated||useReducedMotion){return{opacity:0.7};}return{opacity:withRepeat(withSequence(withTiming(0.3,timingNone),withTiming(0.7,TIMING_CONFIG),withTiming(0.3,TIMING_CONFIG)),-1)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx');
exports.default = useChatPlaceholderAnimatedStyles;
}
function useChatPlaceholderAnimatedStyles({visible, animated}) { // fn#91748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:666, offset: 0x02070933, size: 258 bytes, params: 2, frame: 21
var object2;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = useChatPlaceholderAnimatedStylesC;
object2 = {visible: visible, animated: animated, useReducedMotion: useReducedMotion};
object2.withRepeat = reanimatedRexportModule.withRepeat;
object2.withSequence = reanimatedRexportModule.withSequence;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.timingNone = (require(4507) /* metro dependency 4507: timingPresets */).timingNone;
object2.TIMING_CONFIG = env0_3;
closure.__closure = object2;
closure.__workletHash = 3375288363194;
closure.__initData = env0_4;
return Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
}
function useChatPlaceholderAnimatedStylesC() { // fn#91750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:833, owner: useChatPlaceholderAnimatedStyles.c, offset: 0x02070a35, size: 245 bytes, params: 1, frame: 26
var object;
var r0;
var moduleValue;
var withRepeat;
var moduleValue2;
var withSequence;
var withTiming;
var value2;
var moduleValue4;
var binding;
var moduleValue5;
var value;
if (visible) {
if (animated) {
if (useReducedMotion) {
object = {opacity: 0.7};
} else {
value = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withRepeat = moduleValue.withRepeat;
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue2.withSequence;
value2 = (require(4504) /* metro dependency 4504: timing */).withTiming(0.3,
(require(4507) /* metro dependency 4507: timingPresets */).timingNone);
moduleValue4 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue4.withTiming;
binding = env1_3;
value = Reflect.apply(withTiming, moduleValue4, [0.7, binding]);
moduleValue5 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue5.withTiming;
value = Reflect.apply(withSequence, moduleValue2, [value2, value, Reflect.apply(withTiming,
moduleValue5,
[0.3,
binding])]);
object = {opacity: Reflect.apply(withRepeat, moduleValue, [value, -1])};
}
} else {
object = {opacity: 0.7};
}
r0 = object;
} else {
r0 = {opacity: 0};
}
return r0;
}