decord/source/__polyfill/07xxx/module_7002.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

32 lines
1.8 KiB
JavaScript

// Module ID: 7002
// Function ID: 7003
// Dependencies: [19, 21, 6825, 1637, 6821, 6831]
// Exports: default
// Module 7002
import cancelAnimation from "cancelAnimation" /* 1637 */;
import value2 from "value2" /* 6821 */;
import _mod6825 from "module_6825" /* 6825 */;
import BottomSheetContext from "BottomSheetContext" /* 6831 */;
import noop from "module_19" /* 19 */;
require = fn;
const useMemo = fn(19).useMemo;
const jsx = fn(21).jsx;
export default function _default(children) {
let useGestureEventsHandlersDefault = children.gestureEventsHandlersHook;
if (useGestureEventsHandlersDefault === undefined) {
useGestureEventsHandlersDefault = _mod6825.useGestureEventsHandlersDefault;
}
const sharedValue = cancelAnimation.useSharedValue(value2.GESTURE_SOURCE.UNDETERMINED);
const bottomSheetInternal = _mod6825.useBottomSheetInternal();
({ animatedHandleGestureState, animatedContentGestureState } = bottomSheetInternal);
({ handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize } = useGestureEventsHandlersDefault());
const gestureEventsHandlersDefault = useGestureEventsHandlersDefault();
const gestureHandler = _mod6825.useGestureHandler(value2.GESTURE_SOURCE.CONTENT, animatedContentGestureState, sharedValue, handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize);
const gestureHandler1 = _mod6825.useGestureHandler(value2.GESTURE_SOURCE.HANDLE, animatedHandleGestureState, sharedValue, handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize);
const items = [gestureHandler, gestureHandler1, sharedValue];
value = useMemo(() => ({ contentPanGestureHandler: gestureHandler, handlePanGestureHandler: gestureHandler1, animatedGestureSource: sharedValue }), items);
return jsx(BottomSheetContext.BottomSheetGestureHandlersContext.Provider, { value, children: children.children });
};