decord/source/__polyfill/06xxx/module_6881.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

32 lines
1.8 KiB
JavaScript

// Module ID: 6881
// Function ID: 6882
// Dependencies: [19, 21, 6704, 1636, 6700, 6710]
// Exports: default
// Module 6881
import cancelAnimation from "cancelAnimation" /* 1636 */;
import value2 from "value2" /* 6700 */;
import _mod6704 from "module_6704" /* 6704 */;
import BottomSheetContext from "BottomSheetContext" /* 6710 */;
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 = _mod6704.useGestureEventsHandlersDefault;
}
const sharedValue = cancelAnimation.useSharedValue(value2.GESTURE_SOURCE.UNDETERMINED);
const bottomSheetInternal = _mod6704.useBottomSheetInternal();
({ animatedHandleGestureState, animatedContentGestureState } = bottomSheetInternal);
({ handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize } = useGestureEventsHandlersDefault());
const gestureEventsHandlersDefault = useGestureEventsHandlersDefault();
const gestureHandler = _mod6704.useGestureHandler(value2.GESTURE_SOURCE.CONTENT, animatedContentGestureState, sharedValue, handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize);
const gestureHandler1 = _mod6704.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 });
};