react-native-reanimated-carousel 5.1.1 → 5.2.1

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.
Files changed (141) hide show
  1. package/README.md +18 -1
  2. package/lib/commonjs/components/CarouselLayout.js +1 -1
  3. package/lib/commonjs/components/CarouselLayout.js.map +1 -1
  4. package/lib/commonjs/components/ItemLayout.js +1 -1
  5. package/lib/commonjs/components/ItemLayout.js.map +1 -1
  6. package/lib/commonjs/components/ItemRenderer.js +1 -1
  7. package/lib/commonjs/components/ItemRenderer.js.map +1 -1
  8. package/lib/commonjs/components/Pagination/PaginationItem.js +1 -1
  9. package/lib/commonjs/components/Pagination/PaginationItem.js.map +1 -1
  10. package/lib/commonjs/components/ScrollViewGesture.js +1 -1
  11. package/lib/commonjs/components/ScrollViewGesture.js.map +1 -1
  12. package/lib/commonjs/constants/index.js +1 -1
  13. package/lib/commonjs/constants/index.js.map +1 -1
  14. package/lib/commonjs/hooks/useAutoPlay.js +1 -1
  15. package/lib/commonjs/hooks/useAutoPlay.js.map +1 -1
  16. package/lib/commonjs/hooks/useCarouselController.js +1 -1
  17. package/lib/commonjs/hooks/useCarouselController.js.map +1 -1
  18. package/lib/commonjs/hooks/useCommonVariables.js +1 -1
  19. package/lib/commonjs/hooks/useCommonVariables.js.map +1 -1
  20. package/lib/commonjs/hooks/useInitProps.js +1 -1
  21. package/lib/commonjs/hooks/useInitProps.js.map +1 -1
  22. package/lib/commonjs/hooks/useOffsetX.js +1 -1
  23. package/lib/commonjs/hooks/useOffsetX.js.map +1 -1
  24. package/lib/commonjs/hooks/useOnProgressChange.js +1 -1
  25. package/lib/commonjs/hooks/useOnProgressChange.js.map +1 -1
  26. package/lib/commonjs/hooks/useVisibleRanges.js +1 -1
  27. package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -1
  28. package/lib/commonjs/layouts/normal.js +1 -1
  29. package/lib/commonjs/layouts/normal.js.map +1 -1
  30. package/lib/commonjs/layouts/parallax.js +1 -1
  31. package/lib/commonjs/layouts/parallax.js.map +1 -1
  32. package/lib/commonjs/utils/web-only-dependencies.js +2 -0
  33. package/lib/commonjs/utils/web-only-dependencies.js.map +1 -0
  34. package/lib/module/components/CarouselLayout.js +1 -1
  35. package/lib/module/components/CarouselLayout.js.map +1 -1
  36. package/lib/module/components/ItemLayout.js +1 -1
  37. package/lib/module/components/ItemLayout.js.map +1 -1
  38. package/lib/module/components/ItemRenderer.js +1 -1
  39. package/lib/module/components/ItemRenderer.js.map +1 -1
  40. package/lib/module/components/Pagination/PaginationItem.js +1 -1
  41. package/lib/module/components/Pagination/PaginationItem.js.map +1 -1
  42. package/lib/module/components/ScrollViewGesture.js +1 -1
  43. package/lib/module/components/ScrollViewGesture.js.map +1 -1
  44. package/lib/module/constants/index.js +1 -1
  45. package/lib/module/constants/index.js.map +1 -1
  46. package/lib/module/hooks/useAutoPlay.js +1 -1
  47. package/lib/module/hooks/useAutoPlay.js.map +1 -1
  48. package/lib/module/hooks/useCarouselController.js +1 -1
  49. package/lib/module/hooks/useCarouselController.js.map +1 -1
  50. package/lib/module/hooks/useCommonVariables.js +1 -1
  51. package/lib/module/hooks/useCommonVariables.js.map +1 -1
  52. package/lib/module/hooks/useInitProps.js +1 -1
  53. package/lib/module/hooks/useInitProps.js.map +1 -1
  54. package/lib/module/hooks/useOffsetX.js +1 -1
  55. package/lib/module/hooks/useOffsetX.js.map +1 -1
  56. package/lib/module/hooks/useOnProgressChange.js +1 -1
  57. package/lib/module/hooks/useOnProgressChange.js.map +1 -1
  58. package/lib/module/hooks/useVisibleRanges.js +1 -1
  59. package/lib/module/hooks/useVisibleRanges.js.map +1 -1
  60. package/lib/module/layouts/normal.js +1 -1
  61. package/lib/module/layouts/normal.js.map +1 -1
  62. package/lib/module/layouts/parallax.js +1 -1
  63. package/lib/module/layouts/parallax.js.map +1 -1
  64. package/lib/module/utils/web-only-dependencies.js +2 -0
  65. package/lib/module/utils/web-only-dependencies.js.map +1 -0
  66. package/lib/typescript/commonjs/components/CarouselLayout.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/components/ItemLayout.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/components/ItemRenderer.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts.map +1 -1
  70. package/lib/typescript/commonjs/components/ScrollViewGesture.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/constants/index.d.ts +4 -4
  72. package/lib/typescript/commonjs/constants/index.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts +19 -5
  74. package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/hooks/useCarouselController.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts.map +1 -1
  77. package/lib/typescript/commonjs/hooks/useInitProps.d.ts +2 -1
  78. package/lib/typescript/commonjs/hooks/useInitProps.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/hooks/useOffsetX.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts.map +1 -1
  81. package/lib/typescript/commonjs/hooks/usePanGestureProxy.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/hooks/useUpdateGestureConfig.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts +1 -0
  84. package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/layouts/normal.d.ts +2 -9
  86. package/lib/typescript/commonjs/layouts/normal.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/layouts/parallax.d.ts +2 -16
  88. package/lib/typescript/commonjs/layouts/parallax.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/layouts/stack.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/public-types.d.ts +1 -0
  91. package/lib/typescript/commonjs/public-types.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/store/index.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/utils/web-only-dependencies.d.ts +7 -0
  94. package/lib/typescript/commonjs/utils/web-only-dependencies.d.ts.map +1 -0
  95. package/lib/typescript/module/components/CarouselLayout.d.ts.map +1 -1
  96. package/lib/typescript/module/components/ItemLayout.d.ts.map +1 -1
  97. package/lib/typescript/module/components/ItemRenderer.d.ts.map +1 -1
  98. package/lib/typescript/module/components/Pagination/PaginationItem.d.ts.map +1 -1
  99. package/lib/typescript/module/components/ScrollViewGesture.d.ts.map +1 -1
  100. package/lib/typescript/module/constants/index.d.ts +4 -4
  101. package/lib/typescript/module/constants/index.d.ts.map +1 -1
  102. package/lib/typescript/module/hooks/useAutoPlay.d.ts +19 -5
  103. package/lib/typescript/module/hooks/useAutoPlay.d.ts.map +1 -1
  104. package/lib/typescript/module/hooks/useCarouselController.d.ts.map +1 -1
  105. package/lib/typescript/module/hooks/useCommonVariables.d.ts.map +1 -1
  106. package/lib/typescript/module/hooks/useInitProps.d.ts +2 -1
  107. package/lib/typescript/module/hooks/useInitProps.d.ts.map +1 -1
  108. package/lib/typescript/module/hooks/useOffsetX.d.ts.map +1 -1
  109. package/lib/typescript/module/hooks/useOnProgressChange.d.ts.map +1 -1
  110. package/lib/typescript/module/hooks/usePanGestureProxy.d.ts.map +1 -1
  111. package/lib/typescript/module/hooks/useUpdateGestureConfig.d.ts.map +1 -1
  112. package/lib/typescript/module/hooks/useVisibleRanges.d.ts +1 -0
  113. package/lib/typescript/module/hooks/useVisibleRanges.d.ts.map +1 -1
  114. package/lib/typescript/module/layouts/normal.d.ts +2 -9
  115. package/lib/typescript/module/layouts/normal.d.ts.map +1 -1
  116. package/lib/typescript/module/layouts/parallax.d.ts +2 -16
  117. package/lib/typescript/module/layouts/parallax.d.ts.map +1 -1
  118. package/lib/typescript/module/layouts/stack.d.ts.map +1 -1
  119. package/lib/typescript/module/public-types.d.ts +1 -0
  120. package/lib/typescript/module/public-types.d.ts.map +1 -1
  121. package/lib/typescript/module/store/index.d.ts.map +1 -1
  122. package/lib/typescript/module/utils/web-only-dependencies.d.ts +7 -0
  123. package/lib/typescript/module/utils/web-only-dependencies.d.ts.map +1 -0
  124. package/package.json +8 -4
  125. package/src/components/CarouselLayout.tsx +42 -12
  126. package/src/components/ItemLayout.tsx +14 -4
  127. package/src/components/ItemRenderer.tsx +36 -4
  128. package/src/components/Pagination/PaginationItem.tsx +22 -20
  129. package/src/components/ScrollViewGesture.tsx +12 -5
  130. package/src/constants/index.ts +4 -4
  131. package/src/hooks/useAutoPlay.ts +44 -17
  132. package/src/hooks/useCarouselController.tsx +3 -2
  133. package/src/hooks/useCommonVariables.ts +3 -2
  134. package/src/hooks/useInitProps.ts +13 -0
  135. package/src/hooks/useOffsetX.ts +11 -1
  136. package/src/hooks/useOnProgressChange.ts +2 -1
  137. package/src/hooks/useVisibleRanges.tsx +5 -2
  138. package/src/layouts/normal.ts +2 -1
  139. package/src/layouts/parallax.ts +2 -1
  140. package/src/public-types.ts +1 -0
  141. package/src/utils/web-only-dependencies.ts +10 -0
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=PaginationItem;exports.getPaginationSelectedIndex=exports.getPaginationDotDistance=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _carouselMath=require("../../utils/carousel-math");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var DEFAULT_DOT_SIZE=10;var DEFAULT_DOT_COLOR="#D1D5DB";var DEFAULT_ACTIVE_DOT_COLOR="#111827";var _worklet_12293713265361_init_data={code:"function getPaginationDotDistance_PaginationItemTsx1(progress,index,count){const{getNearestLoopPosition}=this.__closure;if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationDotDistance_PaginationItemTsx1\",\"progress\",\"index\",\"count\",\"getNearestLoopPosition\",\"__closure\",\"Number\",\"isFinite\",\"Math\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAmBO,SAAAA,2CAAmEA,CAAAC,QAAuB,CAAAC,KAAA,CAAAC,KAAA,QAAAC,sBAAA,OAAAC,SAAA,CAG/F,GAAI,CAACC,MAAM,CAACC,QAAQ,CAACN,QAAQ,CAAC,EAAIE,KAAK,EAAI,CAAC,CAAE,MAAO,EAAC,CACtD,MAAO,CAAAK,IAAI,CAACC,GAAG,CAACL,sBAAsB,CAACF,KAAK,CAAED,QAAQ,CAAEE,KAAK,CAAC,CAAGF,QAAQ,CAAC,CAC5E\",\"ignoreList\":[]}"};var getPaginationDotDistance=exports.getPaginationDotDistance=function getPaginationDotDistance_PaginationItemTsx1Factory(_ref){var _worklet_12293713265361_init_data=_ref._worklet_12293713265361_init_data,getNearestLoopPosition=_ref.getNearestLoopPosition;var _e=[new global.Error(),-2,-27];var getPaginationDotDistance=function getPaginationDotDistance(progress,index,count){if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);};getPaginationDotDistance.__closure={getNearestLoopPosition:getNearestLoopPosition};getPaginationDotDistance.__workletHash=12293713265361;getPaginationDotDistance.__pluginVersion="0.5.2";getPaginationDotDistance.__initData=_worklet_12293713265361_init_data;getPaginationDotDistance.__stackDetails=_e;return getPaginationDotDistance;}({_worklet_12293713265361_init_data:_worklet_12293713265361_init_data,getNearestLoopPosition:_carouselMath.getNearestLoopPosition});var _worklet_8662050186952_init_data={code:"function getPaginationSelectedIndex_PaginationItemTsx2(progress,count){const{getSettledRawIndex}=this.__closure;return getSettledRawIndex(progress,count);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationSelectedIndex_PaginationItemTsx2\",\"progress\",\"count\",\"getSettledRawIndex\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA0BO,SAAAA,6CAA6EA,CAAAC,QAAA,CAAAC,KAAA,QAAAC,kBAAA,OAAAC,SAAA,CAGlF,MAAO,CAAAD,kBAAkB,CAACF,QAAQ,CAAEC,KAAK,CAAC,CAC5C\",\"ignoreList\":[]}"};var getPaginationSelectedIndex=exports.getPaginationSelectedIndex=function getPaginationSelectedIndex_PaginationItemTsx2Factory(_ref2){var _worklet_8662050186952_init_data=_ref2._worklet_8662050186952_init_data,getSettledRawIndex=_ref2.getSettledRawIndex;var _e=[new global.Error(),-2,-27];var getPaginationSelectedIndex=function getPaginationSelectedIndex(progress,count){return getSettledRawIndex(progress,count);};getPaginationSelectedIndex.__closure={getSettledRawIndex:getSettledRawIndex};getPaginationSelectedIndex.__workletHash=8662050186952;getPaginationSelectedIndex.__pluginVersion="0.5.2";getPaginationSelectedIndex.__initData=_worklet_8662050186952_init_data;getPaginationSelectedIndex.__stackDetails=_e;return getPaginationSelectedIndex;}({_worklet_8662050186952_init_data:_worklet_8662050186952_init_data,getSettledRawIndex:_carouselMath.getSettledRawIndex});var _worklet_15643276008008_init_data={code:"function interpolateDotColor_PaginationItemTsx3(distance,active,inactive){const{interpolateColor}=this.__closure;if(typeof active!==\"string\"||typeof inactive!==\"string\"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"interpolateDotColor_PaginationItemTsx3\",\"distance\",\"active\",\"inactive\",\"interpolateColor\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAgCA,SAAAA,sCAEoBA,CAClBC,QACD,CAAaC,MAAA,CAAAC,QAAA,QAAAC,gBAAA,OAAAC,SAAA,CAGZ,GAAI,MAAO,CAAAH,MAAM,GAAK,QAAQ,EAAI,MAAO,CAAAC,QAAQ,GAAK,QAAQ,CAAE,CAC9D,MAAO,CAAAF,QAAQ,CAAG,GAAG,CAAGC,MAAM,CAAGC,QAAQ,CAC3C,CAEA,MAAO,CAAAC,gBAAgB,CAACH,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACC,MAAM,CAAEC,QAAQ,CAAC,CAAC,CAC/D\",\"ignoreList\":[]}"};var interpolateDotColor=function interpolateDotColor_PaginationItemTsx3Factory(_ref3){var _worklet_15643276008008_init_data=_ref3._worklet_15643276008008_init_data,interpolateColor=_ref3.interpolateColor;var _e=[new global.Error(),-2,-27];var interpolateDotColor=function interpolateDotColor(distance,active,inactive){if(typeof active!=="string"||typeof inactive!=="string"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);};interpolateDotColor.__closure={interpolateColor:interpolateColor};interpolateDotColor.__workletHash=15643276008008;interpolateDotColor.__pluginVersion="0.5.2";interpolateDotColor.__initData=_worklet_15643276008008_init_data;interpolateDotColor.__stackDetails=_e;return interpolateDotColor;}({_worklet_15643276008008_init_data:_worklet_15643276008008_init_data,interpolateColor:_reactNativeReanimated.interpolateColor});var _worklet_5552776385387_init_data={code:"function PaginationItemTsx4(){const{count,getPaginationSelectedIndex,progress,index}=this.__closure;return count===1||getPaginationSelectedIndex(progress.value,count)===index;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx4\",\"count\",\"getPaginationSelectedIndex\",\"progress\",\"index\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAkFI,SAAAA,mBAAA,QAAAC,KAAA,CAAAC,0BAAA,CAAAC,QAAA,CAAAC,KAAA,OAAAC,SAAA,OAAM,CAAAJ,KAAK,GAAM,GAAIC,0BAA2B,CAAAC,QAAS,CAAAG,KAAK,CAAEL,KAAM,IAAKG,KAAA\",\"ignoreList\":[]}"};var _worklet_13637724198876_init_data={code:"function PaginationItemTsx5(nextSelected,previousSelected){const{scheduleOnRN,setSelected}=this.__closure;if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx5\",\"nextSelected\",\"previousSelected\",\"scheduleOnRN\",\"setSelected\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAmFI,QAAC,CAAAA,kBAAcA,CAAAC,YAAA,CAAgBC,gBAAK,QAAAC,YAAA,CAAAC,WAAA,OAAAC,SAAA,CAClC,GAAIJ,YAAY,GAAKC,gBAAgB,CAAE,CACrCC,YAAY,CAACC,WAAW,CAAEH,YAAY,CAAC,CACzC,CACF\",\"ignoreList\":[]}"};var _worklet_14140717509892_init_data={code:"function PaginationItemTsx6(){const{getPaginationDotDistance,progress,index,count,interpolate,activeWidth,baseWidth,Extrapolation,activeHeight,baseHeight,activeBorderRadius,baseBorderRadius,activeBorderWidth,baseBorderWidth,interpolateDotColor,activeBorderColor,baseBorderColor,activeBackgroundColor,baseBackgroundColor,activeOpacity,baseOpacity}=this.__closure;const distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx6\",\"getPaginationDotDistance\",\"progress\",\"index\",\"count\",\"interpolate\",\"activeWidth\",\"baseWidth\",\"Extrapolation\",\"activeHeight\",\"baseHeight\",\"activeBorderRadius\",\"baseBorderRadius\",\"activeBorderWidth\",\"baseBorderWidth\",\"interpolateDotColor\",\"activeBorderColor\",\"baseBorderColor\",\"activeBackgroundColor\",\"baseBackgroundColor\",\"activeOpacity\",\"baseOpacity\",\"__closure\",\"distance\",\"Math\",\"min\",\"value\",\"width\",\"CLAMP\",\"height\",\"borderRadius\",\"borderWidth\",\"borderColor\",\"backgroundColor\",\"opacity\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA2FoD,SAAAA,kBAAMA,CAAA,QAAAC,wBAAA,CAAAC,QAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,UAAA,CAAAC,kBAAA,CAAAC,gBAAA,CAAAC,iBAAA,CAAAC,eAAA,CAAAC,mBAAA,CAAAC,iBAAA,CAAAC,eAAA,CAAAC,qBAAA,CAAAC,mBAAA,CAAAC,aAAA,CAAAC,WAAA,OAAAC,SAAA,CACtD,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,CAAExB,wBAAwB,CAACC,QAAQ,CAACwB,KAAK,CAAEvB,KAAK,CAAEC,KAAK,CAAC,CAAC,CAEpF,MAAO,CACLuB,KAAK,CAAEtB,WAAW,CAACkB,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACjB,WAAW,CAAEC,SAAS,CAAC,CAAEC,aAAa,CAACoB,KAAK,CAAC,CACnFC,MAAM,CAAExB,WAAW,CAACkB,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACd,YAAY,CAAEC,UAAU,CAAC,CAAEF,aAAa,CAACoB,KAAK,CAAC,CACtFE,YAAY,CAAEzB,WAAW,CACvBkB,QAAQ,CACR,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACZ,kBAAkB,CAAEC,gBAAgB,CAAC,CACtCJ,aAAa,CAACoB,KAChB,CAAC,CACDG,WAAW,CAAE1B,WAAW,CACtBkB,QAAQ,CACR,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACV,iBAAiB,CAAEC,eAAe,CAAC,CACpCN,aAAa,CAACoB,KAChB,CAAC,CACDI,WAAW,CAAEjB,mBAAmB,CAACQ,QAAQ,CAAEP,iBAAiB,CAAEC,eAAe,CAAC,CAC9EgB,eAAe,CAAElB,mBAAmB,CAACQ,QAAQ,CAAEL,qBAAqB,CAAEC,mBAAmB,CAAC,CAC1Fe,OAAO,CAAE7B,WAAW,CAACkB,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACH,aAAa,CAAEC,WAAW,CAAC,CAAEb,aAAa,CAACoB,KAAK,CAC1F,CAAC,CACH\",\"ignoreList\":[]}"};function PaginationItem(props){var _dotStyle$width,_dotStyle$height,_dotStyle$borderRadiu,_dotStyle$borderWidth,_dotStyle$borderColor,_dotStyle$backgroundC,_dotStyle$opacity,_activeDotStyle$width,_activeDotStyle$heigh,_activeDotStyle$borde,_activeDotStyle$borde2,_activeDotStyle$borde3,_activeDotStyle$backg,_activeDotStyle$opaci;var activeDotStyle=props.activeDotStyle,count=props.count,dotStyle=props.dotStyle,index=props.index,label=props.label,_onPress=props.onPress,progress=props.progress;var baseWidth=(_dotStyle$width=dotStyle==null?void 0:dotStyle.width)!=null?_dotStyle$width:DEFAULT_DOT_SIZE;var baseHeight=(_dotStyle$height=dotStyle==null?void 0:dotStyle.height)!=null?_dotStyle$height:DEFAULT_DOT_SIZE;var baseBorderRadius=(_dotStyle$borderRadiu=dotStyle==null?void 0:dotStyle.borderRadius)!=null?_dotStyle$borderRadiu:Math.min(baseWidth,baseHeight)/2;var baseBorderWidth=(_dotStyle$borderWidth=dotStyle==null?void 0:dotStyle.borderWidth)!=null?_dotStyle$borderWidth:0;var baseBorderColor=(_dotStyle$borderColor=dotStyle==null?void 0:dotStyle.borderColor)!=null?_dotStyle$borderColor:"transparent";var baseBackgroundColor=(_dotStyle$backgroundC=dotStyle==null?void 0:dotStyle.backgroundColor)!=null?_dotStyle$backgroundC:DEFAULT_DOT_COLOR;var baseOpacity=(_dotStyle$opacity=dotStyle==null?void 0:dotStyle.opacity)!=null?_dotStyle$opacity:1;var activeWidth=(_activeDotStyle$width=activeDotStyle==null?void 0:activeDotStyle.width)!=null?_activeDotStyle$width:baseWidth;var activeHeight=(_activeDotStyle$heigh=activeDotStyle==null?void 0:activeDotStyle.height)!=null?_activeDotStyle$heigh:baseHeight;var activeBorderRadius=(_activeDotStyle$borde=activeDotStyle==null?void 0:activeDotStyle.borderRadius)!=null?_activeDotStyle$borde:baseBorderRadius;var activeBorderWidth=(_activeDotStyle$borde2=activeDotStyle==null?void 0:activeDotStyle.borderWidth)!=null?_activeDotStyle$borde2:baseBorderWidth;var activeBorderColor=(_activeDotStyle$borde3=activeDotStyle==null?void 0:activeDotStyle.borderColor)!=null?_activeDotStyle$borde3:baseBorderColor;var activeBackgroundColor=(_activeDotStyle$backg=activeDotStyle==null?void 0:activeDotStyle.backgroundColor)!=null?_activeDotStyle$backg:DEFAULT_ACTIVE_DOT_COLOR;var activeOpacity=(_activeDotStyle$opaci=activeDotStyle==null?void 0:activeDotStyle.opacity)!=null?_activeDotStyle$opaci:baseOpacity;var _React$useState=_react.default.useState(function(){return count===1||getPaginationSelectedIndex(progress.value,count)===index;}),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),selected=_React$useState2[0],setSelected=_React$useState2[1];(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx4Factory(_ref4){var _worklet_5552776385387_init_data=_ref4._worklet_5552776385387_init_data,count=_ref4.count,getPaginationSelectedIndex=_ref4.getPaginationSelectedIndex,progress=_ref4.progress,index=_ref4.index;var _e=[new global.Error(),-5,-27];var PaginationItemTsx4=function PaginationItemTsx4(){return count===1||getPaginationSelectedIndex(progress.value,count)===index;};PaginationItemTsx4.__closure={count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index};PaginationItemTsx4.__workletHash=5552776385387;PaginationItemTsx4.__pluginVersion="0.5.2";PaginationItemTsx4.__initData=_worklet_5552776385387_init_data;PaginationItemTsx4.__stackDetails=_e;return PaginationItemTsx4;}({_worklet_5552776385387_init_data:_worklet_5552776385387_init_data,count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index}),function PaginationItemTsx5Factory(_ref5){var _worklet_13637724198876_init_data=_ref5._worklet_13637724198876_init_data,scheduleOnRN=_ref5.scheduleOnRN,setSelected=_ref5.setSelected;var _e=[new global.Error(),-3,-27];var PaginationItemTsx5=function PaginationItemTsx5(nextSelected,previousSelected){if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}};PaginationItemTsx5.__closure={scheduleOnRN:scheduleOnRN,setSelected:setSelected};PaginationItemTsx5.__workletHash=13637724198876;PaginationItemTsx5.__pluginVersion="0.5.2";PaginationItemTsx5.__initData=_worklet_13637724198876_init_data;PaginationItemTsx5.__stackDetails=_e;return PaginationItemTsx5;}({_worklet_13637724198876_init_data:_worklet_13637724198876_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setSelected:setSelected}),[count,index,progress]);var animatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx6Factory(_ref6){var _worklet_14140717509892_init_data=_ref6._worklet_14140717509892_init_data,getPaginationDotDistance=_ref6.getPaginationDotDistance,progress=_ref6.progress,index=_ref6.index,count=_ref6.count,interpolate=_ref6.interpolate,activeWidth=_ref6.activeWidth,baseWidth=_ref6.baseWidth,Extrapolation=_ref6.Extrapolation,activeHeight=_ref6.activeHeight,baseHeight=_ref6.baseHeight,activeBorderRadius=_ref6.activeBorderRadius,baseBorderRadius=_ref6.baseBorderRadius,activeBorderWidth=_ref6.activeBorderWidth,baseBorderWidth=_ref6.baseBorderWidth,interpolateDotColor=_ref6.interpolateDotColor,activeBorderColor=_ref6.activeBorderColor,baseBorderColor=_ref6.baseBorderColor,activeBackgroundColor=_ref6.activeBackgroundColor,baseBackgroundColor=_ref6.baseBackgroundColor,activeOpacity=_ref6.activeOpacity,baseOpacity=_ref6.baseOpacity;var _e=[new global.Error(),-22,-27];var PaginationItemTsx6=function PaginationItemTsx6(){var distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};};PaginationItemTsx6.__closure={getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity};PaginationItemTsx6.__workletHash=14140717509892;PaginationItemTsx6.__pluginVersion="0.5.2";PaginationItemTsx6.__initData=_worklet_14140717509892_init_data;PaginationItemTsx6.__stackDetails=_e;return PaginationItemTsx6;}({_worklet_14140717509892_init_data:_worklet_14140717509892_init_data,getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:_reactNativeReanimated.interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:_reactNativeReanimated.Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity}),[activeBackgroundColor,activeBorderColor,activeBorderRadius,activeBorderWidth,activeHeight,activeOpacity,activeWidth,baseBackgroundColor,baseBorderColor,baseBorderRadius,baseBorderWidth,baseHeight,baseOpacity,baseWidth,count,index,progress]);var reservedStyle={alignItems:"center",height:Math.max(baseHeight,activeHeight),justifyContent:"center",width:Math.max(baseWidth,activeWidth)};var dot=(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:animatedStyle});if(_onPress){return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{accessibilityLabel:label!=null?label:`Slide ${index+1} of ${count}`,accessibilityRole:"button",accessibilityState:{selected:selected},onPress:function onPress(){return _onPress(index);},style:reservedStyle,children:dot});}return(0,_jsxRuntime.jsx)(_reactNative.View,{accessibilityElementsHidden:true,accessible:false,importantForAccessibility:"no-hide-descendants",style:reservedStyle,children:dot});}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=PaginationItem;exports.getPaginationSelectedIndex=exports.getPaginationDotDistance=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _carouselMath=require("../../utils/carousel-math");var _webOnlyDependencies=require("../../utils/web-only-dependencies");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var DEFAULT_DOT_SIZE=10;var DEFAULT_DOT_COLOR="#D1D5DB";var DEFAULT_ACTIVE_DOT_COLOR="#111827";var _worklet_12293713265361_init_data={code:"function getPaginationDotDistance_PaginationItemTsx1(progress,index,count){const{getNearestLoopPosition}=this.__closure;if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationDotDistance_PaginationItemTsx1\",\"progress\",\"index\",\"count\",\"getNearestLoopPosition\",\"__closure\",\"Number\",\"isFinite\",\"Math\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAoBO,SAAAA,2CAAmEA,CAAAC,QAAuB,CAAAC,KAAA,CAAAC,KAAA,QAAAC,sBAAA,OAAAC,SAAA,CAG/F,GAAI,CAACC,MAAM,CAACC,QAAQ,CAACN,QAAQ,CAAC,EAAIE,KAAK,EAAI,CAAC,CAAE,MAAO,EAAC,CACtD,MAAO,CAAAK,IAAI,CAACC,GAAG,CAACL,sBAAsB,CAACF,KAAK,CAAED,QAAQ,CAAEE,KAAK,CAAC,CAAGF,QAAQ,CAAC,CAC5E\",\"ignoreList\":[]}"};var getPaginationDotDistance=exports.getPaginationDotDistance=function getPaginationDotDistance_PaginationItemTsx1Factory(_ref){var _worklet_12293713265361_init_data=_ref._worklet_12293713265361_init_data,getNearestLoopPosition=_ref.getNearestLoopPosition;var _e=[new global.Error(),-2,-27];var getPaginationDotDistance=function getPaginationDotDistance(progress,index,count){if(!Number.isFinite(progress)||count<=0)return 0;return Math.abs(getNearestLoopPosition(index,progress,count)-progress);};getPaginationDotDistance.__closure={getNearestLoopPosition:getNearestLoopPosition};getPaginationDotDistance.__workletHash=12293713265361;getPaginationDotDistance.__pluginVersion="0.5.2";getPaginationDotDistance.__initData=_worklet_12293713265361_init_data;getPaginationDotDistance.__stackDetails=_e;return getPaginationDotDistance;}({_worklet_12293713265361_init_data:_worklet_12293713265361_init_data,getNearestLoopPosition:_carouselMath.getNearestLoopPosition});var _worklet_8662050186952_init_data={code:"function getPaginationSelectedIndex_PaginationItemTsx2(progress,count){const{getSettledRawIndex}=this.__closure;return getSettledRawIndex(progress,count);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"getPaginationSelectedIndex_PaginationItemTsx2\",\"progress\",\"count\",\"getSettledRawIndex\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AA2BO,SAAAA,6CAA6EA,CAAAC,QAAA,CAAAC,KAAA,QAAAC,kBAAA,OAAAC,SAAA,CAGlF,MAAO,CAAAD,kBAAkB,CAACF,QAAQ,CAAEC,KAAK,CAAC,CAC5C\",\"ignoreList\":[]}"};var getPaginationSelectedIndex=exports.getPaginationSelectedIndex=function getPaginationSelectedIndex_PaginationItemTsx2Factory(_ref2){var _worklet_8662050186952_init_data=_ref2._worklet_8662050186952_init_data,getSettledRawIndex=_ref2.getSettledRawIndex;var _e=[new global.Error(),-2,-27];var getPaginationSelectedIndex=function getPaginationSelectedIndex(progress,count){return getSettledRawIndex(progress,count);};getPaginationSelectedIndex.__closure={getSettledRawIndex:getSettledRawIndex};getPaginationSelectedIndex.__workletHash=8662050186952;getPaginationSelectedIndex.__pluginVersion="0.5.2";getPaginationSelectedIndex.__initData=_worklet_8662050186952_init_data;getPaginationSelectedIndex.__stackDetails=_e;return getPaginationSelectedIndex;}({_worklet_8662050186952_init_data:_worklet_8662050186952_init_data,getSettledRawIndex:_carouselMath.getSettledRawIndex});var _worklet_15643276008008_init_data={code:"function interpolateDotColor_PaginationItemTsx3(distance,active,inactive){const{interpolateColor}=this.__closure;if(typeof active!==\"string\"||typeof inactive!==\"string\"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"interpolateDotColor_PaginationItemTsx3\",\"distance\",\"active\",\"inactive\",\"interpolateColor\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAiCA,SAAAA,sCAEoBA,CAClBC,QACD,CAAaC,MAAA,CAAAC,QAAA,QAAAC,gBAAA,OAAAC,SAAA,CAGZ,GAAI,MAAO,CAAAH,MAAM,GAAK,QAAQ,EAAI,MAAO,CAAAC,QAAQ,GAAK,QAAQ,CAAE,CAC9D,MAAO,CAAAF,QAAQ,CAAG,GAAG,CAAGC,MAAM,CAAGC,QAAQ,CAC3C,CAEA,MAAO,CAAAC,gBAAgB,CAACH,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACC,MAAM,CAAEC,QAAQ,CAAC,CAAC,CAC/D\",\"ignoreList\":[]}"};var interpolateDotColor=function interpolateDotColor_PaginationItemTsx3Factory(_ref3){var _worklet_15643276008008_init_data=_ref3._worklet_15643276008008_init_data,interpolateColor=_ref3.interpolateColor;var _e=[new global.Error(),-2,-27];var interpolateDotColor=function interpolateDotColor(distance,active,inactive){if(typeof active!=="string"||typeof inactive!=="string"){return distance<0.5?active:inactive;}return interpolateColor(distance,[0,1],[active,inactive]);};interpolateDotColor.__closure={interpolateColor:interpolateColor};interpolateDotColor.__workletHash=15643276008008;interpolateDotColor.__pluginVersion="0.5.2";interpolateDotColor.__initData=_worklet_15643276008008_init_data;interpolateDotColor.__stackDetails=_e;return interpolateDotColor;}({_worklet_15643276008008_init_data:_worklet_15643276008008_init_data,interpolateColor:_reactNativeReanimated.interpolateColor});var _worklet_5552776385387_init_data={code:"function PaginationItemTsx4(){const{count,getPaginationSelectedIndex,progress,index}=this.__closure;return count===1||getPaginationSelectedIndex(progress.value,count)===index;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx4\",\"count\",\"getPaginationSelectedIndex\",\"progress\",\"index\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAmFI,SAAAA,mBAAA,QAAAC,KAAA,CAAAC,0BAAA,CAAAC,QAAA,CAAAC,KAAA,OAAAC,SAAA,OAAM,CAAAJ,KAAK,GAAM,GAAIC,0BAA2B,CAAAC,QAAS,CAAAG,KAAK,CAAEL,KAAM,IAAKG,KAAA\",\"ignoreList\":[]}"};var _worklet_13637724198876_init_data={code:"function PaginationItemTsx5(nextSelected,previousSelected){const{scheduleOnRN,setSelected}=this.__closure;if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx5\",\"nextSelected\",\"previousSelected\",\"scheduleOnRN\",\"setSelected\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\"],\"mappings\":\"AAoFI,QAAC,CAAAA,kBAAcA,CAAAC,YAAA,CAAgBC,gBAAK,QAAAC,YAAA,CAAAC,WAAA,OAAAC,SAAA,CAClC,GAAIJ,YAAY,GAAKC,gBAAgB,CAAE,CACrCC,YAAY,CAACC,WAAW,CAAEH,YAAY,CAAC,CACzC,CACF\",\"ignoreList\":[]}"};var _worklet_14140717509892_init_data={code:"function PaginationItemTsx6(){const{getPaginationDotDistance,progress,index,count,interpolate,activeWidth,baseWidth,Extrapolation,activeHeight,baseHeight,activeBorderRadius,baseBorderRadius,activeBorderWidth,baseBorderWidth,interpolateDotColor,activeBorderColor,baseBorderColor,activeBackgroundColor,baseBackgroundColor,activeOpacity,baseOpacity}=this.__closure;const distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx6\",\"getPaginationDotDistance\",\"progress\",\"index\",\"count\",\"interpolate\",\"activeWidth\",\"baseWidth\",\"Extrapolation\",\"activeHeight\",\"baseHeight\",\"activeBorderRadius\",\"baseBorderRadius\",\"activeBorderWidth\",\"baseBorderWidth\",\"interpolateDotColor\",\"activeBorderColor\",\"baseBorderColor\",\"activeBackgroundColor\",\"baseBackgroundColor\",\"activeOpacity\",\"baseOpacity\",\"__closure\",\"distance\",\"Math\",\"min\",\"value\",\"width\",\"CLAMP\",\"height\",\"borderRadius\",\"borderWidth\",\"borderColor\",\"backgroundColor\",\"opacity\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/PaginationItem.tsx\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qBAAqB,CAAEC,mBAAmB,CAAC,CAC1Fe,OAAO,CAAE7B,WAAW,CAACkB,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACH,aAAa,CAAEC,WAAW,CAAC,CAAEb,aAAa,CAACoB,KAAK,CAC1F,CAAC,CACH\",\"ignoreList\":[]}"};function PaginationItem(props){var _dotStyle$width,_dotStyle$height,_dotStyle$borderRadiu,_dotStyle$borderWidth,_dotStyle$borderColor,_dotStyle$backgroundC,_dotStyle$opacity,_activeDotStyle$width,_activeDotStyle$heigh,_activeDotStyle$borde,_activeDotStyle$borde2,_activeDotStyle$borde3,_activeDotStyle$backg,_activeDotStyle$opaci;var activeDotStyle=props.activeDotStyle,count=props.count,dotStyle=props.dotStyle,index=props.index,label=props.label,_onPress=props.onPress,progress=props.progress;var baseWidth=(_dotStyle$width=dotStyle==null?void 0:dotStyle.width)!=null?_dotStyle$width:DEFAULT_DOT_SIZE;var baseHeight=(_dotStyle$height=dotStyle==null?void 0:dotStyle.height)!=null?_dotStyle$height:DEFAULT_DOT_SIZE;var baseBorderRadius=(_dotStyle$borderRadiu=dotStyle==null?void 0:dotStyle.borderRadius)!=null?_dotStyle$borderRadiu:Math.min(baseWidth,baseHeight)/2;var baseBorderWidth=(_dotStyle$borderWidth=dotStyle==null?void 0:dotStyle.borderWidth)!=null?_dotStyle$borderWidth:0;var baseBorderColor=(_dotStyle$borderColor=dotStyle==null?void 0:dotStyle.borderColor)!=null?_dotStyle$borderColor:"transparent";var baseBackgroundColor=(_dotStyle$backgroundC=dotStyle==null?void 0:dotStyle.backgroundColor)!=null?_dotStyle$backgroundC:DEFAULT_DOT_COLOR;var baseOpacity=(_dotStyle$opacity=dotStyle==null?void 0:dotStyle.opacity)!=null?_dotStyle$opacity:1;var activeWidth=(_activeDotStyle$width=activeDotStyle==null?void 0:activeDotStyle.width)!=null?_activeDotStyle$width:baseWidth;var activeHeight=(_activeDotStyle$heigh=activeDotStyle==null?void 0:activeDotStyle.height)!=null?_activeDotStyle$heigh:baseHeight;var activeBorderRadius=(_activeDotStyle$borde=activeDotStyle==null?void 0:activeDotStyle.borderRadius)!=null?_activeDotStyle$borde:baseBorderRadius;var activeBorderWidth=(_activeDotStyle$borde2=activeDotStyle==null?void 0:activeDotStyle.borderWidth)!=null?_activeDotStyle$borde2:baseBorderWidth;var activeBorderColor=(_activeDotStyle$borde3=activeDotStyle==null?void 0:activeDotStyle.borderColor)!=null?_activeDotStyle$borde3:baseBorderColor;var activeBackgroundColor=(_activeDotStyle$backg=activeDotStyle==null?void 0:activeDotStyle.backgroundColor)!=null?_activeDotStyle$backg:DEFAULT_ACTIVE_DOT_COLOR;var activeOpacity=(_activeDotStyle$opaci=activeDotStyle==null?void 0:activeDotStyle.opacity)!=null?_activeDotStyle$opaci:baseOpacity;var _React$useState=_react.default.useState(function(){return count===1||getPaginationSelectedIndex(progress.value,count)===index;}),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),selected=_React$useState2[0],setSelected=_React$useState2[1];(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx4Factory(_ref4){var _worklet_5552776385387_init_data=_ref4._worklet_5552776385387_init_data,count=_ref4.count,getPaginationSelectedIndex=_ref4.getPaginationSelectedIndex,progress=_ref4.progress,index=_ref4.index;var _e=[new global.Error(),-5,-27];var PaginationItemTsx4=function PaginationItemTsx4(){return count===1||getPaginationSelectedIndex(progress.value,count)===index;};PaginationItemTsx4.__closure={count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index};PaginationItemTsx4.__workletHash=5552776385387;PaginationItemTsx4.__pluginVersion="0.5.2";PaginationItemTsx4.__initData=_worklet_5552776385387_init_data;PaginationItemTsx4.__stackDetails=_e;return PaginationItemTsx4;}({_worklet_5552776385387_init_data:_worklet_5552776385387_init_data,count:count,getPaginationSelectedIndex:getPaginationSelectedIndex,progress:progress,index:index}),function PaginationItemTsx5Factory(_ref5){var _worklet_13637724198876_init_data=_ref5._worklet_13637724198876_init_data,scheduleOnRN=_ref5.scheduleOnRN,setSelected=_ref5.setSelected;var _e=[new global.Error(),-3,-27];var PaginationItemTsx5=function PaginationItemTsx5(nextSelected,previousSelected){if(nextSelected!==previousSelected){scheduleOnRN(setSelected,nextSelected);}};PaginationItemTsx5.__closure={scheduleOnRN:scheduleOnRN,setSelected:setSelected};PaginationItemTsx5.__workletHash=13637724198876;PaginationItemTsx5.__pluginVersion="0.5.2";PaginationItemTsx5.__initData=_worklet_13637724198876_init_data;PaginationItemTsx5.__stackDetails=_e;return PaginationItemTsx5;}({_worklet_13637724198876_init_data:_worklet_13637724198876_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setSelected:setSelected}),(0,_webOnlyDependencies.webOnlyDependencies)([count,index,progress]));var animatedStyleDependencies=(0,_webOnlyDependencies.webOnlyDependencies)([activeBackgroundColor,activeBorderColor,activeBorderRadius,activeBorderWidth,activeHeight,activeOpacity,activeWidth,baseBackgroundColor,baseBorderColor,baseBorderRadius,baseBorderWidth,baseHeight,baseOpacity,baseWidth,count,index,progress]);var animatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx6Factory(_ref6){var _worklet_14140717509892_init_data=_ref6._worklet_14140717509892_init_data,getPaginationDotDistance=_ref6.getPaginationDotDistance,progress=_ref6.progress,index=_ref6.index,count=_ref6.count,interpolate=_ref6.interpolate,activeWidth=_ref6.activeWidth,baseWidth=_ref6.baseWidth,Extrapolation=_ref6.Extrapolation,activeHeight=_ref6.activeHeight,baseHeight=_ref6.baseHeight,activeBorderRadius=_ref6.activeBorderRadius,baseBorderRadius=_ref6.baseBorderRadius,activeBorderWidth=_ref6.activeBorderWidth,baseBorderWidth=_ref6.baseBorderWidth,interpolateDotColor=_ref6.interpolateDotColor,activeBorderColor=_ref6.activeBorderColor,baseBorderColor=_ref6.baseBorderColor,activeBackgroundColor=_ref6.activeBackgroundColor,baseBackgroundColor=_ref6.baseBackgroundColor,activeOpacity=_ref6.activeOpacity,baseOpacity=_ref6.baseOpacity;var _e=[new global.Error(),-22,-27];var PaginationItemTsx6=function PaginationItemTsx6(){var distance=Math.min(1,getPaginationDotDistance(progress.value,index,count));return{width:interpolate(distance,[0,1],[activeWidth,baseWidth],Extrapolation.CLAMP),height:interpolate(distance,[0,1],[activeHeight,baseHeight],Extrapolation.CLAMP),borderRadius:interpolate(distance,[0,1],[activeBorderRadius,baseBorderRadius],Extrapolation.CLAMP),borderWidth:interpolate(distance,[0,1],[activeBorderWidth,baseBorderWidth],Extrapolation.CLAMP),borderColor:interpolateDotColor(distance,activeBorderColor,baseBorderColor),backgroundColor:interpolateDotColor(distance,activeBackgroundColor,baseBackgroundColor),opacity:interpolate(distance,[0,1],[activeOpacity,baseOpacity],Extrapolation.CLAMP)};};PaginationItemTsx6.__closure={getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity};PaginationItemTsx6.__workletHash=14140717509892;PaginationItemTsx6.__pluginVersion="0.5.2";PaginationItemTsx6.__initData=_worklet_14140717509892_init_data;PaginationItemTsx6.__stackDetails=_e;return PaginationItemTsx6;}({_worklet_14140717509892_init_data:_worklet_14140717509892_init_data,getPaginationDotDistance:getPaginationDotDistance,progress:progress,index:index,count:count,interpolate:_reactNativeReanimated.interpolate,activeWidth:activeWidth,baseWidth:baseWidth,Extrapolation:_reactNativeReanimated.Extrapolation,activeHeight:activeHeight,baseHeight:baseHeight,activeBorderRadius:activeBorderRadius,baseBorderRadius:baseBorderRadius,activeBorderWidth:activeBorderWidth,baseBorderWidth:baseBorderWidth,interpolateDotColor:interpolateDotColor,activeBorderColor:activeBorderColor,baseBorderColor:baseBorderColor,activeBackgroundColor:activeBackgroundColor,baseBackgroundColor:baseBackgroundColor,activeOpacity:activeOpacity,baseOpacity:baseOpacity}),animatedStyleDependencies);var reservedStyle={alignItems:"center",height:Math.max(baseHeight,activeHeight),justifyContent:"center",width:Math.max(baseWidth,activeWidth)};var dot=(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:animatedStyle});if(_onPress){return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{accessibilityLabel:label!=null?label:`Slide ${index+1} of ${count}`,accessibilityRole:"button",accessibilityState:{selected:selected},onPress:function onPress(){return _onPress(index);},style:reservedStyle,children:dot});}return(0,_jsxRuntime.jsx)(_reactNative.View,{accessibilityElementsHidden:true,accessible:false,importantForAccessibility:"no-hide-descendants",style:reservedStyle,children:dot});}
2
2
  //# sourceMappingURL=PaginationItem.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeWorklets","_carouselMath","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_DOT_SIZE","DEFAULT_DOT_COLOR","DEFAULT_ACTIVE_DOT_COLOR","_worklet_12293713265361_init_data","code","location","sourceMap","getPaginationDotDistance","exports","getPaginationDotDistance_PaginationItemTsx1Factory","_ref","getNearestLoopPosition","_e","global","Error","progress","index","count","Number","isFinite","Math","abs","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_8662050186952_init_data","getPaginationSelectedIndex","getPaginationSelectedIndex_PaginationItemTsx2Factory","_ref2","getSettledRawIndex","_worklet_15643276008008_init_data","interpolateDotColor","interpolateDotColor_PaginationItemTsx3Factory","_ref3","interpolateColor","distance","active","inactive","_worklet_5552776385387_init_data","_worklet_13637724198876_init_data","_worklet_14140717509892_init_data","PaginationItem","props","_dotStyle$width","_dotStyle$height","_dotStyle$borderRadiu","_dotStyle$borderWidth","_dotStyle$borderColor","_dotStyle$backgroundC","_dotStyle$opacity","_activeDotStyle$width","_activeDotStyle$heigh","_activeDotStyle$borde","_activeDotStyle$borde2","_activeDotStyle$borde3","_activeDotStyle$backg","_activeDotStyle$opaci","activeDotStyle","dotStyle","label","onPress","baseWidth","width","baseHeight","height","baseBorderRadius","borderRadius","min","baseBorderWidth","borderWidth","baseBorderColor","borderColor","baseBackgroundColor","backgroundColor","baseOpacity","opacity","activeWidth","activeHeight","activeBorderRadius","activeBorderWidth","activeBorderColor","activeBackgroundColor","activeOpacity","_React$useState","React","useState","value","_React$useState2","_slicedToArray2","selected","setSelected","useAnimatedReaction","PaginationItemTsx4Factory","_ref4","PaginationItemTsx4","PaginationItemTsx5Factory","_ref5","scheduleOnRN","PaginationItemTsx5","nextSelected","previousSelected","animatedStyle","useAnimatedStyle","PaginationItemTsx6Factory","_ref6","interpolate","Extrapolation","PaginationItemTsx6","CLAMP","reservedStyle","alignItems","max","justifyContent","dot","jsx","View","style","Pressable","accessibilityLabel","accessibilityRole","accessibilityState","children","accessibilityElementsHidden","accessible","importantForAccessibility"],"sourceRoot":"../../../../src","sources":["components/Pagination/PaginationItem.tsx"],"mappings":"yVAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,sBAAA,CAAAC,uBAAA,CAAAH,OAAA,6BAOA,IAAAI,oBAAA,CAAAJ,OAAA,0BAGA,IAAAK,aAAA,CAAAL,OAAA,8BAAuF,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,YAAA,6IAAAJ,wBAAAK,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAP,uBAAA,UAAAA,wBAAAK,CAAA,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E,CACjC7B,OAAO,CAAE,QAAT,CAAAA,OAAOA,CAAA,QAAQ,CAAAA,QAAO,CAAC9C,KAAK,CAAC,EAAC,CAC9BsG,KAAK,CAAEP,aAAc,CAAAY,QAAA,CAEpBR,GAAG,CACK,CAAC,CAEhB,CAEA,MACE,GAAAzI,WAAA,CAAA0I,GAAA,EAAC/I,YAAA,CAAAgJ,IAAI,EACHO,2BAA2B,MAC3BC,UAAU,CAAE,KAAM,CAClBC,yBAAyB,CAAC,qBAAqB,CAC/CR,KAAK,CAAEP,aAAc,CAAAY,QAAA,CAEpBR,GAAG,CACA,CAAC,CAEX","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeWorklets","_carouselMath","_webOnlyDependencies","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_DOT_SIZE","DEFAULT_DOT_COLOR","DEFAULT_ACTIVE_DOT_COLOR","_worklet_12293713265361_init_data","code","location","sourceMap","getPaginationDotDistance","exports","getPaginationDotDistance_PaginationItemTsx1Factory","_ref","getNearestLoopPosition","_e","global","Error","progress","index","count","Number","isFinite","Math","abs","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_8662050186952_init_data","getPaginationSelectedIndex","getPaginationSelectedIndex_PaginationItemTsx2Factory","_ref2","getSettledRawIndex","_worklet_15643276008008_init_data","interpolateDotColor","interpolateDotColor_PaginationItemTsx3Factory","_ref3","interpolateColor","distance","active","inactive","_worklet_5552776385387_init_data","_worklet_13637724198876_init_data","_worklet_14140717509892_init_data","PaginationItem","props","_dotStyle$width","_dotStyle$height","_dotStyle$borderRadiu","_dotStyle$borderWidth","_dotStyle$borderColor","_dotStyle$backgroundC","_dotStyle$opacity","_activeDotStyle$width","_activeDotStyle$heigh","_activeDotStyle$borde","_activeDotStyle$borde2","_activeDotStyle$borde3","_activeDotStyle$backg","_activeDotStyle$opaci","activeDotStyle","dotStyle","label","onPress","baseWidth","width","baseHeight","height","baseBorderRadius","borderRadius","min","baseBorderWidth","borderWidth","baseBorderColor","borderColor","baseBackgroundColor","backgroundColor","baseOpacity","opacity","activeWidth","activeHeight","activeBorderRadius","activeBorderWidth","activeBorderColor","activeBackgroundColor","activeOpacity","_React$useState","React","useState","value","_React$useState2","_slicedToArray2","selected","setSelected","useAnimatedReaction","PaginationItemTsx4Factory","_ref4","PaginationItemTsx4","PaginationItemTsx5Factory","_ref5","scheduleOnRN","PaginationItemTsx5","nextSelected","previousSelected","webOnlyDependencies","animatedStyleDependencies","animatedStyle","useAnimatedStyle","PaginationItemTsx6Factory","_ref6","interpolate","Extrapolation","PaginationItemTsx6","CLAMP","reservedStyle","alignItems","max","justifyContent","dot","jsx","View","style","Pressable","accessibilityLabel","accessibilityRole","accessibilityState","children","accessibilityElementsHidden","accessible","importantForAccessibility"],"sourceRoot":"../../../../src","sources":["components/Pagination/PaginationItem.tsx"],"mappings":"yVAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,sBAAA,CAAAC,uBAAA,CAAAH,OAAA,6BAOA,IAAAI,oBAAA,CAAAJ,OAAA,0BAGA,IAAAK,aAAA,CAAAL,OAAA,8BACA,IAAAM,oBAAA,CAAAN,OAAA,sCAAwE,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,6IAAAL,wBAAAM,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAR,uBAAA,UAAAA,wBAAAM,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,C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Q,CAAAA,QAAO,CAAC9C,KAAK,CAAC,EAAC,CAC9BwG,KAAK,CAAEP,aAAc,CAAAY,QAAA,CAEpBR,GAAG,CACK,CAAC,CAEhB,CAEA,MACE,GAAA3I,WAAA,CAAA4I,GAAA,EAAClJ,YAAA,CAAAmJ,IAAI,EACHO,2BAA2B,MAC3BC,UAAU,CAAE,KAAM,CAClBC,yBAAyB,CAAC,qBAAqB,CAC/CR,KAAK,CAAEP,aAAc,CAAAY,QAAA,CAEpBR,GAAG,CACA,CAAC,CAEX","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollViewGesture=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _usePanGestureProxy=require("../hooks/usePanGestureProxy");var _store=require("../store");var _carouselDirection=require("../utils/carousel-direction");var _computeGestureTranslation=require("../utils/compute-gesture-translation");var _dealWithAnimation=require("../utils/deal-with-animation");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_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\"&&currentSize>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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C3BwB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDb,UACF,CAAC,CACH,CAAC,IAAM,CACL,KAAM,CAAA+B,SAAS,CAAGV,IAAI,CAACW,GAAG,CAACxB,OAAO,CAAG,CAAC,CAAEa,IAAI,CAACY,GAAG,CAAC,CAAC,CAAEN,IAAI,CAAGJ,MAAM,CAAC,CAAC,CACnEN,gBAAgB,CAAGX,UAAU,CAC3BwB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDb,UACF,CAAC,CACH,CACF,CAEA,GAAIK,QAAQ,GAAK,SAAS,CAAE,CAC1BY,gBAAgB,CAAGX,UAAU,CAACwB,sBAAsB,CAAC,CAACV,QAAQ,CAAGP,WAAW,CAAC,CAAEb,UAAU,CAAC,CAC5F,CAEAE,WAAW,CAACY,KAAK,CAAGG,gBAAgB,CAEpC,QAAS,CAAAa,sBAAsBA,CAAC5B,WAAmB,CAAE,CACnD,GAAI,CAACK,IAAI,EAAI,CAACE,iBAAiB,CAAE,CAC/B,KAAM,CAAAyB,KAAK,CAAGxB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAW,IAAI,CAACW,GAAG,CAAC,CAAC,CAAEX,IAAI,CAACY,GAAG,CAAC,CAACC,KAAK,CAAEhC,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB,CACF\",\"ignoreList\":[]}"};var _worklet_7969934388090_init_data={code:"function ScrollViewGestureTsx7(isFinished){const{onFinished,scheduleOnRN}=this.__closure;if(isFinished&&onFinished)scheduleOnRN(onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx7\",\"isFinished\",\"onFinished\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA8HmF,SAAAA,qBAAeA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAC1F,GAAIH,UAAU,EAAIC,UAAU,CAAEC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_4071854479665_init_data={code:"function ScrollViewGestureTsx8(isFinished){const{touching,onScrollEnd,scheduleOnRN}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx8\",\"isFinished\",\"touching\",\"onScrollEnd\",\"scheduleOnRN\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6LI,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIJ,UAAU,CAAE,CACdC,QAAQ,CAACI,KAAK,CAAG,KAAK,CACtBH,WAAW,EAAIC,YAAY,CAACD,WAAW,CAAC,CAC1C,CACF\",\"ignoreList\":[]}"};var _worklet_3052508857023_init_data={code:"function ScrollViewGestureTsx9(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx9\",\"touching\",\"translation\",\"withDecay\",\"scrollEndVelocity\",\"onFinish\",\"__closure\",\"value\",\"velocity\",\"isFinished\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAuMwC,SAAAA,qBAAMA,CAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAE1CL,QAAQ,CAACM,KAAK,CAAG,IAAI,CACrBL,WAAW,CAACK,KAAK,CAAGJ,SAAS,CAAC,CAAEK,QAAQ,CAAEJ,iBAAiB,CAACG,KAAM,CAAC,CAAG,SAAAE,UAAU,QAC9E,CAAAJ,QAAQ,CAACI,UAAqB,CAChC,GAAC,CACH\",\"ignoreList\":[]}"};var _worklet_4672981921527_init_data={code:"function ScrollViewGestureTsx10(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx10\",\"isFinished\",\"onFinish\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0M0E,SAAAA,sBAAUA,CAAAC,UAAA,QAAAC,QAAA,OAAAC,SAAA,OAC9E,CAAAD,QAAS,CAAAD,UAAqB\",\"ignoreList\":[]}"};var _worklet_10736007228699_init_data={code:"function ScrollViewGestureTsx11(){const{resolvedSize,touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx11\",\"resolvedSize\",\"touching\",\"translation\",\"scrollEndTranslation\",\"activeDecay\",\"loop\",\"withSpring\",\"maxPage\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+M0C,SAAAA,sBAAMA,CAAA,QAAAC,YAAA,CAAAC,QAAA,CAAAC,WAAA,CAAAC,oBAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,OAAA,OAAAC,SAAA,KAAAC,mBAAA,CAI5C,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,OACtB,GAAIT,QAAQ,CAACU,KAAK,CAAE,OAEpB,GAAIT,WAAW,CAACS,KAAK,CAAG,CAAC,CAAE,CACzB,GAAIR,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAE,CACTH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,CAAC,CAAC,CACjC,OACF,CACF,CAEA,GAAIJ,WAAW,CAACS,KAAK,CAAG,EAAE,CAACJ,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAE,CACtD,GAAIP,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAEH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,EAAE,CAACC,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAC,CAC3E,CACF\",\"ignoreList\":[]}"};var _worklet_11956863068497_init_data={code:"function ScrollViewGestureTsx12(){const{translation}=this.__closure;return translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx12\",\"translation\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA4OI,SAAAA,uBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAM,CAAAD,WAAY,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_16893833080014_init_data={code:"function ScrollViewGestureTsx13(){const{snapMode,resetBoundary}=this.__closure;if(snapMode!==\"page\")resetBoundary();}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx13\",\"snapMode\",\"resetBoundary\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6OI,SAAAA,sBAAMA,CAAA,QAAAC,QAAA,CAAAC,aAAA,OAAAC,SAAA,CACJ,GAAIF,QAAQ,GAAK,MAAM,CAAEC,aAAa,CAAC,CAAC,CAC1C\",\"ignoreList\":[]}"};var _worklet_1110467062538_init_data={code:"function ScrollViewGestureTsx14(_){const{resolvedSize,sizeReady,touching,validStart,hasStartedMovement,max,maxPage,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;hasStartedMovement.value=false;max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx14\",\"_\",\"resolvedSize\",\"sizeReady\",\"touching\",\"validStart\",\"hasStartedMovement\",\"max\",\"maxPage\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"panOffset\",\"translation\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAoPI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,kBAAA,CAAAC,GAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,SAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACZ,SAAS,CAACc,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACAZ,QAAQ,CAACa,KAAK,CAAG,IAAI,CACrBZ,UAAU,CAACY,KAAK,CAAG,IAAI,CACvBX,kBAAkB,CAACW,KAAK,CAAG,KAAK,CAEhCV,GAAG,CAACU,KAAK,CAAG,CAACT,OAAO,CAAG,CAAC,EAAIQ,WAAW,CACvC,GAAI,CAACP,IAAI,EAAI,CAACC,iBAAiB,CAAEH,GAAG,CAACU,KAAK,CAAGN,QAAQ,CAAC,CAAC,CAEvDC,SAAS,CAACK,KAAK,CAAGJ,WAAW,CAACI,KAAK,CACrC\",\"ignoreList\":[]}"};var _worklet_4576743285953_init_data={code:"function ScrollViewGestureTsx15(e){const{resolvedSize,sizeReady,panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,toLogicalGestureValue,directionSign,hasStartedMovement,onScrollStart,scheduleOnRN,computeGestureTranslation,loop,overscrollEnabled,max}=this.__closure;var _resolvedSize$value,_overscrollEnabled;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;const physicalPanTranslation=isHorizontal.value?translationX:translationY;const panTranslation=toLogicalGestureValue(physicalPanTranslation,directionSign);if(!hasStartedMovement.value&&panTranslation!==0){hasStartedMovement.value=true;if(onScrollStart)scheduleOnRN(onScrollStart);}translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:(_overscrollEnabled=overscrollEnabled)!==null&&_overscrollEnabled!==void 0?_overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx15\",\"e\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"validStart\",\"cancelAnimation\",\"translation\",\"touching\",\"isHorizontal\",\"toLogicalGestureValue\",\"directionSign\",\"hasStartedMovement\",\"onScrollStart\",\"scheduleOnRN\",\"computeGestureTranslation\",\"loop\",\"overscrollEnabled\",\"max\",\"__closure\",\"_resolvedSize$value\",\"_overscrollEnabled\",\"currentSize\",\"value\",\"undefined\",\"translationX\",\"translationY\",\"physicalPanTranslation\",\"panTranslation\",\"currentTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsRI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,aAAA,CAAAC,kBAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,yBAAA,CA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J\",\"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,sBAA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c,CAAEF,sBAAsB,CAAEZ,WAAW,CAAC,CAElE,GAAI,CAACC,IAAI,CAAER,QAAQ,CAACY,KAAK,CAAG,KAAK,CAEjCd,SAAS,CAACc,KAAK,CAAGC,SAAS,CAC7B\",\"ignoreList\":[]}"};var _worklet_3590054177125_init_data={code:"function ScrollViewGestureTsx17(e){const{isVertical,sizeExplicit,resolvedSize,sizePhase,updateContainerSize}=this.__closure;const measuredWidth=e.nativeEvent.layout.width;const measuredHeight=e.nativeEvent.layout.height;const measuredSize=Math.round((isVertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value;const current=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?\"updating\":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value=\"ready\";}}updateContainerSize({width:measuredWidth,height:measuredHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx17\",\"e\",\"isVertical\",\"sizeExplicit\",\"resolvedSize\",\"sizePhase\",\"updateContainerSize\",\"__closure\",\"measuredWidth\",\"nativeEvent\",\"layout\",\"width\",\"measuredHeight\",\"height\",\"measuredSize\",\"Math\",\"round\",\"_resolvedSize$value\",\"current\",\"value\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAkZI,QAAC,CAAAA,sBAAyBA,CAAAC,CAAA,QAAAC,UAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,SAAA,CAAAC,mBAAA,OAAAC,SAAA,CAGxB,KAAM,CAAAC,aAAa,CAAGP,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAChD,KAAM,CAAAC,cAAc,CAAGX,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACG,MAAM,CAClD,KAAM,CAAAC,YAAY,CAAGC,IAAI,CAACC,KAAK,CAAC,CAACd,UAAU,CAAGU,cAAc,CAAGJ,aAAa,GAAK,CAAC,CAAC,CAEnF,GAAI,CAACL,YAAY,EAAIW,YAAY,CAAG,CAAC,CAAE,KAAAG,mBAAA,CACrC,KAAM,CAAAC,OAAO,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CACvC,GAAIF,IAAI,CAACK,GAAG,CAACF,OAAO,CAAGJ,YAAY,CAAC,CAAG,CAAC,CAAE,CACxCT,SAAS,CAACc,KAAK,CAAGD,OAAO,CAAG,CAAC,CAAG,UAAU,CAAGb,SAAS,CAACc,KAAK,CAC5Df,YAAY,CAACe,KAAK,CAAGL,YAAY,CACjCT,SAAS,CAACc,KAAK,CAAG,OAAO,CAC3B,CACF,CAEAb,mBAAmB,CAAC,CAClBK,KAAK,CAAEH,aAAa,CACpBK,MAAM,CAAED,cACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var IScrollViewGesture=function IScrollViewGesture(props){var _useGlobalState=(0,_store.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=(0,_reactNativeReanimated.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=(0,_reactNativeReanimated.useSharedValue)(0);var panOffset=(0,_reactNativeReanimated.useSharedValue)(undefined);var touching=(0,_reactNativeReanimated.useSharedValue)(false);var validStart=(0,_reactNativeReanimated.useSharedValue)(false);var hasStartedMovement=(0,_reactNativeReanimated.useSharedValue)(false);var scrollEndTranslation=(0,_reactNativeReanimated.useSharedValue)(0);var scrollEndVelocity=(0,_reactNativeReanimated.useSharedValue)(0);var sizeReady=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&currentSize>0;};ScrollViewGestureTsx2.__closure={resolvedSize:resolvedSize,sizePhase:sizePhase};ScrollViewGestureTsx2.__workletHash=1256203969722;ScrollViewGestureTsx2.__pluginVersion="0.5.2";ScrollViewGestureTsx2.__initData=_worklet_1256203969722_init_data;ScrollViewGestureTsx2.__stackDetails=_e;return ScrollViewGestureTsx2;}({_worklet_1256203969722_init_data:_worklet_1256203969722_init_data,resolvedSize:resolvedSize,sizePhase:sizePhase}),[resolvedSize,sizePhase]);var getLimit=_react.default.useCallback(function ScrollViewGestureTsx3Factory(_ref3){var _worklet_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.default.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.dealWithAnimation,animation:animation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[animation]);var endWithSpring=_react.default.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:_reactNativeReanimated.withDecay,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,snapMode:snapMode,withSpring:withSpring,loop:loop,maxPage:maxPage,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapMode,translation]);var onFinish=_react.default.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:_reactNativeWorklets.scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=_react.default.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:_reactNativeReanimated.withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=_react.default.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]);(0,_reactNativeReanimated.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=(0,_react.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=(0,_react.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:_reactNativeReanimated.cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:_carouselDirection.toLogicalGestureValue,directionSign:directionSign,hasStartedMovement:hasStartedMovement,onScrollStart:onScrollStart,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,computeGestureTranslation:_computeGestureTranslation.computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,hasStartedMovement,onScrollStart,translation,validStart,touching,sizeReady,resolvedSize,directionSign]);var onGestureEnd=(0,_react.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:_carouselDirection.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=(0,_usePanGestureProxy.usePanGestureProxy)({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:scrollEnabled}});var onLayout=_react.default.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(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector,{gesture:gesture,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd:onTouchEnd,onTouchCancel:onTouchEnd,onLayout:onLayout,children:props.children})});};var ScrollViewGesture=exports.ScrollViewGesture=IScrollViewGesture;
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollViewGesture=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _usePanGestureProxy=require("../hooks/usePanGestureProxy");var _store=require("../store");var _carouselDirection=require("../utils/carousel-direction");var _computeGestureTranslation=require("../utils/compute-gesture-translation");var _dealWithAnimation=require("../utils/deal-with-animation");var _webOnlyDependencies=require("../utils/web-only-dependencies");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_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\"&&currentSize>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-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAkHI,QACE,CAAAA,sBAAAC,yBACA,CAAAC,sBAEG,CAAAC,UAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,OAA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C,CACxF,CAAC,IAAM,IAAIO,IAAI,CAAE,CACf,KAAM,CAAAyB,SAAS,CAAGJ,IAAI,CAAGJ,MAAM,CAC/BN,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDd,UACF,CAAC,CACH,CAAC,IAAM,CACL,KAAM,CAAAgC,SAAS,CAAGV,IAAI,CAACW,GAAG,CAACzB,OAAO,CAAG,CAAC,CAAEc,IAAI,CAACY,GAAG,CAAC,CAAC,CAAEN,IAAI,CAAGJ,MAAM,CAAC,CAAC,CACnEN,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACC,SAAS,CAAGlB,WAAW,CAAC,CAChDd,UACF,CAAC,CACH,CACF,CAEA,GAAIK,QAAQ,GAAK,SAAS,CAAE,CAC1B,KAAM,CAAA8B,WAAW,CAAG,CAACb,IAAI,CAACC,KAAK,CAAC,CAACP,MAAM,CAAGC,QAAQ,CAAGR,YAAY,EAAIK,WAAW,CAAC,CACjFI,gBAAgB,CAAGZ,UAAU,CAC3ByB,sBAAsB,CAAC,CAACI,WAAW,CAAGrB,WAAW,CAAC,CAClDd,UACF,CAAC,CACH,CAEAE,WAAW,CAACa,KAAK,CAAGG,gBAAgB,CAEpC,QAAS,CAAAa,sBAAsBA,CAAC7B,WAAmB,CAAE,CACnD,GAAI,CAACK,IAAI,EAAI,CAACG,iBAAiB,CAAE,CAC/B,KAAM,CAAA0B,KAAK,CAAGzB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAW,IAAI,CAACW,GAAG,CAAC,CAAC,CAAEX,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\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C,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=(0,_store.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=(0,_reactNativeReanimated.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}),(0,_webOnlyDependencies.webOnlyDependencies)([isVertical]));var max=(0,_reactNativeReanimated.useSharedValue)(0);var panOffset=(0,_reactNativeReanimated.useSharedValue)(undefined);var touching=(0,_reactNativeReanimated.useSharedValue)(false);var validStart=(0,_reactNativeReanimated.useSharedValue)(false);var hasStartedMovement=(0,_reactNativeReanimated.useSharedValue)(false);var scrollEndTranslation=(0,_reactNativeReanimated.useSharedValue)(0);var scrollEndVelocity=(0,_reactNativeReanimated.useSharedValue)(0);var sizeReadyDependencies=(0,_webOnlyDependencies.webOnlyDependencies)([resolvedSize,sizePhase]);var sizeReady=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&currentSize>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.default.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.default.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.dealWithAnimation,animation:animation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[animation]);var endWithSpring=_react.default.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:_reactNativeReanimated.withDecay,scheduleOnRN:_reactNativeWorklets.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.default.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:_reactNativeWorklets.scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=_react.default.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:_reactNativeReanimated.withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=_react.default.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]);(0,_reactNativeReanimated.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}),(0,_webOnlyDependencies.webOnlyDependencies)([resetBoundary,snapMode]));var onGestureStart=(0,_react.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=(0,_react.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:_reactNativeReanimated.cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,toLogicalGestureValue:_carouselDirection.toLogicalGestureValue,directionSign:directionSign,hasStartedMovement:hasStartedMovement,onScrollStart:onScrollStart,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,computeGestureTranslation:_computeGestureTranslation.computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,hasStartedMovement,onScrollStart,translation,validStart,touching,sizeReady,resolvedSize,directionSign]);var onGestureEnd=(0,_react.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:_carouselDirection.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=(0,_usePanGestureProxy.usePanGestureProxy)({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:scrollEnabled}});var onLayout=_react.default.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(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector,{gesture:gesture,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd:onTouchEnd,onTouchCancel:onTouchEnd,onLayout:onLayout,children:props.children})});};var ScrollViewGesture=exports.ScrollViewGesture=IScrollViewGesture;
2
2
  //# sourceMappingURL=ScrollViewGesture.js.map