Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
32 lines
1.8 KiB
JavaScript
32 lines
1.8 KiB
JavaScript
// Module ID: 6920
|
|
// Function ID: 6921
|
|
// Dependencies: [19, 21, 6743, 1637, 6739, 6749]
|
|
// Exports: default
|
|
|
|
// Module 6920
|
|
import cancelAnimation from "cancelAnimation" /* 1637 */;
|
|
import value2 from "value2" /* 6739 */;
|
|
import _mod6743 from "module_6743" /* 6743 */;
|
|
import BottomSheetContext from "BottomSheetContext" /* 6749 */;
|
|
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 = _mod6743.useGestureEventsHandlersDefault;
|
|
}
|
|
const sharedValue = cancelAnimation.useSharedValue(value2.GESTURE_SOURCE.UNDETERMINED);
|
|
const bottomSheetInternal = _mod6743.useBottomSheetInternal();
|
|
({ animatedHandleGestureState, animatedContentGestureState } = bottomSheetInternal);
|
|
({ handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize } = useGestureEventsHandlersDefault());
|
|
const gestureEventsHandlersDefault = useGestureEventsHandlersDefault();
|
|
const gestureHandler = _mod6743.useGestureHandler(value2.GESTURE_SOURCE.CONTENT, animatedContentGestureState, sharedValue, handleOnStart, handleOnChange, handleOnEnd, handleOnFinalize);
|
|
const gestureHandler1 = _mod6743.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 });
|
|
};
|