/* 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 ( {value7} ); } 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, []); 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; }