react-native-reanimated-carousel 5.1.1 → 5.2.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 +6 -0
- 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 +1 -1
- package/lib/commonjs/components/Pagination/PaginationItem.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/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/useOffsetX.js +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/useVisibleRanges.js +1 -1
- package/lib/commonjs/hooks/useVisibleRanges.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/utils/web-only-dependencies.js +2 -0
- package/lib/commonjs/utils/web-only-dependencies.js.map +1 -0
- 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/Pagination/PaginationItem.js +1 -1
- package/lib/module/components/Pagination/PaginationItem.js.map +1 -1
- package/lib/module/components/ScrollViewGesture.js +1 -1
- package/lib/module/components/ScrollViewGesture.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/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/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/useVisibleRanges.js +1 -1
- package/lib/module/hooks/useVisibleRanges.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/utils/web-only-dependencies.js +2 -0
- package/lib/module/utils/web-only-dependencies.js.map +1 -0
- package/lib/typescript/commonjs/components/CarouselLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ItemLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ItemRenderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ScrollViewGesture.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useCarouselController.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useInitProps.d.ts +2 -1
- package/lib/typescript/commonjs/hooks/useInitProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useOffsetX.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts +1 -0
- package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts.map +1 -1
- package/lib/typescript/commonjs/layouts/normal.d.ts +2 -9
- package/lib/typescript/commonjs/layouts/normal.d.ts.map +1 -1
- package/lib/typescript/commonjs/layouts/parallax.d.ts +2 -16
- package/lib/typescript/commonjs/layouts/parallax.d.ts.map +1 -1
- package/lib/typescript/commonjs/public-types.d.ts +1 -0
- package/lib/typescript/commonjs/public-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/web-only-dependencies.d.ts +7 -0
- package/lib/typescript/commonjs/utils/web-only-dependencies.d.ts.map +1 -0
- package/lib/typescript/module/components/CarouselLayout.d.ts.map +1 -1
- package/lib/typescript/module/components/ItemLayout.d.ts.map +1 -1
- package/lib/typescript/module/components/ItemRenderer.d.ts.map +1 -1
- package/lib/typescript/module/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/lib/typescript/module/components/ScrollViewGesture.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useCarouselController.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useCommonVariables.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useInitProps.d.ts +2 -1
- package/lib/typescript/module/hooks/useInitProps.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useOffsetX.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useOnProgressChange.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useVisibleRanges.d.ts +1 -0
- package/lib/typescript/module/hooks/useVisibleRanges.d.ts.map +1 -1
- package/lib/typescript/module/layouts/normal.d.ts +2 -9
- package/lib/typescript/module/layouts/normal.d.ts.map +1 -1
- package/lib/typescript/module/layouts/parallax.d.ts +2 -16
- package/lib/typescript/module/layouts/parallax.d.ts.map +1 -1
- package/lib/typescript/module/public-types.d.ts +1 -0
- package/lib/typescript/module/public-types.d.ts.map +1 -1
- package/lib/typescript/module/utils/web-only-dependencies.d.ts +7 -0
- package/lib/typescript/module/utils/web-only-dependencies.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/components/CarouselLayout.tsx +15 -4
- package/src/components/ItemLayout.tsx +14 -4
- package/src/components/ItemRenderer.tsx +36 -4
- package/src/components/Pagination/PaginationItem.tsx +22 -20
- package/src/components/ScrollViewGesture.tsx +12 -5
- package/src/hooks/useCarouselController.tsx +3 -2
- package/src/hooks/useCommonVariables.ts +3 -2
- package/src/hooks/useInitProps.ts +13 -0
- package/src/hooks/useOffsetX.ts +11 -1
- package/src/hooks/useOnProgressChange.ts +2 -1
- package/src/hooks/useVisibleRanges.tsx +5 -2
- package/src/layouts/normal.ts +2 -1
- package/src/layouts/parallax.ts +2 -1
- package/src/public-types.ts +1 -0
- package/src/utils/web-only-dependencies.ts +10 -0
|
@@ -1,2 +1,2 @@
|
|
|
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,OAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIH,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGX,YAAY,CAACa,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,CACpB,OACF,CACA,KAAM,CAAAE,MAAM,CAAGb,WAAW,CAACY,KAAK,CAChC,KAAM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,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,WAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,kBAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,yBAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,GAAA,OAAAC,SAAA,KAAAC,mBAAA,CAAAC,kBAAA,CAEpC,KAAM,CAAAC,WAAW,EAAAF,mBAAA,CAAGlB,YAAY,CAACqB,KAAK,UAAAH,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACjB,SAAS,CAACoB,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACA,GAAIlB,SAAS,CAACmB,KAAK,GAAKC,SAAS,CAAE,CAWjC,OACF,CAEA,GAAInB,UAAU,CAACkB,KAAK,CAAE,CACpBlB,UAAU,CAACkB,KAAK,CAAG,KAAK,CACxBjB,eAAe,CAACC,WAAW,CAAC,CAC9B,CACAC,QAAQ,CAACe,KAAK,CAAG,IAAI,CACrB,KAAM,CAAEE,YAAY,CAAZA,YAAY,CAAEC,YAAA,CAAAA,YAAa,CAAC,CAAGzB,CAAC,CAExC,KAAM,CAAA0B,sBAAsB,CAAGlB,YAAY,CAACc,KAAK,CAAGE,YAAY,CAAGC,YAAY,CAC/E,KAAM,CAAAE,cAAc,CAAGlB,qBAAqB,CAACiB,sBAAsB,CAAEhB,aAAa,CAAC,CACnF,GAAI,CAACC,kBAAkB,CAACW,KAAK,EAAIK,cAAc,GAAK,CAAC,CAAE,CACrDhB,kBAAkB,CAACW,KAAK,CAAG,IAAI,CAC/B,GAAIV,aAAa,CAAEC,YAAY,CAACD,aAAa,CAAC,CAChD,CAEAN,WAAW,CAACgB,KAAK,CAAGR,yBAAyB,CAAC,CAC5CC,IAAI,CAAJA,IAAI,CACJC,iBAAiB,EAAAI,kBAAA,CAAEJ,iBAAiB,UAAAI,kBAAA,UAAAA,kBAAA,CAAI,IAAI,CAC5CQ,kBAAkB,CAAEtB,WAAW,CAACgB,KAAK,CACrCnB,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,oB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};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;
|
|
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{webOnlyDependencies}from"../utils/web-only-dependencies";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\":\"AAmEuC,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\":\"AA4EoC,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\":\"AAkFqC,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\":\"AAyGmD,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\":\"AAuGI,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_8478671251680_init_data={code:"function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{resolvedSize,translation,withDecay,scheduleOnRN,snapMode,withSpring,loop,maxPage,snapMomentum,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\"){const nearestPage=-Math.round((origin+velocity*snapMomentum)/currentSize);finalTranslation=withSpring(withProcessTranslation(-nearestPage*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\",\"snapMomentum\",\"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\",\"nearestPage\",\"limit\"],\"sources\":[\"/home/runner/work/react-native-reanim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IAAI,CAACY,GAAG,CAAC,CAACE,KAAK,CAAElC,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\":\"AAiImF,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\":\"AAoMI,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\":\"AA8MwC,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\":\"AAiN0E,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\":\"AAsN0C,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\":\"AAmPI,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\":\"AAoPI,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\":\"AA2PI,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\":\"AA6RI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,kBAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,yBAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,GAAA,OAAAC,SAAA,KAAAC,mBAAA,CAAAC,kBAAA,CAEpC,KAAM,CAAAC,WAAW,EAAAF,mBAAA,CAAGlB,YAAY,CAACqB,KAAK,UAAAH,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACjB,SAAS,CAACoB,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACA,GAAIlB,SAAS,CAACmB,KAAK,GAAKC,SAAS,CAAE,CAWjC,OACF,CAEA,GAAInB,UAAU,CAACkB,KAAK,CAAE,CACpBlB,UAAU,CAACkB,KAAK,CAAG,KAAK,CACxBjB,eAAe,CAACC,WAAW,CAAC,CAC9B,CACAC,QAAQ,CAACe,KAAK,CAAG,IAAI,CACrB,KAAM,CAAEE,YAAY,CAAZA,YAAY,CAAEC,YAAA,CAAAA,YAAa,CAAC,CAAGzB,CAAC,CAExC,KAAM,CAAA0B,sBAAsB,CAAGlB,YAAY,CAACc,KAAK,CAAGE,YAAY,CAAGC,YAAY,CAC/E,KAAM,CAAAE,cAAc,CAAGlB,qBAAqB,CAACiB,sBAAsB,CAAEhB,aAAa,CAAC,CACnF,GAAI,CAACC,kBAAkB,CAACW,KAAK,EAAIK,cAAc,GAAK,CAAC,CAAE,CACrDhB,kBAAkB,CAACW,KAAK,CAAG,IAAI,CAC/B,GAAIV,aAAa,CAAEC,YAAY,CAACD,aAAa,CAAC,CAChD,CAEAN,WAAW,CAACgB,KAAK,CAAGR,yBAAyB,CAAC,CAC5CC,IAAI,CAAJA,IAAI,CACJC,iBAAiB,EAAAI,kBAAA,CAAEJ,iBAAiB,UAAAI,kBAAA,UAAAA,kBAAA,CAAI,IAAI,CAC5CQ,kBAAkB,CAAEtB,WAAW,CAACgB,KAAK,CACrCnB,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\":\"AA0VI,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\":\"AAyZI,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,snapMomentum=_useGlobalState$props.snapMomentum,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}),webOnlyDependencies([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 sizeReadyDependencies=webOnlyDependencies([resolvedSize,sizePhase]);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}),sizeReadyDependencies);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_8478671251680_init_data=_ref6._worklet_8478671251680_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,snapMomentum=_ref6.snapMomentum,overscrollEnabled=_ref6.overscrollEnabled,getLimit=_ref6.getLimit;var _e=[new global.Error(),-12,-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"){var nearestPage=-Math.round((origin+velocity*snapMomentum)/currentSize);finalTranslation=withSpring(withProcessTranslation(-nearestPage*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,snapMomentum:snapMomentum,overscrollEnabled:overscrollEnabled,getLimit:getLimit};ScrollViewGestureTsx6.__workletHash=8478671251680;ScrollViewGestureTsx6.__pluginVersion="0.5.2";ScrollViewGestureTsx6.__initData=_worklet_8478671251680_init_data;ScrollViewGestureTsx6.__stackDetails=_e;return ScrollViewGestureTsx6;}({_worklet_8478671251680_init_data:_worklet_8478671251680_init_data,resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,scheduleOnRN:scheduleOnRN,snapMode:snapMode,withSpring:withSpring,loop:loop,maxPage:maxPage,snapMomentum:snapMomentum,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapMode,snapMomentum,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}),webOnlyDependencies([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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","GestureDetector","Animated","cancelAnimation","useAnimatedReaction","useDerivedValue","useSharedValue","withDecay","scheduleOnRN","usePanGestureProxy","useGlobalState","toLogicalGestureValue","computeGestureTranslation","dealWithAnimation","jsx","_jsx","_worklet_2472947973255_init_data","code","location","sourceMap","_worklet_1256203969722_init_data","_worklet_5347610344434_init_data","_worklet_2188036911353_init_data","_worklet_12883178410008_init_data","_worklet_3690174926539_init_data","_worklet_7969934388090_init_data","_worklet_4071854479665_init_data","_worklet_3052508857023_init_data","_worklet_4672981921527_init_data","_worklet_10736007228699_init_data","_worklet_11956863068497_init_data","_worklet_16893833080014_init_data","_worklet_1110467062538_init_data","_worklet_4576743285953_init_data","_worklet_3738565917323_init_data","_worklet_3590054177125_init_data","IScrollViewGesture","props","_useGlobalState","_useGlobalState$props","onConfigurePanGesture","orientation","snapMode","loop","animation","scrollEnabled","dataLength","overscrollEnabled","directionSign","_useGlobalState$commo","common","size","resolvedSize","sizePhase","sizeExplicit","_useGlobalState$layou","layout","containerSize","updateContainerSize","translation","testID","_props$style","style","onScrollStart","onScrollEnd","onTouchBegin","onTouchEnd","isVertical","maxPage","isHorizontal","ScrollViewGestureTsx1Factory","_ref","_e","global","Error","ScrollViewGestureTsx1","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","max","panOffset","undefined","touching","validStart","hasStartedMovement","scrollEndTranslation","scrollEndVelocity","sizeReady","ScrollViewGestureTsx2Factory","_ref2","ScrollViewGestureTsx2","_resolvedSize$value","currentSize","value","getLimit","ScrollViewGestureTsx3Factory","_ref3","ScrollViewGestureTsx3","containerMainAxisSize","height","width","withSpring","ScrollViewGestureTsx5Factory","_ref4","ScrollViewGestureTsx5","toValue","onFinished","ScrollViewGestureTsx4Factory","_ref5","ScrollViewGestureTsx4","isFinished","endWithSpring","ScrollViewGestureTsx6Factory","_ref6","ScrollViewGestureTsx6","scrollEndTranslationValue","scrollEndVelocityValue","_resolvedSize$value2","origin","velocity","finalTranslation","deceleration","ScrollViewGestureTsx7Factory","_ref7","ScrollViewGestureTsx7","nextPage","Math","round","offset","computed","ceil","floor","page","velocityDirection","sign","withProcessTranslation","finalPage","min","limit","onFinish","ScrollViewGestureTsx8Factory","_ref8","ScrollViewGestureTsx8","activeDecay","ScrollViewGestureTsx9Factory","_ref9","ScrollViewGestureTsx9","ScrollViewGestureTsx10Factory","_ref0","ScrollViewGestureTsx10","resetBoundary","ScrollViewGestureTsx11Factory","_ref1","ScrollViewGestureTsx11","_resolvedSize$value3","ScrollViewGestureTsx12Factory","_ref10","ScrollViewGestureTsx12","ScrollViewGestureTsx13Factory","_ref11","ScrollViewGestureTsx13","onGestureStart","ScrollViewGestureTsx14Factory","_ref12","ScrollViewGestureTsx14","_","_resolvedSize$value4","onGestureUpdate","ScrollViewGestureTsx15Factory","_ref13","ScrollViewGestureTsx15","e","_resolvedSize$value5","translationX","translationY","physicalPanTranslation","panTranslation","currentTranslation","onGestureEnd","ScrollViewGestureTsx16Factory","_ref14","ScrollViewGestureTsx16","_success","_resolvedSize$value6","velocityX","velocityY","physicalVelocity","gesture","options","enabled","onLayout","ScrollViewGestureTsx17Factory","_ref15","ScrollViewGestureTsx17","measuredWidth","nativeEvent","measuredHeight","measuredSize","_resolvedSize$value7","current","abs","children","View","onTouchStart","onTouchCancel","ScrollViewGesture"],"sourceRoot":"../../../src","sources":["components/ScrollViewGesture.tsx"],"mappings":"uJACA,MAAO,CAAAA,KAAK,EAAIC,WAAW,KAAQ,OAAO,CAM1C,OAASC,eAAe,KAAQ,8BAA8B,CAC9D,MAAO,CAAAC,QAAQ,EACbC,eAAe,CACfC,mBAAmB,CACnBC,eAAe,CACfC,cAAc,CACdC,SAAS,KACJ,yBAAyB,CAEhC,OAASC,YAAY,KAAQ,uBAAuB,CAEpD,OAASC,kBAAkB,KAAQ,6BAA6B,CAChE,OAASC,cAAc,KAAQ,UAAU,CACzC,OAASC,qBAAqB,KAAQ,6BAA6B,CACnE,OAASC,yBAAyB,KAAQ,sCAAsC,CAChF,OAASC,iBAAiB,KAAQ,8BAA8B,CAAC,OAAAC,GAAA,IAAAC,IAAA,6BAAAC,gCAAA,EAAAC,IAAA,yFAAAC,QAAA,4HAAAC,SAAA,kUAAAC,gCAAA,EAAAH,IAAA,mRAAAC,QAAA,4HAAAC,SAAA,ijBAAAE,gCAAA,EAAAJ,IAAA,2ZAAAC,QAAA,4HAAAC,SAAA,y1BAAAG,gCAAA,EAAAL,IAAA,iJAAAC,QAAA,4HAAAC,SAAA,4aAAAI,iCAAA,EAAAN,IAAA,65BAAAC,QAAA,4HAAAC,SAAA,krCAAAK,gCAAA,EAAAP,IAAA,skDAAAC,QAAA,4HAAAC,SAAA,+tFAAAM,gCAAA,EAAAR,IAAA,iJAAAC,QAAA,4HAAAC,SAAA,saAAAO,gCAAA,EAAAT,IAAA,oLAAAC,QAAA,4HAAAC,SAAA,yfAAAQ,gCAAA,EAAAV,IAAA,6PAAAC,QAAA,4HAAA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mB,CAAnBA,mBAAmB,GAKrB,CAACA,mBAAmB,CAAEN,YAAY,CAAEC,SAAS,CAAEc,UAAU,CAAEb,YAAY,CACzE,CAAC,CAED,MACE,CAAAvC,IAAA,CAACd,eAAe,EAAC4L,OAAO,CAAEA,OAAQ,CAAAc,QAAA,CAChC5L,IAAA,CAACb,QAAQ,CAAC0M,IAAI,EACZhJ,MAAM,CAAEA,MAAO,CACfE,KAAK,CAAEA,KAAM,CACb+I,YAAY,CAAE5I,YAAa,CAC3BC,UAAU,CAAEA,UAAW,CACvB4I,aAAa,CAAE5I,UAAW,CAC1B8H,QAAQ,CAAEA,QAAS,CAAAW,QAAA,CAElBtK,KAAK,CAACsK,QAAQ,CACF,CAAC,CACD,CAAC,CAEtB,CAAC,CAED,MAAO,IAAM,CAAAI,iBAAiB,CAAG3K,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useCallback","GestureDetector","Animated","cancelAnimation","useAnimatedReaction","useDerivedValue","useSharedValue","withDecay","scheduleOnRN","usePanGestureProxy","useGlobalState","toLogicalGestureValue","computeGestureTranslation","dealWithAnimation","webOnlyDependencies","jsx","_jsx","_worklet_2472947973255_init_data","code","location","sourceMap","_worklet_1256203969722_init_data","_worklet_5347610344434_init_data","_worklet_2188036911353_init_data","_worklet_12883178410008_init_data","_worklet_8478671251680_init_data","_worklet_7969934388090_init_data","_worklet_4071854479665_init_data","_worklet_3052508857023_init_data","_worklet_4672981921527_init_data","_worklet_10736007228699_init_data","_worklet_11956863068497_init_data","_worklet_16893833080014_init_data","_worklet_1110467062538_init_data","_worklet_4576743285953_init_data","_worklet_3738565917323_init_data","_worklet_3590054177125_init_data","IScrollViewGesture","props","_useGlobalState","_useGlobalState$props","onConfigurePanGesture","orientation","snapMode","snapMomentum","loop","animation","scrollEnabled","dataLength","overscrollEnabled","directionSign","_useGlobalState$commo","common","size","resolvedSize","sizePhase","sizeExplicit","_useGlobalState$layou","layout","containerSize","updateContainerSize","translation","testID","_props$style","style","onScrollStart","onScrollEnd","onTouchBegin","onTouchEnd","isVertical","maxPage","isHorizontal","ScrollViewGestureTsx1Factory","_ref","_e","global","Error","ScrollViewGestureTsx1","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","max","panOffset","undefined","touching","validStart","hasStartedMovement","scrollEndTranslation","scrollEndVelocity","sizeReadyDependencies","sizeReady","ScrollViewGestureTsx2Factory","_ref2","ScrollViewGestureTsx2","_resolvedSize$value","currentSize","value","getLimit","ScrollViewGestureTsx3Factory","_ref3","ScrollViewGestureTsx3","containerMainAxisSize","height","width","withSpring","ScrollViewGestureTsx5Factory","_ref4","ScrollViewGestureTsx5","toValue","onFinished","ScrollViewGestureTsx4Factory","_ref5","ScrollViewGestureTsx4","isFinished","endWithSpring","ScrollViewGestureTsx6Factory","_ref6","ScrollViewGestureTsx6","scrollEndTranslationValue","scrollEndVelocityValue","_resolvedSize$value2","origin","velocity","finalTranslation","deceleration","ScrollViewGestureTsx7Factory","_ref7","ScrollViewGestureTsx7","nextPage","Math","round","offset","computed","ceil","floor","page","velocityDirection","sign","withProcessTranslation","finalPage","min","nearestPage","limit","onFinish","ScrollViewGestureTsx8Factory","_ref8","ScrollViewGestureTsx8","activeDecay","ScrollViewGestureTsx9Factory","_ref9","ScrollViewGestureTsx9","ScrollViewGestureTsx10Factory","_ref0","ScrollViewGestureTsx10","resetBoundary","ScrollViewGestureTsx11Factory","_ref1","ScrollViewGestureTsx11","_resolvedSize$value3","ScrollViewGestureTsx12Factory","_ref10","ScrollViewGestureTsx12","ScrollViewGestureTsx13Factory","_ref11","ScrollViewGestureTsx13","onGestureStart","ScrollViewGestureTsx14Factory","_ref12","ScrollViewGestureTsx14","_","_resolvedSize$value4","onGestureUpdate","ScrollViewGestureTsx15Factory","_ref13","ScrollViewGestureTsx15","e","_resolvedSize$value5","translationX","translationY","physicalPanTranslation","panTranslation","currentTranslation","onGestureEnd","ScrollViewGestureTsx16Factory","_ref14","ScrollViewGestureTsx16","_success","_resolvedSize$value6","velocityX","velocityY","physicalVelocity","gesture","options","enabled","onLayout","ScrollViewGestureTsx17Factory","_ref15","ScrollViewGestureTsx17","measuredWidth","nativeEvent","measuredHeight","measuredSize","_resolvedSize$value7","current","abs","children","View","onTouchStart","onTouchCancel","ScrollViewGesture"],"sourceRoot":"../../../src","sources":["components/ScrollViewGesture.tsx"],"mappings":"uJACA,MAAO,CAAAA,KAAK,EAAIC,WAAW,KAAQ,OAAO,CAM1C,OAASC,eAAe,KAAQ,8BAA8B,CAC9D,MAAO,CAAAC,QAAQ,EACbC,eAAe,CACfC,mBAAmB,CACnBC,eAAe,CACfC,cAAc,CACdC,SAAS,KACJ,yBAAyB,CAEhC,OAASC,YAAY,KAAQ,uBAAuB,CAEpD,OAASC,kBAAkB,KAAQ,6BAA6B,CAChE,OAASC,cAAc,KAAQ,UAAU,CACzC,OAASC,qBAAqB,KAAQ,6BAA6B,CACnE,OAASC,yBAAyB,KAAQ,sCAAsC,CAChF,OAASC,iBAAiB,KAAQ,8BAA8B,CAChE,OAASC,mBAAmB,KAAQ,gCAAgC,CAAC,OAAAC,GAAA,IAAAC,IAAA,6BAAAC,gCAAA,EAAAC,IAAA,yFAAAC,QAAA,4HAAAC,SAAA,kUAAAC,gCAAA,EAAAH,IAAA,mRAAAC,QAAA,4HAAAC,SAAA,ijBAAAE,gCAAA,EAAAJ,IAAA,2ZAAAC,QAAA,4HAAAC,SAAA,y1BAAAG,gCAAA,EAAAL,IAAA,iJAAAC,QAAA,4HAAAC,SAAA,4aAAAI,iCAAA,EAAAN,IAAA,65BAAAC,QAAA,4HAAAC,SAAA,krCAAAK,gCAAA,EAAAP,IAAA,gqDAAAC,QAAA,4HAAAC,SAAA,q3FAAAM,gCAAA,EAAAR,IAAA,iJAAAC,QAAA,4HAAAC,SAAA,saAAAO,gCAAA,EAAAT,IAAA,oLAAAC,QAAA,4HAAAC,SAAA,yfAAAQ,gCAAA,EAAAV,IAAA,6PAAAC,QAAA,4HAAAC,SAAA,unBAAAS,gC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AE1BC,SAAS,CAATA,SAAS,CAMbK,mBAAmB,CAAnBA,mBAAmB,EAAA2I,sBAAA,CAAAxH,aAAA,eAAAwH,sBAAA,CAAAvH,eAAA,SAAAuH,sBAAA,CAAAtH,UAAA,CAAA7C,gCAAA,CAAAmK,sBAAA,CAAArH,cAAA,CAAAR,EAAA,QAAA6H,sBAAA,EAhBrB,EAAAnK,gCAAA,CAAAA,gCAAA,CAKmCiC,UAAU,CAAVA,UAAU,CAEtCb,YAAY,CAAZA,YAAY,CACCF,YAAY,CAAZA,YAAY,CAE1BC,SAAS,CAATA,SAAS,CAMbK,mBAAmB,CAAnBA,mBAAmB,GAKrB,CAACA,mBAAmB,CAAEN,YAAY,CAAEC,SAAS,CAAEc,UAAU,CAAEb,YAAY,CACzE,CAAC,CAED,MACE,CAAAxC,IAAA,CAACf,eAAe,EAACgM,OAAO,CAAEA,OAAQ,CAAAc,QAAA,CAChC/L,IAAA,CAACd,QAAQ,CAAC8M,IAAI,EACZlJ,MAAM,CAAEA,MAAO,CACfE,KAAK,CAAEA,KAAM,CACbiJ,YAAY,CAAE9I,YAAa,CAC3BC,UAAU,CAAEA,UAAW,CACvB8I,aAAa,CAAE9I,UAAW,CAC1BgI,QAAQ,CAAEA,QAAS,CAAAW,QAAA,CAElBzK,KAAK,CAACyK,QAAQ,CACF,CAAC,CACD,CAAC,CAEtB,CAAC,CAED,MAAO,IAAM,CAAAI,iBAAiB,CAAG9K,kBAAkB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React,{useRef}from"react";import{useAnimatedReaction,useSharedValue}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{useGlobalState}from"../store";import{getLogicalProgress,getNearestLogicalPage,getSettledRawIndex,getShortestLoopTargetPage,positiveModulo}from"../utils/carousel-math";import{dealWithAnimation}from"../utils/deal-with-animation";var _worklet_14869541529224_init_data={code:"function useCarouselControllerTsx1(){const{size,dataLength,rawDataLength,getNearestLogicalPage,handlerOffset,positiveModulo}=this.__closure;if(size<=0||dataLength<=0||rawDataLength<=0){return{physicalIndex:0,rawIndex:0};}const page=getNearestLogicalPage(handlerOffset.value,size);return{physicalIndex:positiveModulo(page,dataLength),rawIndex:positiveModulo(page,rawDataLength)};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx1\",\"size\",\"dataLength\",\"rawDataLength\",\"getNearestLogicalPage\",\"handlerOffset\",\"positiveModulo\",\"__closure\",\"physicalIndex\",\"rawIndex\",\"page\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AA6FI,SAAAA,yBAAMA,CAAA,QAAAC,IAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,cAAA,OAAAC,SAAA,CACJ,GAAIN,IAAI,EAAI,CAAC,EAAIC,UAAU,EAAI,CAAC,EAAIC,aAAa,EAAI,CAAC,CAAE,CACtD,MAAO,CAAEK,aAAa,CAAE,CAAC,CAAEC,QAAQ,CAAE,CAAE,CAAC,CAC1C,CAEA,KAAM,CAAAC,IAAI,CAAGN,qBAAqB,CAACC,aAAa,CAACM,KAAK,CAAEV,IAAI,CAAC,CAC7D,MAAO,CACLO,aAAa,CAAEF,cAAc,CAACI,IAAI,CAAER,UAAU,CAAC,CAC/CO,QAAQ,CAAEH,cAAc,CAACI,IAAI,CAAEP,aAAa,CAC9C,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_4281016613010_init_data={code:"function useCarouselControllerTsx2({physicalIndex:physicalIndex,rawIndex:rawIndex}){const{index,scheduleOnRN,setLiveRawIndex}=this.__closure;index.value=physicalIndex;scheduleOnRN(setLiveRawIndex,rawIndex);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx2\",\"physicalIndex\",\"rawIndex\",\"index\",\"scheduleOnRN\",\"setLiveRawIndex\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAwGI,QAAC,CAAAA,0BAAA,CAAEC,aAAa,CAAbA,aAAa,CAAEC,QAAA,CAAAA,QAAS,CAAC,CAAK,OAAAC,KAAA,CAAAC,YAAA,CAAAC,eAAA,OAAAC,SAAA,CAC/BH,KAAK,CAACI,KAAK,CAAGN,aAAa,CAC3BG,YAAY,CAACC,eAAe,CAAEH,QAAQ,CAAC,CACzC\",\"ignoreList\":[]}"};var _worklet_15360756373159_init_data={code:"function useCarouselControllerTsx3(finished){const{scheduleOnRN,emitSettle,targetIndex,onFinished,cancelMovement}=this.__closure;if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx3\",\"finished\",\"scheduleOnRN\",\"emitSettle\",\"targetIndex\",\"onFinished\",\"cancelMovement\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAoKyD,SAAAA,yBAAaA,CAAAC,QAAA,QAAAC,YAAA,CAAAC,UAAA,CAAAC,WAAA,CAAAC,UAAA,CAAAC,cAAA,OAAAC,SAAA,CAE9D,GAAIN,QAAQ,CAAE,CACZC,YAAY,CAACC,UAAU,CAAEC,WAAW,CAAC,CACrC,GAAIC,UAAU,CAAEH,YAAY,CAACG,UAAU,CAAC,CAC1C,CAAC,IAAM,CACLH,YAAY,CAACI,cAAc,CAAC,CAC9B,CACF\",\"ignoreList\":[]}"};var _worklet_7811707638022_init_data={code:"function useCarouselControllerTsx4(targetOffset,targetIndex,onFinished){const{dealWithAnimation,animation,_worklet_15360756373159_init_data,scheduleOnRN,emitSettle,cancelMovement}=this.__closure;return dealWithAnimation(animation)(targetOffset,function useCarouselControllerTsx3Factory({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}){const _e=[new global.Error(),-6,-27];const useCarouselControllerTsx3=function(finished){if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}};useCarouselControllerTsx3.__closure={scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement};useCarouselControllerTsx3.__workletHash=15360756373159;useCarouselControllerTsx3.__pluginVersion=\"0.5.2\";useCarouselControllerTsx3.__initData=_worklet_15360756373159_init_data;useCarouselControllerTsx3.__stackDetails=_e;return useCarouselControllerTsx3;}({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx4\",\"targetOffset\",\"targetIndex\",\"onFinished\",\"dealWithAnimation\",\"animation\",\"_worklet_15360756373159_init_data\",\"scheduleOnRN\",\"emitSettle\",\"cancelMovement\",\"__closure\",\"useCarouselControllerTsx3Factory\",\"_e\",\"global\",\"Error\",\"useCarouselControllerTsx3\",\"finished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAkKI,QAAC,CAAAA,yBAAsBA,CAAA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DataLength,emitStart,index,dataLength,size,handlerOffset,animateTo,emitSettle}=this.__closure;const targetRawIndex=positiveModulo(targetPage,rawDataLength);emitStart();index.value=positiveModulo(targetPage,Math.max(dataLength,1));const targetOffset=-targetPage*size;if(animated){handlerOffset.value=animateTo(targetOffset,targetRawIndex,onFinished);}else{handlerOffset.value=targetOffset;emitSettle(targetRawIndex);onFinished===null||onFinished===void 0||onFinished();}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx5\",\"targetPage\",\"animated\",\"onFinished\",\"positiveModulo\",\"rawDataLength\",\"emitStart\",\"index\",\"dataLength\",\"size\",\"handlerOffset\",\"animateTo\",\"emitSettle\",\"__closure\",\"targetRawIndex\",\"value\",\"Math\",\"max\",\"targetOffset\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAkLI,QAAC,CAAAA,yBAAuCA,CAAAC,UAA4B,CAAAC,QAAA,CAAAC,UAAA,QAAAC,cAAA,CAAAC,aAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,aAAA,CAAAC,SAAA,CAAAC,UAAA,OAAAC,SAAA,CAElE,KAAM,CAAAC,cAAc,CAAGV,cAAc,CAACH,UAAU,CAAEI,aAAa,CAAC,CAChEC,SAAS,CAAC,CAAC,CACXC,KAAK,CAACQ,KAAK,CAAGX,cAAc,CAACH,UAAU,CAAEe,IAAI,CAACC,GAAG,CAACT,UAAU,CAAE,CAAC,CAAC,CAAC,CAEjE,KAAM,CAAAU,YAAY,CAAG,CAACjB,UAAU,CAAGQ,IAAI,CACvC,GAAIP,QAAQ,CAAE,CACZQ,aAAa,CAACK,KAAK,CAAGJ,SAAS,CAACO,YAAY,CAAEJ,cAAc,CAAEX,UAAU,CAAC,CAC3E,CAAC,IAAM,CACLO,aAAa,CAACK,KAAK,CAAGG,YAAY,CAClCN,UAAU,CAACE,cAAc,CAAC,CAC1BX,UAAU,SAAVA,UAAU,WAAVA,UAAU,CAAG,CAAC,CAChB,CACF\",\"ignoreList\":[]}"};var _worklet_11808905894_init_data={code:"function useCarouselControllerTsx6(stepOptions={}){const{canMove,isReady,validateCount,currentVisualPage,loop,rawDataLength,moveToPage}=this.__closure;const{animated=true,count=1,onFinished:onFinished}=stepOptions;if(!canMove||!isReady()||!validateCount(\"next\",count))return;const currentPage=currentVisualPage();const targetPage=loop?currentPage+count:Math.min(rawDataLength-1,currentPage+count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx6\",\"stepOptions\",\"canMove\",\"isReady\",\"validateCount\",\"currentVisualPage\",\"loop\",\"rawDataLength\",\"moveToPage\",\"__closure\",\"animated\",\"count\",\"onFinished\",\"currentPage\",\"targetPage\",\"Math\",\"min\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAmNI,QAAC,CAAAA,yBAAkDA,CAAAC,WAAA,WAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,iBAAA,CAAAC,IAAA,CAAAC,aAAA,CAAAC,UAAA,OAAAC,SAAA,CAEjD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAG,CAAC,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGX,WAAW,CAC9D,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,EAAI,CAACC,aAAa,CAAC,MAAM,CAAEO,KAAK,CAAC,CAAE,OAE7D,KAAM,CAAAE,WAAW,CAAGR,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAS,UAAU,CAAGR,IAAI,CACnBO,WAAW,CAAGF,KAAK,CACnBI,IAAI,CAACC,GAAG,CAACT,aAAa,CAAG,CAAC,CAAEM,WAAW,CAAGF,KAAK,CAAC,CACpD,GAAIG,UAAU,GAAKD,WAAW,CAAE,OAEhCL,UAAU,CAACM,UAAU,CAAEJ,QAAQ,CAAEE,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_6253845107215_init_data={code:"function useCarouselControllerTsx7(stepOptions={}){const{canMove,isReady,validateCount,currentVisualPage,loop,moveToPage}=this.__closure;const{animated=true,count=1,onFinished:onFinished}=stepOptions;if(!canMove||!isReady()||!validateCount(\"prev\",count))return;const currentPage=currentVisualPage();const targetPage=loop?currentPage-count:Math.max(0,currentPage-count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx7\",\"stepOptions\",\"canMove\",\"isReady\",\"validateCount\",\"currentVisualPage\",\"loop\",\"moveToPage\",\"__closure\",\"animated\",\"count\",\"onFinished\",\"currentPage\",\"targetPage\",\"Math\",\"max\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAoOI,QAAC,CAAAA,yBAAkDA,CAAAC,WAAA,WAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,iBAAA,CAAAC,IAAA,CAAAC,UAAA,OAAAC,SAAA,CAEjD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAG,CAAC,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGV,WAAW,CAC9D,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,EAAI,CAACC,aAAa,CAAC,MAAM,CAAEM,KAAK,CAAC,CAAE,OAE7D,KAAM,CAAAE,WAAW,CAAGP,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAQ,UAAU,CAAGP,IAAI,CAAGM,WAAW,CAAGF,KAAK,CAAGI,IAAI,CAACC,GAAG,CAAC,CAAC,CAAEH,WAAW,CAAGF,KAAK,CAAC,CAChF,GAAIG,UAAU,GAAKD,WAAW,CAAE,OAEhCL,UAAU,CAACM,UAAU,CAAEJ,QAAQ,CAAEE,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_13134117170072_init_data={code:"function useCarouselControllerTsx8(scrollOptions){const{canMove,isReady,rawDataLength,warnOnce,currentVisualPage,positiveModulo,loop,getShortestLoopTargetPage,moveToPage}=this.__closure;const{animated=true,index:targetIndex,onFinished:onFinished}=scrollOptions;if(!canMove||!isReady())return;if(!Number.isInteger(targetIndex)||targetIndex<0||targetIndex>=rawDataLength){warnOnce(\"scrollTo:index\",\"scrollTo index must be an integer between 0 and \"+(rawDataLength-1)+\"; received \"+String(targetIndex)+\".\");return;}const currentPage=currentVisualPage();const currentRawIndex=positiveModulo(currentPage,rawDataLength);if(currentRawIndex===targetIndex)return;const targetPage=loop?getShortestLoopTargetPage({currentPage:currentPage,targetIndex:targetIndex,count:rawDataLength}):targetIndex;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx8\",\"scrollOptions\",\"canMove\",\"isReady\",\"rawDataLength\",\"warnOnce\",\"currentVisualPage\",\"positiveModulo\",\"loop\",\"getShortestLoopTargetPage\",\"moveToPage\",\"__closure\",\"animated\",\"index\",\"targetIndex\",\"onFinished\",\"Number\",\"isInteger\",\"String\",\"currentPage\",\"currentRawIndex\",\"targetPage\",\"count\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAmPI,QAAC,CAAAA,yBAAmDA,CAAAC,aAAA,QAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,QAAA,CAAAC,iBAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,yBAAA,CAAAC,UAAA,OAAAC,SAAA,CAElD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAEC,WAAW,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGd,aAAa,CACzE,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,CAAE,OAE5B,GAAI,CAACa,MAAM,CAACC,SAAS,CAACH,WAAW,CAAC,EAAIA,WAAW,CAAG,CAAC,EAAIA,WAAW,EAAIV,aAAa,CAAE,CACrFC,QAAQ,CACN,gBAAgB,qDACmCD,aAAa,CAAG,CAAC,gBAAcc,MAAM,CAACJ,WAAW,CAAC,IACvG,CAAC,CACD,OACF,CAEA,KAAM,CAAAK,WAAW,CAAGb,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAc,eAAe,CAAGb,cAAc,CAACY,WAAW,CAAEf,aAAa,CAAC,CAClE,GAAIgB,eAAe,GAAKN,WAAW,CAAE,OAErC,KAAM,CAAAO,UAAU,CAAGb,IAAI,CACnBC,yBAAyB,CAAC,CACxBU,WAAW,CAAXA,WAAW,CACXL,WAAW,CAAXA,WAAW,CACXQ,KAAK,CAAElB,aACT,CAAC,CAAC,CACFU,WAAW,CACfJ,UAAU,CAACW,UAAU,CAAET,QAAQ,CAAEG,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};export function useCarouselController(options){var animation=options.animation,dataLength=options.dataLength,_options$defaultIndex=options.defaultIndex,defaultIndex=_options$defaultIndex===void 0?0:_options$defaultIndex,handlerOffset=options.handlerOffset,loop=options.loop,rawDataLength=options.rawDataLength,ref=options.ref,size=options.size;var _useGlobalState=useGlobalState(),_useGlobalState$commo=_useGlobalState.common,cancelCommonMovement=_useGlobalState$commo.cancelMovement,dataRevision=_useGlobalState$commo.dataRevision,isMoving=_useGlobalState$commo.isMoving,resolvedSize=_useGlobalState$commo.resolvedSize,settleMovement=_useGlobalState$commo.settleMovement,sizePhase=_useGlobalState$commo.sizePhase,startCommonMovement=_useGlobalState$commo.startMovement;var index=useSharedValue(defaultIndex);var liveRawIndex=useRef(rawDataLength>0?defaultIndex:0);var settledIndex=useRef(rawDataLength>0?defaultIndex:0);var warnedCommands=useRef(new Set());var canMove=rawDataLength>1;var warnOnce=React.useCallback(function(key,message){if(!__DEV__||warnedCommands.current.has(key))return;warnedCommands.current.add(key);console.warn(`[react-native-reanimated-carousel] ${message}`);},[]);var currentVisualPage=React.useCallback(function(){if(size<=0||rawDataLength<=0)return 0;var page=getNearestLogicalPage(handlerOffset.value,size);return loop?page:Math.max(0,Math.min(rawDataLength-1,page));},[handlerOffset,loop,rawDataLength,size]);function setLiveRawIndex(nextIndex){liveRawIndex.current=nextIndex;}useAnimatedReaction(function useCarouselControllerTsx1Factory(_ref){var _worklet_14869541529224_init_data=_ref._worklet_14869541529224_init_data,size=_ref.size,dataLength=_ref.dataLength,rawDataLength=_ref.rawDataLength,getNearestLogicalPage=_ref.getNearestLogicalPage,handlerOffset=_ref.handlerOffset,positiveModulo=_ref.positiveModulo;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx1=function useCarouselControllerTsx1(){if(size<=0||dataLength<=0||rawDataLength<=0){return{physicalIndex:0,rawIndex:0};}var page=getNearestLogicalPage(handlerOffset.value,size);return{physicalIndex:positiveModulo(page,dataLength),rawIndex:positiveModulo(page,rawDataLength)};};useCarouselControllerTsx1.__closure={size:size,dataLength:dataLength,rawDataLength:rawDataLength,getNearestLogicalPage:getNearestLogicalPage,handlerOffset:handlerOffset,positiveModulo:positiveModulo};useCarouselControllerTsx1.__workletHash=14869541529224;useCarouselControllerTsx1.__pluginVersion="0.5.2";useCarouselControllerTsx1.__initData=_worklet_14869541529224_init_data;useCarouselControllerTsx1.__stackDetails=_e;return useCarouselControllerTsx1;}({_worklet_14869541529224_init_data:_worklet_14869541529224_init_data,size:size,dataLength:dataLength,rawDataLength:rawDataLength,getNearestLogicalPage:getNearestLogicalPage,handlerOffset:handlerOffset,positiveModulo:positiveModulo}),function useCarouselControllerTsx2Factory(_ref2){var _worklet_4281016613010_init_data=_ref2._worklet_4281016613010_init_data,index=_ref2.index,scheduleOnRN=_ref2.scheduleOnRN,setLiveRawIndex=_ref2.setLiveRawIndex;var _e=[new global.Error(),-4,-27];var useCarouselControllerTsx2=function useCarouselControllerTsx2(_ref3){var physicalIndex=_ref3.physicalIndex,rawIndex=_ref3.rawIndex;index.value=physicalIndex;scheduleOnRN(setLiveRawIndex,rawIndex);};useCarouselControllerTsx2.__closure={index:index,scheduleOnRN:scheduleOnRN,setLiveRawIndex:setLiveRawIndex};useCarouselControllerTsx2.__workletHash=4281016613010;useCarouselControllerTsx2.__pluginVersion="0.5.2";useCarouselControllerTsx2.__initData=_worklet_4281016613010_init_data;useCarouselControllerTsx2.__stackDetails=_e;return useCarouselControllerTsx2;}({_worklet_4281016613010_init_data:_worklet_4281016613010_init_data,index:index,scheduleOnRN:scheduleOnRN,setLiveRawIndex:setLiveRawIndex}),[dataLength,handlerOffset,index,rawDataLength,size]);var settle=React.useCallback(function(targetIndex){settleMovement();var nextSettledIndex=typeof targetIndex==="number"&&rawDataLength>0?positiveModulo(Math.round(targetIndex),rawDataLength):getSettledRawIndex(loop?getLogicalProgress(handlerOffset.value,size):Math.max(0,Math.min(rawDataLength-1,getLogicalProgress(handlerOffset.value,size))),rawDataLength);settledIndex.current=nextSettledIndex;return nextSettledIndex;},[handlerOffset,loop,rawDataLength,settleMovement,size]);var getCurrentIndex=React.useCallback(function(){return settledIndex.current;},[]);var getSharedIndex=React.useCallback(function(){return liveRawIndex.current;},[]);var startMovement=React.useCallback(function(){return startCommonMovement();},[startCommonMovement]);var cancelMovement=React.useCallback(function(){return cancelCommonMovement();},[cancelCommonMovement]);React.useEffect(function(){if(!isMoving.value)settle();},[dataRevision,isMoving,rawDataLength,settle]);var isReady=React.useCallback(function(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:size;return sizePhase.value==="ready"&¤tSize>0;},[resolvedSize,size,sizePhase]);var emitStart=React.useCallback(function(){startMovement();options.onScrollStart==null||options.onScrollStart();},[options,startMovement]);var emitSettle=React.useCallback(function(targetIndex){var nextSettledIndex=settle(targetIndex);options.onMovementEnd==null||options.onMovementEnd(nextSettledIndex);},[options,settle]);var animateTo=React.useCallback(function useCarouselControllerTsx4Factory(_ref4){var _worklet_7811707638022_init_data=_ref4._worklet_7811707638022_init_data,dealWithAnimation=_ref4.dealWithAnimation,animation=_ref4.animation,_worklet_15360756373159_init_data=_ref4._worklet_15360756373159_init_data,scheduleOnRN=_ref4.scheduleOnRN,emitSettle=_ref4.emitSettle,cancelMovement=_ref4.cancelMovement;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx4=function useCarouselControllerTsx4(targetOffset,targetIndex,onFinished){return dealWithAnimation(animation)(targetOffset,function useCarouselControllerTsx3Factory(_ref5){var _worklet_15360756373159_init_data=_ref5._worklet_15360756373159_init_data,scheduleOnRN=_ref5.scheduleOnRN,emitSettle=_ref5.emitSettle,targetIndex=_ref5.targetIndex,onFinished=_ref5.onFinished,cancelMovement=_ref5.cancelMovement;var _e=[new global.Error(),-6,-27];var useCarouselControllerTsx3=function useCarouselControllerTsx3(finished){if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}};useCarouselControllerTsx3.__closure={scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement};useCarouselControllerTsx3.__workletHash=15360756373159;useCarouselControllerTsx3.__pluginVersion="0.5.2";useCarouselControllerTsx3.__initData=_worklet_15360756373159_init_data;useCarouselControllerTsx3.__stackDetails=_e;return useCarouselControllerTsx3;}({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}));};useCarouselControllerTsx4.__closure={dealWithAnimation:dealWithAnimation,animation:animation,_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,cancelMovement:cancelMovement};useCarouselControllerTsx4.__workletHash=7811707638022;useCarouselControllerTsx4.__pluginVersion="0.5.2";useCarouselControllerTsx4.__initData=_worklet_7811707638022_init_data;useCarouselControllerTsx4.__stackDetails=_e;return useCarouselControllerTsx4;}({_worklet_7811707638022_init_data:_worklet_7811707638022_init_data,dealWithAnimation:dealWithAnimation,animation:animation,_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,cancelMovement:cancelMovement}),[animation,cancelMovement,emitSettle]);var moveToPage=React.useCallback(function useCarouselControllerTsx5Factory(_ref6){var _worklet_2315234374038_init_data=_ref6._worklet_2315234374038_init_data,positiveModulo=_ref6.positiveModulo,rawDataLength=_ref6.rawDataLength,emitStart=_ref6.emitStart,index=_ref6.index,dataLength=_ref6.dataLength,size=_ref6.size,handlerOffset=_ref6.handlerOffset,animateTo=_ref6.animateTo,emitSettle=_ref6.emitSettle;var _e=[new global.Error(),-10,-27];var useCarouselControllerTsx5=function useCarouselControllerTsx5(targetPage,animated,onFinished){var targetRawIndex=positiveModulo(targetPage,rawDataLength);emitStart();index.value=positiveModulo(targetPage,Math.max(dataLength,1));var targetOffset=-targetPage*size;if(animated){handlerOffset.value=animateTo(targetOffset,targetRawIndex,onFinished);}else{handlerOffset.value=targetOffset;emitSettle(targetRawIndex);onFinished==null||onFinished();}};useCarouselControllerTsx5.__closure={positiveModulo:positiveModulo,rawDataLength:rawDataLength,emitStart:emitStart,index:index,dataLength:dataLength,size:size,handlerOffset:handlerOffset,animateTo:animateTo,emitSettle:emitSettle};useCarouselControllerTsx5.__workletHash=2315234374038;useCarouselControllerTsx5.__pluginVersion="0.5.2";useCarouselControllerTsx5.__initData=_worklet_2315234374038_init_data;useCarouselControllerTsx5.__stackDetails=_e;return useCarouselControllerTsx5;}({_worklet_2315234374038_init_data:_worklet_2315234374038_init_data,positiveModulo:positiveModulo,rawDataLength:rawDataLength,emitStart:emitStart,index:index,dataLength:dataLength,size:size,handlerOffset:handlerOffset,animateTo:animateTo,emitSettle:emitSettle}),[animateTo,dataLength,emitSettle,emitStart,handlerOffset,index,rawDataLength,size]);var validateCount=React.useCallback(function(command,count){if(count===0)return false;if(Number.isInteger(count)&&count>0)return true;warnOnce(`${command}:count`,`${command} count must be a positive integer; received ${String(count)}.`);return false;},[warnOnce]);var next=React.useCallback(function useCarouselControllerTsx6Factory(_ref7){var _worklet_11808905894_init_data=_ref7._worklet_11808905894_init_data,canMove=_ref7.canMove,isReady=_ref7.isReady,validateCount=_ref7.validateCount,currentVisualPage=_ref7.currentVisualPage,loop=_ref7.loop,rawDataLength=_ref7.rawDataLength,moveToPage=_ref7.moveToPage;var _e=[new global.Error(),-8,-27];var useCarouselControllerTsx6=function useCarouselControllerTsx6(){var stepOptions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _stepOptions$animated=stepOptions.animated,animated=_stepOptions$animated===void 0?true:_stepOptions$animated,_stepOptions$count=stepOptions.count,count=_stepOptions$count===void 0?1:_stepOptions$count,onFinished=stepOptions.onFinished;if(!canMove||!isReady()||!validateCount("next",count))return;var currentPage=currentVisualPage();var targetPage=loop?currentPage+count:Math.min(rawDataLength-1,currentPage+count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx6.__closure={canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,rawDataLength:rawDataLength,moveToPage:moveToPage};useCarouselControllerTsx6.__workletHash=11808905894;useCarouselControllerTsx6.__pluginVersion="0.5.2";useCarouselControllerTsx6.__initData=_worklet_11808905894_init_data;useCarouselControllerTsx6.__stackDetails=_e;return useCarouselControllerTsx6;}({_worklet_11808905894_init_data:_worklet_11808905894_init_data,canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,rawDataLength:rawDataLength,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,rawDataLength,validateCount]);var prev=React.useCallback(function useCarouselControllerTsx7Factory(_ref8){var _worklet_6253845107215_init_data=_ref8._worklet_6253845107215_init_data,canMove=_ref8.canMove,isReady=_ref8.isReady,validateCount=_ref8.validateCount,currentVisualPage=_ref8.currentVisualPage,loop=_ref8.loop,moveToPage=_ref8.moveToPage;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx7=function useCarouselControllerTsx7(){var stepOptions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _stepOptions$animated2=stepOptions.animated,animated=_stepOptions$animated2===void 0?true:_stepOptions$animated2,_stepOptions$count2=stepOptions.count,count=_stepOptions$count2===void 0?1:_stepOptions$count2,onFinished=stepOptions.onFinished;if(!canMove||!isReady()||!validateCount("prev",count))return;var currentPage=currentVisualPage();var targetPage=loop?currentPage-count:Math.max(0,currentPage-count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx7.__closure={canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,moveToPage:moveToPage};useCarouselControllerTsx7.__workletHash=6253845107215;useCarouselControllerTsx7.__pluginVersion="0.5.2";useCarouselControllerTsx7.__initData=_worklet_6253845107215_init_data;useCarouselControllerTsx7.__stackDetails=_e;return useCarouselControllerTsx7;}({_worklet_6253845107215_init_data:_worklet_6253845107215_init_data,canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,validateCount]);var scrollTo=React.useCallback(function useCarouselControllerTsx8Factory(_ref9){var _worklet_13134117170072_init_data=_ref9._worklet_13134117170072_init_data,canMove=_ref9.canMove,isReady=_ref9.isReady,rawDataLength=_ref9.rawDataLength,warnOnce=_ref9.warnOnce,currentVisualPage=_ref9.currentVisualPage,positiveModulo=_ref9.positiveModulo,loop=_ref9.loop,getShortestLoopTargetPage=_ref9.getShortestLoopTargetPage,moveToPage=_ref9.moveToPage;var _e=[new global.Error(),-10,-27];var useCarouselControllerTsx8=function useCarouselControllerTsx8(scrollOptions){var _scrollOptions$animat=scrollOptions.animated,animated=_scrollOptions$animat===void 0?true:_scrollOptions$animat,targetIndex=scrollOptions.index,onFinished=scrollOptions.onFinished;if(!canMove||!isReady())return;if(!Number.isInteger(targetIndex)||targetIndex<0||targetIndex>=rawDataLength){warnOnce("scrollTo:index",`scrollTo index must be an integer between 0 and ${rawDataLength-1}; received ${String(targetIndex)}.`);return;}var currentPage=currentVisualPage();var currentRawIndex=positiveModulo(currentPage,rawDataLength);if(currentRawIndex===targetIndex)return;var targetPage=loop?getShortestLoopTargetPage({currentPage:currentPage,targetIndex:targetIndex,count:rawDataLength}):targetIndex;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx8.__closure={canMove:canMove,isReady:isReady,rawDataLength:rawDataLength,warnOnce:warnOnce,currentVisualPage:currentVisualPage,positiveModulo:positiveModulo,loop:loop,getShortestLoopTargetPage:getShortestLoopTargetPage,moveToPage:moveToPage};useCarouselControllerTsx8.__workletHash=13134117170072;useCarouselControllerTsx8.__pluginVersion="0.5.2";useCarouselControllerTsx8.__initData=_worklet_13134117170072_init_data;useCarouselControllerTsx8.__stackDetails=_e;return useCarouselControllerTsx8;}({_worklet_13134117170072_init_data:_worklet_13134117170072_init_data,canMove:canMove,isReady:isReady,rawDataLength:rawDataLength,warnOnce:warnOnce,currentVisualPage:currentVisualPage,positiveModulo:positiveModulo,loop:loop,getShortestLoopTargetPage:getShortestLoopTargetPage,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,rawDataLength,warnOnce]);React.useImperativeHandle(ref,function(){return{next:next,prev:prev,getCurrentIndex:getCurrentIndex,scrollTo:scrollTo};},[getCurrentIndex,next,prev,scrollTo]);return{next:next,prev:prev,scrollTo:scrollTo,getCurrentIndex:getCurrentIndex,getSharedIndex:getSharedIndex,index:index,startMovement:startMovement,cancelMovement:cancelMovement,settle:settle};}
|
|
1
|
+
import React,{useRef}from"react";import{useAnimatedReaction,useSharedValue}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{useGlobalState}from"../store";import{getLogicalProgress,getNearestLogicalPage,getSettledRawIndex,getShortestLoopTargetPage,positiveModulo}from"../utils/carousel-math";import{dealWithAnimation}from"../utils/deal-with-animation";import{webOnlyDependencies}from"../utils/web-only-dependencies";var _worklet_14869541529224_init_data={code:"function useCarouselControllerTsx1(){const{size,dataLength,rawDataLength,getNearestLogicalPage,handlerOffset,positiveModulo}=this.__closure;if(size<=0||dataLength<=0||rawDataLength<=0){return{physicalIndex:0,rawIndex:0};}const page=getNearestLogicalPage(handlerOffset.value,size);return{physicalIndex:positiveModulo(page,dataLength),rawIndex:positiveModulo(page,rawDataLength)};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx1\",\"size\",\"dataLength\",\"rawDataLength\",\"getNearestLogicalPage\",\"handlerOffset\",\"positiveModulo\",\"__closure\",\"physicalIndex\",\"rawIndex\",\"page\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AA8FI,SAAAA,yBAAMA,CAAA,QAAAC,IAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,cAAA,OAAAC,SAAA,CACJ,GAAIN,IAAI,EAAI,CAAC,EAAIC,UAAU,EAAI,CAAC,EAAIC,aAAa,EAAI,CAAC,CAAE,CACtD,MAAO,CAAEK,aAAa,CAAE,CAAC,CAAEC,QAAQ,CAAE,CAAE,CAAC,CAC1C,CAEA,KAAM,CAAAC,IAAI,CAAGN,qBAAqB,CAACC,aAAa,CAACM,KAAK,CAAEV,IAAI,CAAC,CAC7D,MAAO,CACLO,aAAa,CAAEF,cAAc,CAACI,IAAI,CAAER,UAAU,CAAC,CAC/CO,QAAQ,CAAEH,cAAc,CAACI,IAAI,CAAEP,aAAa,CAC9C,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_4281016613010_init_data={code:"function useCarouselControllerTsx2({physicalIndex:physicalIndex,rawIndex:rawIndex}){const{index,scheduleOnRN,setLiveRawIndex}=this.__closure;index.value=physicalIndex;scheduleOnRN(setLiveRawIndex,rawIndex);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx2\",\"physicalIndex\",\"rawIndex\",\"index\",\"scheduleOnRN\",\"setLiveRawIndex\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAyGI,QAAC,CAAAA,0BAAA,CAAEC,aAAa,CAAbA,aAAa,CAAEC,QAAA,CAAAA,QAAS,CAAC,CAAK,OAAAC,KAAA,CAAAC,YAAA,CAAAC,eAAA,OAAAC,SAAA,CAC/BH,KAAK,CAACI,KAAK,CAAGN,aAAa,CAC3BG,YAAY,CAACC,eAAe,CAAEH,QAAQ,CAAC,CACzC\",\"ignoreList\":[]}"};var _worklet_15360756373159_init_data={code:"function useCarouselControllerTsx3(finished){const{scheduleOnRN,emitSettle,targetIndex,onFinished,cancelMovement}=this.__closure;if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx3\",\"finished\",\"scheduleOnRN\",\"emitSettle\",\"targetIndex\",\"onFinished\",\"cancelMovement\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAqKyD,SAAAA,yBAAaA,CAAAC,QAAA,QAAAC,YAAA,CAAAC,UAAA,CAAAC,WAAA,CAAAC,UAAA,CAAAC,cAAA,OAAAC,SAAA,CAE9D,GAAIN,QAAQ,CAAE,CACZC,YAAY,CAACC,UAAU,CAAEC,WAAW,CAAC,CACrC,GAAIC,UAAU,CAAEH,YAAY,CAACG,UAAU,CAAC,CAC1C,CAAC,IAAM,CACLH,YAAY,CAACI,cAAc,CAAC,CAC9B,CACF\",\"ignoreList\":[]}"};var _worklet_7811707638022_init_data={code:"function useCarouselControllerTsx4(targetOffset,targetIndex,onFinished){const{dealWithAnimation,animation,_worklet_15360756373159_init_data,scheduleOnRN,emitSettle,cancelMovement}=this.__closure;return dealWithAnimation(animation)(targetOffset,function useCarouselControllerTsx3Factory({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}){const _e=[new global.Error(),-6,-27];const useCarouselControllerTsx3=function(finished){if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}};useCarouselControllerTsx3.__closure={scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement};useCarouselControllerTsx3.__workletHash=15360756373159;useCarouselControllerTsx3.__pluginVersion=\"0.5.2\";useCarouselControllerTsx3.__initData=_worklet_15360756373159_init_data;useCarouselControllerTsx3.__stackDetails=_e;return useCarouselControllerTsx3;}({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx4\",\"targetOffset\",\"targetIndex\",\"onFinished\",\"dealWithAnimation\",\"animation\",\"_worklet_15360756373159_init_data\",\"scheduleOnRN\",\"emitSettle\",\"cancelMovement\",\"__closure\",\"useCarouselControllerTsx3Factory\",\"_e\",\"global\",\"Error\",\"useCarouselControllerTsx3\",\"finished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAmKI,QAAC,CAAAA,yBAAsBA,CAAAC,YAAqB,CAAuBC,WAAK,CAAAC,UAAA,QAAAC,iBAAA,CAAAC,SAAA,CAAAC,iCAAA,CAAAC,YAAA,CAAAC,UAAA,CAAAC,cAAA,OAAAC,SAAA,CAEtE,MAAO,CAAAN,iBAAiB,CAACC,SAAS,CAAC,CAACJ,YAAY,CAAE,SAAAU,iCAAA,CAAAL,iCAAA,CAAAA,iCAAA,CAG9CC,YAAY,CAAZA,YAAY,CAACC,UAAU,CAAVA,UAAU,CAAEN,WAAW,CAAXA,WAAW,CAChCC,UAAU,CAAVA,UAAU,CAEDM,cAAA,CAAAA,cAAc,SAAAG,EAAA,MAAAC,MAAA,CAAAC,KAAA,iBAAAC,yBAAA,SAAAA,CANoBC,QAAQ,CAAK,CAE9D,GAAIA,QAAQ,CAAE,CACZT,YAAY,CAACC,UAAU,CAAEN,WAAW,CAAC,CACrC,GAAIC,UAAU,CAAEI,YAAY,CAACJ,UAAU,CAAC,CAC1C,CAAC,IAAM,CACLI,YAAY,CAACE,cAAc,CAAC,CAC9B,CACF,CAAC,CAAAM,yBAAA,CAAAL,SAAA,EALGH,YAAY,CAAZA,YAAY,CAACC,UAAU,CAAVA,UAAU,CAAEN,WAAW,CAAXA,WAAW,CAChCC,UAAU,CAAVA,UAAU,CAEDM,cAAA,CAAAA,cAAc,EAAAM,yBAAA,CAAAE,aAAA,gBAAAF,yBAAA,CAAAG,eAAA,SAAAH,yBAAA,CAAAI,UAAA,CAAAb,iCAAA,CAAAS,yBAAA,CAAAK,cAAA,CAAAR,EAAA,QAAAG,yBAAA,EANmB,EAAAT,iCAAA,CAAAA,iCAAA,CAG9CC,YAAY,CAAZA,YAAY,CAACC,UAAU,CAAVA,UAAU,CAAEN,WAAW,CAAXA,WAAW,CAChCC,UAAU,CAAVA,UAAU,CAEDM,cAAA,CAAAA,cAAc,EAE9B,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_2315234374038_init_data={code:"function useCarouselControllerTsx5(targetPage,animated,onFinished){const{positiveModulo,rawDataLength,emitStart,index,dataLength,size,handlerOffset,animateTo,emitSettle}=this.__closure;const targetRawIndex=positiveModulo(targetPage,rawDataLength);emitStart();index.value=positiveModulo(targetPage,Math.max(dataLength,1));const targetOffset=-targetPage*size;if(animated){handlerOffset.value=animateTo(targetOffset,targetRawIndex,onFinished);}else{handlerOffset.value=targetOffset;emitSettle(targetRawIndex);onFinished===null||onFinished===void 0||onFinished();}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx5\",\"targetPage\",\"animated\",\"onFinished\",\"positiveModulo\",\"rawDataLength\",\"emitStart\",\"index\",\"dataLength\",\"size\",\"handlerOffset\",\"animateTo\",\"emitSettle\",\"__closure\",\"targetRawIndex\",\"value\",\"Math\",\"max\",\"targetOffset\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAmLI,QAAC,CAAAA,yBAAuCA,CAAAC,UAA4B,CAAAC,QAAA,CAAAC,UAAA,QAAAC,cAAA,CAAAC,aAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,aAAA,CAAAC,SAAA,CAAAC,UAAA,OAAAC,SAAA,CAElE,KAAM,CAAAC,cAAc,CAAGV,cAAc,CAACH,UAAU,CAAEI,aAAa,CAAC,CAChEC,SAAS,CAAC,CAAC,CACXC,KAAK,CAACQ,KAAK,CAAGX,cAAc,CAACH,UAAU,CAAEe,IAAI,CAACC,GAAG,CAACT,UAAU,CAAE,CAAC,CAAC,CAAC,CAEjE,KAAM,CAAAU,YAAY,CAAG,CAACjB,UAAU,CAAGQ,IAAI,CACvC,GAAIP,QAAQ,CAAE,CACZQ,aAAa,CAACK,KAAK,CAAGJ,SAAS,CAACO,YAAY,CAAEJ,cAAc,CAAEX,UAAU,CAAC,CAC3E,CAAC,IAAM,CACLO,aAAa,CAACK,KAAK,CAAGG,YAAY,CAClCN,UAAU,CAACE,cAAc,CAAC,CAC1BX,UAAU,SAAVA,UAAU,WAAVA,UAAU,CAAG,CAAC,CAChB,CACF\",\"ignoreList\":[]}"};var _worklet_11808905894_init_data={code:"function useCarouselControllerTsx6(stepOptions={}){const{canMove,isReady,validateCount,currentVisualPage,loop,rawDataLength,moveToPage}=this.__closure;const{animated=true,count=1,onFinished:onFinished}=stepOptions;if(!canMove||!isReady()||!validateCount(\"next\",count))return;const currentPage=currentVisualPage();const targetPage=loop?currentPage+count:Math.min(rawDataLength-1,currentPage+count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx6\",\"stepOptions\",\"canMove\",\"isReady\",\"validateCount\",\"currentVisualPage\",\"loop\",\"rawDataLength\",\"moveToPage\",\"__closure\",\"animated\",\"count\",\"onFinished\",\"currentPage\",\"targetPage\",\"Math\",\"min\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAoNI,QAAC,CAAAA,yBAAkDA,CAAAC,WAAA,WAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,iBAAA,CAAAC,IAAA,CAAAC,aAAA,CAAAC,UAAA,OAAAC,SAAA,CAEjD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAG,CAAC,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGX,WAAW,CAC9D,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,EAAI,CAACC,aAAa,CAAC,MAAM,CAAEO,KAAK,CAAC,CAAE,OAE7D,KAAM,CAAAE,WAAW,CAAGR,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAS,UAAU,CAAGR,IAAI,CACnBO,WAAW,CAAGF,KAAK,CACnBI,IAAI,CAACC,GAAG,CAACT,aAAa,CAAG,CAAC,CAAEM,WAAW,CAAGF,KAAK,CAAC,CACpD,GAAIG,UAAU,GAAKD,WAAW,CAAE,OAEhCL,UAAU,CAACM,UAAU,CAAEJ,QAAQ,CAAEE,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_6253845107215_init_data={code:"function useCarouselControllerTsx7(stepOptions={}){const{canMove,isReady,validateCount,currentVisualPage,loop,moveToPage}=this.__closure;const{animated=true,count=1,onFinished:onFinished}=stepOptions;if(!canMove||!isReady()||!validateCount(\"prev\",count))return;const currentPage=currentVisualPage();const targetPage=loop?currentPage-count:Math.max(0,currentPage-count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx7\",\"stepOptions\",\"canMove\",\"isReady\",\"validateCount\",\"currentVisualPage\",\"loop\",\"moveToPage\",\"__closure\",\"animated\",\"count\",\"onFinished\",\"currentPage\",\"targetPage\",\"Math\",\"max\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAqOI,QAAC,CAAAA,yBAAkDA,CAAAC,WAAA,WAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,iBAAA,CAAAC,IAAA,CAAAC,UAAA,OAAAC,SAAA,CAEjD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAG,CAAC,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGV,WAAW,CAC9D,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,EAAI,CAACC,aAAa,CAAC,MAAM,CAAEM,KAAK,CAAC,CAAE,OAE7D,KAAM,CAAAE,WAAW,CAAGP,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAQ,UAAU,CAAGP,IAAI,CAAGM,WAAW,CAAGF,KAAK,CAAGI,IAAI,CAACC,GAAG,CAAC,CAAC,CAAEH,WAAW,CAAGF,KAAK,CAAC,CAChF,GAAIG,UAAU,GAAKD,WAAW,CAAE,OAEhCL,UAAU,CAACM,UAAU,CAAEJ,QAAQ,CAAEE,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_13134117170072_init_data={code:"function useCarouselControllerTsx8(scrollOptions){const{canMove,isReady,rawDataLength,warnOnce,currentVisualPage,positiveModulo,loop,getShortestLoopTargetPage,moveToPage}=this.__closure;const{animated=true,index:targetIndex,onFinished:onFinished}=scrollOptions;if(!canMove||!isReady())return;if(!Number.isInteger(targetIndex)||targetIndex<0||targetIndex>=rawDataLength){warnOnce(\"scrollTo:index\",\"scrollTo index must be an integer between 0 and \"+(rawDataLength-1)+\"; received \"+String(targetIndex)+\".\");return;}const currentPage=currentVisualPage();const currentRawIndex=positiveModulo(currentPage,rawDataLength);if(currentRawIndex===targetIndex)return;const targetPage=loop?getShortestLoopTargetPage({currentPage:currentPage,targetIndex:targetIndex,count:rawDataLength}):targetIndex;moveToPage(targetPage,animated,onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx",sourceMap:"{\"version\":3,\"names\":[\"useCarouselControllerTsx8\",\"scrollOptions\",\"canMove\",\"isReady\",\"rawDataLength\",\"warnOnce\",\"currentVisualPage\",\"positiveModulo\",\"loop\",\"getShortestLoopTargetPage\",\"moveToPage\",\"__closure\",\"animated\",\"index\",\"targetIndex\",\"onFinished\",\"Number\",\"isInteger\",\"String\",\"currentPage\",\"currentRawIndex\",\"targetPage\",\"count\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/hooks/useCarouselController.tsx\"],\"mappings\":\"AAoPI,QAAC,CAAAA,yBAAmDA,CAAAC,aAAA,QAAAC,OAAA,CAAAC,OAAA,CAAAC,aAAA,CAAAC,QAAA,CAAAC,iBAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,yBAAA,CAAAC,UAAA,OAAAC,SAAA,CAElD,KAAM,CAAEC,QAAQ,CAAG,IAAI,CAAEC,KAAK,CAAEC,WAAW,CAAEC,UAAA,CAAAA,UAAW,CAAC,CAAGd,aAAa,CACzE,GAAI,CAACC,OAAO,EAAI,CAACC,OAAO,CAAC,CAAC,CAAE,OAE5B,GAAI,CAACa,MAAM,CAACC,SAAS,CAACH,WAAW,CAAC,EAAIA,WAAW,CAAG,CAAC,EAAIA,WAAW,EAAIV,aAAa,CAAE,CACrFC,QAAQ,CACN,gBAAgB,qDACmCD,aAAa,CAAG,CAAC,gBAAcc,MAAM,CAACJ,WAAW,CAAC,IACvG,CAAC,CACD,OACF,CAEA,KAAM,CAAAK,WAAW,CAAGb,iBAAiB,CAAC,CAAC,CACvC,KAAM,CAAAc,eAAe,CAAGb,cAAc,CAACY,WAAW,CAAEf,aAAa,CAAC,CAClE,GAAIgB,eAAe,GAAKN,WAAW,CAAE,OAErC,KAAM,CAAAO,UAAU,CAAGb,IAAI,CACnBC,yBAAyB,CAAC,CACxBU,WAAW,CAAXA,WAAW,CACXL,WAAW,CAAXA,WAAW,CACXQ,KAAK,CAAElB,aACT,CAAC,CAAC,CACFU,WAAW,CACfJ,UAAU,CAACW,UAAU,CAAET,QAAQ,CAAEG,UAAU,CAAC,CAC9C\",\"ignoreList\":[]}"};export function useCarouselController(options){var animation=options.animation,dataLength=options.dataLength,_options$defaultIndex=options.defaultIndex,defaultIndex=_options$defaultIndex===void 0?0:_options$defaultIndex,handlerOffset=options.handlerOffset,loop=options.loop,rawDataLength=options.rawDataLength,ref=options.ref,size=options.size;var _useGlobalState=useGlobalState(),_useGlobalState$commo=_useGlobalState.common,cancelCommonMovement=_useGlobalState$commo.cancelMovement,dataRevision=_useGlobalState$commo.dataRevision,isMoving=_useGlobalState$commo.isMoving,resolvedSize=_useGlobalState$commo.resolvedSize,settleMovement=_useGlobalState$commo.settleMovement,sizePhase=_useGlobalState$commo.sizePhase,startCommonMovement=_useGlobalState$commo.startMovement;var index=useSharedValue(defaultIndex);var liveRawIndex=useRef(rawDataLength>0?defaultIndex:0);var settledIndex=useRef(rawDataLength>0?defaultIndex:0);var warnedCommands=useRef(new Set());var canMove=rawDataLength>1||loop&&rawDataLength===1&&dataLength>1;var warnOnce=React.useCallback(function(key,message){if(!__DEV__||warnedCommands.current.has(key))return;warnedCommands.current.add(key);console.warn(`[react-native-reanimated-carousel] ${message}`);},[]);var currentVisualPage=React.useCallback(function(){if(size<=0||rawDataLength<=0)return 0;var page=getNearestLogicalPage(handlerOffset.value,size);return loop?page:Math.max(0,Math.min(rawDataLength-1,page));},[handlerOffset,loop,rawDataLength,size]);function setLiveRawIndex(nextIndex){liveRawIndex.current=nextIndex;}useAnimatedReaction(function useCarouselControllerTsx1Factory(_ref){var _worklet_14869541529224_init_data=_ref._worklet_14869541529224_init_data,size=_ref.size,dataLength=_ref.dataLength,rawDataLength=_ref.rawDataLength,getNearestLogicalPage=_ref.getNearestLogicalPage,handlerOffset=_ref.handlerOffset,positiveModulo=_ref.positiveModulo;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx1=function useCarouselControllerTsx1(){if(size<=0||dataLength<=0||rawDataLength<=0){return{physicalIndex:0,rawIndex:0};}var page=getNearestLogicalPage(handlerOffset.value,size);return{physicalIndex:positiveModulo(page,dataLength),rawIndex:positiveModulo(page,rawDataLength)};};useCarouselControllerTsx1.__closure={size:size,dataLength:dataLength,rawDataLength:rawDataLength,getNearestLogicalPage:getNearestLogicalPage,handlerOffset:handlerOffset,positiveModulo:positiveModulo};useCarouselControllerTsx1.__workletHash=14869541529224;useCarouselControllerTsx1.__pluginVersion="0.5.2";useCarouselControllerTsx1.__initData=_worklet_14869541529224_init_data;useCarouselControllerTsx1.__stackDetails=_e;return useCarouselControllerTsx1;}({_worklet_14869541529224_init_data:_worklet_14869541529224_init_data,size:size,dataLength:dataLength,rawDataLength:rawDataLength,getNearestLogicalPage:getNearestLogicalPage,handlerOffset:handlerOffset,positiveModulo:positiveModulo}),function useCarouselControllerTsx2Factory(_ref2){var _worklet_4281016613010_init_data=_ref2._worklet_4281016613010_init_data,index=_ref2.index,scheduleOnRN=_ref2.scheduleOnRN,setLiveRawIndex=_ref2.setLiveRawIndex;var _e=[new global.Error(),-4,-27];var useCarouselControllerTsx2=function useCarouselControllerTsx2(_ref3){var physicalIndex=_ref3.physicalIndex,rawIndex=_ref3.rawIndex;index.value=physicalIndex;scheduleOnRN(setLiveRawIndex,rawIndex);};useCarouselControllerTsx2.__closure={index:index,scheduleOnRN:scheduleOnRN,setLiveRawIndex:setLiveRawIndex};useCarouselControllerTsx2.__workletHash=4281016613010;useCarouselControllerTsx2.__pluginVersion="0.5.2";useCarouselControllerTsx2.__initData=_worklet_4281016613010_init_data;useCarouselControllerTsx2.__stackDetails=_e;return useCarouselControllerTsx2;}({_worklet_4281016613010_init_data:_worklet_4281016613010_init_data,index:index,scheduleOnRN:scheduleOnRN,setLiveRawIndex:setLiveRawIndex}),webOnlyDependencies([dataLength,handlerOffset,index,rawDataLength,size]));var settle=React.useCallback(function(targetIndex){settleMovement();var nextSettledIndex=typeof targetIndex==="number"&&rawDataLength>0?positiveModulo(Math.round(targetIndex),rawDataLength):getSettledRawIndex(loop?getLogicalProgress(handlerOffset.value,size):Math.max(0,Math.min(rawDataLength-1,getLogicalProgress(handlerOffset.value,size))),rawDataLength);settledIndex.current=nextSettledIndex;return nextSettledIndex;},[handlerOffset,loop,rawDataLength,settleMovement,size]);var getCurrentIndex=React.useCallback(function(){return settledIndex.current;},[]);var getSharedIndex=React.useCallback(function(){return liveRawIndex.current;},[]);var startMovement=React.useCallback(function(){return startCommonMovement();},[startCommonMovement]);var cancelMovement=React.useCallback(function(){return cancelCommonMovement();},[cancelCommonMovement]);React.useEffect(function(){if(!isMoving.value)settle();},[dataRevision,isMoving,rawDataLength,settle]);var isReady=React.useCallback(function(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:size;return sizePhase.value==="ready"&¤tSize>0;},[resolvedSize,size,sizePhase]);var emitStart=React.useCallback(function(){startMovement();options.onScrollStart==null||options.onScrollStart();},[options,startMovement]);var emitSettle=React.useCallback(function(targetIndex){var nextSettledIndex=settle(targetIndex);options.onMovementEnd==null||options.onMovementEnd(nextSettledIndex);},[options,settle]);var animateTo=React.useCallback(function useCarouselControllerTsx4Factory(_ref4){var _worklet_7811707638022_init_data=_ref4._worklet_7811707638022_init_data,dealWithAnimation=_ref4.dealWithAnimation,animation=_ref4.animation,_worklet_15360756373159_init_data=_ref4._worklet_15360756373159_init_data,scheduleOnRN=_ref4.scheduleOnRN,emitSettle=_ref4.emitSettle,cancelMovement=_ref4.cancelMovement;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx4=function useCarouselControllerTsx4(targetOffset,targetIndex,onFinished){return dealWithAnimation(animation)(targetOffset,function useCarouselControllerTsx3Factory(_ref5){var _worklet_15360756373159_init_data=_ref5._worklet_15360756373159_init_data,scheduleOnRN=_ref5.scheduleOnRN,emitSettle=_ref5.emitSettle,targetIndex=_ref5.targetIndex,onFinished=_ref5.onFinished,cancelMovement=_ref5.cancelMovement;var _e=[new global.Error(),-6,-27];var useCarouselControllerTsx3=function useCarouselControllerTsx3(finished){if(finished){scheduleOnRN(emitSettle,targetIndex);if(onFinished)scheduleOnRN(onFinished);}else{scheduleOnRN(cancelMovement);}};useCarouselControllerTsx3.__closure={scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement};useCarouselControllerTsx3.__workletHash=15360756373159;useCarouselControllerTsx3.__pluginVersion="0.5.2";useCarouselControllerTsx3.__initData=_worklet_15360756373159_init_data;useCarouselControllerTsx3.__stackDetails=_e;return useCarouselControllerTsx3;}({_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,targetIndex:targetIndex,onFinished:onFinished,cancelMovement:cancelMovement}));};useCarouselControllerTsx4.__closure={dealWithAnimation:dealWithAnimation,animation:animation,_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,cancelMovement:cancelMovement};useCarouselControllerTsx4.__workletHash=7811707638022;useCarouselControllerTsx4.__pluginVersion="0.5.2";useCarouselControllerTsx4.__initData=_worklet_7811707638022_init_data;useCarouselControllerTsx4.__stackDetails=_e;return useCarouselControllerTsx4;}({_worklet_7811707638022_init_data:_worklet_7811707638022_init_data,dealWithAnimation:dealWithAnimation,animation:animation,_worklet_15360756373159_init_data:_worklet_15360756373159_init_data,scheduleOnRN:scheduleOnRN,emitSettle:emitSettle,cancelMovement:cancelMovement}),[animation,cancelMovement,emitSettle]);var moveToPage=React.useCallback(function useCarouselControllerTsx5Factory(_ref6){var _worklet_2315234374038_init_data=_ref6._worklet_2315234374038_init_data,positiveModulo=_ref6.positiveModulo,rawDataLength=_ref6.rawDataLength,emitStart=_ref6.emitStart,index=_ref6.index,dataLength=_ref6.dataLength,size=_ref6.size,handlerOffset=_ref6.handlerOffset,animateTo=_ref6.animateTo,emitSettle=_ref6.emitSettle;var _e=[new global.Error(),-10,-27];var useCarouselControllerTsx5=function useCarouselControllerTsx5(targetPage,animated,onFinished){var targetRawIndex=positiveModulo(targetPage,rawDataLength);emitStart();index.value=positiveModulo(targetPage,Math.max(dataLength,1));var targetOffset=-targetPage*size;if(animated){handlerOffset.value=animateTo(targetOffset,targetRawIndex,onFinished);}else{handlerOffset.value=targetOffset;emitSettle(targetRawIndex);onFinished==null||onFinished();}};useCarouselControllerTsx5.__closure={positiveModulo:positiveModulo,rawDataLength:rawDataLength,emitStart:emitStart,index:index,dataLength:dataLength,size:size,handlerOffset:handlerOffset,animateTo:animateTo,emitSettle:emitSettle};useCarouselControllerTsx5.__workletHash=2315234374038;useCarouselControllerTsx5.__pluginVersion="0.5.2";useCarouselControllerTsx5.__initData=_worklet_2315234374038_init_data;useCarouselControllerTsx5.__stackDetails=_e;return useCarouselControllerTsx5;}({_worklet_2315234374038_init_data:_worklet_2315234374038_init_data,positiveModulo:positiveModulo,rawDataLength:rawDataLength,emitStart:emitStart,index:index,dataLength:dataLength,size:size,handlerOffset:handlerOffset,animateTo:animateTo,emitSettle:emitSettle}),[animateTo,dataLength,emitSettle,emitStart,handlerOffset,index,rawDataLength,size]);var validateCount=React.useCallback(function(command,count){if(count===0)return false;if(Number.isInteger(count)&&count>0)return true;warnOnce(`${command}:count`,`${command} count must be a positive integer; received ${String(count)}.`);return false;},[warnOnce]);var next=React.useCallback(function useCarouselControllerTsx6Factory(_ref7){var _worklet_11808905894_init_data=_ref7._worklet_11808905894_init_data,canMove=_ref7.canMove,isReady=_ref7.isReady,validateCount=_ref7.validateCount,currentVisualPage=_ref7.currentVisualPage,loop=_ref7.loop,rawDataLength=_ref7.rawDataLength,moveToPage=_ref7.moveToPage;var _e=[new global.Error(),-8,-27];var useCarouselControllerTsx6=function useCarouselControllerTsx6(){var stepOptions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _stepOptions$animated=stepOptions.animated,animated=_stepOptions$animated===void 0?true:_stepOptions$animated,_stepOptions$count=stepOptions.count,count=_stepOptions$count===void 0?1:_stepOptions$count,onFinished=stepOptions.onFinished;if(!canMove||!isReady()||!validateCount("next",count))return;var currentPage=currentVisualPage();var targetPage=loop?currentPage+count:Math.min(rawDataLength-1,currentPage+count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx6.__closure={canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,rawDataLength:rawDataLength,moveToPage:moveToPage};useCarouselControllerTsx6.__workletHash=11808905894;useCarouselControllerTsx6.__pluginVersion="0.5.2";useCarouselControllerTsx6.__initData=_worklet_11808905894_init_data;useCarouselControllerTsx6.__stackDetails=_e;return useCarouselControllerTsx6;}({_worklet_11808905894_init_data:_worklet_11808905894_init_data,canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,rawDataLength:rawDataLength,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,rawDataLength,validateCount]);var prev=React.useCallback(function useCarouselControllerTsx7Factory(_ref8){var _worklet_6253845107215_init_data=_ref8._worklet_6253845107215_init_data,canMove=_ref8.canMove,isReady=_ref8.isReady,validateCount=_ref8.validateCount,currentVisualPage=_ref8.currentVisualPage,loop=_ref8.loop,moveToPage=_ref8.moveToPage;var _e=[new global.Error(),-7,-27];var useCarouselControllerTsx7=function useCarouselControllerTsx7(){var stepOptions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _stepOptions$animated2=stepOptions.animated,animated=_stepOptions$animated2===void 0?true:_stepOptions$animated2,_stepOptions$count2=stepOptions.count,count=_stepOptions$count2===void 0?1:_stepOptions$count2,onFinished=stepOptions.onFinished;if(!canMove||!isReady()||!validateCount("prev",count))return;var currentPage=currentVisualPage();var targetPage=loop?currentPage-count:Math.max(0,currentPage-count);if(targetPage===currentPage)return;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx7.__closure={canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,moveToPage:moveToPage};useCarouselControllerTsx7.__workletHash=6253845107215;useCarouselControllerTsx7.__pluginVersion="0.5.2";useCarouselControllerTsx7.__initData=_worklet_6253845107215_init_data;useCarouselControllerTsx7.__stackDetails=_e;return useCarouselControllerTsx7;}({_worklet_6253845107215_init_data:_worklet_6253845107215_init_data,canMove:canMove,isReady:isReady,validateCount:validateCount,currentVisualPage:currentVisualPage,loop:loop,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,validateCount]);var scrollTo=React.useCallback(function useCarouselControllerTsx8Factory(_ref9){var _worklet_13134117170072_init_data=_ref9._worklet_13134117170072_init_data,canMove=_ref9.canMove,isReady=_ref9.isReady,rawDataLength=_ref9.rawDataLength,warnOnce=_ref9.warnOnce,currentVisualPage=_ref9.currentVisualPage,positiveModulo=_ref9.positiveModulo,loop=_ref9.loop,getShortestLoopTargetPage=_ref9.getShortestLoopTargetPage,moveToPage=_ref9.moveToPage;var _e=[new global.Error(),-10,-27];var useCarouselControllerTsx8=function useCarouselControllerTsx8(scrollOptions){var _scrollOptions$animat=scrollOptions.animated,animated=_scrollOptions$animat===void 0?true:_scrollOptions$animat,targetIndex=scrollOptions.index,onFinished=scrollOptions.onFinished;if(!canMove||!isReady())return;if(!Number.isInteger(targetIndex)||targetIndex<0||targetIndex>=rawDataLength){warnOnce("scrollTo:index",`scrollTo index must be an integer between 0 and ${rawDataLength-1}; received ${String(targetIndex)}.`);return;}var currentPage=currentVisualPage();var currentRawIndex=positiveModulo(currentPage,rawDataLength);if(currentRawIndex===targetIndex)return;var targetPage=loop?getShortestLoopTargetPage({currentPage:currentPage,targetIndex:targetIndex,count:rawDataLength}):targetIndex;moveToPage(targetPage,animated,onFinished);};useCarouselControllerTsx8.__closure={canMove:canMove,isReady:isReady,rawDataLength:rawDataLength,warnOnce:warnOnce,currentVisualPage:currentVisualPage,positiveModulo:positiveModulo,loop:loop,getShortestLoopTargetPage:getShortestLoopTargetPage,moveToPage:moveToPage};useCarouselControllerTsx8.__workletHash=13134117170072;useCarouselControllerTsx8.__pluginVersion="0.5.2";useCarouselControllerTsx8.__initData=_worklet_13134117170072_init_data;useCarouselControllerTsx8.__stackDetails=_e;return useCarouselControllerTsx8;}({_worklet_13134117170072_init_data:_worklet_13134117170072_init_data,canMove:canMove,isReady:isReady,rawDataLength:rawDataLength,warnOnce:warnOnce,currentVisualPage:currentVisualPage,positiveModulo:positiveModulo,loop:loop,getShortestLoopTargetPage:getShortestLoopTargetPage,moveToPage:moveToPage}),[canMove,currentVisualPage,isReady,loop,moveToPage,rawDataLength,warnOnce]);React.useImperativeHandle(ref,function(){return{next:next,prev:prev,getCurrentIndex:getCurrentIndex,scrollTo:scrollTo};},[getCurrentIndex,next,prev,scrollTo]);return{next:next,prev:prev,scrollTo:scrollTo,getCurrentIndex:getCurrentIndex,getSharedIndex:getSharedIndex,index:index,startMovement:startMovement,cancelMovement:cancelMovement,settle:settle};}
|
|
2
2
|
//# sourceMappingURL=useCarouselController.js.map
|