// Module ID: 10335 // Function ID: 10336 // Name: ChatViewWrapperAnimatedKeyboard // Dependencies: [19, 17, 21, 4811, 5095, 558, 10336, 5092, 576, 6666, 10342, 10344, 6842, 10345, 2] // Module 10335 (ChatViewWrapperAnimatedKeyboard) import react_native from "react-native" /* 17 */; import react2 from "react" /* 576 */; import ReanimatedRexport from "ReanimatedRexport" /* 4811 */; import timing from "timing" /* 5092 */; import timingPresets from "timingPresets" /* 5095 */; import useCustomKeyboardHeightDefault from "useCustomKeyboardHeight" /* 6666 */; import LayerScope2 from "LayerScope" /* 6842 */; import useChannelSafeAreaBottomStylesDefault from "useChannelSafeAreaBottomStyles" /* 10342 */; import useChatViewPointerEventsDefault from "useChatViewPointerEvents" /* 10344 */; import StickyWrapper2 from "StickyWrapper" /* 10345 */; import react from "react" /* 19 */; import Fragment from "Fragment" /* 21 */; import ReactCompilerGating_mod from "ReactCompilerGating" /* 558 */; import size from "module_2" /* 2 */; let bezierResult; let hasOwnProperty; let metroRequire; let tmp4; const ReanimatedRexportDefault = tmp4(4811); let View = react_native.View; ({ jsx: hasOwnProperty, jsxs: metroRequire } = Fragment); const Easing = ReanimatedRexport.Easing; let obj = { duration: timingPresets.timingStandardDuration, easing: bezierResult }; const __initData = { code: "function ChatViewWrapperAnimatedKeyboardTsx1(){const{animatedHeight}=this.__closure;return animatedHeight.get();}" }; const __initData2 = { code: "function ChatViewWrapperAnimatedKeyboardTsx2(height,heightPrev){const{animatedAdjustedMargin,animatedAdjustedMarginPending}=this.__closure;if(heightPrev==null){return;}if(height { const rect = { position: "absolute", bottom: -height, height, right: 0, left: 0 }; return rect; }, items); return hasOwnProperty(View, obj); })); ReactCompilerGating = ReactCompilerGating_mod; let tmp5 = ReactCompilerGating.isReactCompilerEnabled() ? (function ChatViewWrapperAnimatedKeyboard(arg0) { let channelId; let children; let items; let obj4; let stickyHeader; let style; obj = react2; const cResult = obj.c(14); ({ channelId, children, stickyHeader, style } = arg0); const tmp5 = useChatViewPointerEventsDefault(channelId); const tmp6 = closure_16(); if (cResult[0] === children) { let tmp7; let tmp9; if (cResult[1] === style) { tmp7 = cResult[2]; } if (cResult[3] !== channelId) { const obj2 = { channelId }; const tmp12 = hasOwnProperty(closure_17, obj2); cResult[3] = channelId; cResult[4] = tmp12; tmp9 = tmp12; } else { tmp9 = cResult[4]; } if (cResult[5] === tmp6) { if (cResult[6] === tmp7) { let tmp13; if (cResult[7] === tmp9) { tmp13 = cResult[8]; } if (cResult[9] === tmp5) { if (cResult[10] === stickyHeader) { if (cResult[11] === style) { let tmp16; if (cResult[12] === tmp13) { tmp16 = cResult[13]; } return tmp16; } } } const obj3 = { children: hasOwnProperty(StickyWrapper2.StickyWrapper, obj4) }; const LayerScope = tmp(6842).LayerScope; obj4 = { header: stickyHeader, style, pointerEvents: tmp5, children: tmp13 }; const tmp18 = hasOwnProperty(LayerScope, obj3); cResult[9] = tmp5; cResult[10] = stickyHeader; cResult[11] = style; cResult[12] = tmp13; cResult[13] = tmp18; tmp16 = tmp18; } } const obj5 = { style: tmp6, children: items }; items = [tmp7, tmp9]; const tmp15 = metroRequire(ReanimatedRexportDefault.View, obj5); cResult[5] = tmp6; cResult[6] = tmp7; cResult[7] = tmp9; cResult[8] = tmp15; tmp13 = tmp15; } const tmp8 = hasOwnProperty(View, { style, children }); cResult[0] = children; cResult[1] = style; cResult[2] = tmp8; tmp7 = tmp8; }) : (function ChatViewWrapperAnimatedKeyboard(arg0) { let StickyWrapper; let channelId; let children; let items; let obj2; let obj3; let stickyHeader; let style; ({ channelId, style } = arg0); ({ children, stickyHeader } = arg0); const tmp = useChatViewPointerEventsDefault(channelId); obj = { children: hasOwnProperty(StickyWrapper, obj2) }; const tmp2 = closure_16(); const LayerScope = LayerScope2.LayerScope; obj2 = { header: stickyHeader, style, pointerEvents: tmp, children: metroRequire(View, obj3) }; obj3 = { style: tmp2, children: items }; StickyWrapper = StickyWrapper2.StickyWrapper; View = ReanimatedRexportDefault.View; items = [hasOwnProperty(View, { style, children }), hasOwnProperty(closure_17, { channelId })]; return hasOwnProperty(LayerScope, obj); }); let result = size.fileFinishedImporting("modules/chat/native/ChatViewWrapperAnimatedKeyboard.tsx"); export default tmp5;