/* Metro module 11530; source: modules/chat_input/native/FloatingChatInputContainer.tsx; dependencies: [57, 31, 33, 4017, 3860, 697, 1599, 4022, 1583, 4504, 4507, 2] */ import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */ import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import UseKeyboardType from '../../keyboard/native/useKeyboardType.tsx'; /* Metro dependency 4022 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as KeyboardTypesModule from '../../keyboard/native/KeyboardTypes.tsx'; /* Metro dependency 1583 */ import * as Module01599Module from '../../../by-id/module-01599.js'; /* Metro dependency 1599 */ import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */ import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as UseKeyboardTypeModule from '../../keyboard/native/useKeyboardType.tsx'; /* Metro dependency 4022 */ import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */ function _fun88306(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:6, offset: 0x01fdef86, size: 226 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Easing = (ReanimatedRexportModule).Easing; const env0_6 = Easing.bezier(0.2, 0, 0, 1); object = {code: 'function FloatingChatInputContainerTsx1(){const{paddingSV}=this.__closure;return{paddingBottom:paddingSV.get()};}'}; (FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/FloatingChatInputContainer.tsx'); exports.default = FloatingChatInputContainer; function FloatingChatInputContainer({style, onLayout, children}) { // fn#88307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:394, offset: 0x01fdf068, size: 101 bytes, params: 2, frame: 18 const value = useKeyboardOpenPaddingStyle(); const View = (ReanimatedRexport).View; return ( {children} ); function useKeyboardOpenPaddingStyle() { // fn#88308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:469, owner: FloatingChatInputContainer.useKeyboardOpenPaddingStyle, offset: 0x01fdf0cd, size: 384 bytes, params: 1, frame: 23 var environment; const value = environment.__proto__; const useToken = UseTokenModule.useToken; const CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL = (Native).modules.mobile.CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL; const value2 = Reflect.apply(useToken, UseTokenModule, [CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL]); const binding = env1_4; const value4 = env1_3(binding.useState(_fun88309), 2); const value5 = 0; const property = value4[value5]; let env0_1 = value4[1]; binding.useEffect(function() { var KeyboardEvents = require(dependencyMap[6]).KeyboardEvents; var env0_0 = KeyboardEvents.addListener('keyboardWillShow', _fun88311); var env0_1 = KeyboardEvents.addListener('keyboardWillHide', _fun88312); return _fun88313; }, []); const useKeyboardContextForType = UseKeyboardTypeModule.useKeyboardContextForType; const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes; let SYSTEM = KeyboardTypes.SYSTEM; const value6 = Reflect.apply(useKeyboardContextForType, UseKeyboardTypeModule, [SYSTEM]).keyboardWillOpen === true; const value7 = (UseKeyboardType)(); SYSTEM = KeyboardTypes.SYSTEM; const value8 = value7 !== SYSTEM; let r9 = property || value6; r9 = !r9 ? value8 : r9; env1_4.useEffect(_fun88314, [r9, value2, (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r9 ? value2 : value5)]); return (require(4017) /* metro dependency 4017: ReanimatedRexport */).useAnimatedStyle(_fun88315()); function _fun88309() { // fn#88309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:614, offset: 0x01fdf24d, size: 74 bytes, params: 1, frame: 12 let value = environment.__proto__.__proto__; value = undefined; const KeyboardController = (Module01599Module).KeyboardController; const value2 = KeyboardController.state(); const height = value2 == null ? value : value2.height; value = 0; return (height ?? value) > value; } function _fun88310() { // fn#88310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:751, offset: 0x01fdf297, size: 115 bytes, params: 1, frame: 18 const KeyboardEvents = (Module01599Module).KeyboardEvents; const env0_0 = KeyboardEvents.addListener('keyboardWillShow', _fun88311); const env0_1 = KeyboardEvents.addListener('keyboardWillHide', _fun88312); return _fun88313; function _fun88311() { // fn#88311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:817, offset: 0x00e6aae9, size: 18 bytes, params: 1, frame: 11 return env1_1(true); } function _fun88312() { // fn#88312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:886, offset: 0x00e6aafb, size: 18 bytes, params: 1, frame: 11 return env1_1(false); } function _fun88313() { // fn#88313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:904, offset: 0x0120697b, size: 35 bytes, params: 1, frame: 10 env0_0.remove(); env0_1.remove(); } } function _fun88314() { // fn#88314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1135, offset: 0x01fdf30a, size: 109 bytes, params: 1, frame: 20 const set = Module00057.set; const withTiming = TimingModule.withTiming; const r4 = env0_2 ? env0_0 : 0; const object = {}; object.duration = (require(4507) /* metro dependency 4507: timingPresets */).timingStandardDuration; object.easing = env2_6; Reflect.apply(set, Module00057, [Reflect.apply(withTiming, TimingModule, [r4, object])]); } function _fun88315() { // fn#88315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1261, offset: 0x01fdf377, size: 62 bytes, params: 1, frame: 3 const FloatingChatInputContainerTsx12 = FloatingChatInputContainerTsx1; FloatingChatInputContainerTsx12.__closure = {paddingSV: Module00057}; FloatingChatInputContainerTsx12.__workletHash = 5673482424037; FloatingChatInputContainerTsx12.__initData = env2_7; return FloatingChatInputContainerTsx12; function FloatingChatInputContainerTsx1() { // fn#88316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1307, offset: 0x01fdf3b5, size: 25 bytes, params: 1, frame: 10 const object = {}; object.paddingBottom = env1_3.get(); return object; } } } } } global.__d(_fun88306, 11530, [57, 31, 33, 4017, 3860, 697, 1599, 4022, 1583, 4504, 4507, 2]) /* metro module 11530, dependencies: [57, 31, 33, 4017, 3860, 697, 1599, 4022, 1583, 4504, 4507, 2] */;