decord/source/5327_BottomSheetFooterContainer.js

30 lines
3.5 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5327
2026-07-24 07:16:23 +00:00
// Function ID: 45870
2026-07-20 16:05:17 +00:00
// Name: BottomSheetFooterContainer
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 5194, 1582, 5193, 5190]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 5327 (BottomSheetFooterContainer)
2026-07-20 16:05:17 +00:00
let closure_2 = { code: "function pnpm_BottomSheetFooterContainerTsx1(){const{animatedHandleHeight,INITIAL_HANDLE_HEIGHT,animatedKeyboardHeightInContainer,animatedContainerHeight,animatedPosition,animatedKeyboardState,animatedFooterHeight,KEYBOARD_STATE}=this.__closure;const handleHeight=animatedHandleHeight.get();if(handleHeight===INITIAL_HANDLE_HEIGHT){return 0;}const keyboardHeight=animatedKeyboardHeightInContainer.get();const containerHeight=animatedContainerHeight.get();const position=animatedPosition.get();const keyboardState=animatedKeyboardState.get();const footerHeight=animatedFooterHeight.get();let footerTranslateY=Math.max(0,containerHeight-position);if(keyboardState===KEYBOARD_STATE.SHOWN){footerTranslateY=footerTranslateY-keyboardHeight;}footerTranslateY=footerTranslateY-footerHeight-handleHeight;return footerTranslateY;}" };
2026-07-23 10:11:24 +00:00
const memoResult = require("result").memo(function BottomSheetFooterContainerComponent(renderFooter) {
let obj = animatedContainerHeight(animatedHandleHeight[1]);
2026-07-20 16:05:17 +00:00
const bottomSheetInternal = obj.useBottomSheetInternal();
2026-07-23 10:11:24 +00:00
animatedContainerHeight = bottomSheetInternal.animatedContainerHeight;
animatedHandleHeight = bottomSheetInternal.animatedHandleHeight;
2026-07-20 16:05:17 +00:00
const animatedFooterHeight = bottomSheetInternal.animatedFooterHeight;
const animatedPosition = bottomSheetInternal.animatedPosition;
const animatedKeyboardState = bottomSheetInternal.animatedKeyboardState;
const animatedKeyboardHeightInContainer = bottomSheetInternal.animatedKeyboardHeightInContainer;
obj = {};
/* worklet (recovered source) */ function pnpm_BottomSheetFooterContainerTsx1(){const{animatedHandleHeight,INITIAL_HANDLE_HEIGHT,animatedKeyboardHeightInContainer,animatedContainerHeight,animatedPosition,animatedKeyboardState,animatedFooterHeight,KEYBOARD_STATE}=this.__closure;const handleHeight=animatedHandleHeight.get();if(handleHeight===INITIAL_HANDLE_HEIGHT){return 0;}const keyboardHeight=animatedKeyboardHeightInContainer.get();const containerHeight=animatedContainerHeight.get();const position=animatedPosition.get();const keyboardState=animatedKeyboardState.get();const footerHeight=animatedFooterHeight.get();let footerTranslateY=Math.max(0,containerHeight-position);if(keyboardState===KEYBOARD_STATE.SHOWN){footerTranslateY=footerTranslateY-keyboardHeight;}footerTranslateY=footerTranslateY-footerHeight-handleHeight;return footerTranslateY;}
2026-07-23 10:11:24 +00:00
obj = { animatedHandleHeight, INITIAL_HANDLE_HEIGHT: animatedContainerHeight(animatedHandleHeight[3]).INITIAL_HANDLE_HEIGHT, animatedKeyboardHeightInContainer, animatedContainerHeight, animatedPosition, animatedKeyboardState, animatedFooterHeight, KEYBOARD_STATE: animatedContainerHeight(animatedHandleHeight[4]).KEYBOARD_STATE };
2026-07-20 16:05:17 +00:00
pnpm_BottomSheetFooterContainerTsx1.__closure = obj;
pnpm_BottomSheetFooterContainerTsx1.__workletHash = 8297656659240;
2026-07-23 10:11:24 +00:00
pnpm_BottomSheetFooterContainerTsx1.__initData = animatedFooterHeight;
2026-07-20 16:05:17 +00:00
const items = [animatedKeyboardHeightInContainer, animatedContainerHeight, animatedPosition, animatedKeyboardState, animatedFooterHeight, animatedHandleHeight];
2026-07-23 10:11:24 +00:00
obj.animatedFooterPosition = animatedContainerHeight(animatedHandleHeight[2]).useDerivedValue(pnpm_BottomSheetFooterContainerTsx1, items);
2026-07-20 16:05:17 +00:00
return renderFooter.renderFooter(obj);
});
memoResult.displayName = "BottomSheetFooterContainer";
export const BottomSheetFooterContainer = memoResult;