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