// Module ID: 11283 // Function ID: 11284 // Name: ChatViewWrapperAnimatedKeyboard // Dependencies: [19, 17, 21, 4218, 4485, 11284, 4482, 5534, 11289, 11291, 7096, 11292, 2] // Exports: default // Module 11283 (ChatViewWrapperAnimatedKeyboard) import useCustomKeyboardHeightDefault from "useCustomKeyboardHeight" /* 5534 */; import useChannelSafeAreaBottomStylesDefault from "useChannelSafeAreaBottomStyles" /* 11289 */; import importAllResult from "noop" /* 19 */; import { View } from "get ActivityIndicator" /* 17 */; import jsxProd from "jsxProd" /* 21 */; import { Easing } from "module_4218" /* 4218 */; const require = arg1; let c3 = importAllResult; ({ jsx: c5, jsxs: closure_6 } = jsxProd); let obj = { duration: require("timingNone").timingStandardDuration, easing: Easing.bezier(0.2, 0, 0, 1) }; let closure_8 = { code: "function ChatViewWrapperAnimatedKeyboardTsx1(){const{animatedHeight}=this.__closure;return animatedHeight.get();}" }; let closure_9 = { code: "function ChatViewWrapperAnimatedKeyboardTsx2(height,heightPrev){const{animatedAdjustedMargin,animatedAdjustedMarginPending}=this.__closure;if(heightPrev==null){return;}if(height { closure_0 = undefined; const tmp = useCustomKeyboardHeightDefault(); closure_0 = tmp; const items = [tmp]; obj = { style: null }; const items1 = [useChannelSafeAreaBottomStylesDefault(channelId.channelId), importAllResult.useMemo(() => ({ position: "absolute", bottom: -closure_0, height: closure_0, right: 0, left: 0 }), items)]; obj[0] = items1; return callback(View, obj); }); const bezierResult = Easing.bezier(0.2, 0, 0, 1); let result = require("set").fileFinishedImporting("modules/chat/native/ChatViewWrapperAnimatedKeyboard.tsx"); export default function ChatViewWrapperAnimatedKeyboard(arg0) { ({ channelId, style } = arg0); ({ children, stickyHeader } = arg0); obj = undefined; let sharedValue; let sharedValue1; obj = sharedValue(sharedValue1[5])(); obj1 = obj(sharedValue1[3]); sharedValue = obj1.useSharedValue(obj.get()); let obj2 = obj(sharedValue1[3]); sharedValue1 = obj2.useSharedValue(-1); let tmp = sharedValue(sharedValue1[9])(channelId); let fn = function n() { return obj.get(); }; fn.__closure = { animatedHeight: obj }; fn.__workletHash = 9219066704490; fn.__initData = closure_8; const fn2 = function t(arg0, arg1) { if (null != arg1) { if (arg0 < arg1) { const result = sharedValue.set(arg0); const result1 = sharedValue1.set(-1); } else { const result2 = sharedValue1.set(arg0); } } }; fn2.__closure = { animatedAdjustedMargin: sharedValue, animatedAdjustedMarginPending: sharedValue1 }; fn2.__workletHash = 15141457454312; fn2.__initData = closure_9; const animatedReaction = obj(sharedValue1[3]).useAnimatedReaction(fn, fn2); const obj4 = obj(sharedValue1[3]); const fn3 = function s() { obj = { flex: 1, marginTop: sharedValue.get(), transform: null }; obj = { translateY: null }; const fn = function t(arg0) { let tmp = arg0; if (arg0) { tmp = -1 !== store.get(); } if (tmp) { const result = closure_1.set(store.get()); const result1 = store.set(-1); } }; obj = { animatedAdjustedMarginPending: sharedValue1, animatedAdjustedMargin: sharedValue }; fn.__closure = obj; fn.__workletHash = 16224255032954; fn.__initData = closure_1_11; obj[0] = obj(sharedValue1[6]).withTiming(-obj.get(), closure_1_7, "respect-motion-settings", fn); const items = [obj]; obj[2] = items; return obj; }; obj = { animatedAdjustedMargin: sharedValue, withTiming: obj(sharedValue1[6]).withTiming, animatedHeight: obj, INSET_ANIMATION_CONFIG2: obj, animatedAdjustedMarginPending: sharedValue1 }; fn3.__closure = obj; fn3.__workletHash = 7205645695043; fn3.__initData = closure_10; const animatedStyle = obj(sharedValue1[3]).useAnimatedStyle(fn3); obj = { children: null }; obj1 = { header: stickyHeader, style, pointerEvents: tmp, children: null }; obj2 = { style: animatedStyle, children: null }; let items = [callback(View, { style, children }), callback(closure_12, { channelId })]; obj2[1] = items; obj1[3] = callback2(sharedValue(sharedValue1[3]).View, obj2); obj[0] = callback(obj(sharedValue1[11]).StickyWrapper, obj1); return callback(obj(sharedValue1[10]).LayerScope, obj); };