react-native-reanimated-carousel 5.0.0-beta.7 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -28
- package/lib/commonjs/components/Carousel.js +1 -1
- package/lib/commonjs/components/Carousel.js.map +1 -1
- package/lib/commonjs/components/CarouselLayout.js +1 -1
- package/lib/commonjs/components/CarouselLayout.js.map +1 -1
- package/lib/commonjs/components/ItemLayout.js +1 -1
- package/lib/commonjs/components/ItemLayout.js.map +1 -1
- package/lib/commonjs/components/ItemRenderer.js +1 -1
- package/lib/commonjs/components/ItemRenderer.js.map +1 -1
- package/lib/commonjs/components/Pagination/PaginationItem.js +2 -0
- package/lib/commonjs/components/Pagination/PaginationItem.js.map +1 -0
- package/lib/commonjs/components/Pagination/index.js +1 -1
- package/lib/commonjs/components/Pagination/index.js.map +1 -1
- package/lib/commonjs/components/ScrollViewGesture.js +1 -1
- package/lib/commonjs/components/ScrollViewGesture.js.map +1 -1
- package/lib/commonjs/hooks/useAutoPlay.js +1 -1
- package/lib/commonjs/hooks/useAutoPlay.js.map +1 -1
- package/lib/commonjs/hooks/useCarouselController.js +1 -1
- package/lib/commonjs/hooks/useCarouselController.js.map +1 -1
- package/lib/commonjs/hooks/useCommonVariables.js +1 -1
- package/lib/commonjs/hooks/useCommonVariables.js.map +1 -1
- package/lib/commonjs/hooks/useInitProps.js +1 -1
- package/lib/commonjs/hooks/useInitProps.js.map +1 -1
- package/lib/commonjs/hooks/useLayoutConfig.js +1 -1
- package/lib/commonjs/hooks/useLayoutConfig.js.map +1 -1
- package/lib/commonjs/hooks/useOffsetX.js.map +1 -1
- package/lib/commonjs/hooks/useOnProgressChange.js +1 -1
- package/lib/commonjs/hooks/useOnProgressChange.js.map +1 -1
- package/lib/commonjs/hooks/usePanGestureProxy.js.map +1 -1
- package/lib/commonjs/hooks/usePropsErrorBoundary.js +1 -1
- package/lib/commonjs/hooks/usePropsErrorBoundary.js.map +1 -1
- package/lib/commonjs/hooks/useUpdateGestureConfig.js.map +1 -1
- package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layouts/index.js.map +1 -1
- package/lib/commonjs/layouts/normal.js +1 -1
- package/lib/commonjs/layouts/normal.js.map +1 -1
- package/lib/commonjs/layouts/parallax.js +1 -1
- package/lib/commonjs/layouts/parallax.js.map +1 -1
- package/lib/commonjs/layouts/stack.js +1 -1
- package/lib/commonjs/layouts/stack.js.map +1 -1
- package/lib/commonjs/public-types.js +2 -0
- package/lib/commonjs/public-types.js.map +1 -0
- package/lib/commonjs/store/index.js.map +1 -1
- package/lib/commonjs/utils/carousel-direction.js +2 -0
- package/lib/commonjs/utils/carousel-direction.js.map +1 -0
- package/lib/commonjs/utils/carousel-math.js +2 -0
- package/lib/commonjs/utils/carousel-math.js.map +1 -0
- package/lib/commonjs/utils/deal-with-animation.js +1 -1
- package/lib/commonjs/utils/deal-with-animation.js.map +1 -1
- package/lib/module/components/Carousel.js +1 -1
- package/lib/module/components/Carousel.js.map +1 -1
- package/lib/module/components/CarouselLayout.js +1 -1
- package/lib/module/components/CarouselLayout.js.map +1 -1
- package/lib/module/components/ItemLayout.js +1 -1
- package/lib/module/components/ItemLayout.js.map +1 -1
- package/lib/module/components/ItemRenderer.js +1 -1
- package/lib/module/components/ItemRenderer.js.map +1 -1
- package/lib/module/components/LazyView.js +1 -1
- package/lib/module/components/LazyView.js.map +1 -1
- package/lib/module/components/Pagination/PaginationItem.js +2 -0
- package/lib/module/components/Pagination/PaginationItem.js.map +1 -0
- package/lib/module/components/Pagination/index.js +1 -1
- package/lib/module/components/Pagination/index.js.map +1 -1
- package/lib/module/components/ScrollViewGesture.js +1 -1
- package/lib/module/components/ScrollViewGesture.js.map +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/hooks/useAutoPlay.js +1 -1
- package/lib/module/hooks/useAutoPlay.js.map +1 -1
- package/lib/module/hooks/useCarouselController.js +1 -1
- package/lib/module/hooks/useCarouselController.js.map +1 -1
- package/lib/module/hooks/useCheckMounted.js +1 -1
- package/lib/module/hooks/useCheckMounted.js.map +1 -1
- package/lib/module/hooks/useCommonVariables.js +1 -1
- package/lib/module/hooks/useCommonVariables.js.map +1 -1
- package/lib/module/hooks/useInitProps.js +1 -1
- package/lib/module/hooks/useInitProps.js.map +1 -1
- package/lib/module/hooks/useLayoutConfig.js +1 -1
- package/lib/module/hooks/useLayoutConfig.js.map +1 -1
- package/lib/module/hooks/useOffsetX.js +1 -1
- package/lib/module/hooks/useOffsetX.js.map +1 -1
- package/lib/module/hooks/useOnProgressChange.js +1 -1
- package/lib/module/hooks/useOnProgressChange.js.map +1 -1
- package/lib/module/hooks/usePanGestureProxy.js +1 -1
- package/lib/module/hooks/usePanGestureProxy.js.map +1 -1
- package/lib/module/hooks/usePropsErrorBoundary.js +1 -1
- package/lib/module/hooks/usePropsErrorBoundary.js.map +1 -1
- package/lib/module/hooks/useUpdateGestureConfig.js +1 -1
- package/lib/module/hooks/useUpdateGestureConfig.js.map +1 -1
- package/lib/module/hooks/useVisibleRanges.js +1 -1
- package/lib/module/hooks/useVisibleRanges.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/layouts/index.js +1 -1
- package/lib/module/layouts/index.js.map +1 -1
- package/lib/module/layouts/normal.js +1 -1
- package/lib/module/layouts/normal.js.map +1 -1
- package/lib/module/layouts/parallax.js +1 -1
- package/lib/module/layouts/parallax.js.map +1 -1
- package/lib/module/layouts/stack.js +1 -1
- package/lib/module/layouts/stack.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/public-types.js +2 -0
- package/lib/module/public-types.js.map +1 -0
- package/lib/module/store/index.js +1 -1
- package/lib/module/store/index.js.map +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/carousel-direction.js +2 -0
- package/lib/module/utils/carousel-direction.js.map +1 -0
- package/lib/module/utils/carousel-math.js +2 -0
- package/lib/module/utils/carousel-math.js.map +1 -0
- package/lib/module/utils/compute-gesture-translation.js +1 -1
- package/lib/module/utils/compute-gesture-translation.js.map +1 -1
- package/lib/module/utils/compute-offset-if-size-changed.js +1 -1
- package/lib/module/utils/compute-offset-if-size-changed.js.map +1 -1
- package/lib/module/utils/computed-with-auto-fill-data.js +1 -1
- package/lib/module/utils/computed-with-auto-fill-data.js.map +1 -1
- package/lib/module/utils/deal-with-animation.js +1 -1
- package/lib/module/utils/deal-with-animation.js.map +1 -1
- package/lib/module/utils/log.js +1 -1
- package/lib/module/utils/log.js.map +1 -1
- package/lib/module/utils/sanitize-animation-style.js +1 -1
- package/lib/module/utils/sanitize-animation-style.js.map +1 -1
- package/lib/typescript/commonjs/components/Carousel.d.ts +8 -0
- package/lib/typescript/commonjs/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/CarouselLayout.d.ts +5 -8
- package/lib/typescript/commonjs/components/CarouselLayout.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/ItemLayout.d.ts +7 -6
- package/lib/typescript/commonjs/components/ItemLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ItemRenderer.d.ts +24 -0
- package/lib/typescript/commonjs/components/ItemRenderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/LazyView.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts +14 -0
- package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Pagination/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/Pagination/index.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/components}/ScrollViewGesture.d.ts +3 -4
- package/lib/typescript/commonjs/components/ScrollViewGesture.d.ts.map +1 -0
- package/lib/typescript/commonjs/constants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts +12 -0
- package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useCarouselController.d.ts +29 -0
- package/lib/typescript/commonjs/hooks/useCarouselController.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useCheckMounted.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts +18 -0
- package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useInitProps.d.ts +25 -0
- package/lib/typescript/commonjs/hooks/useInitProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useLayoutConfig.d.ts +8 -0
- package/lib/typescript/commonjs/hooks/useLayoutConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useOffsetX.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/useOffsetX.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts +12 -0
- package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts.map +1 -0
- package/lib/typescript/{hooks → commonjs/hooks}/usePanGestureProxy.d.ts +3 -2
- package/lib/typescript/commonjs/hooks/usePanGestureProxy.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/usePropsErrorBoundary.d.ts +3 -0
- package/lib/typescript/commonjs/hooks/usePropsErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useUpdateGestureConfig.d.ts +9 -0
- package/lib/typescript/commonjs/hooks/useUpdateGestureConfig.d.ts.map +1 -0
- package/lib/typescript/{hooks → commonjs/hooks}/useVisibleRanges.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +4 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/{layouts → commonjs/layouts}/index.d.ts +0 -1
- package/lib/typescript/commonjs/layouts/index.d.ts.map +1 -0
- package/lib/typescript/{layouts → commonjs/layouts}/normal.d.ts +3 -1
- package/lib/typescript/commonjs/layouts/normal.d.ts.map +1 -0
- package/lib/typescript/commonjs/layouts/parallax.d.ts +27 -0
- package/lib/typescript/commonjs/layouts/parallax.d.ts.map +1 -0
- package/lib/typescript/commonjs/layouts/stack.d.ts +10 -0
- package/lib/typescript/commonjs/layouts/stack.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/public-types.d.ts +161 -0
- package/lib/typescript/commonjs/public-types.d.ts.map +1 -0
- package/lib/typescript/{store → commonjs/store}/index.d.ts +8 -8
- package/lib/typescript/commonjs/store/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/types.d.ts +15 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/carousel-direction.d.ts +9 -0
- package/lib/typescript/commonjs/utils/carousel-direction.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/carousel-math.d.ts +28 -0
- package/lib/typescript/commonjs/utils/carousel-math.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/compute-gesture-translation.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/compute-offset-if-size-changed.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/computed-with-auto-fill-data.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/deal-with-animation.d.ts +3 -0
- package/lib/typescript/commonjs/utils/deal-with-animation.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/log.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/sanitize-animation-style.d.ts.map +1 -0
- package/lib/typescript/module/components/Carousel.d.ts +8 -0
- package/lib/typescript/module/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/module/components/CarouselLayout.d.ts +14 -0
- package/lib/typescript/module/components/CarouselLayout.d.ts.map +1 -0
- package/lib/typescript/module/components/ItemLayout.d.ts +21 -0
- package/lib/typescript/module/components/ItemLayout.d.ts.map +1 -0
- package/lib/typescript/module/components/ItemRenderer.d.ts +24 -0
- package/lib/typescript/module/components/ItemRenderer.d.ts.map +1 -0
- package/lib/typescript/module/components/LazyView.d.ts +8 -0
- package/lib/typescript/module/components/LazyView.d.ts.map +1 -0
- package/lib/typescript/module/components/Pagination/PaginationItem.d.ts +14 -0
- package/lib/typescript/module/components/Pagination/PaginationItem.d.ts.map +1 -0
- package/lib/typescript/module/components/Pagination/index.d.ts +4 -0
- package/lib/typescript/module/components/Pagination/index.d.ts.map +1 -0
- package/lib/typescript/module/components/ScrollViewGesture.d.ts +18 -0
- package/lib/typescript/module/components/ScrollViewGesture.d.ts.map +1 -0
- package/lib/typescript/module/constants/index.d.ts +9 -0
- package/lib/typescript/module/constants/index.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useAutoPlay.d.ts +12 -0
- package/lib/typescript/module/hooks/useAutoPlay.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useCarouselController.d.ts +29 -0
- package/lib/typescript/module/hooks/useCarouselController.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useCheckMounted.d.ts +3 -0
- package/lib/typescript/module/hooks/useCheckMounted.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useCommonVariables.d.ts +18 -0
- package/lib/typescript/module/hooks/useCommonVariables.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useInitProps.d.ts +25 -0
- package/lib/typescript/module/hooks/useInitProps.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useLayoutConfig.d.ts +8 -0
- package/lib/typescript/module/hooks/useLayoutConfig.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useOffsetX.d.ts +13 -0
- package/lib/typescript/module/hooks/useOffsetX.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useOnProgressChange.d.ts +12 -0
- package/lib/typescript/module/hooks/useOnProgressChange.d.ts.map +1 -0
- package/lib/typescript/module/hooks/usePanGestureProxy.d.ts +11 -0
- package/lib/typescript/module/hooks/usePanGestureProxy.d.ts.map +1 -0
- package/lib/typescript/module/hooks/usePropsErrorBoundary.d.ts +3 -0
- package/lib/typescript/module/hooks/usePropsErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useUpdateGestureConfig.d.ts +9 -0
- package/lib/typescript/module/hooks/useUpdateGestureConfig.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useVisibleRanges.d.ts +22 -0
- package/lib/typescript/module/hooks/useVisibleRanges.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +4 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/layouts/index.d.ts +10 -0
- package/lib/typescript/module/layouts/index.d.ts.map +1 -0
- package/lib/typescript/module/layouts/normal.d.ts +15 -0
- package/lib/typescript/module/layouts/normal.d.ts.map +1 -0
- package/lib/typescript/module/layouts/parallax.d.ts +27 -0
- package/lib/typescript/module/layouts/parallax.d.ts.map +1 -0
- package/lib/typescript/module/layouts/stack.d.ts +10 -0
- package/lib/typescript/module/layouts/stack.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/public-types.d.ts +161 -0
- package/lib/typescript/module/public-types.d.ts.map +1 -0
- package/lib/typescript/module/store/index.d.ts +35 -0
- package/lib/typescript/module/store/index.d.ts.map +1 -0
- package/lib/typescript/module/types.d.ts +15 -0
- package/lib/typescript/module/types.d.ts.map +1 -0
- package/lib/typescript/module/utils/carousel-direction.d.ts +9 -0
- package/lib/typescript/module/utils/carousel-direction.d.ts.map +1 -0
- package/lib/typescript/module/utils/carousel-math.d.ts +28 -0
- package/lib/typescript/module/utils/carousel-math.d.ts.map +1 -0
- package/lib/typescript/module/utils/compute-gesture-translation.d.ts +9 -0
- package/lib/typescript/module/utils/compute-gesture-translation.d.ts.map +1 -0
- package/lib/typescript/module/utils/compute-offset-if-size-changed.d.ts +6 -0
- package/lib/typescript/module/utils/compute-offset-if-size-changed.d.ts.map +1 -0
- package/lib/typescript/module/utils/computed-with-auto-fill-data.d.ts +23 -0
- package/lib/typescript/module/utils/computed-with-auto-fill-data.d.ts.map +1 -0
- package/lib/typescript/module/utils/deal-with-animation.d.ts +3 -0
- package/lib/typescript/module/utils/deal-with-animation.d.ts.map +1 -0
- package/lib/typescript/module/utils/log.d.ts +7 -0
- package/lib/typescript/module/utils/log.d.ts.map +1 -0
- package/lib/typescript/module/utils/sanitize-animation-style.d.ts +3 -0
- package/lib/typescript/module/utils/sanitize-animation-style.d.ts.map +1 -0
- package/package.json +34 -7
- package/scripts/codemods/v5.mjs +502 -0
- package/src/components/Carousel.tsx +5 -5
- package/src/components/CarouselLayout.tsx +53 -91
- package/src/components/ItemLayout.tsx +55 -46
- package/src/components/ItemRenderer.tsx +29 -18
- package/src/components/Pagination/PaginationItem.tsx +162 -0
- package/src/components/Pagination/index.tsx +105 -6
- package/src/components/ScrollViewGesture.tsx +92 -177
- package/src/hooks/useAutoPlay.ts +23 -18
- package/src/hooks/useCarouselController.tsx +194 -340
- package/src/hooks/useCommonVariables.ts +159 -71
- package/src/hooks/useInitProps.ts +161 -71
- package/src/hooks/useLayoutConfig.ts +21 -12
- package/src/hooks/useOffsetX.ts +3 -3
- package/src/hooks/useOnProgressChange.ts +23 -48
- package/src/hooks/usePanGestureProxy.ts +2 -2
- package/src/hooks/usePropsErrorBoundary.ts +32 -90
- package/src/hooks/useUpdateGestureConfig.ts +5 -2
- package/src/hooks/useVisibleRanges.tsx +2 -2
- package/src/index.tsx +14 -9
- package/src/layouts/index.tsx +0 -2
- package/src/layouts/normal.ts +14 -4
- package/src/layouts/parallax.ts +32 -59
- package/src/layouts/stack.ts +30 -70
- package/src/public-types.ts +198 -0
- package/src/store/index.tsx +7 -7
- package/src/types.ts +30 -322
- package/src/utils/carousel-direction.ts +39 -0
- package/src/utils/carousel-math.ts +156 -0
- package/src/utils/deal-with-animation.ts +11 -9
- package/lib/commonjs/components/Pagination/Basic/PaginationItem.js +0 -2
- package/lib/commonjs/components/Pagination/Basic/PaginationItem.js.map +0 -1
- package/lib/commonjs/components/Pagination/Basic/index.js +0 -2
- package/lib/commonjs/components/Pagination/Basic/index.js.map +0 -1
- package/lib/commonjs/components/Pagination/Custom/PaginationItem.js +0 -2
- package/lib/commonjs/components/Pagination/Custom/PaginationItem.js.map +0 -1
- package/lib/commonjs/components/Pagination/Custom/index.js +0 -2
- package/lib/commonjs/components/Pagination/Custom/index.js.map +0 -1
- package/lib/commonjs/utils/compute-offset-if-data-changed.js +0 -2
- package/lib/commonjs/utils/compute-offset-if-data-changed.js.map +0 -1
- package/lib/commonjs/utils/handleroffset-direction.js +0 -2
- package/lib/commonjs/utils/handleroffset-direction.js.map +0 -1
- package/lib/module/components/Pagination/Basic/PaginationItem.js +0 -2
- package/lib/module/components/Pagination/Basic/PaginationItem.js.map +0 -1
- package/lib/module/components/Pagination/Basic/index.js +0 -2
- package/lib/module/components/Pagination/Basic/index.js.map +0 -1
- package/lib/module/components/Pagination/Custom/PaginationItem.js +0 -2
- package/lib/module/components/Pagination/Custom/PaginationItem.js.map +0 -1
- package/lib/module/components/Pagination/Custom/index.js +0 -2
- package/lib/module/components/Pagination/Custom/index.js.map +0 -1
- package/lib/module/utils/compute-offset-if-data-changed.js +0 -2
- package/lib/module/utils/compute-offset-if-data-changed.js.map +0 -1
- package/lib/module/utils/handleroffset-direction.js +0 -2
- package/lib/module/utils/handleroffset-direction.js.map +0 -1
- package/lib/typescript/components/Carousel.d.ts +0 -8
- package/lib/typescript/components/Carousel.d.ts.map +0 -1
- package/lib/typescript/components/CarouselLayout.d.ts.map +0 -1
- package/lib/typescript/components/ItemLayout.d.ts.map +0 -1
- package/lib/typescript/components/ItemRenderer.d.ts +0 -23
- package/lib/typescript/components/ItemRenderer.d.ts.map +0 -1
- package/lib/typescript/components/LazyView.d.ts.map +0 -1
- package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts +0 -29
- package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts.map +0 -1
- package/lib/typescript/components/Pagination/Basic/index.d.ts +0 -23
- package/lib/typescript/components/Pagination/Basic/index.d.ts.map +0 -1
- package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts +0 -35
- package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts.map +0 -1
- package/lib/typescript/components/Pagination/Custom/index.d.ts +0 -26
- package/lib/typescript/components/Pagination/Custom/index.d.ts.map +0 -1
- package/lib/typescript/components/Pagination/index.d.ts +0 -5
- package/lib/typescript/components/Pagination/index.d.ts.map +0 -1
- package/lib/typescript/components/ScrollViewGesture.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useAutoPlay.d.ts +0 -12
- package/lib/typescript/hooks/useAutoPlay.d.ts.map +0 -1
- package/lib/typescript/hooks/useCarouselController.d.ts +0 -28
- package/lib/typescript/hooks/useCarouselController.d.ts.map +0 -1
- package/lib/typescript/hooks/useCheckMounted.d.ts.map +0 -1
- package/lib/typescript/hooks/useCommonVariables.d.ts +0 -13
- package/lib/typescript/hooks/useCommonVariables.d.ts.map +0 -1
- package/lib/typescript/hooks/useInitProps.d.ts +0 -10
- package/lib/typescript/hooks/useInitProps.d.ts.map +0 -1
- package/lib/typescript/hooks/useLayoutConfig.d.ts +0 -8
- package/lib/typescript/hooks/useLayoutConfig.d.ts.map +0 -1
- package/lib/typescript/hooks/useOffsetX.d.ts +0 -13
- package/lib/typescript/hooks/useOffsetX.d.ts.map +0 -1
- package/lib/typescript/hooks/useOnProgressChange.d.ts +0 -11
- package/lib/typescript/hooks/useOnProgressChange.d.ts.map +0 -1
- package/lib/typescript/hooks/usePanGestureProxy.d.ts.map +0 -1
- package/lib/typescript/hooks/usePropsErrorBoundary.d.ts +0 -5
- package/lib/typescript/hooks/usePropsErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/hooks/useUpdateGestureConfig.d.ts +0 -6
- package/lib/typescript/hooks/useUpdateGestureConfig.d.ts.map +0 -1
- package/lib/typescript/hooks/useVisibleRanges.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -7
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/layouts/index.d.ts.map +0 -1
- package/lib/typescript/layouts/normal.d.ts.map +0 -1
- package/lib/typescript/layouts/parallax.d.ts +0 -47
- package/lib/typescript/layouts/parallax.d.ts.map +0 -1
- package/lib/typescript/layouts/stack.d.ts +0 -38
- package/lib/typescript/layouts/stack.d.ts.map +0 -1
- package/lib/typescript/store/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -302
- package/lib/typescript/types.d.ts.map +0 -1
- package/lib/typescript/utils/compute-gesture-translation.d.ts.map +0 -1
- package/lib/typescript/utils/compute-offset-if-data-changed.d.ts +0 -9
- package/lib/typescript/utils/compute-offset-if-data-changed.d.ts.map +0 -1
- package/lib/typescript/utils/compute-offset-if-size-changed.d.ts.map +0 -1
- package/lib/typescript/utils/computed-with-auto-fill-data.d.ts.map +0 -1
- package/lib/typescript/utils/deal-with-animation.d.ts +0 -3
- package/lib/typescript/utils/deal-with-animation.d.ts.map +0 -1
- package/lib/typescript/utils/handleroffset-direction.d.ts +0 -4
- package/lib/typescript/utils/handleroffset-direction.d.ts.map +0 -1
- package/lib/typescript/utils/log.d.ts.map +0 -1
- package/lib/typescript/utils/sanitize-animation-style.d.ts.map +0 -1
- package/src/components/Carousel.test.tsx +0 -1215
- package/src/components/LazyView.test.tsx +0 -61
- package/src/components/Pagination/Basic/PaginationItem.tsx +0 -149
- package/src/components/Pagination/Basic/index.tsx +0 -98
- package/src/components/Pagination/Custom/PaginationItem.tsx +0 -166
- package/src/components/Pagination/Custom/index.tsx +0 -111
- package/src/components/Pagination/Pagination.test.tsx +0 -178
- package/src/components/ScrollViewGesture.test.tsx +0 -155
- package/src/components/issue-899-parallax-reverse-loop.test.tsx +0 -131
- package/src/components/rnr-demo.test.tsx +0 -53
- package/src/hooks/useAutoPlay.test.ts +0 -194
- package/src/hooks/useCarouselController.test.tsx +0 -1158
- package/src/hooks/useCheckMounted.test.ts +0 -47
- package/src/hooks/useCommonVariables.test.tsx +0 -384
- package/src/hooks/useInitProps.test.tsx +0 -134
- package/src/hooks/useLayoutConfig.test.tsx +0 -247
- package/src/hooks/useOffsetX.test.ts +0 -54
- package/src/hooks/useOnProgressChange.test.tsx +0 -270
- package/src/hooks/usePanGestureProxy.test.tsx +0 -368
- package/src/hooks/usePropsErrorBoundary.test.tsx +0 -57
- package/src/hooks/useUpdateGestureConfig.test.ts +0 -89
- package/src/hooks/useVisibleRanges.test.tsx +0 -347
- package/src/layouts/parallax.test.ts +0 -239
- package/src/layouts/stack.test.ts +0 -252
- package/src/store/index.test.tsx +0 -314
- package/src/utils/compute-gesture-translation.test.ts +0 -70
- package/src/utils/compute-offset-if-data-changed.test.ts +0 -133
- package/src/utils/compute-offset-if-data-changed.ts +0 -44
- package/src/utils/compute-offset-if-size-changed.test.ts +0 -78
- package/src/utils/computed-with-auto-fill-data.test.ts +0 -298
- package/src/utils/deal-with-animation.test.ts +0 -181
- package/src/utils/handleroffset-direction.test.ts +0 -124
- package/src/utils/handleroffset-direction.ts +0 -18
- package/src/utils/index.test.ts +0 -90
- package/src/utils/log.test.ts +0 -134
- package/src/utils/sanitize-animation-style.test.ts +0 -40
- /package/lib/typescript/{components → commonjs/components}/LazyView.d.ts +0 -0
- /package/lib/typescript/{constants → commonjs/constants}/index.d.ts +0 -0
- /package/lib/typescript/{hooks → commonjs/hooks}/useCheckMounted.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/compute-gesture-translation.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/compute-offset-if-size-changed.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/computed-with-auto-fill-data.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/log.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/sanitize-animation-style.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","useAnimatedReaction","scheduleOnRN","ItemLayout","computeVisibleRanges","useVisibleRanges","computedRealIndexWithAutoFillData","jsx","_jsx","Fragment","_Fragment","_worklet_5016581810892_init_data","code","location","sourceMap","_worklet_11262215567435_init_data","ItemRenderer","props","data","rawData","size","renderWindowSize","defaultIndex","handlerOffset","offsetX","dataLength","rawDataLength","loop","autoFillData","layoutConfig","renderItem","itemAnimation","keyExtractor","visibleRanges","total","viewSize","translation","windowSize","initialRanges","useMemo","currentIndex","_React$useState","useState","_React$useState2","_slicedToArray","displayedItems","setDisplayedItems","ItemRendererTsx1Factory","_ref","_e","global","Error","ItemRendererTsx1","value","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","ItemRendererTsx2Factory","_ref2","ItemRendererTsx2","ranges","children","map","item","index","_rawData$realIndex","realIndex","negativeRange","positiveRange","shouldRender","rawItem","key","Math","floor","max","String","rawIndex","animationStyle","_ref3","relativeProgress"],"sourceRoot":"../../../src","sources":["components/ItemRenderer.tsx"],"mappings":"mNAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CAGzB,OAASC,mBAAmB,KAAQ,yBAAyB,CAC7D,OAASC,YAAY,KAAQ,uBAAuB,CAGpD,OAASC,UAAU,KAAQ,cAAc,CAGzC,OAASC,oBAAoB,CAAEC,gBAAgB,KAAQ,2BAA2B,CAElF,OAASC,iCAAiC,KAAQ,uCAAuC,CAAC,OAAAC,GAAA,IAAAC,IAAA,CAAAC,QAAA,IAAAC,SAAA,6BAAAC,gCAAA,EAAAC,IAAA,gGAAAC,QAAA,uHAAAC,SAAA,+UAAAC,iCAAA,EAAAH,IAAA,0IAAAC,QAAA,uHAAAC,SAAA,sYAoB1F,MAAO,IAAM,CAAAE,YAAuB,CAAG,QAA1B,CAAAA,YAAuBA,CAAIC,KAAK,CAAK,CAChD,GACE,CAAAC,IAAI,CAeFD,KAAK,CAfPC,IAAI,CACJC,OAAO,CAcLF,KAAK,CAdPE,OAAO,CACPC,IAAI,CAaFH,KAAK,CAbPG,IAAI,CACJC,gBAAgB,CAYdJ,KAAK,CAZPI,gBAAgB,CAChBC,YAAY,CAWVL,KAAK,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","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from"react";import{Fragment as _Fragment,jsx as _jsx}from"react/jsx-runtime";export var LazyView=function LazyView(props){var shouldUpdate=props.shouldUpdate,children=props.children;if(!shouldUpdate)return _jsx(_Fragment,{});return _jsx(_Fragment,{children:children});};
|
|
2
2
|
//# sourceMappingURL=LazyView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","Fragment","_Fragment","jsx","_jsx","LazyView","props","shouldUpdate","children"],"sourceRoot":"../../../src","sources":["components/LazyView.tsx"],"mappings":"AACA,MAAO,CAAAA,KAAK,KAAM,OAAO,CAAC,OAAAC,QAAA,IAAAC,SAAA,CAAAC,GAAA,IAAAC,IAAA,yBAM1B,MAAO,IAAM,CAAAC,QAA4C,CAAG,QAA/C,CAAAA,QAA4CA,CAAIC,KAAK,CAAK,CACrE,GAAQ,CAAAC,YAAY,CAAeD,KAAK,CAAhCC,YAAY,CAAEC,QAAQ,CAAKF,KAAK,CAAlBE,QAAQ,CAE9B,GAAI,CAACD,YAAY,CAAE,MAAO,CAAAH,IAAA,CAAAF,SAAA,GAAI,CAAC,CAE/B,MAAO,CAAAE,IAAA,CAAAF,SAAA,EAAAM,QAAA,CAAGA,QAAQ,CAAG,CAAC,CACxB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";var _jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx";import React from"react";import{Pressable,View}from"react-native";import Animated,{Extrapolation,interpolate,interpolateColor,useAnimatedReaction,useAnimatedStyle}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{getNearestLoopPosition,getSettledRawIndex}from"../../utils/carousel-math";import{jsx as _jsx}from"react/jsx-runtime";var DEFAULT_DOT_SIZE=10;var DEFAULT_DOT_COLOR="#D1D5DB";var DEFAULT_ACTIVE_DOT_COLOR="#111827";var _worklet_12293713265361_init_data={code:"function getPaginationDotDistance_PaginationItemTsx1(progress,index,count){const{getNearestLoopPosition}=this.__closure;if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationDotDistance_PaginationItemTsx1\",\"progress\",\"index\",\"count\",\"getNearestLoopPosition\",\"__closure\",\"Number\",\"isFinite\",\"Math\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAmBO,SAAAA,2CAAmEA,CAAAC,QAAuB,CAAAC,KAAA,CAAAC,KAAA,QAAAC,sBAAA,OAAAC,SAAA,CAG/F,GAAI,CAACC,MAAM,CAACC,QAAQ,CAACN,QAAQ,CAAC,EAAIE,KAAK,EAAI,CAAC,CAAE,MAAO,EAAC,CACtD,MAAO,CAAAK,IAAI,CAACC,GAAG,CAACL,sBAAsB,CAACF,KAAK,CAAED,QAAQ,CAAEE,KAAK,CAAC,CAAGF,QAAQ,CAAC,CAC5E\",\"ignoreList\":[]}"};export var getPaginationDotDistance=function getPaginationDotDistance_PaginationItemTsx1Factory(_ref){var _worklet_12293713265361_init_data=_ref._worklet_12293713265361_init_data,getNearestLoopPosition=_ref.getNearestLoopPosition;var _e=[new global.Error(),-2,-27];var getPaginationDotDistance=function getPaginationDotDistance(progress,index,count){if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);};getPaginationDotDistance.__closure={getNearestLoopPosition:getNearestLoopPosition};getPaginationDotDistance.__workletHash=12293713265361;getPaginationDotDistance.__pluginVersion="0.5.2";getPaginationDotDistance.__initData=_worklet_12293713265361_init_data;getPaginationDotDistance.__stackDetails=_e;return getPaginationDotDistance;}({_worklet_12293713265361_init_data:_worklet_12293713265361_init_data,getNearestLoopPosition:getNearestLoopPosition});var _worklet_8662050186952_init_data={code:"function getPaginationSelectedIndex_PaginationItemTsx2(progress,count){const{getSettledRawIndex}=this.__closure;return getSettledRawIndex(progress,count);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationSelectedIndex_PaginationItemTsx2\",\"progress\",\"count\",\"getSettledRawIndex\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA0BO,SAAAA,6CAA6EA,CAAAC,QAAA,CAAAC,KAAA,QAAAC,kBAAA,OAAAC,SAAA,CAGlF,MAAO,CAAAD,kBAAkB,CAACF,QAAQ,CAAEC,KAAK,CAAC,CAC5C\",\"ignoreList\":[]}"};export var getPaginationSelectedIndex=function getPaginationSelectedIndex_PaginationItemTsx2Factory(_ref2){var _worklet_8662050186952_init_data=_ref2._worklet_8662050186952_init_data,getSettledRawIndex=_ref2.getSettledRawIndex;var _e=[new global.Error(),-2,-27];var getPaginationSelectedIndex=function getPaginationSelectedIndex(progress,count){return getSettledRawIndex(progress,count);};getPaginationSelectedIndex.__closure={getSettledRawIndex:getSettledRawIndex};getPaginationSelectedIndex.__workletHash=8662050186952;getPaginationSelectedIndex.__pluginVersion="0.5.2";getPaginationSelectedIndex.__initData=_worklet_8662050186952_init_data;getPaginationSelectedIndex.__stackDetails=_e;return getPaginationSelectedIndex;}({_worklet_8662050186952_init_data:_worklet_8662050186952_init_data,getSettledRawIndex:getSettledRawIndex});var _worklet_15643276008008_init_data={code:"function interpolateDotColor_PaginationItemTsx3(distance,active,inactive){const{interpolateColor}=this.__closure;if(typeof active!==\"string\"||typeof inactive!==\"string\"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"interpolateDotColor_PaginationItemTsx3\",\"distance\",\"active\",\"inactive\",\"interpolateColor\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAgCA,SAAAA,sCAEoBA,CAClBC,QACD,CAAaC,MAAA,CAAAC,QAAA,QAAAC,gBAAA,OAAAC,SAAA,CAGZ,GAAI,MAAO,CAAAH,MAAM,GAAK,QAAQ,EAAI,MAAO,CAAAC,QAAQ,GAAK,QAAQ,CAAE,CAC9D,MAAO,CAAAF,QAAQ,CAAG,GAAG,CAAGC,MAAM,CAAGC,QAAQ,CAC3C,CAEA,MAAO,CAAAC,gBAAgB,CAACH,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACC,MAAM,CAAEC,QAAQ,CAAC,CAAC,CAC/D\",\"ignoreList\":[]}"};var interpolateDotColor=function interpolateDotColor_PaginationItemTsx3Factory(_ref3){var _worklet_15643276008008_init_data=_ref3._worklet_15643276008008_init_data,interpolateColor=_ref3.interpolateColor;var _e=[new global.Error(),-2,-27];var interpolateDotColor=function interpolateDotColor(distance,active,inactive){if(typeof active!=="string"||typeof inactive!=="string"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);};interpolateDotColor.__closure={interpolateColor:interpolateColor};interpolateDotColor.__workletHash=15643276008008;interpolateDotColor.__pluginVersion="0.5.2";interpolateDotColor.__initData=_worklet_15643276008008_init_data;interpolateDotColor.__stackDetails=_e;return interpolateDotColor;}({_worklet_15643276008008_init_data:_worklet_15643276008008_init_data,interpolateColor:interpolateColor});var _worklet_5552776385387_init_data={code:"function PaginationItemTsx4(){const{count,getPaginationSelectedIndex,progress,index}=this.__closure;return count===1||getPaginationSelectedIndex(progress.value,count)===index;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx4\",\"count\",\"getPaginationSelectedIndex\",\"progress\",\"index\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA8EI,SAAAA,mBAAA,QAAAC,KAAA,CAAAC,0BAAA,CAAAC,QAAA,CAAAC,KAAA,OAAAC,SAAA,OAAM,CAAAJ,KAAK,GAAM,GAAIC,0BAA2B,CAAAC,QAAS,CAAAG,KAAK,CAAEL,KAAM,IAAKG,KAAA\",\"ignoreList\":[]}"};var _worklet_13637724198876_init_data={code:"function PaginationItemTsx5(nextSelected,previousSelected){const{scheduleOnRN,setSelected}=this.__closure;if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx5\",\"nextSelected\",\"previousSelected\",\"scheduleOnRN\",\"setSelected\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA+EI,QAAC,CAAAA,kBAAcA,CAAAC,YAAA,CAAgBC,gBAAK,QAAAC,YAAA,CAAAC,WAAA,OAAAC,SAAA,CAClC,GAAIJ,YAAY,GAAKC,gBAAgB,CAAE,CACrCC,YAAY,CAACC,WAAW,CAAEH,YAAY,CAAC,CACzC,CACF\",\"ignoreList\":[]}"};var _worklet_14140717509892_init_data={code:"function PaginationItemTsx6(){const{getPaginationDotDistance,progress,index,count,interpolate,activeWidth,baseWidth,Extrapolation,activeHeight,baseHeight,activeBorderRadius,baseBorderRadius,activeBorderWidth,baseBorderWidth,interpolateDotColor,activeBorderColor,baseBorderColor,activeBackgroundColor,baseBackgroundColor,activeOpacity,baseOpacity}=this.__closure;const distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx6\",\"getPaginationDotDistance\",\"progress\",\"index\",\"count\",\"interpolate\",\"activeWidth\",\"baseWidth\",\"Extrapolation\",\"activeHeight\",\"baseHeight\",\"activeBorderRadius\",\"baseBorderRadius\",\"activeBorderWidth\",\"baseBorderWidth\",\"interpolateDotColor\",\"activeBorderColor\",\"baseBorderColor\",\"activeBackgroundColor\",\"baseBackgroundColor\",\"activeOpacity\",\"baseOpacity\",\"__closure\",\"distance\",\"Math\",\"min\",\"value\",\"width\",\"CLAMP\",\"height\",\"borderRadius\",\"borderWidth\",\"borderColor\",\"backgroundColor\",\"opacity\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAuFoD,SAAAA,kBAAMA,CAAA,QAAAC,wBAAA,CAAAC,QAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,UAAA,CAAAC,kBAAA,CAAAC,gBAAA,CAAAC,iBAAA,CAAAC,eAA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le$width,_dotStyle$height,_dotStyle$borderRadiu,_dotStyle$borderWidth,_dotStyle$borderColor,_dotStyle$backgroundC,_dotStyle$opacity,_activeDotStyle$width,_activeDotStyle$heigh,_activeDotStyle$borde,_activeDotStyle$borde2,_activeDotStyle$borde3,_activeDotStyle$backg,_activeDotStyle$opaci;var activeDotStyle=props.activeDotStyle,count=props.count,dotStyle=props.dotStyle,index=props.index,label=props.label,_onPress=props.onPress,progress=props.progress;var baseWidth=(_dotStyle$width=dotStyle==null?void 0:dotStyle.width)!=null?_dotStyle$width:DEFAULT_DOT_SIZE;var baseHeight=(_dotStyle$height=dotStyle==null?void 0:dotStyle.height)!=null?_dotStyle$height:DEFAULT_DOT_SIZE;var baseBorderRadius=(_dotStyle$borderRadiu=dotStyle==null?void 0:dotStyle.borderRadius)!=null?_dotStyle$borderRadiu:Math.min(baseWidth,baseHeight)/2;var baseBorderWidth=(_dotStyle$borderWidth=dotStyle==null?void 0:dotStyle.borderWidth)!=null?_dotStyle$borderWidth:0;var baseBorderColor=(_dotStyle$borderColor=dotStyle==null?void 0:dotStyle.borderColor)!=null?_dotStyle$borderColor:"transparent";var baseBackgroundColor=(_dotStyle$backgroundC=dotStyle==null?void 0:dotStyle.backgroundColor)!=null?_dotStyle$backgroundC:DEFAULT_DOT_COLOR;var baseOpacity=(_dotStyle$opacity=dotStyle==null?void 0:dotStyle.opacity)!=null?_dotStyle$opacity:1;var activeWidth=(_activeDotStyle$width=activeDotStyle==null?void 0:activeDotStyle.width)!=null?_activeDotStyle$width:baseWidth;var activeHeight=(_activeDotStyle$heigh=activeDotStyle==null?void 0:activeDotStyle.height)!=null?_activeDotStyle$heigh:baseHeight;var activeBorderRadius=(_activeDotStyle$borde=activeDotStyle==null?void 0:activeDotStyle.borderRadius)!=null?_activeDotStyle$borde:baseBorderRadius;var activeBorderWidth=(_activeDotStyle$borde2=activeDotStyle==null?void 0:activeDotStyle.borderWidth)!=null?_activeDotStyle$borde2:baseBorderWidth;var activeBorderColor=(_activeDotStyle$borde3=activeDotStyle==null?void 0:activeDotStyle.borderColor)!=null?_activeDotStyle$borde3:baseBorderColor;var activeBackgroundColor=(_activeDotStyle$backg=activeDotStyle==null?void 0:activeDotStyle.backgroundColor)!=null?_activeDotStyle$backg:DEFAULT_ACTIVE_DOT_COLOR;var activeOpacity=(_activeDotStyle$opaci=activeDotStyle==null?void 0:activeDotStyle.opacity)!=null?_activeDotStyle$opaci:baseOpacity;var _React$useState=React.useState(count===1||getPaginationSelectedIndex(progress.value,count)===index),_React$useState2=_slicedToArray(_React$useState,2),selected=_React$useState2[0],setSelected=_React$useState2[1];useAnimatedReaction(function PaginationItemTsx4Factory(_ref4){var _worklet_5552776385387_init_data=_ref4._worklet_5552776385387_init_data,count=_ref4.count,getPaginationSelectedIndex=_ref4.getPaginationSelectedIndex,progress=_ref4.progress,index=_ref4.index;var _e=[new global.Error(),-5,-27];var PaginationItemTsx4=function PaginationItemTsx4(){return count===1||getPaginationSelectedIndex(progress.value,count)===index;};PaginationItemTsx4.__closure={count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index};PaginationItemTsx4.__workletHash=5552776385387;PaginationItemTsx4.__pluginVersion="0.5.2";PaginationItemTsx4.__initData=_worklet_5552776385387_init_data;PaginationItemTsx4.__stackDetails=_e;return PaginationItemTsx4;}({_worklet_5552776385387_init_data:_worklet_5552776385387_init_data,count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index}),function PaginationItemTsx5Factory(_ref5){var _worklet_13637724198876_init_data=_ref5._worklet_13637724198876_init_data,scheduleOnRN=_ref5.scheduleOnRN,setSelected=_ref5.setSelected;var _e=[new global.Error(),-3,-27];var PaginationItemTsx5=function PaginationItemTsx5(nextSelected,previousSelected){if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}};PaginationItemTsx5.__closure={scheduleOnRN:scheduleOnRN,setSelected:setSelected};PaginationItemTsx5.__workletHash=13637724198876;PaginationItemTsx5.__pluginVersion="0.5.2";PaginationItemTsx5.__initData=_worklet_13637724198876_init_data;PaginationItemTsx5.__stackDetails=_e;return PaginationItemTsx5;}({_worklet_13637724198876_init_data:_worklet_13637724198876_init_data,scheduleOnRN:scheduleOnRN,setSelected:setSelected}),[count,index,progress]);var animatedStyle=useAnimatedStyle(function PaginationItemTsx6Factory(_ref6){var _worklet_14140717509892_init_data=_ref6._worklet_14140717509892_init_data,getPaginationDotDistance=_ref6.getPaginationDotDistance,progress=_ref6.progress,index=_ref6.index,count=_ref6.count,interpolate=_ref6.interpolate,activeWidth=_ref6.activeWidth,baseWidth=_ref6.baseWidth,Extrapolation=_ref6.Extrapolation,activeHeight=_ref6.activeHeight,baseHeight=_ref6.baseHeight,activeBorderRadius=_ref6.activeBorderRadius,baseBorderRadius=_ref6.baseBorderRadius,activeBorderWidth=_ref6.activeBorderWidth,baseBorderWidth=_ref6.baseBorderWidth,interpolateDotColor=_ref6.interpolateDotColor,activeBorderColor=_ref6.activeBorderColor,baseBorderColor=_ref6.baseBorderColor,activeBackgroundColor=_ref6.activeBackgroundColor,baseBackgroundColor=_ref6.baseBackgroundColor,activeOpacity=_ref6.activeOpacity,baseOpacity=_ref6.baseOpacity;var _e=[new global.Error(),-22,-27];var PaginationItemTsx6=function PaginationItemTsx6(){var distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};};PaginationItemTsx6.__closure={getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity};PaginationItemTsx6.__workletHash=14140717509892;PaginationItemTsx6.__pluginVersion="0.5.2";PaginationItemTsx6.__initData=_worklet_14140717509892_init_data;PaginationItemTsx6.__stackDetails=_e;return PaginationItemTsx6;}({_worklet_14140717509892_init_data:_worklet_14140717509892_init_data,getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity}),[activeBackgroundColor,activeBorderColor,activeBorderRadius,activeBorderWidth,activeHeight,activeOpacity,activeWidth,baseBackgroundColor,baseBorderColor,baseBorderRadius,baseBorderWidth,baseHeight,baseOpacity,baseWidth,count,index,progress]);var reservedStyle={alignItems:"center",height:Math.max(baseHeight,activeHeight),justifyContent:"center",width:Math.max(baseWidth,activeWidth)};var dot=_jsx(Animated.View,{style:animatedStyle});if(_onPress){return _jsx(Pressable,{accessibilityLabel:label!=null?label:`Slide ${index+1} of ${count}`,accessibilityRole:"button",accessibilityState:{selected:selected},onPress:function onPress(){return _onPress(index);},style:reservedStyle,children:dot});}return _jsx(View,{accessibilityElementsHidden:true,accessible:false,importantForAccessibility:"no-hide-descendants",style:reservedStyle,children:dot});}
|
|
2
|
+
//# sourceMappingURL=PaginationItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","View","Animated","Extrapolation","interpolate","interpolateColor","useAnimatedReaction","useAnimatedStyle","scheduleOnRN","getNearestLoopPosition","getSettledRawIndex","jsx","_jsx","DEFAULT_DOT_SIZE","DEFAULT_DOT_COLOR","DEFAULT_ACTIVE_DOT_COLOR","_worklet_12293713265361_init_data","code","location","sourceMap","getPaginationDotDistance","getPaginationDotDistance_PaginationItemTsx1Factory","_ref","_e","global","Error","progress","index","count","Number","isFinite","Math","abs","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_8662050186952_init_data","getPaginationSelectedIndex","getPaginationSelectedIndex_PaginationItemTsx2Factory","_ref2","_worklet_15643276008008_init_data","interpolateDotColor","interpolateDotColor_PaginationItemTsx3Factory","_ref3","distance","active","inactive","_worklet_5552776385387_init_data","_worklet_13637724198876_init_data","_worklet_14140717509892_init_data","PaginationItem","props","_dotStyle$width","_dotStyle$height","_dotStyle$borderRadiu","_dotStyle$borderWidth","_dotStyle$borderColor","_dotStyle$backgroundC","_dotStyle$opacity","_activeDotStyle$width","_activeDotStyle$heigh","_activeDotStyle$borde","_activeDotStyle$borde2","_activeDotStyle$borde3","_activeDotStyle$backg","_activeDotStyle$opaci","activeDotStyle","dotStyle","label","onPress","baseWidth","width","baseHeight","height","baseBorderRadius","borderRadius","min","baseBorderWidth","borderWidth","baseBorderColor","borderColor","baseBackgroundColor","backgroundColor","baseOpacity","opacity","activeWidth","activeHeight","activeBorderRadius","activeBorderWidth","activeBorderColor","activeBackgroundColor","activeOpacity","_React$useState","useState","value","_React$useState2","_slicedToArray","selected","setSelected","PaginationItemTsx4Factory","_ref4","PaginationItemTsx4","PaginationItemTsx5Factory","_ref5","PaginationItemTsx5","nextSelected","previousSelected","animatedStyle","PaginationItemTsx6Factory","_ref6","PaginationItemTsx6","CLAMP","reservedStyle","alignItems","max","justifyContent","dot","style","accessibilityLabel","accessibilityRole","accessibilityState","children","accessibilityElementsHidden","accessible","importantForAccessibility"],"sourceRoot":"../../../../src","sources":["components/Pagination/PaginationItem.tsx"],"mappings":"qNAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CAEzB,OAASC,SAAS,CAAEC,IAAI,KAAQ,cAAc,CAC9C,MAAO,CAAAC,QAAQ,EACbC,aAAa,CACbC,WAAW,CACXC,gBAAgB,CAChBC,mBAAmB,CACnBC,gBAAgB,KACX,yBAAyB,CAChC,OAASC,YAAY,KAAQ,uBAAuB,CAGpD,OAASC,sBAAsB,CAAEC,kBAAkB,KAAQ,2BAA2B,CAAC,OAAAC,GAAA,IAAAC,IAAA,yBAEvF,GAAM,CAAAC,gBAAgB,CAAG,EAAE,CAC3B,GAAM,CAAAC,iBAAiB,CAAG,SAAS,CACnC,GAAM,CAAAC,wBAAwB,CAAG,SAAS,CAAC,IAAAC,iCAAA,EAAAC,IAAA,qPAAAC,QAAA,oIAAAC,SAAA,qoBAE3C,WAAAC,wBAAA,CAAO,SAAAC,mDAAAC,IAAA,MAAAN,iCAAA,CAAAM,IAAA,CAAAN,iCAAA,CAIWP,sBAAsB,CAAAa,IAAA,CAAtBb,sBAAsB,KAAAc,EAAA,MAAAC,MAAA,CAAAC,KAAA,eAAAL,wBAAA,UAAAA,yBAJCM,QAAgB,CAAEC,KAAa,CAAEC,KAAa,CAAU,CAG/F,GAAI,CAACC,MAAM,CAACC,QAAQ,CAACJ,QAAQ,CAAC,EAAIE,KAAK,EAAI,CAAC,CAAE,MAAO,EAAC,CACtD,MAAO,CAAAG,IAAI,CAACC,GAAG,CAACvB,sBAAsB,CAACkB,KAAK,CAAED,QAAQ,CAAEE,KAAK,CAAC,CAAGF,QAAQ,CAAC,CAC5E,CAAC,CAAAN,wBAAA,CAAAa,SAAA,EADiBxB,sB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1
|
-
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/index.tsx";var _excluded=["direction","flexDirection"];import React from"react";import{I18nManager,StyleSheet,View}from"react-native";import{PaginationItem}from"./PaginationItem";import{jsx as _jsx}from"react/jsx-runtime";var numericStyleFields=["width","height","borderRadius","borderWidth","opacity"];function validateDotStyle(name,style){var _style$width,_style$height,_style$borderRadius,_style$borderWidth;if(!style)return;for(var field of numericStyleFields){var value=style[field];if(value===undefined)continue;if(typeof value!=="number"||!Number.isFinite(value)){throw new Error(`[react-native-reanimated-carousel] Pagination ${name}.${field} must be a finite number.`);}}if(((_style$width=style.width)!=null?_style$width:1)<=0||((_style$height=style.height)!=null?_style$height:1)<=0){throw new Error(`[react-native-reanimated-carousel] Pagination ${name} width and height must be positive.`);}if(((_style$borderRadius=style.borderRadius)!=null?_style$borderRadius:0)<0||((_style$borderWidth=style.borderWidth)!=null?_style$borderWidth:0)<0){throw new Error(`[react-native-reanimated-carousel] Pagination ${name} borderRadius and borderWidth must be non-negative.`);}if(style.opacity!==undefined&&(style.opacity<0||style.opacity>1)){throw new Error(`[react-native-reanimated-carousel] Pagination ${name}.opacity must be between 0 and 1.`);}}export function Pagination(props){var _StyleSheet$flatten,_this=this;var activeDotStyle=props.activeDotStyle,containerStyle=props.containerStyle,count=props.count,dotStyle=props.dotStyle,_props$orientation=props.orientation,orientation=_props$orientation===void 0?"horizontal":_props$orientation,progress=props.progress;if(!Number.isInteger(count)||count<0){throw new Error("[react-native-reanimated-carousel] Pagination count must be a non-negative integer.");}validateDotStyle("dotStyle",dotStyle);validateDotStyle("activeDotStyle",activeDotStyle);var warnedProtectedStyle=React.useRef(false);var flattenedContainerStyle=(_StyleSheet$flatten=StyleSheet.flatten(containerStyle))!=null?_StyleSheet$flatten:{};var protectedDirection=flattenedContainerStyle.direction,protectedFlexDirection=flattenedContainerStyle.flexDirection,safeContainerStyle=_objectWithoutProperties(flattenedContainerStyle,_excluded);if(__DEV__&&!warnedProtectedStyle.current&&(protectedDirection!==undefined||protectedFlexDirection!==undefined)){warnedProtectedStyle.current=true;console.warn("[react-native-reanimated-carousel] Pagination containerStyle cannot override direction or flexDirection; those fields were ignored.");}if(count===0)return null;var onPress=props.onPress;var getItemAccessibilityLabel=typeof onPress==="function"?props.getItemAccessibilityLabel:undefined;return _jsx(View,{style:[safeContainerStyle,{direction:orientation==="horizontal"?I18nManager.isRTL?"rtl":"ltr":undefined,flexDirection:orientation==="vertical"?"column":"row"}],children:Array.from({length:count},function(_,index){return _jsx(PaginationItem,{activeDotStyle:activeDotStyle,count:count,dotStyle:dotStyle,index:index,label:getItemAccessibilityLabel==null?void 0:getItemAccessibilityLabel(index,count),onPress:onPress,progress:progress},index);})});}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","I18nManager","StyleSheet","View","PaginationItem","jsx","_jsx","numericStyleFields","validateDotStyle","name","style","_style$width","_style$height","_style$borderRadius","_style$borderWidth","field","value","undefined","Number","isFinite","Error","width","height","borderRadius","borderWidth","opacity","Pagination","props","_StyleSheet$flatten","_this","activeDotStyle","containerStyle","count","dotStyle","_props$orientation","orientation","progress","isInteger","warnedProtectedStyle","useRef","flattenedContainerStyle","flatten","protectedDirection","direction","protectedFlexDirection","flexDirection","safeContainerStyle","_objectWithoutProperties","_excluded","__DEV__","current","console","warn","onPress","getItemAccessibilityLabel","isRTL","children","Array","from","length","_","index","label"],"sourceRoot":"../../../../src","sources":["components/Pagination/index.tsx"],"mappings":"4QAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CACzB,OAASC,WAAW,CAAEC,UAAU,CAAEC,IAAI,KAAwB,cAAc,CAG5E,OAASC,cAAc,KAAQ,kBAAkB,CAAC,OAAAC,GAAA,IAAAC,IAAA,yBAElD,GAAM,CAAA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ACF,CAAC,CACH,CAEA,GAAIpB,KAAK,GAAK,CAAC,CAAE,MAAO,KAAI,CAE5B,GAAM,CAAAqB,OAAO,CAAG1B,KAAK,CAAC0B,OAAO,CAC7B,GAAM,CAAAC,yBAAyB,CAC7B,MAAO,CAAAD,OAAO,GAAK,UAAU,CAAG1B,KAAK,CAAC2B,yBAAyB,CAAGrC,SAAS,CAE7E,MACE,CAAAX,IAAA,CAACH,IAAI,EACHO,KAAK,CAAE,CACLoC,kBAAkB,CAClB,CACEH,SAAS,CAAER,WAAW,GAAK,YAAY,CAAIlC,WAAW,CAACsD,KAAK,CAAG,KAAK,CAAG,KAAK,CAAItC,SAAS,CACzF4B,aAAa,CAAEV,WAAW,GAAK,UAAU,CAAG,QAAQ,CAAG,KACzD,CAAC,CACD,CAAAqB,QAAA,CAEDC,KAAK,CAACC,IAAI,CAAC,CAAEC,MAAM,CAAE3B,KAAM,CAAC,CAAE,SAAC4B,CAAC,CAAEC,KAAK,QACtC,CAAAvD,IAAA,CAACF,cAAc,EAEb0B,cAAc,CAAEA,cAAe,CAC/BE,KAAK,CAAEA,KAAM,CACbC,QAAQ,CAAEA,QAAS,CACnB4B,KAAK,CAAEA,KAAM,CACbC,KAAK,CAAER,yBAAyB,cAAzBA,yBAAyB,CAAGO,KAAK,CAAE7B,KAAK,CAAE,CACjDqB,OAAO,CAAEA,OAAQ,CACjBjB,QAAQ,CAAEA,QAAS,EAPdyB,KAQN,CAAC,EACH,CAAC,CACE,CAAC,CAEX","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollViewGesture=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _constants=require("../constants");var _usePanGestureProxy=require("../hooks/usePanGestureProxy");var _store=require("../store");var _computeGestureTranslation=require("../utils/compute-gesture-translation");var _dealWithAnimation=require("../utils/deal-with-animation");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_7087640017863_init_data={code:"function ScrollViewGestureTsx1(){const{vertical}=this.__closure;return!vertical;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx1\",\"vertical\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsEuC,SAAAA,sBAAA,QAAAC,QAAA,OAAAC,SAAA,OAAO,CAAAD,QAAA\",\"ignoreList\":[]}"};var _worklet_1256203969722_init_data={code:"function ScrollViewGestureTsx2(){const{resolvedSize,sizePhase}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;return sizePhase.value===\"ready\"&¤tSize>0;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx2\",\"resolvedSize\",\"sizePhase\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+EoC,SAAAA,qBAAMA,CAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,mBAAA,CACtC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGH,YAAY,CAACK,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,MAAO,CAAAF,SAAS,CAACI,KAAK,GAAK,OAAO,EAAID,WAAW,CAAG,CAAC,CACvD\",\"ignoreList\":[]}"};var _worklet_13810561592306_init_data={code:"function ScrollViewGestureTsx3(){const{size,loop,overscrollEnabled,vertical,containerSize,dataLength}=this.__closure;if(size<=0)return 0;if(!loop&&!overscrollEnabled){const containerMainAxisSize=vertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx3\",\"size\",\"loop\",\"overscrollEnabled\",\"vertical\",\"containerSize\",\"dataLength\",\"__closure\",\"containerMainAxisSize\",\"value\",\"height\",\"width\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAqFqC,SAAAA,qBAAMA,CAAA,QAAAC,IAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,aAAA,CAAAC,UAAA,OAAAC,SAAA,CAGvC,GAAIN,IAAI,EAAI,CAAC,CAAE,MAAO,EAAC,CAEvB,GAAI,CAACC,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAK,qBAAqB,CAAGJ,QAAQ,CAClCC,aAAa,CAACI,KAAK,CAACC,MAAM,CAC1BL,aAAa,CAACI,KAAK,CAACE,KAAK,CAG7B,GAAIH,qBAAqB,EAAI,CAAC,EAAIF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAAE,MAAO,EAAC,CAGrF,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAClD,CAEA,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAC1B\",\"ignoreList\":[]}"};var _worklet_2188036911353_init_data={code:"function ScrollViewGestureTsx4(isFinished){const{onFinished,scheduleOnRN}=this.__closure;if(isFinished)onFinished&&scheduleOnRN(onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx4\",\"isFinished\",\"onFinished\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsHQ,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIH,UAAU,CAAEC,UAAU,EAAIC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_1300349626787_init_data={code:"function ScrollViewGestureTsx5(toValue,onFinished){const{scrollAnimationDuration,Easing,dealWithAnimation,withAnimation,_worklet_2188036911353_init_data,scheduleOnRN}=this.__closure;var _withAnimation;const defaultWithAnimation={type:\"timing\",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation((_withAnimation=withAnimation)!==null&&_withAnimation!==void 0?_withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}){const _e=[new global.Error(),-3,-27];const ScrollViewGestureTsx4=function(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion=\"0.5.2\";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx5\",\"toValue\",\"onFinished\",\"scrollAnimationDuration\",\"Easing\",\"dealWithAnimation\",\"withAnimation\",\"_worklet_2188036911353_init_data\",\"scheduleOnRN\",\"__closure\",\"_withAnimation\",\"defaultWithAnimation\",\"type\",\"config\",\"duration\",\"easing\",\"easeOutQuart\",\"ScrollViewGestureTsx4Factory\",\"_e\",\"global\",\"Error\",\"ScrollViewGestureTsx4\",\"isFinished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0GI,QAAC,CAAAA,qBAAwCA,CAAAC,OAAK,CAAAC,UAAA,QAAAC,uBAAA,CAAAC,MAAA,CAAAC,iBAAA,CAAAC,aAAA,CAAAC,gCAAA,CAAAC,YAAA,OAAAC,SAAA,KAAAC,cAAA,CAE5C,KAAM,CAAAC,oBAAyC,CAAG,CAChDC,IAAI,CAAE,QAAQ,CACdC,MAAM,CAAE,CACNC,QAAQ,CAAEX,uBAAuB,CAAG,GAAG,CACvCY,MAAM,CAAEX,MAAM,CAACY,YACjB,CACF,CAAC,CAED,MAAO,CAAAX,iBAAiB,EAAAK,cAAA,CAACJ,aAAa,UAAAI,cAAA,UAAAA,cAAA,CAAIC,oBAAoB,CAAC,CAC7DV,OAAO,CACP,SAAAgB,6BAAA,CAAAV,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,SAAAU,EAAA,MAAAC,MAAA,CAAAC,KAAA,iBAAAC,qBAAA,SAAAA,CAF3CC,UAAmB,CAAK,CAEvB,GAAIA,UAAU,CAAEpB,UAAU,EAAIM,YAAY,CAACN,UAAU,CAAC,CACxD,CAAC,CAAAmB,qBAAA,CAAAZ,SAAA,EADiBP,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAAAa,qBAAA,CAAAE,aAAA,eAAAF,qBAAA,CAAAG,eAAA,SAAAH,qBAAA,CAAAI,UAAA,CAAAlB,gCAAA,CAAAc,qBAAA,CAAAK,cAAA,CAAAR,EAAA,QAAAG,qBAAA,EAF5C,EAAAd,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAE9C,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_9858368380469_init_data={code:"function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{resolvedSize,translation,withDecay,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,pagingEnabled,withSpring,loop,maxPage,snapEnabled,overscrollEnabled,getLimit}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0){return;}const origin=translation.value;const velocity=scrollEndVelocityValue;let finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{const nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){const offset=-(scrollEndTranslationValue>=0?1:-1);const computed=offset<0?Math.ceil:Math.floor;const page=computed(-origin/currentSize);const velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){const finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{const finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx6\",\"scrollEndTranslationValue\",\"scrollEndVelocityValue\",\"onFinished\",\"resolvedSize\",\"translation\",\"withDecay\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"pagingEnabled\",\"withSpring\",\"loop\",\"maxPage\",\"snapEnabled\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"origin\",\"velocity\",\"finalTranslation\",\"deceleration\",\"Math\",\"abs\",\"nextPage\",\"round\",\"offset\",\"computed\",\"ceil\",\"floor\",\"page\",\"velocityDirection\",\"sign\",\"withProcessTranslation\",\"finalPage\",\"min\",\"max\",\"limit\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAgII,QACE,CAAAA,sBAAAC,yBACA,CAAAC,sBAEG,CAAAC,UAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,8BAAA,CAAAC,yBAAA,CAAAC,aAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,OAAA,CAAAC,WAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIH,KAAM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AAS,CAAGJ,IAAI,CAAGJ,MAAM,CAC/BN,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDf,UACF,CAAC,CACH,CAAC,IAAM,CACL,KAAM,CAAAiC,SAAS,CAAGZ,IAAI,CAACa,GAAG,CAACzB,OAAO,CAAG,CAAC,CAAEY,IAAI,CAACc,GAAG,CAAC,CAAC,CAAEN,IAAI,CAAGJ,MAAM,CAAC,CAAC,CACnEN,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDf,UACF,CAAC,CACH,CACF,CAEA,GAAI,CAACM,aAAa,EAAII,WAAW,CAAE,CAEjCS,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACT,QAAQ,CAAGR,WAAW,CAAC,CAC/Cf,UACF,CAAC,CACH,CACF,CAEAE,WAAW,CAACc,KAAK,CAAGG,gBAAgB,CAEpC,QAAS,CAAAa,sBAAsBA,CAAC9B,WAAmB,CAAE,CACnD,GAAI,CAACM,IAAI,EAAI,CAACG,iBAAiB,CAAE,CAC/B,KAAM,CAAAyB,KAAK,CAAGxB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAS,IAAI,CAACa,GAAG,CAAC,CAAC,CAAEb,IAAI,CAACc,GAAG,CAAC,CAACC,KAAK,CAAElC,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB,CACF\",\"ignoreList\":[]}"};var _worklet_9026185779806_init_data={code:"function ScrollViewGestureTsx7(isFinished){const{touching,onScrollEnd,scheduleOnRN}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx7\",\"isFinished\",\"touching\",\"onScrollEnd\",\"scheduleOnRN\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAoOI,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIJ,UAAU,CAAE,CACdC,QAAQ,CAACI,KAAK,CAAG,KAAK,CACtBH,WAAW,EAAIC,YAAY,CAACD,WAAW,CAAC,CAC1C,CACF\",\"ignoreList\":[]}"};var _worklet_5593859302814_init_data={code:"function ScrollViewGestureTsx8(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx8\",\"touching\",\"translation\",\"withDecay\",\"scrollEndVelocity\",\"onFinish\",\"__closure\",\"value\",\"velocity\",\"isFinished\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA8OwC,SAAAA,qBAAMA,CAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAE1CL,QAAQ,CAACM,KAAK,CAAG,IAAI,CACrBL,WAAW,CAACK,KAAK,CAAGJ,SAAS,CAAC,CAAEK,QAAQ,CAAEJ,iBAAiB,CAACG,KAAM,CAAC,CAAG,SAAAE,UAAU,QAC9E,CAAAJ,QAAQ,CAACI,UAAqB,CAChC,GAAC,CACH\",\"ignoreList\":[]}"};var _worklet_10440224148495_init_data={code:"function ScrollViewGestureTsx9(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx9\",\"isFinished\",\"onFinish\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAiP0E,SAAAA,qBAAUA,CAAAC,UAAA,QAAAC,QAAA,OAAAC,SAAA,OAC9E,CAAAD,QAAS,CAAAD,UAAqB\",\"ignoreList\":[]}"};var _worklet_1192613327258_init_data={code:"function ScrollViewGestureTsx10(){const{resolvedSize,touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx10\",\"resolvedSize\",\"touching\",\"translation\",\"scrollEndTranslation\",\"activeDecay\",\"loop\",\"withSpring\",\"maxPage\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsP0C,SAAAA,sBAAMA,CAAA,QAAAC,YAAA,CAAAC,QAAA,CAAAC,WAAA,CAAAC,oBAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,OAAA,OAAAC,SAAA,KAAAC,mBAAA,CAI5C,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,OACtB,GAAIT,QAAQ,CAACU,KAAK,CAAE,OAEpB,GAAIT,WAAW,CAACS,KAAK,CAAG,CAAC,CAAE,CACzB,GAAIR,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAE,CACTH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,CAAC,CAAC,CACjC,OACF,CACF,CAEA,GAAIJ,WAAW,CAACS,KAAK,CAAG,EAAE,CAACJ,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAE,CACtD,GAAIP,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAEH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,EAAE,CAACC,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAC,CAC3E,CACF\",\"ignoreList\":[]}"};var _worklet_8670557262418_init_data={code:"function ScrollViewGestureTsx11(){const{translation}=this.__closure;return translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx11\",\"translation\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA4RI,SAAAA,uBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAM,CAAAD,WAAY,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_8859522539420_init_data={code:"function ScrollViewGestureTsx12(){const{pagingEnabled,resetBoundary}=this.__closure;if(!pagingEnabled)resetBoundary();}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx12\",\"pagingEnabled\",\"resetBoundary\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6RI,SAAAA,sBAAMA,CAAA,QAAAC,aAAA,CAAAC,aAAA,OAAAC,SAAA,CACJ,GAAI,CAACF,aAAa,CAAEC,aAAa,CAAC,CAAC,CACrC\",\"ignoreList\":[]}"};var _worklet_12299006691003_init_data={code:"function withProcessTranslation_ScrollViewGestureTsx13(translation){const{loop,overscrollEnabled,getLimit}=this.__closure;if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"withProcessTranslation_ScrollViewGestureTsx13\",\"translation\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"limit\",\"Math\",\"min\",\"max\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAmSE,SAAAA,6CAAqDA,CAAAC,WAAA,QAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAGnD,GAAI,CAACH,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAG,KAAK,CAAGF,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAG,IAAI,CAACC,GAAG,CAAC,CAAC,CAAED,IAAI,CAACE,GAAG,CAAC,CAACH,KAAK,CAAEL,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB\",\"ignoreList\":[]}"};var _worklet_6770704903726_init_data={code:"function ScrollViewGestureTsx14(_){const{resolvedSize,sizeReady,touching,validStart,onScrollStart,scheduleOnRN,max,maxPage,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx14\",\"_\",\"resolvedSize\",\"sizeReady\",\"touching\",\"validStart\",\"onScrollStart\",\"scheduleOnRN\",\"max\",\"maxPage\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"panOffset\",\"translation\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+SI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,GAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,SAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGd,YAAY,CAACgB,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACe,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACAb,QAAQ,CAACc,KAAK,CAAG,IAAI,CACrBb,UAAU,CAACa,KAAK,CAAG,IAAI,CACvBZ,aAAa,EAAIC,YAAY,CAACD,aAAa,CAAC,CAE5CE,GAAG,CAACU,KAAK,CAAG,CAACT,OAAO,CAAG,CAAC,EAAIQ,WAAW,CACvC,GAAI,CAACP,IAAI,EAAI,CAACC,iBAAiB,CAAEH,GAAG,CAACU,KAAK,CAAGN,QAAQ,CAAC,CAAC,CAEvDC,SAAS,CAACK,KAAK,CAAGJ,WAAW,CAACI,KAAK,CACrC\",\"ignoreList\":[]}"};var _worklet_12670828273673_init_data={code:"function ScrollViewGestureTsx15(e){const{resolvedSize,sizeReady,panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,fixedDirection,computeGestureTranslation,loop,overscrollEnabled,max}=this.__closure;var _resolvedSize$value,_overscrollEnabled;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:(_overscrollEnabled=overscrollEnabled)!==null&&_overscrollEnabled!==void 0?_overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx15\",\"e\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"validStart\",\"cancelAnimation\",\"translation\",\"touching\",\"isHorizontal\",\"fixedDirection\",\"computeGestureTranslation\",\"loop\",\"overscrollEnabled\",\"max\",\"__closure\",\"_resolvedSize$value\",\"_overscrollEnabled\",\"currentSize\",\"value\",\"undefined\",\"translationX\",\"translationY\",\"panTranslation\",\"Math\",\"abs\",\"currentTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-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,CAAEnB,WAAW,CAACY,KAAK,CACrCf,SAAS,CAAEA,SAAS,CAACe,KAAK,CAC1BI,cAAc,CAAdA,cAAc,CACdT,GAAG,CAAEA,GAAG,CAACK,KACX,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_3955652701817_init_data={code:"function ScrollViewGestureTsx16(e,_success){const{resolvedSize,sizeReady,panOffset,isHorizontal,scrollEndVelocity,fixedDirection,scrollEndTranslation,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,translation,withSpring,withProcessTranslation,onScrollEnd,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,loop,touching}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}const{velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}=e;const scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;const totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx16\",\"e\",\"_success\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"isHorizontal\",\"scrollEndVelocity\",\"fixedDirection\",\"scrollEndTranslation\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"translation\",\"withSpring\",\"withProcessTranslation\",\"onScrollEnd\",\"minScrollDistancePerSwipeIsSet\",\"minScrollDistancePerSwipe\",\"endWithSpring\",\"loop\",\"touching\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"undefined\",\"velocityX\",\"velocityY\",\"translationX\",\"translationY\",\"scrollEndVelocityValue\",\"panTranslation\",\"Math\",\"abs\",\"totalTranslation\",\"nextPage\",\"round\",\"sign\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0YI,QAAC,CAAAA,sBAAiFA,CAAAC,CAAA,CAAAC,QAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,iBAAA,CAAAC,cAAA,CAAAC,oBAAA,CAAAC,8BAAA,CAAAC,yBAAA,CAAAC,WAAA,CAAAC,UAAA,CAAAC,sBAAA,CAAAC,WAAA,CAAAC,8BAAA,CAAAC,yBAAA,CAAAC,aAAA,CAAAC,IAAA,CAAAC,QAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIhF,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGnB,YAAY,CAACqB,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAAClB,SAAS,CAACoB,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxClB,SAAS,CAACmB,KAAK,CAAGC,SAAS,CAC3B,OACF,CAEA,GAAIpB,SAAS,CAACm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AAK,CAAGP,yBAAyB,CAAGe,IAAI,CAACK,IAAI,CAACH,gBAAgB,CAAC,EACxEX,WACJ,CAAC,CAAGA,WAAW,CACjBX,WAAW,CAACY,KAAK,CAAGX,UAAU,CAACC,sBAAsB,CAACqB,QAAQ,CAAC,CAAEpB,WAAW,CAAC,CAC/E,CAAC,IAAM,CACLG,aAAa,CAACa,cAAc,CAAED,sBAAsB,CAAEf,WAAW,CAAC,CACpE,CAEA,GAAI,CAACI,IAAI,CAAEC,QAAQ,CAACI,KAAK,CAAG,KAAK,CAEjCnB,SAAS,CAACmB,KAAK,CAAGC,SAAS,CAC7B\",\"ignoreList\":[]}"};var _worklet_16842131914021_init_data={code:"function ScrollViewGestureTsx17(e){const{vertical,sizeExplicit,resolvedSize,sizePhase,updateContainerSize}=this.__closure;const measuredWidth=e.nativeEvent.layout.width;const measuredHeight=e.nativeEvent.layout.height;const measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value;const current=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?\"updating\":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value=\"ready\";}}updateContainerSize({width:measuredWidth,height:measuredHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx17\",\"e\",\"vertical\",\"sizeExplicit\",\"resolvedSize\",\"sizePhase\",\"updateContainerSize\",\"__closure\",\"measuredWidth\",\"nativeEvent\",\"layout\",\"width\",\"measuredHeight\",\"height\",\"measuredSize\",\"Math\",\"round\",\"_resolvedSize$value\",\"current\",\"value\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAweI,QAAC,CAAAA,sBAAyBA,CAAAC,CAAA,QAAAC,QAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,SAAA,CAAAC,mBAAA,OAAAC,SAAA,CAGxB,KAAM,CAAAC,aAAa,CAAGP,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAChD,KAAM,CAAAC,cAAc,CAAGX,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACG,MAAM,CAClD,KAAM,CAAAC,YAAY,CAAGC,IAAI,CAACC,KAAK,CAAC,CAACd,QAAQ,CAAGU,cAAc,CAAGJ,aAAa,GAAK,CAAC,CAAC,CAEjF,GAAI,CAACL,YAAY,EAAIW,YAAY,CAAG,CAAC,CAAE,KAAAG,mBAAA,CACrC,KAAM,CAAAC,OAAO,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CACvC,GAAIF,IAAI,CAACK,GAAG,CAACF,OAAO,CAAGJ,YAAY,CAAC,CAAG,CAAC,CAAE,CACxCT,SAAS,CAACc,KAAK,CAAGD,OAAO,CAAG,CAAC,CAAG,UAAU,CAAGb,SAAS,CAACc,KAAK,CAC5Df,YAAY,CAACe,KAAK,CAAGL,YAAY,CACjCT,SAAS,CAACc,KAAK,CAAG,OAAO,CAC3B,CACF,CAEAb,mBAAmB,CAAC,CAClBK,KAAK,CAAEH,aAAa,CACpBK,MAAM,CAAED,cACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var IScrollViewGesture=function IScrollViewGesture(props){var _useGlobalState=(0,_store.useGlobalState)(),_useGlobalState$props=_useGlobalState.props,onConfigurePanGesture=_useGlobalState$props.onConfigurePanGesture,vertical=_useGlobalState$props.vertical,pagingEnabled=_useGlobalState$props.pagingEnabled,snapEnabled=_useGlobalState$props.snapEnabled,loop=_useGlobalState$props.loop,scrollAnimationDuration=_useGlobalState$props.scrollAnimationDuration,withAnimation=_useGlobalState$props.withAnimation,enabled=_useGlobalState$props.enabled,dataLength=_useGlobalState$props.dataLength,overscrollEnabled=_useGlobalState$props.overscrollEnabled,maxScrollDistancePerSwipe=_useGlobalState$props.maxScrollDistancePerSwipe,minScrollDistancePerSwipe=_useGlobalState$props.minScrollDistancePerSwipe,fixedDirection=_useGlobalState$props.fixedDirection,_useGlobalState$commo=_useGlobalState.common,size=_useGlobalState$commo.size,resolvedSize=_useGlobalState$commo.resolvedSize,sizePhase=_useGlobalState$commo.sizePhase,sizeExplicit=_useGlobalState$commo.sizeExplicit,_useGlobalState$layou=_useGlobalState.layout,containerSize=_useGlobalState$layou.containerSize,updateContainerSize=_useGlobalState$layou.updateContainerSize;var translation=props.translation,testID=props.testID,_props$style=props.style,style=_props$style===void 0?{}:_props$style,onScrollStart=props.onScrollStart,onScrollEnd=props.onScrollEnd,onTouchBegin=props.onTouchBegin,onTouchEnd=props.onTouchEnd;var maxPage=dataLength;var isHorizontal=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx1Factory(_ref){var _worklet_7087640017863_init_data=_ref._worklet_7087640017863_init_data,vertical=_ref.vertical;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx1=function ScrollViewGestureTsx1(){return!vertical;};ScrollViewGestureTsx1.__closure={vertical:vertical};ScrollViewGestureTsx1.__workletHash=7087640017863;ScrollViewGestureTsx1.__pluginVersion="0.5.2";ScrollViewGestureTsx1.__initData=_worklet_7087640017863_init_data;ScrollViewGestureTsx1.__stackDetails=_e;return ScrollViewGestureTsx1;}({_worklet_7087640017863_init_data:_worklet_7087640017863_init_data,vertical:vertical}),[vertical]);var max=(0,_reactNativeReanimated.useSharedValue)(0);var panOffset=(0,_reactNativeReanimated.useSharedValue)(undefined);var touching=(0,_reactNativeReanimated.useSharedValue)(false);var validStart=(0,_reactNativeReanimated.useSharedValue)(false);var scrollEndTranslation=(0,_reactNativeReanimated.useSharedValue)(0);var scrollEndVelocity=(0,_reactNativeReanimated.useSharedValue)(0);var maxScrollDistancePerSwipeIsSet=typeof maxScrollDistancePerSwipe==="number";var minScrollDistancePerSwipeIsSet=typeof minScrollDistancePerSwipe==="number";var sizeReady=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&¤tSize>0;};ScrollViewGestureTsx2.__closure={resolvedSize:resolvedSize,sizePhase:sizePhase};ScrollViewGestureTsx2.__workletHash=1256203969722;ScrollViewGestureTsx2.__pluginVersion="0.5.2";ScrollViewGestureTsx2.__initData=_worklet_1256203969722_init_data;ScrollViewGestureTsx2.__stackDetails=_e;return ScrollViewGestureTsx2;}({_worklet_1256203969722_init_data:_worklet_1256203969722_init_data,resolvedSize:resolvedSize,sizePhase:sizePhase}),[resolvedSize,sizePhase]);var getLimit=_react.default.useCallback(function ScrollViewGestureTsx3Factory(_ref3){var _worklet_13810561592306_init_data=_ref3._worklet_13810561592306_init_data,size=_ref3.size,loop=_ref3.loop,overscrollEnabled=_ref3.overscrollEnabled,vertical=_ref3.vertical,containerSize=_ref3.containerSize,dataLength=_ref3.dataLength;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx3=function ScrollViewGestureTsx3(){if(size<=0)return 0;if(!loop&&!overscrollEnabled){var containerMainAxisSize=vertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;};ScrollViewGestureTsx3.__closure={size:size,loop:loop,overscrollEnabled:overscrollEnabled,vertical:vertical,containerSize:containerSize,dataLength:dataLength};ScrollViewGestureTsx3.__workletHash=13810561592306;ScrollViewGestureTsx3.__pluginVersion="0.5.2";ScrollViewGestureTsx3.__initData=_worklet_13810561592306_init_data;ScrollViewGestureTsx3.__stackDetails=_e;return ScrollViewGestureTsx3;}({_worklet_13810561592306_init_data:_worklet_13810561592306_init_data,size:size,loop:loop,overscrollEnabled:overscrollEnabled,vertical:vertical,containerSize:containerSize,dataLength:dataLength}),[loop,size,dataLength,overscrollEnabled,vertical,containerSize]);var withSpring=_react.default.useCallback(function ScrollViewGestureTsx5Factory(_ref4){var _worklet_1300349626787_init_data=_ref4._worklet_1300349626787_init_data,scrollAnimationDuration=_ref4.scrollAnimationDuration,Easing=_ref4.Easing,dealWithAnimation=_ref4.dealWithAnimation,withAnimation=_ref4.withAnimation,_worklet_2188036911353_init_data=_ref4._worklet_2188036911353_init_data,scheduleOnRN=_ref4.scheduleOnRN;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx5=function ScrollViewGestureTsx5(toValue,onFinished){var defaultWithAnimation={type:"timing",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation(withAnimation!=null?withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory(_ref5){var _worklet_2188036911353_init_data=_ref5._worklet_2188036911353_init_data,onFinished=_ref5.onFinished,scheduleOnRN=_ref5.scheduleOnRN;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx4=function ScrollViewGestureTsx4(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion="0.5.2";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));};ScrollViewGestureTsx5.__closure={scrollAnimationDuration:scrollAnimationDuration,Easing:Easing,dealWithAnimation:dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx5.__workletHash=1300349626787;ScrollViewGestureTsx5.__pluginVersion="0.5.2";ScrollViewGestureTsx5.__initData=_worklet_1300349626787_init_data;ScrollViewGestureTsx5.__stackDetails=_e;return ScrollViewGestureTsx5;}({_worklet_1300349626787_init_data:_worklet_1300349626787_init_data,scrollAnimationDuration:scrollAnimationDuration,Easing:_constants.Easing,dealWithAnimation:_dealWithAnimation.dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[scrollAnimationDuration,withAnimation]);var endWithSpring=_react.default.useCallback(function ScrollViewGestureTsx6Factory(_ref6){var _worklet_9858368380469_init_data=_ref6._worklet_9858368380469_init_data,resolvedSize=_ref6.resolvedSize,translation=_ref6.translation,withDecay=_ref6.withDecay,maxScrollDistancePerSwipeIsSet=_ref6.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref6.maxScrollDistancePerSwipe,pagingEnabled=_ref6.pagingEnabled,withSpring=_ref6.withSpring,loop=_ref6.loop,maxPage=_ref6.maxPage,snapEnabled=_ref6.snapEnabled,overscrollEnabled=_ref6.overscrollEnabled,getLimit=_ref6.getLimit;var _e=[new global.Error(),-13,-27];var ScrollViewGestureTsx6=function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0){return;}var origin=translation.value;var velocity=scrollEndVelocityValue;var finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{var nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){var offset=-(scrollEndTranslationValue>=0?1:-1);var computed=offset<0?Math.ceil:Math.floor;var page=computed(-origin/currentSize);var velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){var finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{var _finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-_finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}};ScrollViewGestureTsx6.__closure={resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit};ScrollViewGestureTsx6.__workletHash=9858368380469;ScrollViewGestureTsx6.__pluginVersion="0.5.2";ScrollViewGestureTsx6.__initData=_worklet_9858368380469_init_data;ScrollViewGestureTsx6.__stackDetails=_e;return ScrollViewGestureTsx6;}({_worklet_9858368380469_init_data:_worklet_9858368380469_init_data,resolvedSize:resolvedSize,translation:translation,withDecay:_reactNativeReanimated.withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapEnabled,translation,pagingEnabled,maxScrollDistancePerSwipe,maxScrollDistancePerSwipeIsSet]);var onFinish=_react.default.useCallback(function ScrollViewGestureTsx7Factory(_ref7){var _worklet_9026185779806_init_data=_ref7._worklet_9026185779806_init_data,touching=_ref7.touching,onScrollEnd=_ref7.onScrollEnd,scheduleOnRN=_ref7.scheduleOnRN;var _e=[new global.Error(),-4,-27];var ScrollViewGestureTsx7=function ScrollViewGestureTsx7(isFinished){if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}};ScrollViewGestureTsx7.__closure={touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx7.__workletHash=9026185779806;ScrollViewGestureTsx7.__pluginVersion="0.5.2";ScrollViewGestureTsx7.__initData=_worklet_9026185779806_init_data;ScrollViewGestureTsx7.__stackDetails=_e;return ScrollViewGestureTsx7;}({_worklet_9026185779806_init_data:_worklet_9026185779806_init_data,touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=_react.default.useCallback(function ScrollViewGestureTsx8Factory(_ref8){var _worklet_5593859302814_init_data=_ref8._worklet_5593859302814_init_data,touching=_ref8.touching,translation=_ref8.translation,withDecay=_ref8.withDecay,scrollEndVelocity=_ref8.scrollEndVelocity,onFinish=_ref8.onFinish;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx8=function ScrollViewGestureTsx8(){touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function ScrollViewGestureTsx9Factory(_ref9){var _worklet_10440224148495_init_data=_ref9._worklet_10440224148495_init_data,onFinish=_ref9.onFinish;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx9=function ScrollViewGestureTsx9(isFinished){return onFinish(isFinished);};ScrollViewGestureTsx9.__closure={onFinish:onFinish};ScrollViewGestureTsx9.__workletHash=10440224148495;ScrollViewGestureTsx9.__pluginVersion="0.5.2";ScrollViewGestureTsx9.__initData=_worklet_10440224148495_init_data;ScrollViewGestureTsx9.__stackDetails=_e;return ScrollViewGestureTsx9;}({_worklet_10440224148495_init_data:_worklet_10440224148495_init_data,onFinish:onFinish}));};ScrollViewGestureTsx8.__closure={touching:touching,translation:translation,withDecay:withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish};ScrollViewGestureTsx8.__workletHash=5593859302814;ScrollViewGestureTsx8.__pluginVersion="0.5.2";ScrollViewGestureTsx8.__initData=_worklet_5593859302814_init_data;ScrollViewGestureTsx8.__stackDetails=_e;return ScrollViewGestureTsx8;}({_worklet_5593859302814_init_data:_worklet_5593859302814_init_data,touching:touching,translation:translation,withDecay:_reactNativeReanimated.withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=_react.default.useCallback(function ScrollViewGestureTsx10Factory(_ref0){var _worklet_1192613327258_init_data=_ref0._worklet_1192613327258_init_data,resolvedSize=_ref0.resolvedSize,touching=_ref0.touching,translation=_ref0.translation,scrollEndTranslation=_ref0.scrollEndTranslation,activeDecay=_ref0.activeDecay,loop=_ref0.loop,withSpring=_ref0.withSpring,maxPage=_ref0.maxPage;var _e=[new global.Error(),-9,-27];var ScrollViewGestureTsx10=function ScrollViewGestureTsx10(){var _resolvedSize$value3;var currentSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}};ScrollViewGestureTsx10.__closure={resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage};ScrollViewGestureTsx10.__workletHash=1192613327258;ScrollViewGestureTsx10.__pluginVersion="0.5.2";ScrollViewGestureTsx10.__initData=_worklet_1192613327258_init_data;ScrollViewGestureTsx10.__stackDetails=_e;return ScrollViewGestureTsx10;}({_worklet_1192613327258_init_data:_worklet_1192613327258_init_data,resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage}),[touching,translation,maxPage,resolvedSize,scrollEndTranslation,loop,activeDecay,withSpring]);(0,_reactNativeReanimated.useAnimatedReaction)(function ScrollViewGestureTsx11Factory(_ref1){var _worklet_8670557262418_init_data=_ref1._worklet_8670557262418_init_data,translation=_ref1.translation;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx11=function ScrollViewGestureTsx11(){return translation.value;};ScrollViewGestureTsx11.__closure={translation:translation};ScrollViewGestureTsx11.__workletHash=8670557262418;ScrollViewGestureTsx11.__pluginVersion="0.5.2";ScrollViewGestureTsx11.__initData=_worklet_8670557262418_init_data;ScrollViewGestureTsx11.__stackDetails=_e;return ScrollViewGestureTsx11;}({_worklet_8670557262418_init_data:_worklet_8670557262418_init_data,translation:translation}),function ScrollViewGestureTsx12Factory(_ref10){var _worklet_8859522539420_init_data=_ref10._worklet_8859522539420_init_data,pagingEnabled=_ref10.pagingEnabled,resetBoundary=_ref10.resetBoundary;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx12=function ScrollViewGestureTsx12(){if(!pagingEnabled)resetBoundary();};ScrollViewGestureTsx12.__closure={pagingEnabled:pagingEnabled,resetBoundary:resetBoundary};ScrollViewGestureTsx12.__workletHash=8859522539420;ScrollViewGestureTsx12.__pluginVersion="0.5.2";ScrollViewGestureTsx12.__initData=_worklet_8859522539420_init_data;ScrollViewGestureTsx12.__stackDetails=_e;return ScrollViewGestureTsx12;}({_worklet_8859522539420_init_data:_worklet_8859522539420_init_data,pagingEnabled:pagingEnabled,resetBoundary:resetBoundary}),[pagingEnabled,resetBoundary]);var withProcessTranslation=function withProcessTranslation_ScrollViewGestureTsx13Factory(_ref11){var _worklet_12299006691003_init_data=_ref11._worklet_12299006691003_init_data,loop=_ref11.loop,overscrollEnabled=_ref11.overscrollEnabled,getLimit=_ref11.getLimit;var _e=[new global.Error(),-4,-27];var withProcessTranslation=function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;};withProcessTranslation.__closure={loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit};withProcessTranslation.__workletHash=12299006691003;withProcessTranslation.__pluginVersion="0.5.2";withProcessTranslation.__initData=_worklet_12299006691003_init_data;withProcessTranslation.__stackDetails=_e;return withProcessTranslation;}({_worklet_12299006691003_init_data:_worklet_12299006691003_init_data,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit});var onGestureStart=(0,_react.useCallback)(function ScrollViewGestureTsx14Factory(_ref12){var _worklet_6770704903726_init_data=_ref12._worklet_6770704903726_init_data,resolvedSize=_ref12.resolvedSize,sizeReady=_ref12.sizeReady,touching=_ref12.touching,validStart=_ref12.validStart,onScrollStart=_ref12.onScrollStart,scheduleOnRN=_ref12.scheduleOnRN,max=_ref12.max,maxPage=_ref12.maxPage,loop=_ref12.loop,overscrollEnabled=_ref12.overscrollEnabled,getLimit=_ref12.getLimit,panOffset=_ref12.panOffset,translation=_ref12.translation;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx14=function ScrollViewGestureTsx14(_){var _resolvedSize$value4;var currentSize=(_resolvedSize$value4=resolvedSize.value)!=null?_resolvedSize$value4:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;};ScrollViewGestureTsx14.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation};ScrollViewGestureTsx14.__workletHash=6770704903726;ScrollViewGestureTsx14.__pluginVersion="0.5.2";ScrollViewGestureTsx14.__initData=_worklet_6770704903726_init_data;ScrollViewGestureTsx14.__stackDetails=_e;return ScrollViewGestureTsx14;}({_worklet_6770704903726_init_data:_worklet_6770704903726_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation}),[max,maxPage,loop,touching,panOffset,validStart,translation,overscrollEnabled,getLimit,onScrollStart,sizeReady,resolvedSize]);var onGestureUpdate=(0,_react.useCallback)(function ScrollViewGestureTsx15Factory(_ref13){var _worklet_12670828273673_init_data=_ref13._worklet_12670828273673_init_data,resolvedSize=_ref13.resolvedSize,sizeReady=_ref13.sizeReady,panOffset=_ref13.panOffset,validStart=_ref13.validStart,cancelAnimation=_ref13.cancelAnimation,translation=_ref13.translation,touching=_ref13.touching,isHorizontal=_ref13.isHorizontal,fixedDirection=_ref13.fixedDirection,computeGestureTranslation=_ref13.computeGestureTranslation,loop=_ref13.loop,overscrollEnabled=_ref13.overscrollEnabled,max=_ref13.max;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx15=function ScrollViewGestureTsx15(e){var _resolvedSize$value5;var currentSize=(_resolvedSize$value5=resolvedSize.value)!=null?_resolvedSize$value5:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;var translationX=e.translationX,translationY=e.translationY;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:overscrollEnabled!=null?overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});};ScrollViewGestureTsx15.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max};ScrollViewGestureTsx15.__workletHash=12670828273673;ScrollViewGestureTsx15.__pluginVersion="0.5.2";ScrollViewGestureTsx15.__initData=_worklet_12670828273673_init_data;ScrollViewGestureTsx15.__stackDetails=_e;return ScrollViewGestureTsx15;}({_worklet_12670828273673_init_data:_worklet_12670828273673_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:_reactNativeReanimated.cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:_computeGestureTranslation.computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,fixedDirection,translation,validStart,touching,sizeReady,resolvedSize]);var onGestureEnd=(0,_react.useCallback)(function ScrollViewGestureTsx16Factory(_ref14){var _worklet_3955652701817_init_data=_ref14._worklet_3955652701817_init_data,resolvedSize=_ref14.resolvedSize,sizeReady=_ref14.sizeReady,panOffset=_ref14.panOffset,isHorizontal=_ref14.isHorizontal,scrollEndVelocity=_ref14.scrollEndVelocity,fixedDirection=_ref14.fixedDirection,scrollEndTranslation=_ref14.scrollEndTranslation,maxScrollDistancePerSwipeIsSet=_ref14.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref14.maxScrollDistancePerSwipe,translation=_ref14.translation,withSpring=_ref14.withSpring,withProcessTranslation=_ref14.withProcessTranslation,onScrollEnd=_ref14.onScrollEnd,minScrollDistancePerSwipeIsSet=_ref14.minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe=_ref14.minScrollDistancePerSwipe,endWithSpring=_ref14.endWithSpring,loop=_ref14.loop,touching=_ref14.touching;var _e=[new global.Error(),-19,-27];var ScrollViewGestureTsx16=function ScrollViewGestureTsx16(e,_success){var _resolvedSize$value6;var currentSize=(_resolvedSize$value6=resolvedSize.value)!=null?_resolvedSize$value6:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}var velocityX=e.velocityX,velocityY=e.velocityY,translationX=e.translationX,translationY=e.translationY;var scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;var totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){var nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){var _nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(_nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;};ScrollViewGestureTsx16.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching};ScrollViewGestureTsx16.__workletHash=3955652701817;ScrollViewGestureTsx16.__pluginVersion="0.5.2";ScrollViewGestureTsx16.__initData=_worklet_3955652701817_init_data;ScrollViewGestureTsx16.__stackDetails=_e;return ScrollViewGestureTsx16;}({_worklet_3955652701817_init_data:_worklet_3955652701817_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching}),[loop,touching,panOffset,translation,isHorizontal,scrollEndVelocity,scrollEndTranslation,fixedDirection,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,withSpring,onScrollEnd,sizeReady,resolvedSize]);var gesture=(0,_usePanGestureProxy.usePanGestureProxy)({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:enabled}});var onLayout=_react.default.useCallback(function ScrollViewGestureTsx17Factory(_ref15){var _worklet_16842131914021_init_data=_ref15._worklet_16842131914021_init_data,vertical=_ref15.vertical,sizeExplicit=_ref15.sizeExplicit,resolvedSize=_ref15.resolvedSize,sizePhase=_ref15.sizePhase,updateContainerSize=_ref15.updateContainerSize;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx17=function ScrollViewGestureTsx17(e){var measuredWidth=e.nativeEvent.layout.width;var measuredHeight=e.nativeEvent.layout.height;var measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value7;var current=(_resolvedSize$value7=resolvedSize.value)!=null?_resolvedSize$value7:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?"updating":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value="ready";}}updateContainerSize({width:measuredWidth,height:measuredHeight});};ScrollViewGestureTsx17.__closure={vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize};ScrollViewGestureTsx17.__workletHash=16842131914021;ScrollViewGestureTsx17.__pluginVersion="0.5.2";ScrollViewGestureTsx17.__initData=_worklet_16842131914021_init_data;ScrollViewGestureTsx17.__stackDetails=_e;return ScrollViewGestureTsx17;}({_worklet_16842131914021_init_data:_worklet_16842131914021_init_data,vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize}),[updateContainerSize,resolvedSize,sizePhase,vertical,sizeExplicit]);return(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector,{gesture:gesture,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd:onTouchEnd,onLayout:onLayout,children:props.children})});};var ScrollViewGesture=exports.ScrollViewGesture=IScrollViewGesture;
|
|
1
|
+
var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";import React,{useCallback}from"react";import{GestureDetector}from"react-native-gesture-handler";import Animated,{cancelAnimation,useAnimatedReaction,useDerivedValue,useSharedValue,withDecay}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{usePanGestureProxy}from"../hooks/usePanGestureProxy";import{useGlobalState}from"../store";import{toLogicalGestureValue}from"../utils/carousel-direction";import{computeGestureTranslation}from"../utils/compute-gesture-translation";import{dealWithAnimation}from"../utils/deal-with-animation";import{jsx as _jsx}from"react/jsx-runtime";var _worklet_2472947973255_init_data={code:"function ScrollViewGestureTsx1(){const{isVertical}=this.__closure;return!isVertical;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx1\",\"isVertical\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAiEuC,SAAAA,sBAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAD,UAAA\",\"ignoreList\":[]}"};var _worklet_1256203969722_init_data={code:"function ScrollViewGestureTsx2(){const{resolvedSize,sizePhase}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;return sizePhase.value===\"ready\"&¤tSize>0;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx2\",\"resolvedSize\",\"sizePhase\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAyEoC,SAAAA,qBAAMA,CAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,mBAAA,CACtC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGH,YAAY,CAACK,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,MAAO,CAAAF,SAAS,CAACI,KAAK,GAAK,OAAO,EAAID,WAAW,CAAG,CAAC,CACvD\",\"ignoreList\":[]}"};var _worklet_5347610344434_init_data={code:"function ScrollViewGestureTsx3(){const{size,loop,overscrollEnabled,isVertical,containerSize,dataLength}=this.__closure;if(size<=0)return 0;if(!loop&&!overscrollEnabled){const containerMainAxisSize=isVertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx3\",\"size\",\"loop\",\"overscrollEnabled\",\"isVertical\",\"containerSize\",\"dataLength\",\"__closure\",\"containerMainAxisSize\",\"value\",\"height\",\"width\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+EqC,SAAAA,qBAAMA,CAAA,QAAAC,IAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,UAAA,OAAAC,SAAA,CAGvC,GAAIN,IAAI,EAAI,CAAC,CAAE,MAAO,EAAC,CAEvB,GAAI,CAACC,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAK,qBAAqB,CAAGJ,UAAU,CACpCC,aAAa,CAACI,KAAK,CAACC,MAAM,CAC1BL,aAAa,CAACI,KAAK,CAACE,KAAK,CAG7B,GAAIH,qBAAqB,EAAI,CAAC,EAAIF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAAE,MAAO,EAAC,CAGrF,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAClD,CAEA,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAC1B\",\"ignoreList\":[]}"};var _worklet_2188036911353_init_data={code:"function ScrollViewGestureTsx4(isFinished){const{onFinished,scheduleOnRN}=this.__closure;if(isFinished)onFinished&&scheduleOnRN(onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx4\",\"isFinished\",\"onFinished\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsGmD,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAEpE,GAAIH,UAAU,CAAEC,UAAU,EAAIC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_12883178410008_init_data={code:"function ScrollViewGestureTsx5(toValue,onFinished){const{dealWithAnimation,animation,_worklet_2188036911353_init_data,scheduleOnRN}=this.__closure;return dealWithAnimation(animation)(toValue,function ScrollViewGestureTsx4Factory({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}){const _e=[new global.Error(),-3,-27];const ScrollViewGestureTsx4=function(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion=\"0.5.2\";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx5\",\"toValue\",\"onFinished\",\"dealWithAnimation\",\"animation\",\"_worklet_2188036911353_init_data\",\"scheduleOnRN\",\"__closure\",\"ScrollViewGestureTsx4Factory\",\"_e\",\"global\",\"Error\",\"ScrollViewGestureTsx4\",\"isFinished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAoGI,QAAC,CAAAA,qBAAwCA,CAAAC,OAAK,CAAAC,UAAA,QAAAC,iBAAA,CAAAC,SAAA,CAAAC,gCAAA,CAAAC,YAAA,OAAAC,SAAA,CAE5C,MAAO,CAAAJ,iBAAiB,CAACC,SAAS,CAAC,CAACH,OAAO,CAAE,SAAAO,6BAAA,CAAAH,gCAAA,CAAAA,gCAAA,CAE3BH,UAAU,CAAVA,UAAU,CAAII,YAAA,CAAAA,YAAY,SAAAG,EAAA,MAAAC,MAAA,CAAAC,KAAA,iBAAAC,qBAAA,SAAAA,CAFEC,UAAmB,CAAK,CAEpE,GAAIA,UAAU,CAAEX,UAAU,EAAII,YAAY,CAACJ,UAAU,CAAC,CACxD,CAAC,CAAAU,qBAAA,CAAAL,SAAA,EADiBL,UAAU,CAAVA,UAAU,CAAII,YAAA,CAAAA,YAAY,EAAAM,qBAAA,CAAAE,aAAA,eAAAF,qBAAA,CAAAG,eAAA,SAAAH,qBAAA,CAAAI,UAAA,CAAAX,gCAAA,CAAAO,qBAAA,CAAAK,cAAA,CAAAR,EAAA,QAAAG,qBAAA,EAFC,EAAAP,gCAAA,CAAAA,gCAAA,CAE3BH,UAAU,CAAVA,UAAU,CAAII,YAAA,CAAAA,YAAY,EAC3C,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_3690174926539_init_data={code:"function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{resolvedSize,translation,withDecay,scheduleOnRN,snapMode,withSpring,loop,maxPage,overscrollEnabled,getLimit}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0){return;}const origin=translation.value;const velocity=scrollEndVelocityValue;let finalTranslation=withDecay({velocity:velocity,deceleration:0.999},function(isFinished){if(isFinished&&onFinished)scheduleOnRN(onFinished);});const nextPage=-Math.round((origin+velocity*2)/currentSize);if(snapMode===\"page\"){const offset=-(scrollEndTranslationValue>=0?1:-1);const computed=offset<0?Math.ceil:Math.floor;const page=computed(-origin/currentSize);const velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){const finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{const finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}}if(snapMode===\"nearest\"){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx6\",\"scrollEndTranslationValue\",\"scrollEndVelocityValue\",\"onFinished\",\"resolvedSize\",\"translation\",\"withDecay\",\"scheduleOnRN\",\"snapMode\",\"withSpring\",\"loop\",\"maxPage\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"origin\",\"velocity\",\"finalTranslation\",\"deceleration\",\"isFinished\",\"nextPage\",\"Math\",\"round\",\"offset\",\"computed\",\"ceil\",\"floor\",\"page\",\"velocityDirection\",\"sign\",\"withProcessTranslation\",\"finalPage\",\"min\",\"max\",\"limit\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+GI,QACE,CAAAA,sBAAAC,yBACA,CAAAC,sBAEG,CAAAC,UAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC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C,IAAM,IAAIO,IAAI,CAAE,CACf,KAAM,CAAAwB,SAAS,CAAGJ,IAAI,CAAGJ,MAAM,CAC/BN,gBAAgB,CAAGX,UAAU,CAC3BwB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDb,UACF,CAAC,CACH,CAAC,IAAM,CACL,KAAM,CAAA+B,SAAS,CAAGV,IAAI,CAACW,GAAG,CAACxB,OAAO,CAAG,CAAC,CAAEa,IAAI,CAACY,GAAG,CAAC,CAAC,CAAEN,IAAI,CAAGJ,MAAM,CAAC,CAAC,CACnEN,gBAAgB,CAAGX,UAAU,CAC3BwB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDb,UACF,CAAC,CACH,CACF,CAEA,GAAIK,QAAQ,GAAK,SAAS,CAAE,CAC1BY,gBAAgB,CAAGX,UAAU,CAACwB,sBAAsB,CAAC,CAACV,QAAQ,CAAGP,WAAW,CAAC,CAAEb,UAAU,CAAC,CAC5F,CAEAE,WAAW,CAACY,KAAK,CAAGG,gBAAgB,CAEpC,QAAS,CAAAa,sBAAsBA,CAAC5B,WAAmB,CAAE,CACnD,GAAI,CAACK,IAAI,EAAI,CAACE,iBAAiB,CAAE,CAC/B,KAAM,CAAAyB,KAAK,CAAGxB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAW,IAAI,CAACW,GAAG,CAAC,CAAC,CAAEX,IAAI,CAACY,GAAG,CAAC,CAACC,KAAK,CAAEhC,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB,CACF\",\"ignoreList\":[]}"};var _worklet_7969934388090_init_data={code:"function ScrollViewGestureTsx7(isFinished){const{onFinished,scheduleOnRN}=this.__closure;if(isFinished&&onFinished)scheduleOnRN(onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx7\",\"isFinished\",\"onFinished\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA8HmF,SAAAA,qBAAeA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAC1F,GAAIH,UAAU,EAAIC,UAAU,CAAEC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_4071854479665_init_data={code:"function ScrollViewGestureTsx8(isFinished){const{touching,onScrollEnd,scheduleOnRN}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx8\",\"isFinished\",\"touching\",\"onScrollEnd\",\"scheduleOnRN\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6LI,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIJ,UAAU,CAAE,CACdC,QAAQ,CAACI,KAAK,CAAG,KAAK,CACtBH,WAAW,EAAIC,YAAY,CAACD,WAAW,CAAC,CAC1C,CACF\",\"ignoreList\":[]}"};var _worklet_3052508857023_init_data={code:"function ScrollViewGestureTsx9(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx9\",\"touching\",\"translation\",\"withDecay\",\"scrollEndVelocity\",\"onFinish\",\"__closure\",\"value\",\"velocity\",\"isFinished\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAuMwC,SAAAA,qBAAMA,CAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAE1CL,QAAQ,CAACM,KAAK,CAAG,IAAI,CACrBL,WAAW,CAACK,KAAK,CAAGJ,SAAS,CAAC,CAAEK,QAAQ,CAAEJ,iBAAiB,CAACG,KAAM,CAAC,CAAG,SAAAE,UAAU,QAC9E,CAAAJ,QAAQ,CAACI,UAAqB,CAChC,GAAC,CACH\",\"ignoreList\":[]}"};var _worklet_4672981921527_init_data={code:"function ScrollViewGestureTsx10(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx10\",\"isFinished\",\"onFinish\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0M0E,SAAAA,sBAAUA,CAAAC,UAAA,QAAAC,QAAA,OAAAC,SAAA,OAC9E,CAAAD,QAAS,CAAAD,UAAqB\",\"ignoreList\":[]}"};var _worklet_10736007228699_init_data={code:"function ScrollViewGestureTsx11(){const{resolvedSize,touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx11\",\"resolvedSize\",\"touching\",\"translation\",\"scrollEndTranslation\",\"activeDecay\",\"loop\",\"withSpring\",\"maxPage\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+M0C,SAAAA,sBAAMA,CAAA,QAAAC,YAAA,CAAAC,QAAA,CAAAC,WAAA,CAAAC,oBAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,OAAA,OAAAC,SAAA,KAAAC,mBAAA,CAI5C,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,OACtB,GAAIT,QAAQ,CAACU,KAAK,CAAE,OAEpB,GAAIT,WAAW,CAACS,KAAK,CAAG,CAAC,CAAE,CACzB,GAAIR,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAE,CACTH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,CAAC,CAAC,CACjC,OACF,CACF,CAEA,GAAIJ,WAAW,CAACS,KAAK,CAAG,EAAE,CAACJ,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAE,CACtD,GAAIP,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAEH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,EAAE,CAACC,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAC,CAC3E,CACF\",\"ignoreList\":[]}"};var _worklet_11956863068497_init_data={code:"function ScrollViewGestureTsx12(){const{translation}=this.__closure;return translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx12\",\"translation\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA4OI,SAAAA,uBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAM,CAAAD,WAAY,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_16893833080014_init_data={code:"function ScrollViewGestureTsx13(){const{snapMode,resetBoundary}=this.__closure;if(snapMode!==\"page\")resetBoundary();}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx13\",\"snapMode\",\"resetBoundary\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6OI,SAAAA,sBAAMA,CAAA,QAAAC,QAAA,CAAAC,aAAA,OAAAC,SAAA,CACJ,GAAIF,QAAQ,GAAK,MAAM,CAAEC,aAAa,CAAC,CAAC,CAC1C\",\"ignoreList\":[]}"};var _worklet_1110467062538_init_data={code:"function ScrollViewGestureTsx14(_){const{resolvedSize,sizeReady,touching,validStart,hasStartedMovement,max,maxPage,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;hasStartedMovement.value=false;max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx14\",\"_\",\"resolvedSize\",\"sizeReady\",\"touching\",\"validStart\",\"hasStartedMovement\",\"max\",\"maxPage\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"panOffset\",\"translation\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAoPI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,kBAAA,CAAAC,GAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,SAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACZ,SAAS,CAACc,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACAZ,QAAQ,CAACa,KAAK,CAAG,IAAI,CACrBZ,UAAU,CAACY,KAAK,CAAG,IAAI,CACvBX,kBAAkB,CAACW,KAAK,CAAG,KAAK,CAEhCV,GAAG,CAACU,KAAK,CAAG,CAACT,OAAO,CAAG,CAAC,EAAIQ,WAAW,CACvC,GAAI,CAACP,IAAI,EAAI,CAACC,iBAAiB,CAAEH,GAAG,CAACU,KAAK,CAAGN,QAAQ,CAAC,CAAC,CAEvDC,SAAS,CAACK,KAAK,CAAGJ,WAAW,CAACI,KAAK,CACrC\",\"ignoreList\":[]}"};var _worklet_4576743285953_init_data={code:"function ScrollViewGestureTsx15(e){const{resolvedSize,sizeReady,panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,toLogicalGestureValue,directionSign,hasStartedMovement,onScrollStart,scheduleOnRN,computeGestureTranslation,loop,overscrollEnabled,max}=this.__closure;var _resolvedSize$value,_overscrollEnabled;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;const physicalPanTranslation=isHorizontal.value?translationX:translationY;const panTranslation=toLogicalGestureValue(physicalPanTranslation,directionSign);if(!hasStartedMovement.value&&panTranslation!==0){hasStartedMovement.value=true;if(onScrollStart)scheduleOnRN(onScrollStart);}translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:(_overscrollEnabled=overscrollEnabled)!==null&&_overscrollEnabled!==void 0?_overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx15\",\"e\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"validStart\",\"cancelAnimation\",\"translation\",\"touching\",\"isHorizontal\",\"toLogicalGestureValue\",\"directionSign\",\"hasStartedMovement\",\"onScrollStart\",\"scheduleOnRN\",\"computeGestureTranslation\",\"loop\",\"overscrollEnabled\",\"max\",\"__closure\",\"_resolvedSize$value\",\"_overscrollEnabled\",\"currentSize\",\"value\",\"undefined\",\"translationX\",\"translationY\",\"physicalPanTranslation\",\"panTranslation\",\"currentTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsRI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,WAA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nB,SAAS,CAAEA,SAAS,CAACmB,KAAK,CAC1BK,cAAc,CAAdA,cAAc,CACdV,GAAG,CAAEA,GAAG,CAACK,KACX,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_3738565917323_init_data={code:"function ScrollViewGestureTsx16(e,_success){const{resolvedSize,sizeReady,panOffset,hasStartedMovement,touching,isHorizontal,toLogicalGestureValue,directionSign,scrollEndVelocity,scrollEndTranslation,endWithSpring,onScrollEnd,loop}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}if(!hasStartedMovement.value){touching.value=false;panOffset.value=undefined;return;}const{velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}=e;const physicalVelocity=isHorizontal.value?velocityX:velocityY;const scrollEndVelocityValue=toLogicalGestureValue(physicalVelocity,directionSign);scrollEndVelocity.value=scrollEndVelocityValue;const physicalPanTranslation=isHorizontal.value?translationX:translationY;const panTranslation=toLogicalGestureValue(physicalPanTranslation,directionSign);scrollEndTranslation.value=panTranslation;endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);if(!loop)touching.value=false;panOffset.value=undefined;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx16\",\"e\",\"_success\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"hasStartedMovement\",\"touching\",\"isHorizontal\",\"toLogicalGestureValue\",\"directionSign\",\"scrollEndVelocity\",\"scrollEndTranslation\",\"endWithSpring\",\"onScrollEnd\",\"loop\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"undefined\",\"velocityX\",\"velocityY\",\"translationX\",\"translationY\",\"physicalVelocity\",\"scrollEndVelocityValue\",\"physicalPanTranslation\",\"panTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAmVI,QAAC,CAAAA,sBAAiFA,CAAAC,CAAA,CAAAC,QAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,kBAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,iBAAA,CAAAC,oBAAA,CAAAC,aAAA,CAAAC,WAAA,CAAAC,IAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIhF,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGd,YAAY,CAACgB,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACe,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxCb,SAAS,CAACc,KAAK,CAAGC,SAAS,CAC3B,OACF,CAEA,GAAIf,SAAS,CAACc,KAAK,GAAKC,SAAS,CAAE,CAEjC,OACF,CAEA,GAAI,CAACd,kBAAkB,CAACa,KAAK,CAAE,CAC7BZ,QAAQ,CAACY,KAAK,CAAG,KAAK,CACtBd,SAAS,CAACc,KAAK,CAAGC,SAAS,CAC3B,OACF,CAEA,KAAM,CAAEC,SAAS,CAATA,SAAS,CAAEC,SAAS,CAATA,SAAS,CAAEC,YAAY,CAAZA,YAAY,CAAEC,YAAA,CAAAA,YAAa,CAAC,CAAGvB,CAAC,CAC9D,KAAM,CAAAwB,gBAAgB,CAAGjB,YAAY,CAACW,KAAK,CAAGE,SAAS,CAAGC,SAAS,CACnE,KAAM,CAAAI,sBAAsB,CAAGjB,qBAAqB,CAACgB,gBAAgB,CAAEf,aAAa,CAAC,CACrFC,iBAAiB,CAACQ,KAAK,CAAGO,sBAAsB,CAEhD,KAAM,CAAAC,sBAAsB,CAAGnB,YAAY,CAACW,KAAK,CAAGI,YAAY,CAAGC,YAAY,CAC/E,KAAM,CAAAI,cAAc,CAAGnB,qBAAqB,CAACkB,sBAAsB,CAAEjB,aAAa,CAAC,CAEnFE,oBAAoB,CAACO,KAAK,CAAGS,cAAc,CAE3Cf,aAAa,CAACe,cAAc,CAAEF,sBAAsB,CAAEZ,WAAW,CAAC,CAElE,GAAI,CAACC,IAAI,CAAER,QAAQ,CAACY,KAAK,CAAG,KAAK,CAEjCd,SAAS,CAACc,KAAK,CAAGC,SAAS,CAC7B\",\"ignoreList\":[]}"};var _worklet_3590054177125_init_data={code:"function ScrollViewGestureTsx17(e){const{isVertical,sizeExplicit,resolvedSize,sizePhase,updateContainerSize}=this.__closure;const measuredWidth=e.nativeEvent.layout.width;const measuredHeight=e.nativeEvent.layout.height;const measuredSize=Math.round((isVertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value;const current=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?\"updating\":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value=\"ready\";}}updateContainerSize({width:measuredWidth,height:measuredHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx17\",\"e\",\"isVertical\",\"sizeExplicit\",\"resolvedSize\",\"sizePhase\",\"updateContainerSize\",\"__closure\",\"measuredWidth\",\"nativeEvent\",\"layout\",\"width\",\"measuredHeight\",\"height\",\"measuredSize\",\"Math\",\"round\",\"_resolvedSize$value\",\"current\",\"value\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAkZI,QAAC,CAAAA,sBAAyBA,CAAAC,CAAA,QAAAC,UAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,SAAA,CAAAC,mBAAA,OAAAC,SAAA,CAGxB,KAAM,CAAAC,aAAa,CAAGP,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAChD,KAAM,CAAAC,cAAc,CAAGX,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACG,MAAM,CAClD,KAAM,CAAAC,YAAY,CAAGC,IAAI,CAACC,KAAK,CAAC,CAACd,UAAU,CAAGU,cAAc,CAAGJ,aAAa,GAAK,CAAC,CAAC,CAEnF,GAAI,CAACL,YAAY,EAAIW,YAAY,CAAG,CAAC,CAAE,KAAAG,mBAAA,CACrC,KAAM,CAAAC,OAAO,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CACvC,GAAIF,IAAI,CAACK,GAAG,CAACF,OAAO,CAAGJ,YAAY,CAAC,CAAG,CAAC,CAAE,CACxCT,SAAS,CAACc,KAAK,CAAGD,OAAO,CAAG,CAAC,CAAG,UAAU,CAAGb,SAAS,CAACc,KAAK,CAC5Df,YAAY,CAACe,KAAK,CAAGL,YAAY,CACjCT,SAAS,CAACc,KAAK,CAAG,OAAO,CAC3B,CACF,CAEAb,mBAAmB,CAAC,CAClBK,KAAK,CAAEH,aAAa,CACpBK,MAAM,CAAED,cACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var IScrollViewGesture=function IScrollViewGesture(props){var _useGlobalState=useGlobalState(),_useGlobalState$props=_useGlobalState.props,onConfigurePanGesture=_useGlobalState$props.onConfigurePanGesture,orientation=_useGlobalState$props.orientation,snapMode=_useGlobalState$props.snapMode,loop=_useGlobalState$props.loop,animation=_useGlobalState$props.animation,scrollEnabled=_useGlobalState$props.scrollEnabled,dataLength=_useGlobalState$props.dataLength,overscrollEnabled=_useGlobalState$props.overscrollEnabled,directionSign=_useGlobalState$props.directionSign,_useGlobalState$commo=_useGlobalState.common,size=_useGlobalState$commo.size,resolvedSize=_useGlobalState$commo.resolvedSize,sizePhase=_useGlobalState$commo.sizePhase,sizeExplicit=_useGlobalState$commo.sizeExplicit,_useGlobalState$layou=_useGlobalState.layout,containerSize=_useGlobalState$layou.containerSize,updateContainerSize=_useGlobalState$layou.updateContainerSize;var translation=props.translation,testID=props.testID,_props$style=props.style,style=_props$style===void 0?{}:_props$style,onScrollStart=props.onScrollStart,onScrollEnd=props.onScrollEnd,onTouchBegin=props.onTouchBegin,onTouchEnd=props.onTouchEnd;var isVertical=orientation==="vertical";var maxPage=dataLength;var isHorizontal=useDerivedValue(function ScrollViewGestureTsx1Factory(_ref){var _worklet_2472947973255_init_data=_ref._worklet_2472947973255_init_data,isVertical=_ref.isVertical;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx1=function ScrollViewGestureTsx1(){return!isVertical;};ScrollViewGestureTsx1.__closure={isVertical:isVertical};ScrollViewGestureTsx1.__workletHash=2472947973255;ScrollViewGestureTsx1.__pluginVersion="0.5.2";ScrollViewGestureTsx1.__initData=_worklet_2472947973255_init_data;ScrollViewGestureTsx1.__stackDetails=_e;return ScrollViewGestureTsx1;}({_worklet_2472947973255_init_data:_worklet_2472947973255_init_data,isVertical:isVertical}),[isVertical]);var max=useSharedValue(0);var panOffset=useSharedValue(undefined);var touching=useSharedValue(false);var validStart=useSharedValue(false);var hasStartedMovement=useSharedValue(false);var scrollEndTranslation=useSharedValue(0);var scrollEndVelocity=useSharedValue(0);var sizeReady=useDerivedValue(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&¤tSize>0;};ScrollViewGestureTsx2.__closure={resolvedSize:resolvedSize,sizePhase:sizePhase};ScrollViewGestureTsx2.__workletHash=1256203969722;ScrollViewGestureTsx2.__pluginVersion="0.5.2";ScrollViewGestureTsx2.__initData=_worklet_1256203969722_init_data;ScrollViewGestureTsx2.__stackDetails=_e;return ScrollViewGestureTsx2;}({_worklet_1256203969722_init_data:_worklet_1256203969722_init_data,resolvedSize:resolvedSize,sizePhase:sizePhase}),[resolvedSize,sizePhase]);var getLimit=React.useCallback(function ScrollViewGestureTsx3Factory(_ref3){var _worklet_5347610344434_init_data=_ref3._worklet_5347610344434_init_data,size=_ref3.size,loop=_ref3.loop,overscrollEnabled=_ref3.overscrollEnabled,isVertical=_ref3.isVertical,containerSize=_ref3.containerSize,dataLength=_ref3.dataLength;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx3=function ScrollViewGestureTsx3(){if(size<=0)return 0;if(!loop&&!overscrollEnabled){var containerMainAxisSize=isVertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;};ScrollViewGestureTsx3.__closure={size:size,loop:loop,overscrollEnabled:overscrollEnabled,isVertical:isVertical,containerSize:containerSize,dataLength:dataLength};ScrollViewGestureTsx3.__workletHash=5347610344434;ScrollViewGestureTsx3.__pluginVersion="0.5.2";ScrollViewGestureTsx3.__initData=_worklet_5347610344434_init_data;ScrollViewGestureTsx3.__stackDetails=_e;return ScrollViewGestureTsx3;}({_worklet_5347610344434_init_data:_worklet_5347610344434_init_data,size:size,loop:loop,overscrollEnabled:overscrollEnabled,isVertical:isVertical,containerSize:containerSize,dataLength:dataLength}),[loop,size,dataLength,overscrollEnabled,isVertical,containerSize]);var withSpring=React.useCallback(function ScrollViewGestureTsx5Factory(_ref4){var _worklet_12883178410008_init_data=_ref4._worklet_12883178410008_init_data,dealWithAnimation=_ref4.dealWithAnimation,animation=_ref4.animation,_worklet_2188036911353_init_data=_ref4._worklet_2188036911353_init_data,scheduleOnRN=_ref4.scheduleOnRN;var _e=[new global.Error(),-5,-27];var ScrollViewGestureTsx5=function ScrollViewGestureTsx5(toValue,onFinished){return dealWithAnimation(animation)(toValue,function ScrollViewGestureTsx4Factory(_ref5){var _worklet_2188036911353_init_data=_ref5._worklet_2188036911353_init_data,onFinished=_ref5.onFinished,scheduleOnRN=_ref5.scheduleOnRN;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx4=function ScrollViewGestureTsx4(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion="0.5.2";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));};ScrollViewGestureTsx5.__closure={dealWithAnimation:dealWithAnimation,animation:animation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx5.__workletHash=12883178410008;ScrollViewGestureTsx5.__pluginVersion="0.5.2";ScrollViewGestureTsx5.__initData=_worklet_12883178410008_init_data;ScrollViewGestureTsx5.__stackDetails=_e;return ScrollViewGestureTsx5;}({_worklet_12883178410008_init_data:_worklet_12883178410008_init_data,dealWithAnimation:dealWithAnimation,animation:animation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:scheduleOnRN}),[animation]);var endWithSpring=React.useCallback(function ScrollViewGestureTsx6Factory(_ref6){var _worklet_3690174926539_init_data=_ref6._worklet_3690174926539_init_data,resolvedSize=_ref6.resolvedSize,translation=_ref6.translation,withDecay=_ref6.withDecay,scheduleOnRN=_ref6.scheduleOnRN,snapMode=_ref6.snapMode,withSpring=_ref6.withSpring,loop=_ref6.loop,maxPage=_ref6.maxPage,overscrollEnabled=_ref6.overscrollEnabled,getLimit=_ref6.getLimit;var _e=[new global.Error(),-11,-27];var ScrollViewGestureTsx6=function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0){return;}var origin=translation.value;var velocity=scrollEndVelocityValue;var finalTranslation=withDecay({velocity:velocity,deceleration:0.999},function ScrollViewGestureTsx7Factory(_ref7){var _worklet_7969934388090_init_data=_ref7._worklet_7969934388090_init_data,onFinished=_ref7.onFinished,scheduleOnRN=_ref7.scheduleOnRN;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx7=function ScrollViewGestureTsx7(isFinished){if(isFinished&&onFinished)scheduleOnRN(onFinished);};ScrollViewGestureTsx7.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx7.__workletHash=7969934388090;ScrollViewGestureTsx7.__pluginVersion="0.5.2";ScrollViewGestureTsx7.__initData=_worklet_7969934388090_init_data;ScrollViewGestureTsx7.__stackDetails=_e;return ScrollViewGestureTsx7;}({_worklet_7969934388090_init_data:_worklet_7969934388090_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));var nextPage=-Math.round((origin+velocity*2)/currentSize);if(snapMode==="page"){var offset=-(scrollEndTranslationValue>=0?1:-1);var computed=offset<0?Math.ceil:Math.floor;var page=computed(-origin/currentSize);var velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){var finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{var _finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-_finalPage*currentSize),onFinished);}}if(snapMode==="nearest"){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}};ScrollViewGestureTsx6.__closure={resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,scheduleOnRN:scheduleOnRN,snapMode:snapMode,withSpring:withSpring,loop:loop,maxPage:maxPage,overscrollEnabled:overscrollEnabled,getLimit:getLimit};ScrollViewGestureTsx6.__workletHash=3690174926539;ScrollViewGestureTsx6.__pluginVersion="0.5.2";ScrollViewGestureTsx6.__initData=_worklet_3690174926539_init_data;ScrollViewGestureTsx6.__stackDetails=_e;return ScrollViewGestureTsx6;}({_worklet_3690174926539_init_data:_worklet_3690174926539_init_data,resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,scheduleOnRN:scheduleOnRN,snapMode:snapMode,withSpring:withSpring,loop:loop,maxPage:maxPage,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapMode,translation]);var onFinish=React.useCallback(function ScrollViewGestureTsx8Factory(_ref8){var _worklet_4071854479665_init_data=_ref8._worklet_4071854479665_init_data,touching=_ref8.touching,onScrollEnd=_ref8.onScrollEnd,scheduleOnRN=_ref8.scheduleOnRN;var _e=[new global.Error(),-4,-27];var ScrollViewGestureTsx8=function ScrollViewGestureTsx8(isFinished){if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}};ScrollViewGestureTsx8.__closure={touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx8.__workletHash=4071854479665;ScrollViewGestureTsx8.__pluginVersion="0.5.2";ScrollViewGestureTsx8.__initData=_worklet_4071854479665_init_data;ScrollViewGestureTsx8.__stackDetails=_e;return ScrollViewGestureTsx8;}({_worklet_4071854479665_init_data:_worklet_4071854479665_init_data,touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=React.useCallback(function ScrollViewGestureTsx9Factory(_ref9){var _worklet_3052508857023_init_data=_ref9._worklet_3052508857023_init_data,touching=_ref9.touching,translation=_ref9.translation,withDecay=_ref9.withDecay,scrollEndVelocity=_ref9.scrollEndVelocity,onFinish=_ref9.onFinish;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx9=function ScrollViewGestureTsx9(){touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function ScrollViewGestureTsx10Factory(_ref0){var _worklet_4672981921527_init_data=_ref0._worklet_4672981921527_init_data,onFinish=_ref0.onFinish;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx10=function ScrollViewGestureTsx10(isFinished){return onFinish(isFinished);};ScrollViewGestureTsx10.__closure={onFinish:onFinish};ScrollViewGestureTsx10.__workletHash=4672981921527;ScrollViewGestureTsx10.__pluginVersion="0.5.2";ScrollViewGestureTsx10.__initData=_worklet_4672981921527_init_data;ScrollViewGestureTsx10.__stackDetails=_e;return ScrollViewGestureTsx10;}({_worklet_4672981921527_init_data:_worklet_4672981921527_init_data,onFinish:onFinish}));};ScrollViewGestureTsx9.__closure={touching:touching,translation:translation,withDecay:withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish};ScrollViewGestureTsx9.__workletHash=3052508857023;ScrollViewGestureTsx9.__pluginVersion="0.5.2";ScrollViewGestureTsx9.__initData=_worklet_3052508857023_init_data;ScrollViewGestureTsx9.__stackDetails=_e;return ScrollViewGestureTsx9;}({_worklet_3052508857023_init_data:_worklet_3052508857023_init_data,touching:touching,translation:translation,withDecay:withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=React.useCallback(function ScrollViewGestureTsx11Factory(_ref1){var _worklet_10736007228699_init_data=_ref1._worklet_10736007228699_init_data,resolvedSize=_ref1.resolvedSize,touching=_ref1.touching,translation=_ref1.translation,scrollEndTranslation=_ref1.scrollEndTranslation,activeDecay=_ref1.activeDecay,loop=_ref1.loop,withSpring=_ref1.withSpring,maxPage=_ref1.maxPage;var _e=[new global.Error(),-9,-27];var ScrollViewGestureTsx11=function ScrollViewGestureTsx11(){var _resolvedSize$value3;var currentSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}};ScrollViewGestureTsx11.__closure={resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage};ScrollViewGestureTsx11.__workletHash=10736007228699;ScrollViewGestureTsx11.__pluginVersion="0.5.2";ScrollViewGestureTsx11.__initData=_worklet_10736007228699_init_data;ScrollViewGestureTsx11.__stackDetails=_e;return ScrollViewGestureTsx11;}({_worklet_10736007228699_init_data:_worklet_10736007228699_init_data,resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage}),[touching,translation,resolvedSize,scrollEndTranslation,loop,activeDecay,withSpring]);useAnimatedReaction(function ScrollViewGestureTsx12Factory(_ref10){var _worklet_11956863068497_init_data=_ref10._worklet_11956863068497_init_data,translation=_ref10.translation;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx12=function ScrollViewGestureTsx12(){return translation.value;};ScrollViewGestureTsx12.__closure={translation:translation};ScrollViewGestureTsx12.__workletHash=11956863068497;ScrollViewGestureTsx12.__pluginVersion="0.5.2";ScrollViewGestureTsx12.__initData=_worklet_11956863068497_init_data;ScrollViewGestureTsx12.__stackDetails=_e;return ScrollViewGestureTsx12;}({_worklet_11956863068497_init_data:_worklet_11956863068497_init_data,translation:translation}),function ScrollViewGestureTsx13Factory(_ref11){var _worklet_16893833080014_init_data=_ref11._worklet_16893833080014_init_data,snapMode=_ref11.snapMode,resetBoundary=_ref11.resetBoundary;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx13=function ScrollViewGestureTsx13(){if(snapMode!=="page")resetBoundary();};ScrollViewGestureTsx13.__closure={snapMode:snapMode,resetBoundary:resetBoundary};ScrollViewGestureTsx13.__workletHash=16893833080014;ScrollViewGestureTsx13.__pluginVersion="0.5.2";ScrollViewGestureTsx13.__initData=_worklet_16893833080014_init_data;ScrollViewGestureTsx13.__stackDetails=_e;return ScrollViewGestureTsx13;}({_worklet_16893833080014_init_data:_worklet_16893833080014_init_data,snapMode:snapMode,resetBoundary:resetBoundary}),[resetBoundary,snapMode]);var onGestureStart=useCallback(function ScrollViewGestureTsx14Factory(_ref12){var _worklet_1110467062538_init_data=_ref12._worklet_1110467062538_init_data,resolvedSize=_ref12.resolvedSize,sizeReady=_ref12.sizeReady,touching=_ref12.touching,validStart=_ref12.validStart,hasStartedMovement=_ref12.hasStartedMovement,max=_ref12.max,maxPage=_ref12.maxPage,loop=_ref12.loop,overscrollEnabled=_ref12.overscrollEnabled,getLimit=_ref12.getLimit,panOffset=_ref12.panOffset,translation=_ref12.translation;var _e=[new global.Error(),-13,-27];var ScrollViewGestureTsx14=function ScrollViewGestureTsx14(_){var _resolvedSize$value4;var currentSize=(_resolvedSize$value4=resolvedSize.value)!=null?_resolvedSize$value4:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;hasStartedMovement.value=false;max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;};ScrollViewGestureTsx14.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,hasStartedMovement:hasStartedMovement,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation};ScrollViewGestureTsx14.__workletHash=1110467062538;ScrollViewGestureTsx14.__pluginVersion="0.5.2";ScrollViewGestureTsx14.__initData=_worklet_1110467062538_init_data;ScrollViewGestureTsx14.__stackDetails=_e;return ScrollViewGestureTsx14;}({_worklet_1110467062538_init_data:_worklet_1110467062538_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,hasStartedMovement:hasStartedMovement,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation}),[max,maxPage,loop,touching,panOffset,validStart,translation,overscrollEnabled,getLimit,hasStartedMovement,sizeReady,resolvedSize]);var onGestureUpdate=useCallback(function ScrollViewGestureTsx15Factory(_ref13){var _worklet_4576743285953_init_data=_ref13._worklet_4576743285953_init_data,resolvedSize=_ref13.resolvedSize,sizeReady=_ref13.sizeReady,panOffset=_ref13.panOffset,validStart=_ref13.validStart,cancelAnimation=_ref13.cancelAnimation,translation=_ref13.translation,touching=_ref13.touching,isHorizontal=_ref13.isHorizontal,toLogicalGestureValue=_ref13.toLogicalGestureValue,directionSign=_ref13.directionSign,hasStartedMovement=_ref13.hasStartedMovement,onScrollStart=_ref13.onScrollStart,scheduleOnRN=_ref13.scheduleOnRN,computeGestureTranslation=_ref13.computeGestureTranslation,loop=_ref13.loop,overscrollEnabled=_ref13.overscrollEnabled,max=_ref13.max;var _e=[new global.Error(),-18,-27];var ScrollViewGestureTsx15=function ScrollViewGestureTsx15(e){var _resolvedSize$value5;var currentSize=(_resolvedSize$value5=resolvedSize.value)!=null?_resolvedSize$value5:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;var translationX=e.translationX,translationY=e.translationY;var physicalPanTranslation=isHorizontal.value?translationX:translationY;var panTranslation=toLogicalGestureValue(physicalPanTranslation,directionSign);if(!hasStartedMovement.value&&panTranslation!==0){hasStartedMovement.value=true;if(onScrollStart)scheduleOnRN(onScrollStart);}translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:overscrollEnabled!=null?overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});};ScrollViewGestureTsx15.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:toLogicalGestureValue,directionSign:directionSign,hasStartedMovement:hasStartedMovement,onScrollStart:onScrollStart,scheduleOnRN:scheduleOnRN,computeGestureTranslation:computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max};ScrollViewGestureTsx15.__workletHash=4576743285953;ScrollViewGestureTsx15.__pluginVersion="0.5.2";ScrollViewGestureTsx15.__initData=_worklet_4576743285953_init_data;ScrollViewGestureTsx15.__stackDetails=_e;return ScrollViewGestureTsx15;}({_worklet_4576743285953_init_data:_worklet_4576743285953_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:toLogicalGestureValue,directionSign:directionSign,hasStartedMovement:hasStartedMovement,onScrollStart:onScrollStart,scheduleOnRN:scheduleOnRN,computeGestureTranslation:computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,hasStartedMovement,onScrollStart,translation,validStart,touching,sizeReady,resolvedSize,directionSign]);var onGestureEnd=useCallback(function ScrollViewGestureTsx16Factory(_ref14){var _worklet_3738565917323_init_data=_ref14._worklet_3738565917323_init_data,resolvedSize=_ref14.resolvedSize,sizeReady=_ref14.sizeReady,panOffset=_ref14.panOffset,hasStartedMovement=_ref14.hasStartedMovement,touching=_ref14.touching,isHorizontal=_ref14.isHorizontal,toLogicalGestureValue=_ref14.toLogicalGestureValue,directionSign=_ref14.directionSign,scrollEndVelocity=_ref14.scrollEndVelocity,scrollEndTranslation=_ref14.scrollEndTranslation,endWithSpring=_ref14.endWithSpring,onScrollEnd=_ref14.onScrollEnd,loop=_ref14.loop;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx16=function ScrollViewGestureTsx16(e,_success){var _resolvedSize$value6;var currentSize=(_resolvedSize$value6=resolvedSize.value)!=null?_resolvedSize$value6:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}if(!hasStartedMovement.value){touching.value=false;panOffset.value=undefined;return;}var velocityX=e.velocityX,velocityY=e.velocityY,translationX=e.translationX,translationY=e.translationY;var physicalVelocity=isHorizontal.value?velocityX:velocityY;var scrollEndVelocityValue=toLogicalGestureValue(physicalVelocity,directionSign);scrollEndVelocity.value=scrollEndVelocityValue;var physicalPanTranslation=isHorizontal.value?translationX:translationY;var panTranslation=toLogicalGestureValue(physicalPanTranslation,directionSign);scrollEndTranslation.value=panTranslation;endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);if(!loop)touching.value=false;panOffset.value=undefined;};ScrollViewGestureTsx16.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,hasStartedMovement:hasStartedMovement,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:toLogicalGestureValue,directionSign:directionSign,scrollEndVelocity:scrollEndVelocity,scrollEndTranslation:scrollEndTranslation,endWithSpring:endWithSpring,onScrollEnd:onScrollEnd,loop:loop};ScrollViewGestureTsx16.__workletHash=3738565917323;ScrollViewGestureTsx16.__pluginVersion="0.5.2";ScrollViewGestureTsx16.__initData=_worklet_3738565917323_init_data;ScrollViewGestureTsx16.__stackDetails=_e;return ScrollViewGestureTsx16;}({_worklet_3738565917323_init_data:_worklet_3738565917323_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,hasStartedMovement:hasStartedMovement,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:toLogicalGestureValue,directionSign:directionSign,scrollEndVelocity:scrollEndVelocity,scrollEndTranslation:scrollEndTranslation,endWithSpring:endWithSpring,onScrollEnd:onScrollEnd,loop:loop}),[loop,touching,panOffset,translation,isHorizontal,scrollEndVelocity,scrollEndTranslation,endWithSpring,onScrollEnd,hasStartedMovement,sizeReady,resolvedSize,directionSign]);var gesture=usePanGestureProxy({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:scrollEnabled}});var onLayout=React.useCallback(function ScrollViewGestureTsx17Factory(_ref15){var _worklet_3590054177125_init_data=_ref15._worklet_3590054177125_init_data,isVertical=_ref15.isVertical,sizeExplicit=_ref15.sizeExplicit,resolvedSize=_ref15.resolvedSize,sizePhase=_ref15.sizePhase,updateContainerSize=_ref15.updateContainerSize;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx17=function ScrollViewGestureTsx17(e){var measuredWidth=e.nativeEvent.layout.width;var measuredHeight=e.nativeEvent.layout.height;var measuredSize=Math.round((isVertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value7;var current=(_resolvedSize$value7=resolvedSize.value)!=null?_resolvedSize$value7:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?"updating":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value="ready";}}updateContainerSize({width:measuredWidth,height:measuredHeight});};ScrollViewGestureTsx17.__closure={isVertical:isVertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize};ScrollViewGestureTsx17.__workletHash=3590054177125;ScrollViewGestureTsx17.__pluginVersion="0.5.2";ScrollViewGestureTsx17.__initData=_worklet_3590054177125_init_data;ScrollViewGestureTsx17.__stackDetails=_e;return ScrollViewGestureTsx17;}({_worklet_3590054177125_init_data:_worklet_3590054177125_init_data,isVertical:isVertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize}),[updateContainerSize,resolvedSize,sizePhase,isVertical,sizeExplicit]);return _jsx(GestureDetector,{gesture:gesture,children:_jsx(Animated.View,{testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd:onTouchEnd,onTouchCancel:onTouchEnd,onLayout:onLayout,children:props.children})});};export var ScrollViewGesture=IScrollViewGesture;
|
|
2
2
|
//# sourceMappingURL=ScrollViewGesture.js.map
|