react-native-reanimated-carousel 5.0.0-beta.6 → 5.0.0-beta.7

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 (44) hide show
  1. package/lib/commonjs/components/CarouselLayout.js +1 -1
  2. package/lib/commonjs/components/CarouselLayout.js.map +1 -1
  3. package/lib/commonjs/components/ItemRenderer.js +1 -1
  4. package/lib/commonjs/components/ItemRenderer.js.map +1 -1
  5. package/lib/commonjs/components/ScrollViewGesture.js +1 -1
  6. package/lib/commonjs/components/ScrollViewGesture.js.map +1 -1
  7. package/lib/commonjs/hooks/useOnProgressChange.js +1 -1
  8. package/lib/commonjs/hooks/useOnProgressChange.js.map +1 -1
  9. package/lib/commonjs/hooks/usePropsErrorBoundary.js +1 -1
  10. package/lib/commonjs/hooks/usePropsErrorBoundary.js.map +1 -1
  11. package/lib/commonjs/hooks/useVisibleRanges.js +1 -1
  12. package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -1
  13. package/lib/module/components/CarouselLayout.js +1 -1
  14. package/lib/module/components/CarouselLayout.js.map +1 -1
  15. package/lib/module/components/ItemRenderer.js +1 -1
  16. package/lib/module/components/ItemRenderer.js.map +1 -1
  17. package/lib/module/components/ScrollViewGesture.js +1 -1
  18. package/lib/module/components/ScrollViewGesture.js.map +1 -1
  19. package/lib/module/hooks/useOnProgressChange.js +1 -1
  20. package/lib/module/hooks/useOnProgressChange.js.map +1 -1
  21. package/lib/module/hooks/usePropsErrorBoundary.js +1 -1
  22. package/lib/module/hooks/usePropsErrorBoundary.js.map +1 -1
  23. package/lib/module/hooks/useVisibleRanges.js +1 -1
  24. package/lib/module/hooks/useVisibleRanges.js.map +1 -1
  25. package/lib/typescript/components/CarouselLayout.d.ts.map +1 -1
  26. package/lib/typescript/components/ItemRenderer.d.ts +1 -0
  27. package/lib/typescript/components/ItemRenderer.d.ts.map +1 -1
  28. package/lib/typescript/components/ScrollViewGesture.d.ts.map +1 -1
  29. package/lib/typescript/hooks/usePropsErrorBoundary.d.ts.map +1 -1
  30. package/lib/typescript/hooks/useVisibleRanges.d.ts +6 -0
  31. package/lib/typescript/hooks/useVisibleRanges.d.ts.map +1 -1
  32. package/lib/typescript/types.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/src/components/CarouselLayout.tsx +1 -0
  35. package/src/components/ItemRenderer.tsx +11 -6
  36. package/src/components/ScrollViewGesture.test.tsx +155 -0
  37. package/src/components/ScrollViewGesture.tsx +8 -11
  38. package/src/components/issue-899-parallax-reverse-loop.test.tsx +131 -0
  39. package/src/hooks/useOnProgressChange.test.tsx +71 -8
  40. package/src/hooks/useOnProgressChange.ts +1 -1
  41. package/src/hooks/usePropsErrorBoundary.test.tsx +57 -0
  42. package/src/hooks/usePropsErrorBoundary.ts +4 -3
  43. package/src/hooks/useVisibleRanges.tsx +80 -54
  44. package/src/types.ts +1 -1
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.resolveCarouselLayoutStyle=exports.CarouselLayout=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=require("react-native-reanimated");var _reactNativeWorklets=require("react-native-worklets");var _useAutoPlay2=require("../hooks/useAutoPlay");var _useCarouselController=require("../hooks/useCarouselController");var _useLayoutConfig=require("../hooks/useLayoutConfig");var _useOnProgressChange=require("../hooks/useOnProgressChange");var _store=require("../store");var _computedWithAutoFillData=require("../utils/computed-with-auto-fill-data");var _ItemRenderer=require("./ItemRenderer");var _ScrollViewGesture=require("./ScrollViewGesture");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["opacity","transform"];var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx";var _worklet_7027612681297_init_data={code:"function resolveCarouselLayoutStyle_CarouselLayoutTsx1(params){const{flattenedStyle:flattenedStyle,vertical:vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight}=params;const{width:width,height:height}=flattenedStyle;const hasLegacyMainAxisSize=vertical?typeof legacyHeight===\"number\"&&legacyHeight>0:typeof legacyWidth===\"number\"&&legacyWidth>0;const shouldUseMeasuredMainAxisSize=sizeExplicit||hasLegacyMainAxisSize;const resolvedMainAxisSize=measuredSize||\"100%\";return{width:width!==null&&width!==void 0?width:vertical?\"100%\":shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:\"100%\",height:height!==null&&height!==void 0?height:vertical?shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:\"100%\":\"100%\"};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"resolveCarouselLayoutStyle_CarouselLayoutTsx1\",\"params\",\"flattenedStyle\",\"vertical\",\"measuredSize\",\"sizeExplicit\",\"legacyWidth\",\"legacyHeight\",\"width\",\"height\",\"hasLegacyMainAxisSize\",\"shouldUseMeasuredMainAxisSize\",\"resolvedMainAxisSize\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAiBO,SAAAA,6CAOJA,CAAAC,MAAA,EAGD,KAAM,CAAEC,cAAc,CAAdA,cAAc,CAAEC,QAAQ,CAARA,QAAQ,CAAEC,YAAY,CAAZA,YAAY,CAAEC,YAAY,CAAZA,YAAY,CAAEC,WAAW,CAAXA,WAAW,CAAEC,YAAA,CAAAA,YAAa,CAAC,CACvFN,MAAM,CACR,KAAM,CAAEO,KAAK,CAALA,KAAK,CAAEC,MAAA,CAAAA,MAAO,CAAC,CAAGP,cAAc,CACxC,KAAM,CAAAQ,qBAAqB,CAAGP,QAAQ,CAClC,MAAO,CAAAI,YAAY,GAAK,QAAQ,EAAIA,YAAY,CAAG,CAAC,CACpD,MAAO,CAAAD,WAAW,GAAK,QAAQ,EAAIA,WAAW,CAAG,CAAC,CACtD,KAAM,CAAAK,6BAA6B,CAAGN,YAAY,EAAIK,qBAAqB,CAC3E,KAAM,CAAAE,oBAAoB,CAAGR,YAAY,EAAI,MAAM,CAEnD,MAAO,CACLI,KAAK,CACHA,KAAK,SAALA,KAAK,UAALA,KAAK,CAAKL,QAAQ,CAAG,MAAM,CAAGQ,6BAA6B,CAAGC,oBAAoB,CAAG,MAAO,CAC9FH,MAAM,CACJA,MAAM,SAANA,MAAM,UAANA,MAAM,CACLN,QAAQ,CAAIQ,6BAA6B,CAAGC,oBAAoB,CAAG,MAAM,CAAI,MAClF,CAAC,CACH\",\"ignoreList\":[]}"};var resolveCarouselLayoutStyle=exports.resolveCarouselLayoutStyle=function resolveCarouselLayoutStyle_CarouselLayoutTsx1Factory(_ref){var _worklet_7027612681297_init_data=_ref._worklet_7027612681297_init_data;var _e=[new global.Error(),1,-27];var resolveCarouselLayoutStyle=function resolveCarouselLayoutStyle(params){var flattenedStyle=params.flattenedStyle,vertical=params.vertical,measuredSize=params.measuredSize,sizeExplicit=params.sizeExplicit,legacyWidth=params.legacyWidth,legacyHeight=params.legacyHeight;var width=flattenedStyle.width,height=flattenedStyle.height;var hasLegacyMainAxisSize=vertical?typeof legacyHeight==="number"&&legacyHeight>0:typeof legacyWidth==="number"&&legacyWidth>0;var shouldUseMeasuredMainAxisSize=sizeExplicit||hasLegacyMainAxisSize;var resolvedMainAxisSize=measuredSize||"100%";return{width:width!=null?width:vertical?"100%":shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:"100%",height:height!=null?height:vertical?shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:"100%":"100%"};};resolveCarouselLayoutStyle.__closure={};resolveCarouselLayoutStyle.__workletHash=7027612681297;resolveCarouselLayoutStyle.__pluginVersion="0.5.2";resolveCarouselLayoutStyle.__initData=_worklet_7027612681297_init_data;resolveCarouselLayoutStyle.__stackDetails=_e;return resolveCarouselLayoutStyle;}({_worklet_7027612681297_init_data:_worklet_7027612681297_init_data});var _worklet_10669107750071_init_data={code:"function CarouselLayoutTsx2(){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/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx2\",\"resolvedSize\",\"sizePhase\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAmFsC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,mBAAA,CACxC,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_4752441846675_init_data={code:"function CarouselLayoutTsx3(){const{resolvedSize,dataLength,handlerOffset,loop}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return 0;const totalSize=currentSize*dataLength;const value=handlerOffset.value;if(!loop||totalSize===0){return value;}const x=value%totalSize;return Number.isNaN(x)?0:x;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx3\",\"resolvedSize\",\"dataLength\",\"handlerOffset\",\"loop\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"totalSize\",\"x\",\"Number\",\"isNaN\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAwFkC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,KAAAC,mBAAA,CACpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGL,YAAY,CAACO,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,MAAO,EAAC,CAE9B,KAAM,CAAAE,SAAS,CAAGF,WAAW,CAAGL,UAAU,CAC1C,KAAM,CAAAM,KAAK,CAAGL,aAAa,CAACK,KAAK,CACjC,GAAI,CAACJ,IAAI,EAAIK,SAAS,GAAK,CAAC,CAAE,CAC5B,MAAO,CAAAD,KAAK,CACd,CAEA,KAAM,CAAAE,CAAC,CAAGF,KAAK,CAAGC,SAAS,CAC3B,MAAO,CAAAE,MAAM,CAACC,KAAK,CAACF,CAAC,CAAC,CAAG,CAAC,CAAGA,CAAC,CAChC\",\"ignoreList\":[]}"};var _worklet_11542262309628_init_data={code:"function CarouselLayoutTsx4(){const{isSizeReady}=this.__closure;return{ready:isSizeReady.value};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx4\",\"isSizeReady\",\"__closure\",\"ready\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AA+JI,SAAAA,mBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAO,CAAEC,KAAK,CAAEF,WAAW,CAACG,KAAM,CAAC\",\"ignoreList\":[]}"};var _worklet_2376393957286_init_data={code:"function CarouselLayoutTsx5(state,previous){const{autoPlay,scheduleOnRN,triggerAutoPlay,pauseAutoPlay}=this.__closure;if(!autoPlay)return;if(state.ready===(previous===null||previous===void 0?void 0:previous.ready))return;if(state.ready)scheduleOnRN(triggerAutoPlay);else scheduleOnRN(pauseAutoPlay);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx5\",\"state\",\"previous\",\"autoPlay\",\"scheduleOnRN\",\"triggerAutoPlay\",\"pauseAutoPlay\",\"__closure\",\"ready\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAgKI,QAAC,CAAAA,kBAAeA,CAAKC,KAAA,CAAAC,QAAA,QAAAC,QAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,aAAA,OAAAC,SAAA,CACnB,GAAI,CAACJ,QAAQ,CAAE,OACf,GAAIF,KAAK,CAACO,KAAK,IAAKN,QAAQ,SAARA,QAAQ,iBAARA,QAAQ,CAAEM,KAAK,EAAE,OAErC,GAAIP,KAAK,CAACO,KAAK,CAAEJ,YAAY,CAACC,eAAe,CAAC,CAAC,IAC1C,CAAAD,YAAY,CAACE,aAAa,CAAC,CAClC\",\"ignoreList\":[]}"};var _worklet_4980459357759_init_data={code:"function CarouselLayoutTsx6(){const{resolvedSize,resolveCarouselLayoutStyle,flattenedStyle,vertical,sizeExplicit,legacyWidth,legacyHeight,isSizeReady}=this.__closure;var _resolvedSize$value;const measuredSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;const{width:width,height:height}=resolveCarouselLayoutStyle({flattenedStyle:flattenedStyle,vertical:!!vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight});return{width:width,height:height,opacity:isSizeReady.value?1:0};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx6\",\"resolvedSize\",\"resolveCarouselLayoutStyle\",\"flattenedStyle\",\"vertical\",\"sizeExplicit\",\"legacyWidth\",\"legacyHeight\",\"isSizeReady\",\"__closure\",\"_resolvedSize$value\",\"measuredSize\",\"value\",\"width\",\"height\",\"opacity\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AA4LuC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,0BAAA,CAAAC,cAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CACzC,KAAM,CAAAC,YAAY,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC5C,KAAM,CAAEG,KAAK,CAALA,KAAK,CAAEC,MAAA,CAAAA,MAAO,CAAC,CAAGZ,0BAA0B,CAAC,CACnDC,cAAc,CAAdA,cAAc,CACdC,QAAQ,CAAE,CAAC,CAACA,QAAQ,CACpBO,YAAY,CAAZA,YAAY,CACZN,YAAY,CAAZA,YAAY,CACZC,WAAW,CAAXA,WAAW,CACXC,YAAA,CAAAA,YACF,CAAC,CAAC,CAEF,MAAO,CACLM,KAAK,CAALA,KAAK,CACLC,MAAM,CAANA,MAAM,CACNC,OAAO,CAAEP,WAAW,CAACI,KAAK,CAAG,CAAC,CAAG,CACnC,CAAC,CACH\",\"ignoreList\":[]}"};var CarouselLayout=exports.CarouselLayout=_react.default.forwardRef(function(_props,ref){var _useGlobalState=(0,_store.useGlobalState)(),props=_useGlobalState.props,common=_useGlobalState.common;var testID=props.testID,loop=props.loop,autoFillData=props.autoFillData,data=props.data,dataLength=props.dataLength,rawDataLength=props.rawDataLength,mode=props.mode,style=props.style,contentContainerStyle=props.contentContainerStyle,vertical=props.vertical,autoPlay=props.autoPlay,windowSize=props.windowSize,autoPlayReverse=props.autoPlayReverse,autoPlayInterval=props.autoPlayInterval,scrollAnimationDuration=props.scrollAnimationDuration,withAnimation=props.withAnimation,fixedDirection=props.fixedDirection,renderItem=props.renderItem,onScrollEnd=props.onScrollEnd,onSnapToItem=props.onSnapToItem,_onScrollStart=props.onScrollStart,onProgressChange=props.onProgressChange,customAnimation=props.customAnimation,defaultIndex=props.defaultIndex,legacyWidth=props.width,legacyHeight=props.height;var size=common.size,handlerOffset=common.handlerOffset,resolvedSize=common.resolvedSize,sizePhase=common.sizePhase,sizeExplicit=common.sizeExplicit;var layoutConfig=(0,_useLayoutConfig.useLayoutConfig)(Object.assign({},props,{size:size}));var isSizeReady=(0,_reactNativeReanimated.useDerivedValue)(function CarouselLayoutTsx2Factory(_ref2){var _worklet_10669107750071_init_data=_ref2._worklet_10669107750071_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var CarouselLayoutTsx2=function CarouselLayoutTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&currentSize>0;};CarouselLayoutTsx2.__closure={resolvedSize:resolvedSize,sizePhase:sizePhase};CarouselLayoutTsx2.__workletHash=10669107750071;CarouselLayoutTsx2.__pluginVersion="0.5.2";CarouselLayoutTsx2.__initData=_worklet_10669107750071_init_data;CarouselLayoutTsx2.__stackDetails=_e;return CarouselLayoutTsx2;}({_worklet_10669107750071_init_data:_worklet_10669107750071_init_data,resolvedSize:resolvedSize,sizePhase:sizePhase}),[resolvedSize,sizePhase]);var offsetX=(0,_reactNativeReanimated.useDerivedValue)(function CarouselLayoutTsx3Factory(_ref3){var _worklet_4752441846675_init_data=_ref3._worklet_4752441846675_init_data,resolvedSize=_ref3.resolvedSize,dataLength=_ref3.dataLength,handlerOffset=_ref3.handlerOffset,loop=_ref3.loop;var _e=[new global.Error(),-5,-27];var CarouselLayoutTsx3=function CarouselLayoutTsx3(){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0)return 0;var totalSize=currentSize*dataLength;var value=handlerOffset.value;if(!loop||totalSize===0){return value;}var x=value%totalSize;return Number.isNaN(x)?0:x;};CarouselLayoutTsx3.__closure={resolvedSize:resolvedSize,dataLength:dataLength,handlerOffset:handlerOffset,loop:loop};CarouselLayoutTsx3.__workletHash=4752441846675;CarouselLayoutTsx3.__pluginVersion="0.5.2";CarouselLayoutTsx3.__initData=_worklet_4752441846675_init_data;CarouselLayoutTsx3.__stackDetails=_e;return CarouselLayoutTsx3;}({_worklet_4752441846675_init_data:_worklet_4752441846675_init_data,resolvedSize:resolvedSize,dataLength:dataLength,handlerOffset:handlerOffset,loop:loop}),[loop,dataLength,handlerOffset,resolvedSize]);(0,_useOnProgressChange.useOnProgressChange)({autoFillData:autoFillData,loop:loop,size:size,sizeReady:isSizeReady,offsetX:offsetX,rawDataLength:rawDataLength,onProgressChange:onProgressChange});var carouselController=(0,_useCarouselController.useCarouselController)({ref:ref,loop:loop,size:size,dataLength:dataLength,autoFillData:autoFillData,handlerOffset:handlerOffset,withAnimation:withAnimation,defaultIndex:defaultIndex,fixedDirection:fixedDirection,duration:scrollAnimationDuration,onScrollEnd:function onScrollEnd(){return(0,_reactNativeWorklets.scheduleOnRN)(_onScrollEnd);},onScrollStart:function onScrollStart(){return!!_onScrollStart&&(0,_reactNativeWorklets.scheduleOnRN)(_onScrollStart);}});var getSharedIndex=carouselController.getSharedIndex;var _onScrollEnd=_react.default.useCallback(function(){var _sharedIndex=Math.round(getSharedIndex());var realIndex=(0,_computedWithAutoFillData.computedRealIndexWithAutoFillData)({index:_sharedIndex,dataLength:rawDataLength,loop:loop,autoFillData:autoFillData});if(onSnapToItem)onSnapToItem(realIndex);if(onScrollEnd)onScrollEnd(realIndex);},[loop,autoFillData,rawDataLength,getSharedIndex,onSnapToItem,onScrollEnd]);var _useAutoPlay=(0,_useAutoPlay2.useAutoPlay)({autoPlay:autoPlay,autoPlayInterval:autoPlayInterval,autoPlayReverse:autoPlayReverse,carouselController:carouselController}),startAutoPlay=_useAutoPlay.start,pauseAutoPlay=_useAutoPlay.pause,triggerAutoPlay=_useAutoPlay.trigger;(0,_reactNativeReanimated.useAnimatedReaction)(function CarouselLayoutTsx4Factory(_ref4){var _worklet_11542262309628_init_data=_ref4._worklet_11542262309628_init_data,isSizeReady=_ref4.isSizeReady;var _e=[new global.Error(),-2,-27];var CarouselLayoutTsx4=function CarouselLayoutTsx4(){return{ready:isSizeReady.value};};CarouselLayoutTsx4.__closure={isSizeReady:isSizeReady};CarouselLayoutTsx4.__workletHash=11542262309628;CarouselLayoutTsx4.__pluginVersion="0.5.2";CarouselLayoutTsx4.__initData=_worklet_11542262309628_init_data;CarouselLayoutTsx4.__stackDetails=_e;return CarouselLayoutTsx4;}({_worklet_11542262309628_init_data:_worklet_11542262309628_init_data,isSizeReady:isSizeReady}),function CarouselLayoutTsx5Factory(_ref5){var _worklet_2376393957286_init_data=_ref5._worklet_2376393957286_init_data,autoPlay=_ref5.autoPlay,scheduleOnRN=_ref5.scheduleOnRN,triggerAutoPlay=_ref5.triggerAutoPlay,pauseAutoPlay=_ref5.pauseAutoPlay;var _e=[new global.Error(),-5,-27];var CarouselLayoutTsx5=function CarouselLayoutTsx5(state,previous){if(!autoPlay)return;if(state.ready===(previous==null?void 0:previous.ready))return;if(state.ready)scheduleOnRN(triggerAutoPlay);else scheduleOnRN(pauseAutoPlay);};CarouselLayoutTsx5.__closure={autoPlay:autoPlay,scheduleOnRN:scheduleOnRN,triggerAutoPlay:triggerAutoPlay,pauseAutoPlay:pauseAutoPlay};CarouselLayoutTsx5.__workletHash=2376393957286;CarouselLayoutTsx5.__pluginVersion="0.5.2";CarouselLayoutTsx5.__initData=_worklet_2376393957286_init_data;CarouselLayoutTsx5.__stackDetails=_e;return CarouselLayoutTsx5;}({_worklet_2376393957286_init_data:_worklet_2376393957286_init_data,autoPlay:autoPlay,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,triggerAutoPlay:triggerAutoPlay,pauseAutoPlay:pauseAutoPlay}),[autoPlay]);var scrollViewGestureOnScrollStart=_react.default.useCallback(function(){pauseAutoPlay();_onScrollStart==null||_onScrollStart();},[_onScrollStart,pauseAutoPlay]);var scrollViewGestureOnScrollEnd=_react.default.useCallback(function(){startAutoPlay();_onScrollEnd();},[_onScrollEnd,startAutoPlay]);var scrollViewGestureOnTouchBegin=_react.default.useCallback(pauseAutoPlay,[pauseAutoPlay]);var scrollViewGestureOnTouchEnd=_react.default.useCallback(startAutoPlay,[startAutoPlay]);var _ref6=_reactNative.StyleSheet.flatten(contentContainerStyle)||{},opacity=_ref6.opacity,transform=_ref6.transform,restContentContainerStyle=(0,_objectWithoutProperties2.default)(_ref6,_excluded);var flattenedStyle=_reactNative.StyleSheet.flatten(style)||{};var layoutStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function CarouselLayoutTsx6Factory(_ref7){var _worklet_4980459357759_init_data=_ref7._worklet_4980459357759_init_data,resolvedSize=_ref7.resolvedSize,resolveCarouselLayoutStyle=_ref7.resolveCarouselLayoutStyle,flattenedStyle=_ref7.flattenedStyle,vertical=_ref7.vertical,sizeExplicit=_ref7.sizeExplicit,legacyWidth=_ref7.legacyWidth,legacyHeight=_ref7.legacyHeight,isSizeReady=_ref7.isSizeReady;var _e=[new global.Error(),-9,-27];var CarouselLayoutTsx6=function CarouselLayoutTsx6(){var _resolvedSize$value3;var measuredSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;var _resolveCarouselLayou=resolveCarouselLayoutStyle({flattenedStyle:flattenedStyle,vertical:!!vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight}),width=_resolveCarouselLayou.width,height=_resolveCarouselLayou.height;return{width:width,height:height,opacity:isSizeReady.value?1:0};};CarouselLayoutTsx6.__closure={resolvedSize:resolvedSize,resolveCarouselLayoutStyle:resolveCarouselLayoutStyle,flattenedStyle:flattenedStyle,vertical:vertical,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight,isSizeReady:isSizeReady};CarouselLayoutTsx6.__workletHash=4980459357759;CarouselLayoutTsx6.__pluginVersion="0.5.2";CarouselLayoutTsx6.__initData=_worklet_4980459357759_init_data;CarouselLayoutTsx6.__stackDetails=_e;return CarouselLayoutTsx6;}({_worklet_4980459357759_init_data:_worklet_4980459357759_init_data,resolvedSize:resolvedSize,resolveCarouselLayoutStyle:resolveCarouselLayoutStyle,flattenedStyle:flattenedStyle,vertical:vertical,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight,isSizeReady:isSizeReady}),[flattenedStyle,isSizeReady,vertical,resolvedSize,sizePhase,sizeExplicit,legacyWidth,legacyHeight]);return(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView,{testID:testID,style:[styles.layoutContainer,style],children:(0,_jsxRuntime.jsx)(_ScrollViewGesture.ScrollViewGesture,{size:size,translation:handlerOffset,style:[styles.contentContainer,layoutStyle,restContentContainerStyle,vertical?styles.itemsVertical:styles.itemsHorizontal],testID:"carousel-content-container",onLayout:props.onLayout,onScrollStart:scrollViewGestureOnScrollStart,onScrollEnd:scrollViewGestureOnScrollEnd,onTouchBegin:scrollViewGestureOnTouchBegin,onTouchEnd:scrollViewGestureOnTouchEnd,children:(0,_jsxRuntime.jsx)(_ItemRenderer.ItemRenderer,{data:data,dataLength:dataLength,rawDataLength:rawDataLength,loop:loop,size:size,windowSize:windowSize,autoFillData:autoFillData,offsetX:offsetX,handlerOffset:handlerOffset,layoutConfig:layoutConfig,renderItem:renderItem,customAnimation:customAnimation})},mode)});});var styles=_reactNative.StyleSheet.create({layoutContainer:{display:"flex",overflow:"hidden"},contentContainer:{overflow:"hidden"},itemsHorizontal:{flexDirection:"row"},itemsVertical:{flexDirection:"column"}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.resolveCarouselLayoutStyle=exports.CarouselLayout=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=require("react-native-reanimated");var _reactNativeWorklets=require("react-native-worklets");var _useAutoPlay2=require("../hooks/useAutoPlay");var _useCarouselController=require("../hooks/useCarouselController");var _useLayoutConfig=require("../hooks/useLayoutConfig");var _useOnProgressChange=require("../hooks/useOnProgressChange");var _store=require("../store");var _computedWithAutoFillData=require("../utils/computed-with-auto-fill-data");var _ItemRenderer=require("./ItemRenderer");var _ScrollViewGesture=require("./ScrollViewGesture");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["opacity","transform"];var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx";var _worklet_7027612681297_init_data={code:"function resolveCarouselLayoutStyle_CarouselLayoutTsx1(params){const{flattenedStyle:flattenedStyle,vertical:vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight}=params;const{width:width,height:height}=flattenedStyle;const hasLegacyMainAxisSize=vertical?typeof legacyHeight===\"number\"&&legacyHeight>0:typeof legacyWidth===\"number\"&&legacyWidth>0;const shouldUseMeasuredMainAxisSize=sizeExplicit||hasLegacyMainAxisSize;const resolvedMainAxisSize=measuredSize||\"100%\";return{width:width!==null&&width!==void 0?width:vertical?\"100%\":shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:\"100%\",height:height!==null&&height!==void 0?height:vertical?shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:\"100%\":\"100%\"};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"resolveCarouselLayoutStyle_CarouselLayoutTsx1\",\"params\",\"flattenedStyle\",\"vertical\",\"measuredSize\",\"sizeExplicit\",\"legacyWidth\",\"legacyHeight\",\"width\",\"height\",\"hasLegacyMainAxisSize\",\"shouldUseMeasuredMainAxisSize\",\"resolvedMainAxisSize\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAiBO,SAAAA,6CAOJA,CAAAC,MAAA,EAGD,KAAM,CAAEC,cAAc,CAAdA,cAAc,CAAEC,QAAQ,CAARA,QAAQ,CAAEC,YAAY,CAAZA,YAAY,CAAEC,YAAY,CAAZA,YAAY,CAAEC,WAAW,CAAXA,WAAW,CAAEC,YAAA,CAAAA,YAAa,CAAC,CACvFN,MAAM,CACR,KAAM,CAAEO,KAAK,CAALA,KAAK,CAAEC,MAAA,CAAAA,MAAO,CAAC,CAAGP,cAAc,CACxC,KAAM,CAAAQ,qBAAqB,CAAGP,QAAQ,CAClC,MAAO,CAAAI,YAAY,GAAK,QAAQ,EAAIA,YAAY,CAAG,CAAC,CACpD,MAAO,CAAAD,WAAW,GAAK,QAAQ,EAAIA,WAAW,CAAG,CAAC,CACtD,KAAM,CAAAK,6BAA6B,CAAGN,YAAY,EAAIK,qBAAqB,CAC3E,KAAM,CAAAE,oBAAoB,CAAGR,YAAY,EAAI,MAAM,CAEnD,MAAO,CACLI,KAAK,CACHA,KAAK,SAALA,KAAK,UAALA,KAAK,CAAKL,QAAQ,CAAG,MAAM,CAAGQ,6BAA6B,CAAGC,oBAAoB,CAAG,MAAO,CAC9FH,MAAM,CACJA,MAAM,SAANA,MAAM,UAANA,MAAM,CACLN,QAAQ,CAAIQ,6BAA6B,CAAGC,oBAAoB,CAAG,MAAM,CAAI,MAClF,CAAC,CACH\",\"ignoreList\":[]}"};var resolveCarouselLayoutStyle=exports.resolveCarouselLayoutStyle=function resolveCarouselLayoutStyle_CarouselLayoutTsx1Factory(_ref){var _worklet_7027612681297_init_data=_ref._worklet_7027612681297_init_data;var _e=[new global.Error(),1,-27];var resolveCarouselLayoutStyle=function resolveCarouselLayoutStyle(params){var flattenedStyle=params.flattenedStyle,vertical=params.vertical,measuredSize=params.measuredSize,sizeExplicit=params.sizeExplicit,legacyWidth=params.legacyWidth,legacyHeight=params.legacyHeight;var width=flattenedStyle.width,height=flattenedStyle.height;var hasLegacyMainAxisSize=vertical?typeof legacyHeight==="number"&&legacyHeight>0:typeof legacyWidth==="number"&&legacyWidth>0;var shouldUseMeasuredMainAxisSize=sizeExplicit||hasLegacyMainAxisSize;var resolvedMainAxisSize=measuredSize||"100%";return{width:width!=null?width:vertical?"100%":shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:"100%",height:height!=null?height:vertical?shouldUseMeasuredMainAxisSize?resolvedMainAxisSize:"100%":"100%"};};resolveCarouselLayoutStyle.__closure={};resolveCarouselLayoutStyle.__workletHash=7027612681297;resolveCarouselLayoutStyle.__pluginVersion="0.5.2";resolveCarouselLayoutStyle.__initData=_worklet_7027612681297_init_data;resolveCarouselLayoutStyle.__stackDetails=_e;return resolveCarouselLayoutStyle;}({_worklet_7027612681297_init_data:_worklet_7027612681297_init_data});var _worklet_10669107750071_init_data={code:"function CarouselLayoutTsx2(){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/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx2\",\"resolvedSize\",\"sizePhase\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAmFsC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,mBAAA,CACxC,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_4752441846675_init_data={code:"function CarouselLayoutTsx3(){const{resolvedSize,dataLength,handlerOffset,loop}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return 0;const totalSize=currentSize*dataLength;const value=handlerOffset.value;if(!loop||totalSize===0){return value;}const x=value%totalSize;return Number.isNaN(x)?0:x;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx3\",\"resolvedSize\",\"dataLength\",\"handlerOffset\",\"loop\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"totalSize\",\"x\",\"Number\",\"isNaN\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAwFkC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,KAAAC,mBAAA,CACpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGL,YAAY,CAACO,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,MAAO,EAAC,CAE9B,KAAM,CAAAE,SAAS,CAAGF,WAAW,CAAGL,UAAU,CAC1C,KAAM,CAAAM,KAAK,CAAGL,aAAa,CAACK,KAAK,CACjC,GAAI,CAACJ,IAAI,EAAIK,SAAS,GAAK,CAAC,CAAE,CAC5B,MAAO,CAAAD,KAAK,CACd,CAEA,KAAM,CAAAE,CAAC,CAAGF,KAAK,CAAGC,SAAS,CAC3B,MAAO,CAAAE,MAAM,CAACC,KAAK,CAACF,CAAC,CAAC,CAAG,CAAC,CAAGA,CAAC,CAChC\",\"ignoreList\":[]}"};var _worklet_11542262309628_init_data={code:"function CarouselLayoutTsx4(){const{isSizeReady}=this.__closure;return{ready:isSizeReady.value};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx4\",\"isSizeReady\",\"__closure\",\"ready\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AA+JI,SAAAA,mBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAO,CAAEC,KAAK,CAAEF,WAAW,CAACG,KAAM,CAAC\",\"ignoreList\":[]}"};var _worklet_2376393957286_init_data={code:"function CarouselLayoutTsx5(state,previous){const{autoPlay,scheduleOnRN,triggerAutoPlay,pauseAutoPlay}=this.__closure;if(!autoPlay)return;if(state.ready===(previous===null||previous===void 0?void 0:previous.ready))return;if(state.ready)scheduleOnRN(triggerAutoPlay);else scheduleOnRN(pauseAutoPlay);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx5\",\"state\",\"previous\",\"autoPlay\",\"scheduleOnRN\",\"triggerAutoPlay\",\"pauseAutoPlay\",\"__closure\",\"ready\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AAgKI,QAAC,CAAAA,kBAAeA,CAAKC,KAAA,CAAAC,QAAA,QAAAC,QAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,aAAA,OAAAC,SAAA,CACnB,GAAI,CAACJ,QAAQ,CAAE,OACf,GAAIF,KAAK,CAACO,KAAK,IAAKN,QAAQ,SAARA,QAAQ,iBAARA,QAAQ,CAAEM,KAAK,EAAE,OAErC,GAAIP,KAAK,CAACO,KAAK,CAAEJ,YAAY,CAACC,eAAe,CAAC,CAAC,IAC1C,CAAAD,YAAY,CAACE,aAAa,CAAC,CAClC\",\"ignoreList\":[]}"};var _worklet_4980459357759_init_data={code:"function CarouselLayoutTsx6(){const{resolvedSize,resolveCarouselLayoutStyle,flattenedStyle,vertical,sizeExplicit,legacyWidth,legacyHeight,isSizeReady}=this.__closure;var _resolvedSize$value;const measuredSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;const{width:width,height:height}=resolveCarouselLayoutStyle({flattenedStyle:flattenedStyle,vertical:!!vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight});return{width:width,height:height,opacity:isSizeReady.value?1:0};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"CarouselLayoutTsx6\",\"resolvedSize\",\"resolveCarouselLayoutStyle\",\"flattenedStyle\",\"vertical\",\"sizeExplicit\",\"legacyWidth\",\"legacyHeight\",\"isSizeReady\",\"__closure\",\"_resolvedSize$value\",\"measuredSize\",\"value\",\"width\",\"height\",\"opacity\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/CarouselLayout.tsx\"],\"mappings\":\"AA4LuC,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,0BAAA,CAAAC,cAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CACzC,KAAM,CAAAC,YAAY,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC5C,KAAM,CAAEG,KAAK,CAALA,KAAK,CAAEC,MAAA,CAAAA,MAAO,CAAC,CAAGZ,0BAA0B,CAAC,CACnDC,cAAc,CAAdA,cAAc,CACdC,QAAQ,CAAE,CAAC,CAACA,QAAQ,CACpBO,YAAY,CAAZA,YAAY,CACZN,YAAY,CAAZA,YAAY,CACZC,WAAW,CAAXA,WAAW,CACXC,YAAA,CAAAA,YACF,CAAC,CAAC,CAEF,MAAO,CACLM,KAAK,CAALA,KAAK,CACLC,MAAM,CAANA,MAAM,CACNC,OAAO,CAAEP,WAAW,CAACI,KAAK,CAAG,CAAC,CAAG,CACnC,CAAC,CACH\",\"ignoreList\":[]}"};var CarouselLayout=exports.CarouselLayout=_react.default.forwardRef(function(_props,ref){var _useGlobalState=(0,_store.useGlobalState)(),props=_useGlobalState.props,common=_useGlobalState.common;var testID=props.testID,loop=props.loop,autoFillData=props.autoFillData,data=props.data,dataLength=props.dataLength,rawDataLength=props.rawDataLength,mode=props.mode,style=props.style,contentContainerStyle=props.contentContainerStyle,vertical=props.vertical,autoPlay=props.autoPlay,windowSize=props.windowSize,autoPlayReverse=props.autoPlayReverse,autoPlayInterval=props.autoPlayInterval,scrollAnimationDuration=props.scrollAnimationDuration,withAnimation=props.withAnimation,fixedDirection=props.fixedDirection,renderItem=props.renderItem,onScrollEnd=props.onScrollEnd,onSnapToItem=props.onSnapToItem,_onScrollStart=props.onScrollStart,onProgressChange=props.onProgressChange,customAnimation=props.customAnimation,defaultIndex=props.defaultIndex,legacyWidth=props.width,legacyHeight=props.height;var size=common.size,handlerOffset=common.handlerOffset,resolvedSize=common.resolvedSize,sizePhase=common.sizePhase,sizeExplicit=common.sizeExplicit;var layoutConfig=(0,_useLayoutConfig.useLayoutConfig)(Object.assign({},props,{size:size}));var isSizeReady=(0,_reactNativeReanimated.useDerivedValue)(function CarouselLayoutTsx2Factory(_ref2){var _worklet_10669107750071_init_data=_ref2._worklet_10669107750071_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var CarouselLayoutTsx2=function CarouselLayoutTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&currentSize>0;};CarouselLayoutTsx2.__closure={resolvedSize:resolvedSize,sizePhase:sizePhase};CarouselLayoutTsx2.__workletHash=10669107750071;CarouselLayoutTsx2.__pluginVersion="0.5.2";CarouselLayoutTsx2.__initData=_worklet_10669107750071_init_data;CarouselLayoutTsx2.__stackDetails=_e;return CarouselLayoutTsx2;}({_worklet_10669107750071_init_data:_worklet_10669107750071_init_data,resolvedSize:resolvedSize,sizePhase:sizePhase}),[resolvedSize,sizePhase]);var offsetX=(0,_reactNativeReanimated.useDerivedValue)(function CarouselLayoutTsx3Factory(_ref3){var _worklet_4752441846675_init_data=_ref3._worklet_4752441846675_init_data,resolvedSize=_ref3.resolvedSize,dataLength=_ref3.dataLength,handlerOffset=_ref3.handlerOffset,loop=_ref3.loop;var _e=[new global.Error(),-5,-27];var CarouselLayoutTsx3=function CarouselLayoutTsx3(){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0)return 0;var totalSize=currentSize*dataLength;var value=handlerOffset.value;if(!loop||totalSize===0){return value;}var x=value%totalSize;return Number.isNaN(x)?0:x;};CarouselLayoutTsx3.__closure={resolvedSize:resolvedSize,dataLength:dataLength,handlerOffset:handlerOffset,loop:loop};CarouselLayoutTsx3.__workletHash=4752441846675;CarouselLayoutTsx3.__pluginVersion="0.5.2";CarouselLayoutTsx3.__initData=_worklet_4752441846675_init_data;CarouselLayoutTsx3.__stackDetails=_e;return CarouselLayoutTsx3;}({_worklet_4752441846675_init_data:_worklet_4752441846675_init_data,resolvedSize:resolvedSize,dataLength:dataLength,handlerOffset:handlerOffset,loop:loop}),[loop,dataLength,handlerOffset,resolvedSize]);(0,_useOnProgressChange.useOnProgressChange)({autoFillData:autoFillData,loop:loop,size:size,sizeReady:isSizeReady,offsetX:offsetX,rawDataLength:rawDataLength,onProgressChange:onProgressChange});var carouselController=(0,_useCarouselController.useCarouselController)({ref:ref,loop:loop,size:size,dataLength:dataLength,autoFillData:autoFillData,handlerOffset:handlerOffset,withAnimation:withAnimation,defaultIndex:defaultIndex,fixedDirection:fixedDirection,duration:scrollAnimationDuration,onScrollEnd:function onScrollEnd(){return(0,_reactNativeWorklets.scheduleOnRN)(_onScrollEnd);},onScrollStart:function onScrollStart(){return!!_onScrollStart&&(0,_reactNativeWorklets.scheduleOnRN)(_onScrollStart);}});var getSharedIndex=carouselController.getSharedIndex;var _onScrollEnd=_react.default.useCallback(function(){var _sharedIndex=Math.round(getSharedIndex());var realIndex=(0,_computedWithAutoFillData.computedRealIndexWithAutoFillData)({index:_sharedIndex,dataLength:rawDataLength,loop:loop,autoFillData:autoFillData});if(onSnapToItem)onSnapToItem(realIndex);if(onScrollEnd)onScrollEnd(realIndex);},[loop,autoFillData,rawDataLength,getSharedIndex,onSnapToItem,onScrollEnd]);var _useAutoPlay=(0,_useAutoPlay2.useAutoPlay)({autoPlay:autoPlay,autoPlayInterval:autoPlayInterval,autoPlayReverse:autoPlayReverse,carouselController:carouselController}),startAutoPlay=_useAutoPlay.start,pauseAutoPlay=_useAutoPlay.pause,triggerAutoPlay=_useAutoPlay.trigger;(0,_reactNativeReanimated.useAnimatedReaction)(function CarouselLayoutTsx4Factory(_ref4){var _worklet_11542262309628_init_data=_ref4._worklet_11542262309628_init_data,isSizeReady=_ref4.isSizeReady;var _e=[new global.Error(),-2,-27];var CarouselLayoutTsx4=function CarouselLayoutTsx4(){return{ready:isSizeReady.value};};CarouselLayoutTsx4.__closure={isSizeReady:isSizeReady};CarouselLayoutTsx4.__workletHash=11542262309628;CarouselLayoutTsx4.__pluginVersion="0.5.2";CarouselLayoutTsx4.__initData=_worklet_11542262309628_init_data;CarouselLayoutTsx4.__stackDetails=_e;return CarouselLayoutTsx4;}({_worklet_11542262309628_init_data:_worklet_11542262309628_init_data,isSizeReady:isSizeReady}),function CarouselLayoutTsx5Factory(_ref5){var _worklet_2376393957286_init_data=_ref5._worklet_2376393957286_init_data,autoPlay=_ref5.autoPlay,scheduleOnRN=_ref5.scheduleOnRN,triggerAutoPlay=_ref5.triggerAutoPlay,pauseAutoPlay=_ref5.pauseAutoPlay;var _e=[new global.Error(),-5,-27];var CarouselLayoutTsx5=function CarouselLayoutTsx5(state,previous){if(!autoPlay)return;if(state.ready===(previous==null?void 0:previous.ready))return;if(state.ready)scheduleOnRN(triggerAutoPlay);else scheduleOnRN(pauseAutoPlay);};CarouselLayoutTsx5.__closure={autoPlay:autoPlay,scheduleOnRN:scheduleOnRN,triggerAutoPlay:triggerAutoPlay,pauseAutoPlay:pauseAutoPlay};CarouselLayoutTsx5.__workletHash=2376393957286;CarouselLayoutTsx5.__pluginVersion="0.5.2";CarouselLayoutTsx5.__initData=_worklet_2376393957286_init_data;CarouselLayoutTsx5.__stackDetails=_e;return CarouselLayoutTsx5;}({_worklet_2376393957286_init_data:_worklet_2376393957286_init_data,autoPlay:autoPlay,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,triggerAutoPlay:triggerAutoPlay,pauseAutoPlay:pauseAutoPlay}),[autoPlay]);var scrollViewGestureOnScrollStart=_react.default.useCallback(function(){pauseAutoPlay();_onScrollStart==null||_onScrollStart();},[_onScrollStart,pauseAutoPlay]);var scrollViewGestureOnScrollEnd=_react.default.useCallback(function(){startAutoPlay();_onScrollEnd();},[_onScrollEnd,startAutoPlay]);var scrollViewGestureOnTouchBegin=_react.default.useCallback(pauseAutoPlay,[pauseAutoPlay]);var scrollViewGestureOnTouchEnd=_react.default.useCallback(startAutoPlay,[startAutoPlay]);var _ref6=_reactNative.StyleSheet.flatten(contentContainerStyle)||{},opacity=_ref6.opacity,transform=_ref6.transform,restContentContainerStyle=(0,_objectWithoutProperties2.default)(_ref6,_excluded);var flattenedStyle=_reactNative.StyleSheet.flatten(style)||{};var layoutStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function CarouselLayoutTsx6Factory(_ref7){var _worklet_4980459357759_init_data=_ref7._worklet_4980459357759_init_data,resolvedSize=_ref7.resolvedSize,resolveCarouselLayoutStyle=_ref7.resolveCarouselLayoutStyle,flattenedStyle=_ref7.flattenedStyle,vertical=_ref7.vertical,sizeExplicit=_ref7.sizeExplicit,legacyWidth=_ref7.legacyWidth,legacyHeight=_ref7.legacyHeight,isSizeReady=_ref7.isSizeReady;var _e=[new global.Error(),-9,-27];var CarouselLayoutTsx6=function CarouselLayoutTsx6(){var _resolvedSize$value3;var measuredSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;var _resolveCarouselLayou=resolveCarouselLayoutStyle({flattenedStyle:flattenedStyle,vertical:!!vertical,measuredSize:measuredSize,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight}),width=_resolveCarouselLayou.width,height=_resolveCarouselLayou.height;return{width:width,height:height,opacity:isSizeReady.value?1:0};};CarouselLayoutTsx6.__closure={resolvedSize:resolvedSize,resolveCarouselLayoutStyle:resolveCarouselLayoutStyle,flattenedStyle:flattenedStyle,vertical:vertical,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight,isSizeReady:isSizeReady};CarouselLayoutTsx6.__workletHash=4980459357759;CarouselLayoutTsx6.__pluginVersion="0.5.2";CarouselLayoutTsx6.__initData=_worklet_4980459357759_init_data;CarouselLayoutTsx6.__stackDetails=_e;return CarouselLayoutTsx6;}({_worklet_4980459357759_init_data:_worklet_4980459357759_init_data,resolvedSize:resolvedSize,resolveCarouselLayoutStyle:resolveCarouselLayoutStyle,flattenedStyle:flattenedStyle,vertical:vertical,sizeExplicit:sizeExplicit,legacyWidth:legacyWidth,legacyHeight:legacyHeight,isSizeReady:isSizeReady}),[flattenedStyle,isSizeReady,vertical,resolvedSize,sizePhase,sizeExplicit,legacyWidth,legacyHeight]);return(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView,{testID:testID,style:[styles.layoutContainer,style],children:(0,_jsxRuntime.jsx)(_ScrollViewGesture.ScrollViewGesture,{size:size,translation:handlerOffset,style:[styles.contentContainer,layoutStyle,restContentContainerStyle,vertical?styles.itemsVertical:styles.itemsHorizontal],testID:"carousel-content-container",onLayout:props.onLayout,onScrollStart:scrollViewGestureOnScrollStart,onScrollEnd:scrollViewGestureOnScrollEnd,onTouchBegin:scrollViewGestureOnTouchBegin,onTouchEnd:scrollViewGestureOnTouchEnd,children:(0,_jsxRuntime.jsx)(_ItemRenderer.ItemRenderer,{data:data,dataLength:dataLength,rawDataLength:rawDataLength,loop:loop,size:size,windowSize:windowSize,defaultIndex:defaultIndex,autoFillData:autoFillData,offsetX:offsetX,handlerOffset:handlerOffset,layoutConfig:layoutConfig,renderItem:renderItem,customAnimation:customAnimation})},mode)});});var styles=_reactNative.StyleSheet.create({layoutContainer:{display:"flex",overflow:"hidden"},contentContainer:{overflow:"hidden"},itemsHorizontal:{flexDirection:"row"},itemsVertical:{flexDirection:"column"}});
2
2
  //# sourceMappingURL=CarouselLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_reactNativeWorklets","_useAutoPlay2","_useCarouselController","_useLayoutConfig","_useOnProgressChange","_store","_computedWithAutoFillData","_ItemRenderer","_ScrollViewGesture","_jsxRuntime","_excluded","_this","_jsxFileName","_worklet_7027612681297_init_data","code","location","sourceMap","resolveCarouselLayoutStyle","exports","resolveCarouselLayoutStyle_CarouselLayoutTsx1Factory","_ref","_e","global","Error","params","flattenedStyle","vertical","measuredSize","sizeExplicit","legacyWidth","legacyHeight","width","height","hasLegacyMainAxisSize","shouldUseMeasuredMainAxisSize","resolvedMainAxisSize","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_10669107750071_init_data","_worklet_4752441846675_init_data","_worklet_11542262309628_init_data","_worklet_2376393957286_init_data","_worklet_4980459357759_init_data","CarouselLayout","React","forwardRef","_props","ref","_useGlobalState","useGlobalState","props","common","testID","loop","autoFillData","data","dataLength","rawDataLength","mode","style","contentContainerStyle","autoPlay","windowSize","autoPlayReverse","autoPlayInterval","scrollAnimationDuration","withAnimation","fixedDirection","renderItem","onScrollEnd","onSnapToItem","onScrollStart","onProgressChange","customAnimation","defaultIndex","size","handlerOffset","resolvedSize","sizePhase","layoutConfig","useLayoutConfig","Object","assign","isSizeReady","useDerivedValue","CarouselLayoutTsx2Factory","_ref2","CarouselLayoutTsx2","_resolvedSize$value","currentSize","value","offsetX","CarouselLayoutTsx3Factory","_ref3","CarouselLayoutTsx3","_resolvedSize$value2","totalSize","x","Number","isNaN","useOnProgressChange","sizeReady","carouselController","useCarouselController","duration","scheduleOnRN","_onScrollEnd","getSharedIndex","useCallback","_sharedIndex","Math","round","realIndex","computedRealIndexWithAutoFillData","index","_useAutoPlay","useAutoPlay","startAutoPlay","start","pauseAutoPlay","pause","triggerAutoPlay","trigger","useAnimatedReaction","CarouselLayoutTsx4Factory","_ref4","CarouselLayoutTsx4","ready","CarouselLayoutTsx5Factory","_ref5","CarouselLayoutTsx5","state","previous","scrollViewGestureOnScrollStart","scrollViewGestureOnScrollEnd","scrollViewGestureOnTouchBegin","scrollViewGestureOnTouchEnd","_ref6","StyleSheet","flatten","opacity","transform","restContentContainerStyle","_objectWithoutProperties2","default","layoutStyle","useAnimatedStyle","CarouselLayoutTsx6Factory","_ref7","CarouselLayoutTsx6","_resolvedSize$value3","_resolveCarouselLayou","jsx","GestureHandlerRootView","styles","layoutContainer","children","ScrollViewGesture","translation","contentContainer","itemsVertical","itemsHorizontal","onLayout","onTouchBegin","onTouchEnd","ItemRenderer","create","display","overflow","flexDirection"],"sourceRoot":"../../../src","sources":["components/CarouselLayout.tsx"],"mappings":"6T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AAe,CAAE,CACfQ,aAAa,CAAE,KACjB,CAAC,CACDT,aAAa,CAAE,CACbS,aAAa,CAAE,QACjB,CACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_reactNativeWorklets","_useAutoPlay2","_useCarouselController","_useLayoutConfig","_useOnProgressChange","_store","_computedWithAutoFillData","_ItemRenderer","_ScrollViewGesture","_jsxRuntime","_excluded","_this","_jsxFileName","_worklet_7027612681297_init_data","code","location","sourceMap","resolveCarouselLayoutStyle","exports","resolveCarouselLayoutStyle_CarouselLayoutTsx1Factory","_ref","_e","global","Error","params","flattenedStyle","vertical","measuredSize","sizeExplicit","legacyWidth","legacyHeight","width","height","hasLegacyMainAxisSize","shouldUseMeasuredMainAxisSize","resolvedMainAxisSize","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_10669107750071_init_data","_worklet_4752441846675_init_data","_worklet_11542262309628_init_data","_worklet_2376393957286_init_data","_worklet_4980459357759_init_data","CarouselLayout","React","forwardRef","_props","ref","_useGlobalState","useGlobalState","props","common","testID","loop","autoFillData","data","dataLength","rawDataLength","mode","style","contentContainerStyle","autoPlay","windowSize","autoPlayReverse","autoPlayInterval","scrollAnimationDuration","withAnimation","fixedDirection","renderItem","onScrollEnd","onSnapToItem","onScrollStart","onProgressChange","customAnimation","defaultIndex","size","handlerOffset","resolvedSize","sizePhase","layoutConfig","useLayoutConfig","Object","assign","isSizeReady","useDerivedValue","CarouselLayoutTsx2Factory","_ref2","CarouselLayoutTsx2","_resolvedSize$value","currentSize","value","offsetX","CarouselLayoutTsx3Factory","_ref3","CarouselLayoutTsx3","_resolvedSize$value2","totalSize","x","Number","isNaN","useOnProgressChange","sizeReady","carouselController","useCarouselController","duration","scheduleOnRN","_onScrollEnd","getSharedIndex","useCallback","_sharedIndex","Math","round","realIndex","computedRealIndexWithAutoFillData","index","_useAutoPlay","useAutoPlay","startAutoPlay","start","pauseAutoPlay","pause","triggerAutoPlay","trigger","useAnimatedReaction","CarouselLayoutTsx4Factory","_ref4","CarouselLayoutTsx4","ready","CarouselLayoutTsx5Factory","_ref5","CarouselLayoutTsx5","state","previous","scrollViewGestureOnScrollStart","scrollViewGestureOnScrollEnd","scrollViewGestureOnTouchBegin","scrollViewGestureOnTouchEnd","_ref6","StyleSheet","flatten","opacity","transform","restContentContainerStyle","_objectWithoutProperties2","default","layoutStyle","useAnimatedStyle","CarouselLayoutTsx6Factory","_ref7","CarouselLayoutTsx6","_resolvedSize$value3","_resolveCarouselLayou","jsx","GestureHandlerRootView","styles","layoutContainer","children","ScrollViewGesture","translation","contentContainer","itemsVertical","itemsHorizontal","onLayout","onTouchBegin","onTouchEnd","ItemRenderer","create","display","overflow","flexDirection"],"sourceRoot":"../../../src","sources":["components/CarouselLayout.tsx"],"mappings":"6TAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,0BAAA,CAAAF,OAAA,iCACA,IAAAG,sBAAA,CAAAH,OAAA,4BACA,IAAAI,oBAAA,CAAAJ,OAAA,0BACA,IAAAK,aAAA,CAAAL,OAAA,yBACA,IAAAM,sBAAA,CAAAN,OAAA,mCACA,IAAAO,gBAAA,CAAAP,OAAA,6BACA,IAAAQ,oBAAA,CAAAR,OAAA,iCACA,IAAAS,MAAA,CAAAT,OAAA,aAEA,IAAAU,yBAAA,CAAAV,OAAA,0CACA,IAAAW,aAAA,CAAAX,OAAA,mBACA,IAAAY,kBAAA,CAAAZ,OAAA,wBAAwD,IAAAa,WAAA,CAAAb,OAAA,0BAAAc,SAAA,6BAAAC,KAAA,MAAAC,YAAA,6HAAAC,gCAAA,EAAAC,IAAA,ixBAAAC,QAAA,yHAAAC,SAAA,uqCAAAC,0BAAA,CAAAC,OAAA,CAAAD,0BAAA,CAIjD,SAAAE,qDAAAC,IAAA,MAAAP,gCAAA,CAAAO,IAAA,CAAAP,gC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W,CACvBC,aAAa,CAAEA,aAAc,CAC7BJ,IAAI,CAAEA,IAAK,CACXsB,IAAI,CAAEA,IAAK,CACXb,UAAU,CAAEA,UAAW,CACvBY,YAAY,CAAEA,YAAa,CAC3BpB,YAAY,CAAEA,YAAa,CAC3BqC,OAAO,CAAEA,OAAQ,CACjBf,aAAa,CAAEA,aAAc,CAC7BG,YAAY,CAAEA,YAAa,CAC3BX,UAAU,CAAEA,UAAW,CACvBK,eAAe,CAAEA,eAAgB,CAClC,CAAC,EA7BGf,IA8BY,CAAC,CACE,CAAC,CAE7B,CAAC,CAAC,CAEF,GAAM,CAAAgG,MAAM,CAAGhB,uBAAU,CAAC4B,MAAM,CAAC,CAC/BX,eAAe,CAAE,CACfY,OAAO,CAAE,MAAM,CACfC,QAAQ,CAAE,QACZ,CAAC,CACDT,gBAAgB,CAAE,CAChBS,QAAQ,CAAE,QACZ,CAAC,CACDP,eAAe,CAAE,CACfQ,aAAa,CAAE,KACjB,CAAC,CACDT,aAAa,CAAE,CACbS,aAAa,CAAE,QACjB,CACF,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ItemRenderer=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireDefault(require("react"));var _reactNativeReanimated=require("react-native-reanimated");var _reactNativeWorklets=require("react-native-worklets");var _ItemLayout=require("./ItemLayout");var _useVisibleRanges=require("../hooks/useVisibleRanges");var _computedWithAutoFillData=require("../utils/computed-with-auto-fill-data");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx";var _worklet_5016581810892_init_data={code:"function ItemRendererTsx1(){const{visibleRanges}=this.__closure;return visibleRanges.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemRendererTsx1\",\"visibleRanges\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx\"],\"mappings\":\"AAkEI,SAAAA,iBAAA,QAAAC,aAAA,OAAAC,SAAA,OAAM,CAAAD,aAAc,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_11262215567435_init_data={code:"function ItemRendererTsx2(ranges){const{scheduleOnRN,setDisplayedItems}=this.__closure;return scheduleOnRN(setDisplayedItems,ranges);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemRendererTsx2\",\"ranges\",\"scheduleOnRN\",\"setDisplayedItems\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx\"],\"mappings\":\"AAmEK,SAAAA,gBAAMA,CAAAC,MAAA,QAAAC,YAAA,CAAAC,iBAAA,OAAAC,SAAA,OAAK,CAAAF,YAAa,CAAAC,iBAAiB,CAAEF,MAAM\",\"ignoreList\":[]}"};var ItemRenderer=exports.ItemRenderer=function ItemRenderer(props){var data=props.data,size=props.size,windowSize=props.windowSize,handlerOffset=props.handlerOffset,offsetX=props.offsetX,dataLength=props.dataLength,rawDataLength=props.rawDataLength,loop=props.loop,autoFillData=props.autoFillData,layoutConfig=props.layoutConfig,renderItem=props.renderItem,customAnimation=props.customAnimation;var visibleRanges=(0,_useVisibleRanges.useVisibleRanges)({total:dataLength,viewSize:size,translation:handlerOffset,windowSize:windowSize,loop:loop});var initialRanges=_react.default.useMemo(function(){return{negativeRange:[0,0],positiveRange:[0,Math.min(dataLength-1,(windowSize!=null?windowSize:dataLength)-1)]};},[dataLength,windowSize]);var _React$useState=_react.default.useState(initialRanges),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),displayedItems=_React$useState2[0],setDisplayedItems=_React$useState2[1];(0,_reactNativeReanimated.useAnimatedReaction)(function ItemRendererTsx1Factory(_ref){var _worklet_5016581810892_init_data=_ref._worklet_5016581810892_init_data,visibleRanges=_ref.visibleRanges;var _e=[new global.Error(),-2,-27];var ItemRendererTsx1=function ItemRendererTsx1(){return visibleRanges.value;};ItemRendererTsx1.__closure={visibleRanges:visibleRanges};ItemRendererTsx1.__workletHash=5016581810892;ItemRendererTsx1.__pluginVersion="0.5.2";ItemRendererTsx1.__initData=_worklet_5016581810892_init_data;ItemRendererTsx1.__stackDetails=_e;return ItemRendererTsx1;}({_worklet_5016581810892_init_data:_worklet_5016581810892_init_data,visibleRanges:visibleRanges}),function ItemRendererTsx2Factory(_ref2){var _worklet_11262215567435_init_data=_ref2._worklet_11262215567435_init_data,scheduleOnRN=_ref2.scheduleOnRN,setDisplayedItems=_ref2.setDisplayedItems;var _e=[new global.Error(),-3,-27];var ItemRendererTsx2=function ItemRendererTsx2(ranges){return scheduleOnRN(setDisplayedItems,ranges);};ItemRendererTsx2.__closure={scheduleOnRN:scheduleOnRN,setDisplayedItems:setDisplayedItems};ItemRendererTsx2.__workletHash=11262215567435;ItemRendererTsx2.__pluginVersion="0.5.2";ItemRendererTsx2.__initData=_worklet_11262215567435_init_data;ItemRendererTsx2.__stackDetails=_e;return ItemRendererTsx2;}({_worklet_11262215567435_init_data:_worklet_11262215567435_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setDisplayedItems:setDisplayedItems}),[visibleRanges]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:data.map(function(item,index){var realIndex=(0,_computedWithAutoFillData.computedRealIndexWithAutoFillData)({index:index,dataLength:rawDataLength,loop:loop,autoFillData:autoFillData});var negativeRange=displayedItems.negativeRange,positiveRange=displayedItems.positiveRange;var shouldRender=index>=negativeRange[0]&&index<=negativeRange[1]||index>=positiveRange[0]&&index<=positiveRange[1];if(!shouldRender)return null;return(0,_jsxRuntime.jsx)(_ItemLayout.ItemLayout,{index:index,handlerOffset:offsetX,visibleRanges:visibleRanges,animationStyle:customAnimation||layoutConfig,children:function children(_ref3){var animationValue=_ref3.animationValue;return renderItem({item:item,index:realIndex,animationValue:animationValue});}},index);})});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ItemRenderer=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireDefault(require("react"));var _reactNativeReanimated=require("react-native-reanimated");var _reactNativeWorklets=require("react-native-worklets");var _ItemLayout=require("./ItemLayout");var _useVisibleRanges=require("../hooks/useVisibleRanges");var _computedWithAutoFillData=require("../utils/computed-with-auto-fill-data");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx";var _worklet_5016581810892_init_data={code:"function ItemRendererTsx1(){const{visibleRanges}=this.__closure;return visibleRanges.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemRendererTsx1\",\"visibleRanges\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx\"],\"mappings\":\"AAuEI,SAAAA,iBAAA,QAAAC,aAAA,OAAAC,SAAA,OAAM,CAAAD,aAAc,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_11262215567435_init_data={code:"function ItemRendererTsx2(ranges){const{scheduleOnRN,setDisplayedItems}=this.__closure;return scheduleOnRN(setDisplayedItems,ranges);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemRendererTsx2\",\"ranges\",\"scheduleOnRN\",\"setDisplayedItems\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemRenderer.tsx\"],\"mappings\":\"AAwEK,SAAAA,gBAAMA,CAAAC,MAAA,QAAAC,YAAA,CAAAC,iBAAA,OAAAC,SAAA,OAAK,CAAAF,YAAa,CAAAC,iBAAiB,CAAEF,MAAM\",\"ignoreList\":[]}"};var ItemRenderer=exports.ItemRenderer=function ItemRenderer(props){var data=props.data,size=props.size,windowSize=props.windowSize,defaultIndex=props.defaultIndex,handlerOffset=props.handlerOffset,offsetX=props.offsetX,dataLength=props.dataLength,rawDataLength=props.rawDataLength,loop=props.loop,autoFillData=props.autoFillData,layoutConfig=props.layoutConfig,renderItem=props.renderItem,customAnimation=props.customAnimation;var visibleRanges=(0,_useVisibleRanges.useVisibleRanges)({total:dataLength,viewSize:size,translation:handlerOffset,windowSize:windowSize,loop:loop});var initialRanges=_react.default.useMemo(function(){return(0,_useVisibleRanges.computeVisibleRanges)({total:dataLength,windowSize:windowSize,currentIndex:defaultIndex,loop:loop});},[dataLength,defaultIndex,loop,windowSize]);var _React$useState=_react.default.useState(initialRanges),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),displayedItems=_React$useState2[0],setDisplayedItems=_React$useState2[1];(0,_reactNativeReanimated.useAnimatedReaction)(function ItemRendererTsx1Factory(_ref){var _worklet_5016581810892_init_data=_ref._worklet_5016581810892_init_data,visibleRanges=_ref.visibleRanges;var _e=[new global.Error(),-2,-27];var ItemRendererTsx1=function ItemRendererTsx1(){return visibleRanges.value;};ItemRendererTsx1.__closure={visibleRanges:visibleRanges};ItemRendererTsx1.__workletHash=5016581810892;ItemRendererTsx1.__pluginVersion="0.5.2";ItemRendererTsx1.__initData=_worklet_5016581810892_init_data;ItemRendererTsx1.__stackDetails=_e;return ItemRendererTsx1;}({_worklet_5016581810892_init_data:_worklet_5016581810892_init_data,visibleRanges:visibleRanges}),function ItemRendererTsx2Factory(_ref2){var _worklet_11262215567435_init_data=_ref2._worklet_11262215567435_init_data,scheduleOnRN=_ref2.scheduleOnRN,setDisplayedItems=_ref2.setDisplayedItems;var _e=[new global.Error(),-3,-27];var ItemRendererTsx2=function ItemRendererTsx2(ranges){return scheduleOnRN(setDisplayedItems,ranges);};ItemRendererTsx2.__closure={scheduleOnRN:scheduleOnRN,setDisplayedItems:setDisplayedItems};ItemRendererTsx2.__workletHash=11262215567435;ItemRendererTsx2.__pluginVersion="0.5.2";ItemRendererTsx2.__initData=_worklet_11262215567435_init_data;ItemRendererTsx2.__stackDetails=_e;return ItemRendererTsx2;}({_worklet_11262215567435_init_data:_worklet_11262215567435_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setDisplayedItems:setDisplayedItems}),[visibleRanges]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:data.map(function(item,index){var realIndex=(0,_computedWithAutoFillData.computedRealIndexWithAutoFillData)({index:index,dataLength:rawDataLength,loop:loop,autoFillData:autoFillData});var negativeRange=displayedItems.negativeRange,positiveRange=displayedItems.positiveRange;var shouldRender=index>=negativeRange[0]&&index<=negativeRange[1]||index>=positiveRange[0]&&index<=positiveRange[1];if(!shouldRender)return null;return(0,_jsxRuntime.jsx)(_ItemLayout.ItemLayout,{index:index,handlerOffset:offsetX,visibleRanges:visibleRanges,animationStyle:customAnimation||layoutConfig,children:function children(_ref3){var animationValue=_ref3.animationValue;return renderItem({item:item,index:realIndex,animationValue:animationValue});}},index);})});};
2
2
  //# sourceMappingURL=ItemRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeReanimated","_reactNativeWorklets","_ItemLayout","_useVisibleRanges","_computedWithAutoFillData","_jsxRuntime","_this","_jsxFileName","_worklet_5016581810892_init_data","code","location","sourceMap","_worklet_11262215567435_init_data","ItemRenderer","exports","props","data","size","windowSize","handlerOffset","offsetX","dataLength","rawDataLength","loop","autoFillData","layoutConfig","renderItem","customAnimation","visibleRanges","useVisibleRanges","total","viewSize","translation","initialRanges","React","useMemo","negativeRange","positiveRange","Math","min","_React$useState","useState","_React$useState2","_slicedToArray2","default","displayedItems","setDisplayedItems","useAnimatedReaction","ItemRendererTsx1Factory","_ref","_e","global","Error","ItemRendererTsx1","value","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","ItemRendererTsx2Factory","_ref2","scheduleOnRN","ItemRendererTsx2","ranges","jsx","Fragment","children","map","item","index","realIndex","computedRealIndexWithAutoFillData","shouldRender","ItemLayout","animationStyle","_ref3","animationValue"],"sourceRoot":"../../../src","sources":["components/ItemRenderer.tsx"],"mappings":"oQAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAIA,IAAAC,sBAAA,CAAAD,OAAA,4BACA,IAAAE,oBAAA,CAAAF,OAAA,0BAGA,IAAAG,WAAA,CAAAH,OAAA,iBAGA,IAAAI,iBAAA,CAAAJ,OAAA,8BAEA,IAAAK,yBAAA,CAAAL,OAAA,0CAA0F,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,KAAA,MAAAC,YAAA,2HAAAC,gCAAA,EAAAC,IAAA,gGAAAC,QAAA,uHAAAC,SAAA,+UAAAC,iCAAA,EAAAH,IAAA,0IAAAC,QAAA,uHAAAC,SAAA,sYAiBnF,GAAM,CAAAE,YAAuB,CAAAC,OAAA,CAAAD,YAAA,CAAG,QAA1B,CAAAA,YAAuBA,CAAIE,KAAK,CAAK,CAChD,GACE,CAAAC,IAAI,CAYFD,KAAK,CAZPC,IAAI,CACJC,IAAI,CAWFF,KAAK,CAXPE,IAAI,CACJC,UAAU,CAURH,KAAK,CAVPG,UAAU,CACVC,aAAa,CASXJ,KAAK,CATPI,aAAa,CACbC,OAAO,CAQLL,KAAK,CARPK,OAAO,CACPC,UAAU,CAORN,KAAK,CAPPM,UAAU,CACVC,aAAa,CAMXP,KAAK,CANPO,aAAa,CACbC,IAAI,CAKFR,KAAK,CALPQ,IAAI,CACJC,YAAY,CAIVT,KAAK,CAJPS,YAAY,CACZC,YAAY,CAGVV,KAAK,CAHPU,YAAY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kC,KAAK,EAAIlC,aAAa,CAAC,CAAC,CAAC,EACtDkC,KAAK,EAAIjC,aAAa,CAAC,CAAC,CAAC,EAAIiC,KAAK,EAAIjC,aAAa,CAAC,CAAC,CAAE,CAE1D,GAAI,CAACoC,YAAY,CAAE,MAAO,KAAI,CAE9B,MACE,GAAApE,WAAA,CAAA4D,GAAA,EAAC/D,WAAA,CAAAwE,UAAU,EAETJ,KAAK,CAAEA,KAAM,CACbnD,aAAa,CAAEC,OAAQ,CACvBQ,aAAa,CAAEA,aAAc,CAC7B+C,cAAc,CAAEhD,eAAe,EAAIF,YAAa,CAAA0C,QAAA,CAE/C,SAAAA,SAAAS,KAAA,KAAG,CAAAC,cAAc,CAAAD,KAAA,CAAdC,cAAc,OAChB,CAAAnD,UAAU,CAAC,CACT2C,IAAI,CAAJA,IAAI,CACJC,KAAK,CAAEC,SAAS,CAChBM,cAAc,CAAdA,cACF,CAAC,CAAC,IAXCP,KAaK,CAAC,CAEjB,CAAC,CAAC,CACF,CAAC,CAEP,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeReanimated","_reactNativeWorklets","_ItemLayout","_useVisibleRanges","_computedWithAutoFillData","_jsxRuntime","_this","_jsxFileName","_worklet_5016581810892_init_data","code","location","sourceMap","_worklet_11262215567435_init_data","ItemRenderer","exports","props","data","size","windowSize","defaultIndex","handlerOffset","offsetX","dataLength","rawDataLength","loop","autoFillData","layoutConfig","renderItem","customAnimation","visibleRanges","useVisibleRanges","total","viewSize","translation","initialRanges","React","useMemo","computeVisibleRanges","currentIndex","_React$useState","useState","_React$useState2","_slicedToArray2","default","displayedItems","setDisplayedItems","useAnimatedReaction","ItemRendererTsx1Factory","_ref","_e","global","Error","ItemRendererTsx1","value","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","ItemRendererTsx2Factory","_ref2","scheduleOnRN","ItemRendererTsx2","ranges","jsx","Fragment","children","map","item","index","realIndex","computedRealIndexWithAutoFillData","negativeRange","positiveRange","shouldRender","ItemLayout","animationStyle","_ref3","animationValue"],"sourceRoot":"../../../src","sources":["components/ItemRenderer.tsx"],"mappings":"oQAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAIA,IAAAC,sBAAA,CAAAD,OAAA,4BACA,IAAAE,oBAAA,CAAAF,OAAA,0BAGA,IAAAG,WAAA,CAAAH,OAAA,iBAGA,IAAAI,iBAAA,CAAAJ,OAAA,8BAEA,IAAAK,yBAAA,CAAAL,OAAA,0CAA0F,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,KAAA,MAAAC,YAAA,2HAAAC,gCAAA,EAAAC,IAAA,gGAAAC,QAAA,uHAAAC,SAAA,+UAAAC,iCAAA,EAAAH,IAAA,0IAAAC,QAAA,uHAAAC,SAAA,sYAkBnF,GAAM,CAAAE,YAAuB,CAAAC,OAAA,CAAAD,YAAA,CAAG,QAA1B,CAAAA,YAAuBA,CAAIE,KAAK,CAAK,CAChD,GACE,CAAAC,IAAI,CAaFD,KAAK,CAbPC,IAAI,CACJC,IAAI,CAYFF,KAAK,CAZPE,IAAI,CACJC,UAAU,CAWRH,KAAK,CAXPG,UAAU,CACVC,YAAY,CAUVJ,KAAK,CAVPI,YAAY,CACZC,aAAa,CASXL,KAAK,CATPK,aAAa,CACbC,OAAO,CAQLN,KAAK,CARPM,OAAO,CACPC,UAAU,CAORP,KAAK,CAPPO,UAAU,CACVC,aAAa,CAMXR,KAAK,CANPQ,aAAa,CACbC,IAAI,CAKFT,KAAK,CALPS,IAAI,CACJC,YAAY,CAIVV,KAAK,CAJPU,YAAY,CACZC,YAAY,CAGVX,KAAK,CAHPW,YAAY,CACZC,UAAU,CAERZ,KAAK,CAFPY,UAAU,CACVC,eAAe,CACbb,KAAK,CADPa,eAAe,CAGjB,GAAM,CAAAC,aAAa,CAAG,GAAAC,kCAAgB,EAAC,CACrCC,KAAK,CAAET,UAAU,CACjBU,QAAQ,CAAEf,IAAI,CACdgB,WAAW,CAAEb,aAAa,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AK,CAAEA,KAAM,CACbjD,aAAa,CAAEC,OAAQ,CACvBQ,aAAa,CAAEA,aAAc,CAC7B+C,cAAc,CAAEhD,eAAe,EAAIF,YAAa,CAAAwC,QAAA,CAE/C,SAAAA,SAAAW,KAAA,KAAG,CAAAC,cAAc,CAAAD,KAAA,CAAdC,cAAc,OAChB,CAAAnD,UAAU,CAAC,CACTyC,IAAI,CAAJA,IAAI,CACJC,KAAK,CAAEC,SAAS,CAChBQ,cAAc,CAAdA,cACF,CAAC,CAAC,IAXCT,KAaK,CAAC,CAEjB,CAAC,CAAC,CACF,CAAC,CAEP,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollViewGesture=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeGestureHandler=require("react-native-gesture-handler");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _constants=require("../constants");var _usePanGestureProxy=require("../hooks/usePanGestureProxy");var _store=require("../store");var _computeGestureTranslation=require("../utils/compute-gesture-translation");var _dealWithAnimation=require("../utils/deal-with-animation");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_7087640017863_init_data={code:"function ScrollViewGestureTsx1(){const{vertical}=this.__closure;return!vertical;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx1\",\"vertical\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAwEuC,SAAAA,sBAAA,QAAAC,QAAA,OAAAC,SAAA,OAAO,CAAAD,QAAA\",\"ignoreList\":[]}"};var _worklet_1256203969722_init_data={code:"function ScrollViewGestureTsx2(){const{resolvedSize,sizePhase}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;return sizePhase.value===\"ready\"&&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\":\"AAkFoC,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_773369069625_init_data={code:"function ScrollViewGestureTsx3(){const{size,loop,overscrollEnabled,measure,containerRef,dataLength}=this.__closure;if(size<=0)return 0;if(!loop&&!overscrollEnabled){const measurement=measure(containerRef);const containerWidth=(measurement===null||measurement===void 0?void 0:measurement.width)||0;if(dataLength*size<containerWidth)return 0;return dataLength*size-containerWidth;}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\",\"measure\",\"containerRef\",\"dataLength\",\"__closure\",\"measurement\",\"containerWidth\",\"width\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAwFqC,SAAAA,qBAAMA,CAAA,QAAAC,IAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,OAAA,CAAAC,YAAA,CAAAC,UAAA,OAAAC,SAAA,CAGvC,GAAIN,IAAI,EAAI,CAAC,CAAE,MAAO,EAAC,CAEvB,GAAI,CAACC,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAK,WAAW,CAAGJ,OAAO,CAACC,YAAY,CAAC,CACzC,KAAM,CAAAI,cAAc,CAAG,CAAAD,WAAW,SAAXA,WAAW,iBAAXA,WAAW,CAAEE,KAAK,GAAI,CAAC,CAG9C,GAAIJ,UAAU,CAAGL,IAAI,CAAGQ,cAAc,CAAE,MAAO,EAAC,CAGhD,MAAO,CAAAH,UAAU,CAAGL,IAAI,CAAGQ,cAAc,CAC3C,CAEA,MAAO,CAAAH,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\":\"AAwHQ,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIH,UAAU,CAAEC,UAAU,EAAIC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_1300349626787_init_data={code:"function ScrollViewGestureTsx5(toValue,onFinished){const{scrollAnimationDuration,Easing,dealWithAnimation,withAnimation,_worklet_2188036911353_init_data,scheduleOnRN}=this.__closure;var _withAnimation;const defaultWithAnimation={type:\"timing\",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation((_withAnimation=withAnimation)!==null&&_withAnimation!==void 0?_withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}){const _e=[new global.Error(),-3,-27];const ScrollViewGestureTsx4=function(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion=\"0.5.2\";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx5\",\"toValue\",\"onFinished\",\"scrollAnimationDuration\",\"Easing\",\"dealWithAnimation\",\"withAnimation\",\"_worklet_2188036911353_init_data\",\"scheduleOnRN\",\"__closure\",\"_withAnimation\",\"defaultWithAnimation\",\"type\",\"config\",\"duration\",\"easing\",\"easeOutQuart\",\"ScrollViewGestureTsx4Factory\",\"_e\",\"global\",\"Error\",\"ScrollViewGestureTsx4\",\"isFinished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA4GI,QAAC,CAAAA,qBAAwCA,CAAAC,OAAK,CAAAC,UAAA,QAAAC,uBAAA,CAAAC,MAAA,CAAAC,iBAAA,CAAAC,aAAA,CAAAC,gCAAA,CAAAC,YAAA,OAAAC,SAAA,KAAAC,cAAA,CAE5C,KAAM,CAAAC,oBAAyC,CAAG,CAChDC,IAAI,CAAE,QAAQ,CACdC,MAAM,CAAE,CACNC,QAAQ,CAAEX,uBAAuB,CAAG,GAAG,CACvCY,MAAM,CAAEX,MAAM,CAACY,YACjB,CACF,CAAC,CAED,MAAO,CAAAX,iBAAiB,EAAAK,cAAA,CAACJ,aAAa,UAAAI,cAAA,UAAAA,cAAA,CAAIC,oBAAoB,CAAC,CAC7DV,OAAO,CACP,SAAAgB,6BAAA,CAAAV,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,SAAAU,EAAA,MAAAC,MAAA,CAAAC,KAAA,iBAAAC,qBAAA,SAAAA,CAF3CC,UAAmB,CAAK,CAEvB,GAAIA,UAAU,CAAEpB,UAAU,EAAIM,YAAY,CAACN,UAAU,CAAC,CACxD,CAAC,CAAAmB,qBAAA,CAAAZ,SAAA,EADiBP,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAAAa,qBAAA,CAAAE,aAAA,eAAAF,qBAAA,CAAAG,eAAA,SAAAH,qBAAA,CAAAI,UAAA,CAAAlB,gCAAA,CAAAc,qBAAA,CAAAK,cAAA,CAAAR,EAAA,QAAAG,qBAAA,EAF5C,EAAAd,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAE9C,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_9858368380469_init_data={code:"function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{resolvedSize,translation,withDecay,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,pagingEnabled,withSpring,loop,maxPage,snapEnabled,overscrollEnabled,getLimit}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0){return;}const origin=translation.value;const velocity=scrollEndVelocityValue;let finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{const nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){const offset=-(scrollEndTranslationValue>=0?1:-1);const computed=offset<0?Math.ceil:Math.floor;const page=computed(-origin/currentSize);const velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){const finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{const finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx6\",\"scrollEndTranslationValue\",\"scrollEndVelocityValue\",\"onFinished\",\"resolvedSize\",\"translation\",\"withDecay\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"pagingEnabled\",\"withSpring\",\"loop\",\"maxPage\",\"snapEnabled\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"origin\",\"velocity\",\"finalTranslation\",\"deceleration\",\"Math\",\"abs\",\"nextPage\",\"round\",\"offset\",\"computed\",\"ceil\",\"floor\",\"page\",\"velocityDirection\",\"sign\",\"withProcessTranslation\",\"finalPage\",\"min\",\"max\",\"limit\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAkII,QACE,CAAAA,sBAAAC,yBACA,CAAAC,sBAEG,CAAAC,UAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,8BAAA,CAAAC,yBAAA,CAAAC,aAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,OAAA,CAAAC,WAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIH,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,CACpB,OACF,CACA,KAAM,CAAAE,MAAM,CAAGf,WAAW,CAACc,KAAK,CAChC,KAAM,CAAAE,QAAQ,CAAGnB,sBAAsB,CAEvC,GAAI,CAAAoB,gBAAwB,CAAGhB,SAAS,CAAC,CAAEe,QAAQ,CAARA,QAAQ,CAAEE,YAAY,CAAE,KAAM,CAAC,CAAC,CAG3E,GACEhB,8BAA8B,EAC9BiB,IAAI,CAACC,GAAG,CAACxB,yBAAyB,CAAC,CAAGO,yBAAyB,CAC/D,CACAc,gBAAgB,CAAGF,MAAM,CAC3B,CAAC,IAAM,CAYL,KAAM,CAAAM,QAAQ,CAAG,CAACF,IAAI,CAACG,KAAK,CAAC,CAACP,MAAM,CA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AC,CACH,CACF,CAEAE,WAAW,CAACc,KAAK,CAAGG,gBAAgB,CAEpC,QAAS,CAAAa,sBAAsBA,CAAC9B,WAAmB,CAAE,CACnD,GAAI,CAACM,IAAI,EAAI,CAACG,iBAAiB,CAAE,CAC/B,KAAM,CAAAyB,KAAK,CAAGxB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAS,IAAI,CAACa,GAAG,CAAC,CAAC,CAAEb,IAAI,CAACc,GAAG,CAAC,CAACC,KAAK,CAAElC,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB,CACF\",\"ignoreList\":[]}"};var _worklet_9026185779806_init_data={code:"function ScrollViewGestureTsx7(isFinished){const{touching,onScrollEnd,scheduleOnRN}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx7\",\"isFinished\",\"touching\",\"onScrollEnd\",\"scheduleOnRN\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsOI,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIJ,UAAU,CAAE,CACdC,QAAQ,CAACI,KAAK,CAAG,KAAK,CACtBH,WAAW,EAAIC,YAAY,CAACD,WAAW,CAAC,CAC1C,CACF\",\"ignoreList\":[]}"};var _worklet_5593859302814_init_data={code:"function ScrollViewGestureTsx8(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx8\",\"touching\",\"translation\",\"withDecay\",\"scrollEndVelocity\",\"onFinish\",\"__closure\",\"value\",\"velocity\",\"isFinished\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAgPwC,SAAAA,qBAAMA,CAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAE1CL,QAAQ,CAACM,KAAK,CAAG,IAAI,CACrBL,WAAW,CAACK,KAAK,CAAGJ,SAAS,CAAC,CAAEK,QAAQ,CAAEJ,iBAAiB,CAACG,KAAM,CAAC,CAAG,SAAAE,UAAU,QAC9E,CAAAJ,QAAQ,CAACI,UAAqB,CAChC,GAAC,CACH\",\"ignoreList\":[]}"};var _worklet_10440224148495_init_data={code:"function ScrollViewGestureTsx9(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx9\",\"isFinished\",\"onFinish\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAmP0E,SAAAA,qBAAUA,CAAAC,UAAA,QAAAC,QAAA,OAAAC,SAAA,OAC9E,CAAAD,QAAS,CAAAD,UAAqB\",\"ignoreList\":[]}"};var _worklet_1192613327258_init_data={code:"function ScrollViewGestureTsx10(){const{resolvedSize,touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx10\",\"resolvedSize\",\"touching\",\"translation\",\"scrollEndTranslation\",\"activeDecay\",\"loop\",\"withSpring\",\"maxPage\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAwP0C,SAAAA,sBAAMA,CAAA,QAAAC,YAAA,CAAAC,QAAA,CAAAC,WAAA,CAAAC,oBAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,OAAA,OAAAC,SAAA,KAAAC,mBAAA,CAI5C,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,OACtB,GAAIT,QAAQ,CAACU,KAAK,CAAE,OAEpB,GAAIT,WAAW,CAACS,KAAK,CAAG,CAAC,CAAE,CACzB,GAAIR,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAE,CACTH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,CAAC,CAAC,CACjC,OACF,CACF,CAEA,GAAIJ,WAAW,CAACS,KAAK,CAAG,EAAE,CAACJ,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAE,CACtD,GAAIP,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAEH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,EAAE,CAACC,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAC,CAC3E,CACF\",\"ignoreList\":[]}"};var _worklet_8670557262418_init_data={code:"function ScrollViewGestureTsx11(){const{translation}=this.__closure;return translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx11\",\"translation\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA8RI,SAAAA,uBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAM,CAAAD,WAAY,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_8859522539420_init_data={code:"function ScrollViewGestureTsx12(){const{pagingEnabled,resetBoundary}=this.__closure;if(!pagingEnabled)resetBoundary();}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx12\",\"pagingEnabled\",\"resetBoundary\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+RI,SAAAA,sBAAMA,CAAA,QAAAC,aAAA,CAAAC,aAAA,OAAAC,SAAA,CACJ,GAAI,CAACF,aAAa,CAAEC,aAAa,CAAC,CAAC,CACrC\",\"ignoreList\":[]}"};var _worklet_12299006691003_init_data={code:"function withProcessTranslation_ScrollViewGestureTsx13(translation){const{loop,overscrollEnabled,getLimit}=this.__closure;if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"withProcessTranslation_ScrollViewGestureTsx13\",\"translation\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"limit\",\"Math\",\"min\",\"max\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAqSE,SAAAA,6CAAqDA,CAAAC,WAAA,QAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAGnD,GAAI,CAACH,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAG,KAAK,CAAGF,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAG,IAAI,CAACC,GAAG,CAAC,CAAC,CAAED,IAAI,CAACE,GAAG,CAAC,CAACH,KAAK,CAAEL,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB\",\"ignoreList\":[]}"};var _worklet_6770704903726_init_data={code:"function ScrollViewGestureTsx14(_){const{resolvedSize,sizeReady,touching,validStart,onScrollStart,scheduleOnRN,max,maxPage,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx14\",\"_\",\"resolvedSize\",\"sizeReady\",\"touching\",\"validStart\",\"onScrollStart\",\"scheduleOnRN\",\"max\",\"maxPage\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"panOffset\",\"translation\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAiTI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,GAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,SAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGd,YAAY,CAACgB,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACe,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACAb,QAAQ,CAACc,KAAK,CAAG,IAAI,CACrBb,UAAU,CAACa,KAAK,CAAG,IAAI,CACvBZ,aAAa,EAAIC,YAAY,CAACD,aAAa,CAAC,CAE5CE,GAAG,CAACU,KAAK,CAAG,CAACT,OAAO,CAAG,CAAC,EAAIQ,WAAW,CACvC,GAAI,CAACP,IAAI,EAAI,CAACC,iBAAiB,CAAEH,GAAG,CAACU,KAAK,CAAGN,QAAQ,CAAC,CAAC,CAEvDC,SAAS,CAACK,KAAK,CAAGJ,WAAW,CAACI,KAAK,CACrC\",\"ignoreList\":[]}"};var _worklet_12670828273673_init_data={code:"function ScrollViewGestureTsx15(e){const{resolvedSize,sizeReady,panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,fixedDirection,computeGestureTranslation,loop,overscrollEnabled,max}=this.__closure;var _resolvedSize$value,_overscrollEnabled;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:(_overscrollEnabled=overscrollEnabled)!==null&&_overscrollEnabled!==void 0?_overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx15\",\"e\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"validStart\",\"cancelAnimation\",\"translation\",\"touching\",\"isHorizontal\",\"fixedDirection\",\"computeGestureTranslation\",\"loop\",\"overscrollEnabled\",\"max\",\"__closure\",\"_resolvedSize$value\",\"_overscrollEnabled\",\"currentSize\",\"value\",\"undefined\",\"translationX\",\"translationY\",\"panTranslation\",\"Math\",\"abs\",\"currentTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAmVI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,cAAA,CAAAC,yBAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,GAAA,OAAAC,SAAA,KAAAC,mBAAA,CAAAC,kBAAA,CAEpC,KAAM,CAAAC,WAAW,EAAAF,mBAAA,CAAGd,YAAY,CAACiB,KAAK,UAAAH,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACgB,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACA,GAAId,SAAS,CAACe,KAAK,GAAKC,SAAS,CAAE,CAWjC,OACF,CAEA,GAAIf,UAAU,CAACc,KAAK,CAAE,CACpBd,UAAU,CAACc,KAAK,CAAG,KAAK,CACxBb,eAAe,CAACC,WAAW,CAAC,CAC9B,CACAC,QAAQ,CAACW,KAAK,CAAG,IAAI,CACrB,KAAM,CAAEE,YAAY,CAAZA,YAAY,CAAEC,YAAA,CAAAA,YAAa,CAAC,CAAGrB,CAAC,CAExC,GAAI,CAAAsB,cAAc,CAAGd,YAAY,CAACU,KAAK,CAAGE,YAAY,CAAGC,YAAY,CAErE,GAAIZ,cAAc,GAAK,UAAU,CAAEa,cAAc,CAAG,CAACC,IAAI,CAACC,GAAG,CAACF,cAAc,CAAC,CAAC,IACzE,IAAIb,cAAc,GAAK,UAAU,CAAEa,cAAc,CAAG,CAACC,IAAI,CAACC,GAAG,CAACF,cAAc,CAAC,CAElFhB,WAAW,CAACY,KAAK,CAAGR,yBAAyB,CAAC,CAC5CC,IAAI,CAAJA,IAAI,CACJC,iBAAiB,EAAAI,kBAAA,CAAEJ,iBAAiB,UAAAI,kBAAA,UAAAA,kBAAA,CAAI,IAAI,CAC5CS,kBAAkB,CAAEnB,WAAW,CAACY,KAAK,CACrCf,SAAS,CAAEA,SAAS,CAACe,KAAK,CAC1BI,cAAc,CAAdA,cAAc,CACdT,GAAG,CAAEA,GAAG,CAACK,KACX,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_3955652701817_init_data={code:"function ScrollViewGestureTsx16(e,_success){const{resolvedSize,sizeReady,panOffset,isHorizontal,scrollEndVelocity,fixedDirection,scrollEndTranslation,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,translation,withSpring,withProcessTranslation,onScrollEnd,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,loop,touching}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}const{velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}=e;const scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;const totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx16\",\"e\",\"_success\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"isHorizontal\",\"scrollEndVelocity\",\"fixedDirection\",\"scrollEndTranslation\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"translation\",\"withSpring\",\"withProcessTranslation\",\"onScrollEnd\",\"minScrollDistancePerSwipeIsSet\",\"minScrollDistancePerSwipe\",\"endWithSpring\",\"loop\",\"touching\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"undefined\",\"velocityX\",\"velocityY\",\"translationX\",\"translationY\",\"scrollEndVelocityValue\",\"panTranslation\",\"Math\",\"abs\",\"totalTranslation\",\"nextPage\",\"round\",\"sign\"],\"sources\":[\"/home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AAc,CAAC,CAElFtB,oBAAoB,CAACe,KAAK,CAAGO,cAAc,CAE3C,KAAM,CAAAG,gBAAgB,CAAGJ,sBAAsB,CAAGC,cAAc,CAMhE,GACErB,8BAA8B,EAC9BsB,IAAI,CAACC,GAAG,CAACC,gBAAgB,CAAC,CAAGvB,yBAAyB,CACtD,CACA,KAAM,CAAAwB,QAAQ,CACZH,IAAI,CAACI,KAAK,CACR,CAAC/B,SAAS,CAACmB,KAAK,CAAGb,yBAAyB,CAAGqB,IAAI,CAACK,IAAI,CAACH,gBAAgB,CAAC,EACxEX,WACJ,CAAC,CAAGA,WAAW,CACjBX,WAAW,CAACY,KAAK,CAAGX,UAAU,CAACC,sBAAsB,CAACqB,QAAQ,CAAC,CAAEpB,WAAW,CAAC,CAC/E,CAAC,IAAM,IAKLC,8BAA8B,EAC9BgB,IAAI,CAACC,GAAG,CAACC,gBAAgB,CAAC,CAAGjB,yBAAyB,CACtD,CACA,KAAM,CAAAkB,QAAQ,CACZH,IAAI,CAACI,KAAK,CACR,CAAC/B,SAAS,CAACmB,KAAK,CAAGP,yBAAyB,CAAGe,IAAI,CAACK,IAAI,CAACH,gBAAgB,CAAC,EACxEX,WACJ,CAAC,CAAGA,WAAW,CACjBX,WAAW,CAACY,KAAK,CAAGX,UAAU,CAACC,sBAAsB,CAACqB,QAAQ,CAAC,CAAEpB,WAAW,CAAC,CAC/E,CAAC,IAAM,CACLG,aAAa,CAACa,cAAc,CAAED,sBAAsB,CAAEf,WAAW,CAAC,CACpE,CAEA,GAAI,CAACI,IAAI,CAAEC,QAAQ,CAACI,KAAK,CAAG,KAAK,CAEjCnB,SAAS,CAACmB,KAAK,CAAGC,SAAS,CAC7B\",\"ignoreList\":[]}"};var _worklet_16842131914021_init_data={code:"function ScrollViewGestureTsx17(e){const{vertical,sizeExplicit,resolvedSize,sizePhase,updateContainerSize}=this.__closure;const measuredWidth=e.nativeEvent.layout.width;const measuredHeight=e.nativeEvent.layout.height;const measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value;const current=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?\"updating\":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value=\"ready\";}}updateContainerSize({width:measuredWidth,height:measuredHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx17\",\"e\",\"vertical\",\"sizeExplicit\",\"resolvedSize\",\"sizePhase\",\"updateContainerSize\",\"__closure\",\"measuredWidth\",\"nativeEvent\",\"layout\",\"width\",\"measuredHeight\",\"height\",\"measuredSize\",\"Math\",\"round\",\"_resolvedSize$value\",\"current\",\"value\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0eI,QAAC,CAAAA,sBAAyBA,CAAAC,CAAA,QAAAC,QAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,SAAA,CAAAC,mBAAA,OAAAC,SAAA,CAGxB,KAAM,CAAAC,aAAa,CAAGP,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAChD,KAAM,CAAAC,cAAc,CAAGX,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACG,MAAM,CAClD,KAAM,CAAAC,YAAY,CAAGC,IAAI,CAACC,KAAK,CAAC,CAACd,QAAQ,CAAGU,cAAc,CAAGJ,aAAa,GAAK,CAAC,CAAC,CAEjF,GAAI,CAACL,YAAY,EAAIW,YAAY,CAAG,CAAC,CAAE,KAAAG,mBAAA,CACrC,KAAM,CAAAC,OAAO,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CACvC,GAAIF,IAAI,CAACK,GAAG,CAACF,OAAO,CAAGJ,YAAY,CAAC,CAAG,CAAC,CAAE,CACxCT,SAAS,CAACc,KAAK,CAAGD,OAAO,CAAG,CAAC,CAAG,UAAU,CAAGb,SAAS,CAACc,KAAK,CAC5Df,YAAY,CAACe,KAAK,CAAGL,YAAY,CACjCT,SAAS,CAACc,KAAK,CAAG,OAAO,CAC3B,CACF,CAEAb,mBAAmB,CAAC,CAClBK,KAAK,CAAEH,aAAa,CACpBK,MAAM,CAAED,cACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var IScrollViewGesture=function IScrollViewGesture(props){var _useGlobalState=(0,_store.useGlobalState)(),_useGlobalState$props=_useGlobalState.props,onConfigurePanGesture=_useGlobalState$props.onConfigurePanGesture,vertical=_useGlobalState$props.vertical,pagingEnabled=_useGlobalState$props.pagingEnabled,snapEnabled=_useGlobalState$props.snapEnabled,loop=_useGlobalState$props.loop,scrollAnimationDuration=_useGlobalState$props.scrollAnimationDuration,withAnimation=_useGlobalState$props.withAnimation,enabled=_useGlobalState$props.enabled,dataLength=_useGlobalState$props.dataLength,overscrollEnabled=_useGlobalState$props.overscrollEnabled,maxScrollDistancePerSwipe=_useGlobalState$props.maxScrollDistancePerSwipe,minScrollDistancePerSwipe=_useGlobalState$props.minScrollDistancePerSwipe,fixedDirection=_useGlobalState$props.fixedDirection,_useGlobalState$commo=_useGlobalState.common,size=_useGlobalState$commo.size,resolvedSize=_useGlobalState$commo.resolvedSize,sizePhase=_useGlobalState$commo.sizePhase,sizeExplicit=_useGlobalState$commo.sizeExplicit,updateContainerSize=_useGlobalState.layout.updateContainerSize;var translation=props.translation,testID=props.testID,_props$style=props.style,style=_props$style===void 0?{}:_props$style,onScrollStart=props.onScrollStart,onScrollEnd=props.onScrollEnd,onTouchBegin=props.onTouchBegin,onTouchEnd=props.onTouchEnd;var maxPage=dataLength;var isHorizontal=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx1Factory(_ref){var _worklet_7087640017863_init_data=_ref._worklet_7087640017863_init_data,vertical=_ref.vertical;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx1=function ScrollViewGestureTsx1(){return!vertical;};ScrollViewGestureTsx1.__closure={vertical:vertical};ScrollViewGestureTsx1.__workletHash=7087640017863;ScrollViewGestureTsx1.__pluginVersion="0.5.2";ScrollViewGestureTsx1.__initData=_worklet_7087640017863_init_data;ScrollViewGestureTsx1.__stackDetails=_e;return ScrollViewGestureTsx1;}({_worklet_7087640017863_init_data:_worklet_7087640017863_init_data,vertical:vertical}),[vertical]);var max=(0,_reactNativeReanimated.useSharedValue)(0);var panOffset=(0,_reactNativeReanimated.useSharedValue)(undefined);var touching=(0,_reactNativeReanimated.useSharedValue)(false);var validStart=(0,_reactNativeReanimated.useSharedValue)(false);var scrollEndTranslation=(0,_reactNativeReanimated.useSharedValue)(0);var scrollEndVelocity=(0,_reactNativeReanimated.useSharedValue)(0);var containerRef=(0,_reactNativeReanimated.useAnimatedRef)();var maxScrollDistancePerSwipeIsSet=typeof maxScrollDistancePerSwipe==="number";var minScrollDistancePerSwipeIsSet=typeof minScrollDistancePerSwipe==="number";var sizeReady=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&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_773369069625_init_data=_ref3._worklet_773369069625_init_data,size=_ref3.size,loop=_ref3.loop,overscrollEnabled=_ref3.overscrollEnabled,measure=_ref3.measure,containerRef=_ref3.containerRef,dataLength=_ref3.dataLength;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx3=function ScrollViewGestureTsx3(){if(size<=0)return 0;if(!loop&&!overscrollEnabled){var measurement=measure(containerRef);var containerWidth=(measurement==null?void 0:measurement.width)||0;if(dataLength*size<containerWidth)return 0;return dataLength*size-containerWidth;}return dataLength*size;};ScrollViewGestureTsx3.__closure={size:size,loop:loop,overscrollEnabled:overscrollEnabled,measure:measure,containerRef:containerRef,dataLength:dataLength};ScrollViewGestureTsx3.__workletHash=773369069625;ScrollViewGestureTsx3.__pluginVersion="0.5.2";ScrollViewGestureTsx3.__initData=_worklet_773369069625_init_data;ScrollViewGestureTsx3.__stackDetails=_e;return ScrollViewGestureTsx3;}({_worklet_773369069625_init_data:_worklet_773369069625_init_data,size:size,loop:loop,overscrollEnabled:overscrollEnabled,measure:_reactNativeReanimated.measure,containerRef:containerRef,dataLength:dataLength}),[loop,size,dataLength,overscrollEnabled]);var withSpring=_react.default.useCallback(function ScrollViewGestureTsx5Factory(_ref4){var _worklet_1300349626787_init_data=_ref4._worklet_1300349626787_init_data,scrollAnimationDuration=_ref4.scrollAnimationDuration,Easing=_ref4.Easing,dealWithAnimation=_ref4.dealWithAnimation,withAnimation=_ref4.withAnimation,_worklet_2188036911353_init_data=_ref4._worklet_2188036911353_init_data,scheduleOnRN=_ref4.scheduleOnRN;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx5=function ScrollViewGestureTsx5(toValue,onFinished){var defaultWithAnimation={type:"timing",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation(withAnimation!=null?withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory(_ref5){var _worklet_2188036911353_init_data=_ref5._worklet_2188036911353_init_data,onFinished=_ref5.onFinished,scheduleOnRN=_ref5.scheduleOnRN;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx4=function ScrollViewGestureTsx4(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion="0.5.2";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));};ScrollViewGestureTsx5.__closure={scrollAnimationDuration:scrollAnimationDuration,Easing:Easing,dealWithAnimation:dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx5.__workletHash=1300349626787;ScrollViewGestureTsx5.__pluginVersion="0.5.2";ScrollViewGestureTsx5.__initData=_worklet_1300349626787_init_data;ScrollViewGestureTsx5.__stackDetails=_e;return ScrollViewGestureTsx5;}({_worklet_1300349626787_init_data:_worklet_1300349626787_init_data,scrollAnimationDuration:scrollAnimationDuration,Easing:_constants.Easing,dealWithAnimation:_dealWithAnimation.dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[scrollAnimationDuration,withAnimation]);var endWithSpring=_react.default.useCallback(function ScrollViewGestureTsx6Factory(_ref6){var _worklet_9858368380469_init_data=_ref6._worklet_9858368380469_init_data,resolvedSize=_ref6.resolvedSize,translation=_ref6.translation,withDecay=_ref6.withDecay,maxScrollDistancePerSwipeIsSet=_ref6.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref6.maxScrollDistancePerSwipe,pagingEnabled=_ref6.pagingEnabled,withSpring=_ref6.withSpring,loop=_ref6.loop,maxPage=_ref6.maxPage,snapEnabled=_ref6.snapEnabled,overscrollEnabled=_ref6.overscrollEnabled,getLimit=_ref6.getLimit;var _e=[new global.Error(),-13,-27];var ScrollViewGestureTsx6=function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0){return;}var origin=translation.value;var velocity=scrollEndVelocityValue;var finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{var nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){var offset=-(scrollEndTranslationValue>=0?1:-1);var computed=offset<0?Math.ceil:Math.floor;var page=computed(-origin/currentSize);var velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){var finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{var _finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-_finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}};ScrollViewGestureTsx6.__closure={resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit};ScrollViewGestureTsx6.__workletHash=9858368380469;ScrollViewGestureTsx6.__pluginVersion="0.5.2";ScrollViewGestureTsx6.__initData=_worklet_9858368380469_init_data;ScrollViewGestureTsx6.__stackDetails=_e;return ScrollViewGestureTsx6;}({_worklet_9858368380469_init_data:_worklet_9858368380469_init_data,resolvedSize:resolvedSize,translation:translation,withDecay:_reactNativeReanimated.withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapEnabled,translation,pagingEnabled,maxScrollDistancePerSwipe,maxScrollDistancePerSwipeIsSet]);var onFinish=_react.default.useCallback(function ScrollViewGestureTsx7Factory(_ref7){var _worklet_9026185779806_init_data=_ref7._worklet_9026185779806_init_data,touching=_ref7.touching,onScrollEnd=_ref7.onScrollEnd,scheduleOnRN=_ref7.scheduleOnRN;var _e=[new global.Error(),-4,-27];var ScrollViewGestureTsx7=function ScrollViewGestureTsx7(isFinished){if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}};ScrollViewGestureTsx7.__closure={touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx7.__workletHash=9026185779806;ScrollViewGestureTsx7.__pluginVersion="0.5.2";ScrollViewGestureTsx7.__initData=_worklet_9026185779806_init_data;ScrollViewGestureTsx7.__stackDetails=_e;return ScrollViewGestureTsx7;}({_worklet_9026185779806_init_data:_worklet_9026185779806_init_data,touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=_react.default.useCallback(function ScrollViewGestureTsx8Factory(_ref8){var _worklet_5593859302814_init_data=_ref8._worklet_5593859302814_init_data,touching=_ref8.touching,translation=_ref8.translation,withDecay=_ref8.withDecay,scrollEndVelocity=_ref8.scrollEndVelocity,onFinish=_ref8.onFinish;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx8=function ScrollViewGestureTsx8(){touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function ScrollViewGestureTsx9Factory(_ref9){var _worklet_10440224148495_init_data=_ref9._worklet_10440224148495_init_data,onFinish=_ref9.onFinish;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx9=function ScrollViewGestureTsx9(isFinished){return onFinish(isFinished);};ScrollViewGestureTsx9.__closure={onFinish:onFinish};ScrollViewGestureTsx9.__workletHash=10440224148495;ScrollViewGestureTsx9.__pluginVersion="0.5.2";ScrollViewGestureTsx9.__initData=_worklet_10440224148495_init_data;ScrollViewGestureTsx9.__stackDetails=_e;return ScrollViewGestureTsx9;}({_worklet_10440224148495_init_data:_worklet_10440224148495_init_data,onFinish:onFinish}));};ScrollViewGestureTsx8.__closure={touching:touching,translation:translation,withDecay:withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish};ScrollViewGestureTsx8.__workletHash=5593859302814;ScrollViewGestureTsx8.__pluginVersion="0.5.2";ScrollViewGestureTsx8.__initData=_worklet_5593859302814_init_data;ScrollViewGestureTsx8.__stackDetails=_e;return ScrollViewGestureTsx8;}({_worklet_5593859302814_init_data:_worklet_5593859302814_init_data,touching:touching,translation:translation,withDecay:_reactNativeReanimated.withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=_react.default.useCallback(function ScrollViewGestureTsx10Factory(_ref0){var _worklet_1192613327258_init_data=_ref0._worklet_1192613327258_init_data,resolvedSize=_ref0.resolvedSize,touching=_ref0.touching,translation=_ref0.translation,scrollEndTranslation=_ref0.scrollEndTranslation,activeDecay=_ref0.activeDecay,loop=_ref0.loop,withSpring=_ref0.withSpring,maxPage=_ref0.maxPage;var _e=[new global.Error(),-9,-27];var ScrollViewGestureTsx10=function ScrollViewGestureTsx10(){var _resolvedSize$value3;var currentSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}};ScrollViewGestureTsx10.__closure={resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage};ScrollViewGestureTsx10.__workletHash=1192613327258;ScrollViewGestureTsx10.__pluginVersion="0.5.2";ScrollViewGestureTsx10.__initData=_worklet_1192613327258_init_data;ScrollViewGestureTsx10.__stackDetails=_e;return ScrollViewGestureTsx10;}({_worklet_1192613327258_init_data:_worklet_1192613327258_init_data,resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage}),[touching,translation,maxPage,resolvedSize,scrollEndTranslation,loop,activeDecay,withSpring]);(0,_reactNativeReanimated.useAnimatedReaction)(function ScrollViewGestureTsx11Factory(_ref1){var _worklet_8670557262418_init_data=_ref1._worklet_8670557262418_init_data,translation=_ref1.translation;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx11=function ScrollViewGestureTsx11(){return translation.value;};ScrollViewGestureTsx11.__closure={translation:translation};ScrollViewGestureTsx11.__workletHash=8670557262418;ScrollViewGestureTsx11.__pluginVersion="0.5.2";ScrollViewGestureTsx11.__initData=_worklet_8670557262418_init_data;ScrollViewGestureTsx11.__stackDetails=_e;return ScrollViewGestureTsx11;}({_worklet_8670557262418_init_data:_worklet_8670557262418_init_data,translation:translation}),function ScrollViewGestureTsx12Factory(_ref10){var _worklet_8859522539420_init_data=_ref10._worklet_8859522539420_init_data,pagingEnabled=_ref10.pagingEnabled,resetBoundary=_ref10.resetBoundary;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx12=function ScrollViewGestureTsx12(){if(!pagingEnabled)resetBoundary();};ScrollViewGestureTsx12.__closure={pagingEnabled:pagingEnabled,resetBoundary:resetBoundary};ScrollViewGestureTsx12.__workletHash=8859522539420;ScrollViewGestureTsx12.__pluginVersion="0.5.2";ScrollViewGestureTsx12.__initData=_worklet_8859522539420_init_data;ScrollViewGestureTsx12.__stackDetails=_e;return ScrollViewGestureTsx12;}({_worklet_8859522539420_init_data:_worklet_8859522539420_init_data,pagingEnabled:pagingEnabled,resetBoundary:resetBoundary}),[pagingEnabled,resetBoundary]);var withProcessTranslation=function withProcessTranslation_ScrollViewGestureTsx13Factory(_ref11){var _worklet_12299006691003_init_data=_ref11._worklet_12299006691003_init_data,loop=_ref11.loop,overscrollEnabled=_ref11.overscrollEnabled,getLimit=_ref11.getLimit;var _e=[new global.Error(),-4,-27];var withProcessTranslation=function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;};withProcessTranslation.__closure={loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit};withProcessTranslation.__workletHash=12299006691003;withProcessTranslation.__pluginVersion="0.5.2";withProcessTranslation.__initData=_worklet_12299006691003_init_data;withProcessTranslation.__stackDetails=_e;return withProcessTranslation;}({_worklet_12299006691003_init_data:_worklet_12299006691003_init_data,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit});var onGestureStart=(0,_react.useCallback)(function ScrollViewGestureTsx14Factory(_ref12){var _worklet_6770704903726_init_data=_ref12._worklet_6770704903726_init_data,resolvedSize=_ref12.resolvedSize,sizeReady=_ref12.sizeReady,touching=_ref12.touching,validStart=_ref12.validStart,onScrollStart=_ref12.onScrollStart,scheduleOnRN=_ref12.scheduleOnRN,max=_ref12.max,maxPage=_ref12.maxPage,loop=_ref12.loop,overscrollEnabled=_ref12.overscrollEnabled,getLimit=_ref12.getLimit,panOffset=_ref12.panOffset,translation=_ref12.translation;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx14=function ScrollViewGestureTsx14(_){var _resolvedSize$value4;var currentSize=(_resolvedSize$value4=resolvedSize.value)!=null?_resolvedSize$value4:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;};ScrollViewGestureTsx14.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation};ScrollViewGestureTsx14.__workletHash=6770704903726;ScrollViewGestureTsx14.__pluginVersion="0.5.2";ScrollViewGestureTsx14.__initData=_worklet_6770704903726_init_data;ScrollViewGestureTsx14.__stackDetails=_e;return ScrollViewGestureTsx14;}({_worklet_6770704903726_init_data:_worklet_6770704903726_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation}),[max,maxPage,loop,touching,panOffset,validStart,translation,overscrollEnabled,getLimit,onScrollStart,sizeReady,resolvedSize]);var onGestureUpdate=(0,_react.useCallback)(function ScrollViewGestureTsx15Factory(_ref13){var _worklet_12670828273673_init_data=_ref13._worklet_12670828273673_init_data,resolvedSize=_ref13.resolvedSize,sizeReady=_ref13.sizeReady,panOffset=_ref13.panOffset,validStart=_ref13.validStart,cancelAnimation=_ref13.cancelAnimation,translation=_ref13.translation,touching=_ref13.touching,isHorizontal=_ref13.isHorizontal,fixedDirection=_ref13.fixedDirection,computeGestureTranslation=_ref13.computeGestureTranslation,loop=_ref13.loop,overscrollEnabled=_ref13.overscrollEnabled,max=_ref13.max;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx15=function ScrollViewGestureTsx15(e){var _resolvedSize$value5;var currentSize=(_resolvedSize$value5=resolvedSize.value)!=null?_resolvedSize$value5:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;var translationX=e.translationX,translationY=e.translationY;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:overscrollEnabled!=null?overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});};ScrollViewGestureTsx15.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max};ScrollViewGestureTsx15.__workletHash=12670828273673;ScrollViewGestureTsx15.__pluginVersion="0.5.2";ScrollViewGestureTsx15.__initData=_worklet_12670828273673_init_data;ScrollViewGestureTsx15.__stackDetails=_e;return ScrollViewGestureTsx15;}({_worklet_12670828273673_init_data:_worklet_12670828273673_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:_reactNativeReanimated.cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:_computeGestureTranslation.computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,fixedDirection,translation,validStart,touching,sizeReady,resolvedSize]);var onGestureEnd=(0,_react.useCallback)(function ScrollViewGestureTsx16Factory(_ref14){var _worklet_3955652701817_init_data=_ref14._worklet_3955652701817_init_data,resolvedSize=_ref14.resolvedSize,sizeReady=_ref14.sizeReady,panOffset=_ref14.panOffset,isHorizontal=_ref14.isHorizontal,scrollEndVelocity=_ref14.scrollEndVelocity,fixedDirection=_ref14.fixedDirection,scrollEndTranslation=_ref14.scrollEndTranslation,maxScrollDistancePerSwipeIsSet=_ref14.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref14.maxScrollDistancePerSwipe,translation=_ref14.translation,withSpring=_ref14.withSpring,withProcessTranslation=_ref14.withProcessTranslation,onScrollEnd=_ref14.onScrollEnd,minScrollDistancePerSwipeIsSet=_ref14.minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe=_ref14.minScrollDistancePerSwipe,endWithSpring=_ref14.endWithSpring,loop=_ref14.loop,touching=_ref14.touching;var _e=[new global.Error(),-19,-27];var ScrollViewGestureTsx16=function ScrollViewGestureTsx16(e,_success){var _resolvedSize$value6;var currentSize=(_resolvedSize$value6=resolvedSize.value)!=null?_resolvedSize$value6:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}var velocityX=e.velocityX,velocityY=e.velocityY,translationX=e.translationX,translationY=e.translationY;var scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;var totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){var nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){var _nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(_nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;};ScrollViewGestureTsx16.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching};ScrollViewGestureTsx16.__workletHash=3955652701817;ScrollViewGestureTsx16.__pluginVersion="0.5.2";ScrollViewGestureTsx16.__initData=_worklet_3955652701817_init_data;ScrollViewGestureTsx16.__stackDetails=_e;return ScrollViewGestureTsx16;}({_worklet_3955652701817_init_data:_worklet_3955652701817_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching}),[loop,touching,panOffset,translation,isHorizontal,scrollEndVelocity,scrollEndTranslation,fixedDirection,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,withSpring,onScrollEnd,sizeReady,resolvedSize]);var gesture=(0,_usePanGestureProxy.usePanGestureProxy)({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:enabled}});var onLayout=_react.default.useCallback(function ScrollViewGestureTsx17Factory(_ref15){var _worklet_16842131914021_init_data=_ref15._worklet_16842131914021_init_data,vertical=_ref15.vertical,sizeExplicit=_ref15.sizeExplicit,resolvedSize=_ref15.resolvedSize,sizePhase=_ref15.sizePhase,updateContainerSize=_ref15.updateContainerSize;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx17=function ScrollViewGestureTsx17(e){var measuredWidth=e.nativeEvent.layout.width;var measuredHeight=e.nativeEvent.layout.height;var measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value7;var current=(_resolvedSize$value7=resolvedSize.value)!=null?_resolvedSize$value7:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?"updating":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value="ready";}}updateContainerSize({width:measuredWidth,height:measuredHeight});};ScrollViewGestureTsx17.__closure={vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize};ScrollViewGestureTsx17.__workletHash=16842131914021;ScrollViewGestureTsx17.__pluginVersion="0.5.2";ScrollViewGestureTsx17.__initData=_worklet_16842131914021_init_data;ScrollViewGestureTsx17.__stackDetails=_e;return ScrollViewGestureTsx17;}({_worklet_16842131914021_init_data:_worklet_16842131914021_init_data,vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize}),[updateContainerSize,resolvedSize,sizePhase,vertical,sizeExplicit]);return(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector,{gesture:gesture,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{ref:containerRef,testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd: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 _constants=require("../constants");var _usePanGestureProxy=require("../hooks/usePanGestureProxy");var _store=require("../store");var _computeGestureTranslation=require("../utils/compute-gesture-translation");var _dealWithAnimation=require("../utils/deal-with-animation");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_7087640017863_init_data={code:"function ScrollViewGestureTsx1(){const{vertical}=this.__closure;return!vertical;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx1\",\"vertical\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsEuC,SAAAA,sBAAA,QAAAC,QAAA,OAAAC,SAAA,OAAO,CAAAD,QAAA\",\"ignoreList\":[]}"};var _worklet_1256203969722_init_data={code:"function ScrollViewGestureTsx2(){const{resolvedSize,sizePhase}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;return sizePhase.value===\"ready\"&&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\":\"AA+EoC,SAAAA,qBAAMA,CAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,mBAAA,CACtC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGH,YAAY,CAACK,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,MAAO,CAAAF,SAAS,CAACI,KAAK,GAAK,OAAO,EAAID,WAAW,CAAG,CAAC,CACvD\",\"ignoreList\":[]}"};var _worklet_13810561592306_init_data={code:"function ScrollViewGestureTsx3(){const{size,loop,overscrollEnabled,vertical,containerSize,dataLength}=this.__closure;if(size<=0)return 0;if(!loop&&!overscrollEnabled){const containerMainAxisSize=vertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx3\",\"size\",\"loop\",\"overscrollEnabled\",\"vertical\",\"containerSize\",\"dataLength\",\"__closure\",\"containerMainAxisSize\",\"value\",\"height\",\"width\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAqFqC,SAAAA,qBAAMA,CAAA,QAAAC,IAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,aAAA,CAAAC,UAAA,OAAAC,SAAA,CAGvC,GAAIN,IAAI,EAAI,CAAC,CAAE,MAAO,EAAC,CAEvB,GAAI,CAACC,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAK,qBAAqB,CAAGJ,QAAQ,CAClCC,aAAa,CAACI,KAAK,CAACC,MAAM,CAC1BL,aAAa,CAACI,KAAK,CAACE,KAAK,CAG7B,GAAIH,qBAAqB,EAAI,CAAC,EAAIF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAAE,MAAO,EAAC,CAGrF,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAAGO,qBAAqB,CAClD,CAEA,MAAO,CAAAF,UAAU,CAAGL,IAAI,CAC1B\",\"ignoreList\":[]}"};var _worklet_2188036911353_init_data={code:"function ScrollViewGestureTsx4(isFinished){const{onFinished,scheduleOnRN}=this.__closure;if(isFinished)onFinished&&scheduleOnRN(onFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx4\",\"isFinished\",\"onFinished\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsHQ,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,UAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIH,UAAU,CAAEC,UAAU,EAAIC,YAAY,CAACD,UAAU,CAAC,CACxD\",\"ignoreList\":[]}"};var _worklet_1300349626787_init_data={code:"function ScrollViewGestureTsx5(toValue,onFinished){const{scrollAnimationDuration,Easing,dealWithAnimation,withAnimation,_worklet_2188036911353_init_data,scheduleOnRN}=this.__closure;var _withAnimation;const defaultWithAnimation={type:\"timing\",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation((_withAnimation=withAnimation)!==null&&_withAnimation!==void 0?_withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}){const _e=[new global.Error(),-3,-27];const ScrollViewGestureTsx4=function(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion=\"0.5.2\";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx5\",\"toValue\",\"onFinished\",\"scrollAnimationDuration\",\"Easing\",\"dealWithAnimation\",\"withAnimation\",\"_worklet_2188036911353_init_data\",\"scheduleOnRN\",\"__closure\",\"_withAnimation\",\"defaultWithAnimation\",\"type\",\"config\",\"duration\",\"easing\",\"easeOutQuart\",\"ScrollViewGestureTsx4Factory\",\"_e\",\"global\",\"Error\",\"ScrollViewGestureTsx4\",\"isFinished\",\"__workletHash\",\"__pluginVersion\",\"__initData\",\"__stackDetails\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0GI,QAAC,CAAAA,qBAAwCA,CAAAC,OAAK,CAAAC,UAAA,QAAAC,uBAAA,CAAAC,MAAA,CAAAC,iBAAA,CAAAC,aAAA,CAAAC,gCAAA,CAAAC,YAAA,OAAAC,SAAA,KAAAC,cAAA,CAE5C,KAAM,CAAAC,oBAAyC,CAAG,CAChDC,IAAI,CAAE,QAAQ,CACdC,MAAM,CAAE,CACNC,QAAQ,CAAEX,uBAAuB,CAAG,GAAG,CACvCY,MAAM,CAAEX,MAAM,CAACY,YACjB,CACF,CAAC,CAED,MAAO,CAAAX,iBAAiB,EAAAK,cAAA,CAACJ,aAAa,UAAAI,cAAA,UAAAA,cAAA,CAAIC,oBAAoB,CAAC,CAC7DV,OAAO,CACP,SAAAgB,6BAAA,CAAAV,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,SAAAU,EAAA,MAAAC,MAAA,CAAAC,KAAA,iBAAAC,qBAAA,SAAAA,CAF3CC,UAAmB,CAAK,CAEvB,GAAIA,UAAU,CAAEpB,UAAU,EAAIM,YAAY,CAACN,UAAU,CAAC,CACxD,CAAC,CAAAmB,qBAAA,CAAAZ,SAAA,EADiBP,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAAAa,qBAAA,CAAAE,aAAA,eAAAF,qBAAA,CAAAG,eAAA,SAAAH,qBAAA,CAAAI,UAAA,CAAAlB,gCAAA,CAAAc,qBAAA,CAAAK,cAAA,CAAAR,EAAA,QAAAG,qBAAA,EAF5C,EAAAd,gCAAA,CAAAA,gCAAA,CAEkBL,UAAU,CAAVA,UAAU,CAAIM,YAAA,CAAAA,YAAY,EAE9C,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_9858368380469_init_data={code:"function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{resolvedSize,translation,withDecay,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,pagingEnabled,withSpring,loop,maxPage,snapEnabled,overscrollEnabled,getLimit}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0){return;}const origin=translation.value;const velocity=scrollEndVelocityValue;let finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{const nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){const offset=-(scrollEndTranslationValue>=0?1:-1);const computed=offset<0?Math.ceil:Math.floor;const page=computed(-origin/currentSize);const velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){const finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{const finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx6\",\"scrollEndTranslationValue\",\"scrollEndVelocityValue\",\"onFinished\",\"resolvedSize\",\"translation\",\"withDecay\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"pagingEnabled\",\"withSpring\",\"loop\",\"maxPage\",\"snapEnabled\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"origin\",\"velocity\",\"finalTranslation\",\"deceleration\",\"Math\",\"abs\",\"nextPage\",\"round\",\"offset\",\"computed\",\"ceil\",\"floor\",\"page\",\"velocityDirection\",\"sign\",\"withProcessTranslation\",\"finalPage\",\"min\",\"max\",\"limit\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAgII,QACE,CAAAA,sBAAAC,yBACA,CAAAC,sBAEG,CAAAC,UAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,8BAAA,CAAAC,yBAAA,CAAAC,aAAA,CAAAC,UAAA,CAAAC,IAAA,CAAAC,OAAA,CAAAC,WAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIH,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,CACpB,OACF,CACA,KAAM,CAAAE,MAAM,CAAGf,WAAW,CAACc,KAAK,CAChC,KAAM,CAAAE,QAAQ,CAAGnB,sBAAsB,CAEvC,GAAI,CAAAoB,gBAAwB,CAAGhB,SAAS,CAAC,CAAEe,QAAQ,CAARA,QAAQ,CAAEE,YAAY,CAAE,KAAM,CAAC,CAAC,CAG3E,GACEhB,8BAA8B,EAC9BiB,IAAI,CAACC,GAAG,CAACxB,yBAAyB,CAAC,CAAGO,yBAAyB,CAC/D,CACAc,gBAAgB,CAAGF,MAAM,CAC3B,CAAC,IAAM,CAYL,KAAM,CAAAM,QAAQ,CAAG,CAACF,IAAI,CAACG,KAAK,CAAC,CAACP,MAAM,CAAGC,QAAQ,CAAG,CAAC,EAAIH,WAAW,CAAC,CAEnE,GAAIT,aAAa,CAAE,CAKjB,KAAM,CAAAmB,MAAM,CAAG,EAAE3B,yBAAyB,EAAI,CAAC,CAAG,CAAC,CAAG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,CAAE,CAC/B,KAAM,CAAAyB,KAAK,CAAGxB,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAS,IAAI,CAACa,GAAG,CAAC,CAAC,CAAEb,IAAI,CAACc,GAAG,CAAC,CAACC,KAAK,CAAElC,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB,CACF\",\"ignoreList\":[]}"};var _worklet_9026185779806_init_data={code:"function ScrollViewGestureTsx7(isFinished){const{touching,onScrollEnd,scheduleOnRN}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx7\",\"isFinished\",\"touching\",\"onScrollEnd\",\"scheduleOnRN\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAoOI,QAAC,CAAAA,qBAAwBA,CAAAC,UAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,YAAA,OAAAC,SAAA,CAEvB,GAAIJ,UAAU,CAAE,CACdC,QAAQ,CAACI,KAAK,CAAG,KAAK,CACtBH,WAAW,EAAIC,YAAY,CAACD,WAAW,CAAC,CAC1C,CACF\",\"ignoreList\":[]}"};var _worklet_5593859302814_init_data={code:"function ScrollViewGestureTsx8(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx8\",\"touching\",\"translation\",\"withDecay\",\"scrollEndVelocity\",\"onFinish\",\"__closure\",\"value\",\"velocity\",\"isFinished\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA8OwC,SAAAA,qBAAMA,CAAA,QAAAC,QAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAE1CL,QAAQ,CAACM,KAAK,CAAG,IAAI,CACrBL,WAAW,CAACK,KAAK,CAAGJ,SAAS,CAAC,CAAEK,QAAQ,CAAEJ,iBAAiB,CAACG,KAAM,CAAC,CAAG,SAAAE,UAAU,QAC9E,CAAAJ,QAAQ,CAACI,UAAqB,CAChC,GAAC,CACH\",\"ignoreList\":[]}"};var _worklet_10440224148495_init_data={code:"function ScrollViewGestureTsx9(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx9\",\"isFinished\",\"onFinish\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAiP0E,SAAAA,qBAAUA,CAAAC,UAAA,QAAAC,QAAA,OAAAC,SAAA,OAC9E,CAAAD,QAAS,CAAAD,UAAqB\",\"ignoreList\":[]}"};var _worklet_1192613327258_init_data={code:"function ScrollViewGestureTsx10(){const{resolvedSize,touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx10\",\"resolvedSize\",\"touching\",\"translation\",\"scrollEndTranslation\",\"activeDecay\",\"loop\",\"withSpring\",\"maxPage\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAsP0C,SAAAA,sBAAMA,CAAA,QAAAC,YAAA,CAAAC,QAAA,CAAAC,WAAA,CAAAC,oBAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,OAAA,OAAAC,SAAA,KAAAC,mBAAA,CAI5C,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGT,YAAY,CAACW,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAIC,WAAW,EAAI,CAAC,CAAE,OACtB,GAAIT,QAAQ,CAACU,KAAK,CAAE,OAEpB,GAAIT,WAAW,CAACS,KAAK,CAAG,CAAC,CAAE,CACzB,GAAIR,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAE,CACTH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,CAAC,CAAC,CACjC,OACF,CACF,CAEA,GAAIJ,WAAW,CAACS,KAAK,CAAG,EAAE,CAACJ,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAE,CACtD,GAAIP,oBAAoB,CAACQ,KAAK,CAAG,CAAC,CAAE,CAClCP,WAAW,CAAC,CAAC,CACb,OACF,CACA,GAAI,CAACC,IAAI,CAAEH,WAAW,CAACS,KAAK,CAAGL,UAAU,CAAC,EAAE,CAACC,OAAO,CAAG,CAAC,EAAIG,WAAW,CAAC,CAAC,CAC3E,CACF\",\"ignoreList\":[]}"};var _worklet_8670557262418_init_data={code:"function ScrollViewGestureTsx11(){const{translation}=this.__closure;return translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx11\",\"translation\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA4RI,SAAAA,uBAAA,QAAAC,WAAA,OAAAC,SAAA,OAAM,CAAAD,WAAY,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_8859522539420_init_data={code:"function ScrollViewGestureTsx12(){const{pagingEnabled,resetBoundary}=this.__closure;if(!pagingEnabled)resetBoundary();}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx12\",\"pagingEnabled\",\"resetBoundary\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA6RI,SAAAA,sBAAMA,CAAA,QAAAC,aAAA,CAAAC,aAAA,OAAAC,SAAA,CACJ,GAAI,CAACF,aAAa,CAAEC,aAAa,CAAC,CAAC,CACrC\",\"ignoreList\":[]}"};var _worklet_12299006691003_init_data={code:"function withProcessTranslation_ScrollViewGestureTsx13(translation){const{loop,overscrollEnabled,getLimit}=this.__closure;if(!loop&&!overscrollEnabled){const limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"withProcessTranslation_ScrollViewGestureTsx13\",\"translation\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"__closure\",\"limit\",\"Math\",\"min\",\"max\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAmSE,SAAAA,6CAAqDA,CAAAC,WAAA,QAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,OAAAC,SAAA,CAGnD,GAAI,CAACH,IAAI,EAAI,CAACC,iBAAiB,CAAE,CAC/B,KAAM,CAAAG,KAAK,CAAGF,QAAQ,CAAC,CAAC,CACxB,MAAO,CAAAG,IAAI,CAACC,GAAG,CAAC,CAAC,CAAED,IAAI,CAACE,GAAG,CAAC,CAACH,KAAK,CAAEL,WAAW,CAAC,CAAC,CACnD,CAEA,MAAO,CAAAA,WAAW,CACpB\",\"ignoreList\":[]}"};var _worklet_6770704903726_init_data={code:"function ScrollViewGestureTsx14(_){const{resolvedSize,sizeReady,touching,validStart,onScrollStart,scheduleOnRN,max,maxPage,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx14\",\"_\",\"resolvedSize\",\"sizeReady\",\"touching\",\"validStart\",\"onScrollStart\",\"scheduleOnRN\",\"max\",\"maxPage\",\"loop\",\"overscrollEnabled\",\"getLimit\",\"panOffset\",\"translation\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA+SI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,UAAA,CAAAC,aAAA,CAAAC,YAAA,CAAAC,GAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,QAAA,CAAAC,SAAA,CAAAC,WAAA,OAAAC,SAAA,KAAAC,mBAAA,CAIpC,KAAM,CAAAC,WAAW,EAAAD,mBAAA,CAAGd,YAAY,CAACgB,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACe,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACAb,QAAQ,CAACc,KAAK,CAAG,IAAI,CACrBb,UAAU,CAACa,KAAK,CAAG,IAAI,CACvBZ,aAAa,EAAIC,YAAY,CAACD,aAAa,CAAC,CAE5CE,GAAG,CAACU,KAAK,CAAG,CAACT,OAAO,CAAG,CAAC,EAAIQ,WAAW,CACvC,GAAI,CAACP,IAAI,EAAI,CAACC,iBAAiB,CAAEH,GAAG,CAACU,KAAK,CAAGN,QAAQ,CAAC,CAAC,CAEvDC,SAAS,CAACK,KAAK,CAAGJ,WAAW,CAACI,KAAK,CACrC\",\"ignoreList\":[]}"};var _worklet_12670828273673_init_data={code:"function ScrollViewGestureTsx15(e){const{resolvedSize,sizeReady,panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,fixedDirection,computeGestureTranslation,loop,overscrollEnabled,max}=this.__closure;var _resolvedSize$value,_overscrollEnabled;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:(_overscrollEnabled=overscrollEnabled)!==null&&_overscrollEnabled!==void 0?_overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx15\",\"e\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"validStart\",\"cancelAnimation\",\"translation\",\"touching\",\"isHorizontal\",\"fixedDirection\",\"computeGestureTranslation\",\"loop\",\"overscrollEnabled\",\"max\",\"__closure\",\"_resolvedSize$value\",\"_overscrollEnabled\",\"currentSize\",\"value\",\"undefined\",\"translationX\",\"translationY\",\"panTranslation\",\"Math\",\"abs\",\"currentTranslation\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAiVI,QAAC,CAAAA,sBAAqCA,CAAAC,CAAA,QAAAC,YAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,QAAA,CAAAC,YAAA,CAAAC,cAAA,CAAAC,yBAAA,CAAAC,IAAA,CAAAC,iBAAA,CAAAC,GAAA,OAAAC,SAAA,KAAAC,mBAAA,CAAAC,kBAAA,CAEpC,KAAM,CAAAC,WAAW,EAAAF,mBAAA,CAAGd,YAAY,CAACiB,KAAK,UAAAH,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CAC3C,GAAI,CAACb,SAAS,CAACgB,KAAK,EAAID,WAAW,EAAI,CAAC,CAAE,CACxC,OACF,CACA,GAAId,SAAS,CAACe,KAAK,GAAKC,SAAS,CAAE,CAWjC,OACF,CAEA,GAAIf,UAAU,CAACc,KAAK,CAAE,CACpBd,UAAU,CAACc,KAAK,CAAG,KAAK,CACxBb,eAAe,CAACC,WAAW,CAAC,CAC9B,CACAC,QAAQ,CAACW,KAAK,CAAG,IAAI,CACrB,KAAM,CAAEE,YAAY,CAAZA,YAAY,CAAEC,YAAA,CAAAA,YAAa,CAAC,CAAGrB,CAAC,CAExC,GAAI,CAAAsB,cAAc,CAAGd,YAAY,CAACU,KAAK,CAAGE,YAAY,CAAGC,YAAY,CAErE,GAAIZ,cAAc,GAAK,UAAU,CAAEa,cAAc,CAAG,CAACC,IAAI,CAACC,GAAG,CAACF,cAAc,CAAC,CAAC,IACzE,IAAIb,cAAc,GAAK,UAAU,CAAEa,cAAc,CAAG,CAACC,IAAI,CAACC,GAAG,CAACF,cAAc,CAAC,CAElFhB,WAAW,CAACY,KAAK,CAAGR,yBAAyB,CAAC,CAC5CC,IAAI,CAAJA,IAAI,CACJC,iBAAiB,EAAAI,kBAAA,CAAEJ,iBAAiB,UAAAI,kBAAA,UAAAA,kBAAA,CAAI,IAAI,CAC5CS,kBAAkB,CAAEnB,WAAW,CAACY,KAAK,CACrCf,SAAS,CAAEA,SAAS,CAACe,KAAK,CAC1BI,cAAc,CAAdA,cAAc,CACdT,GAAG,CAAEA,GAAG,CAACK,KACX,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var _worklet_3955652701817_init_data={code:"function ScrollViewGestureTsx16(e,_success){const{resolvedSize,sizeReady,panOffset,isHorizontal,scrollEndVelocity,fixedDirection,scrollEndTranslation,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,translation,withSpring,withProcessTranslation,onScrollEnd,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,loop,touching}=this.__closure;var _resolvedSize$value;const currentSize=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}const{velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}=e;const scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection===\"negative\")panTranslation=-Math.abs(panTranslation);else if(fixedDirection===\"positive\")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;const totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx16\",\"e\",\"_success\",\"resolvedSize\",\"sizeReady\",\"panOffset\",\"isHorizontal\",\"scrollEndVelocity\",\"fixedDirection\",\"scrollEndTranslation\",\"maxScrollDistancePerSwipeIsSet\",\"maxScrollDistancePerSwipe\",\"translation\",\"withSpring\",\"withProcessTranslation\",\"onScrollEnd\",\"minScrollDistancePerSwipeIsSet\",\"minScrollDistancePerSwipe\",\"endWithSpring\",\"loop\",\"touching\",\"__closure\",\"_resolvedSize$value\",\"currentSize\",\"value\",\"undefined\",\"velocityX\",\"velocityY\",\"translationX\",\"translationY\",\"scrollEndVelocityValue\",\"panTranslation\",\"Math\",\"abs\",\"totalTranslation\",\"nextPage\",\"round\",\"sign\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AA0YI,QAAC,CAAAA,sBAAiFA,CAAAC,CAAA,CAAAC,QAAA,QAAAC,YAAA,CAAAC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CAACC,GAAG,CAACC,gBAAgB,CAAC,CAAGvB,yBAAyB,CACtD,CACA,KAAM,CAAAwB,QAAQ,CACZH,IAAI,CAACI,KAAK,CACR,CAAC/B,SAAS,CAACmB,KAAK,CAAGb,yBAAyB,CAAGqB,IAAI,CAACK,IAAI,CAACH,gBAAgB,CAAC,EACxEX,WACJ,CAAC,CAAGA,WAAW,CACjBX,WAAW,CAACY,KAAK,CAAGX,UAAU,CAACC,sBAAsB,CAACqB,QAAQ,CAAC,CAAEpB,WAAW,CAAC,CAC/E,CAAC,IAAM,IAKLC,8BAA8B,EAC9BgB,IAAI,CAACC,GAAG,CAACC,gBAAgB,CAAC,CAAGjB,yBAAyB,CACtD,CACA,KAAM,CAAAkB,QAAQ,CACZH,IAAI,CAACI,KAAK,CACR,CAAC/B,SAAS,CAACmB,KAAK,CAAGP,yBAAyB,CAAGe,IAAI,CAACK,IAAI,CAACH,gBAAgB,CAAC,EACxEX,WACJ,CAAC,CAAGA,WAAW,CACjBX,WAAW,CAACY,KAAK,CAAGX,UAAU,CAACC,sBAAsB,CAACqB,QAAQ,CAAC,CAAEpB,WAAW,CAAC,CAC/E,CAAC,IAAM,CACLG,aAAa,CAACa,cAAc,CAAED,sBAAsB,CAAEf,WAAW,CAAC,CACpE,CAEA,GAAI,CAACI,IAAI,CAAEC,QAAQ,CAACI,KAAK,CAAG,KAAK,CAEjCnB,SAAS,CAACmB,KAAK,CAAGC,SAAS,CAC7B\",\"ignoreList\":[]}"};var _worklet_16842131914021_init_data={code:"function ScrollViewGestureTsx17(e){const{vertical,sizeExplicit,resolvedSize,sizePhase,updateContainerSize}=this.__closure;const measuredWidth=e.nativeEvent.layout.width;const measuredHeight=e.nativeEvent.layout.height;const measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value;const current=(_resolvedSize$value=resolvedSize.value)!==null&&_resolvedSize$value!==void 0?_resolvedSize$value:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?\"updating\":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value=\"ready\";}}updateContainerSize({width:measuredWidth,height:measuredHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx",sourceMap:"{\"version\":3,\"names\":[\"ScrollViewGestureTsx17\",\"e\",\"vertical\",\"sizeExplicit\",\"resolvedSize\",\"sizePhase\",\"updateContainerSize\",\"__closure\",\"measuredWidth\",\"nativeEvent\",\"layout\",\"width\",\"measuredHeight\",\"height\",\"measuredSize\",\"Math\",\"round\",\"_resolvedSize$value\",\"current\",\"value\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ScrollViewGesture.tsx\"],\"mappings\":\"AAweI,QAAC,CAAAA,sBAAyBA,CAAAC,CAAA,QAAAC,QAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,SAAA,CAAAC,mBAAA,OAAAC,SAAA,CAGxB,KAAM,CAAAC,aAAa,CAAGP,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAChD,KAAM,CAAAC,cAAc,CAAGX,CAAC,CAACQ,WAAW,CAACC,MAAM,CAACG,MAAM,CAClD,KAAM,CAAAC,YAAY,CAAGC,IAAI,CAACC,KAAK,CAAC,CAACd,QAAQ,CAAGU,cAAc,CAAGJ,aAAa,GAAK,CAAC,CAAC,CAEjF,GAAI,CAACL,YAAY,EAAIW,YAAY,CAAG,CAAC,CAAE,KAAAG,mBAAA,CACrC,KAAM,CAAAC,OAAO,EAAAD,mBAAA,CAAGb,YAAY,CAACe,KAAK,UAAAF,mBAAA,UAAAA,mBAAA,CAAI,CAAC,CACvC,GAAIF,IAAI,CAACK,GAAG,CAACF,OAAO,CAAGJ,YAAY,CAAC,CAAG,CAAC,CAAE,CACxCT,SAAS,CAACc,KAAK,CAAGD,OAAO,CAAG,CAAC,CAAG,UAAU,CAAGb,SAAS,CAACc,KAAK,CAC5Df,YAAY,CAACe,KAAK,CAAGL,YAAY,CACjCT,SAAS,CAACc,KAAK,CAAG,OAAO,CAC3B,CACF,CAEAb,mBAAmB,CAAC,CAClBK,KAAK,CAAEH,aAAa,CACpBK,MAAM,CAAED,cACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var IScrollViewGesture=function IScrollViewGesture(props){var _useGlobalState=(0,_store.useGlobalState)(),_useGlobalState$props=_useGlobalState.props,onConfigurePanGesture=_useGlobalState$props.onConfigurePanGesture,vertical=_useGlobalState$props.vertical,pagingEnabled=_useGlobalState$props.pagingEnabled,snapEnabled=_useGlobalState$props.snapEnabled,loop=_useGlobalState$props.loop,scrollAnimationDuration=_useGlobalState$props.scrollAnimationDuration,withAnimation=_useGlobalState$props.withAnimation,enabled=_useGlobalState$props.enabled,dataLength=_useGlobalState$props.dataLength,overscrollEnabled=_useGlobalState$props.overscrollEnabled,maxScrollDistancePerSwipe=_useGlobalState$props.maxScrollDistancePerSwipe,minScrollDistancePerSwipe=_useGlobalState$props.minScrollDistancePerSwipe,fixedDirection=_useGlobalState$props.fixedDirection,_useGlobalState$commo=_useGlobalState.common,size=_useGlobalState$commo.size,resolvedSize=_useGlobalState$commo.resolvedSize,sizePhase=_useGlobalState$commo.sizePhase,sizeExplicit=_useGlobalState$commo.sizeExplicit,_useGlobalState$layou=_useGlobalState.layout,containerSize=_useGlobalState$layou.containerSize,updateContainerSize=_useGlobalState$layou.updateContainerSize;var translation=props.translation,testID=props.testID,_props$style=props.style,style=_props$style===void 0?{}:_props$style,onScrollStart=props.onScrollStart,onScrollEnd=props.onScrollEnd,onTouchBegin=props.onTouchBegin,onTouchEnd=props.onTouchEnd;var maxPage=dataLength;var isHorizontal=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx1Factory(_ref){var _worklet_7087640017863_init_data=_ref._worklet_7087640017863_init_data,vertical=_ref.vertical;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx1=function ScrollViewGestureTsx1(){return!vertical;};ScrollViewGestureTsx1.__closure={vertical:vertical};ScrollViewGestureTsx1.__workletHash=7087640017863;ScrollViewGestureTsx1.__pluginVersion="0.5.2";ScrollViewGestureTsx1.__initData=_worklet_7087640017863_init_data;ScrollViewGestureTsx1.__stackDetails=_e;return ScrollViewGestureTsx1;}({_worklet_7087640017863_init_data:_worklet_7087640017863_init_data,vertical:vertical}),[vertical]);var max=(0,_reactNativeReanimated.useSharedValue)(0);var panOffset=(0,_reactNativeReanimated.useSharedValue)(undefined);var touching=(0,_reactNativeReanimated.useSharedValue)(false);var validStart=(0,_reactNativeReanimated.useSharedValue)(false);var scrollEndTranslation=(0,_reactNativeReanimated.useSharedValue)(0);var scrollEndVelocity=(0,_reactNativeReanimated.useSharedValue)(0);var maxScrollDistancePerSwipeIsSet=typeof maxScrollDistancePerSwipe==="number";var minScrollDistancePerSwipeIsSet=typeof minScrollDistancePerSwipe==="number";var sizeReady=(0,_reactNativeReanimated.useDerivedValue)(function ScrollViewGestureTsx2Factory(_ref2){var _worklet_1256203969722_init_data=_ref2._worklet_1256203969722_init_data,resolvedSize=_ref2.resolvedSize,sizePhase=_ref2.sizePhase;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx2=function ScrollViewGestureTsx2(){var _resolvedSize$value;var currentSize=(_resolvedSize$value=resolvedSize.value)!=null?_resolvedSize$value:0;return sizePhase.value==="ready"&&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_13810561592306_init_data=_ref3._worklet_13810561592306_init_data,size=_ref3.size,loop=_ref3.loop,overscrollEnabled=_ref3.overscrollEnabled,vertical=_ref3.vertical,containerSize=_ref3.containerSize,dataLength=_ref3.dataLength;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx3=function ScrollViewGestureTsx3(){if(size<=0)return 0;if(!loop&&!overscrollEnabled){var containerMainAxisSize=vertical?containerSize.value.height:containerSize.value.width;if(containerMainAxisSize<=0||dataLength*size<containerMainAxisSize)return 0;return dataLength*size-containerMainAxisSize;}return dataLength*size;};ScrollViewGestureTsx3.__closure={size:size,loop:loop,overscrollEnabled:overscrollEnabled,vertical:vertical,containerSize:containerSize,dataLength:dataLength};ScrollViewGestureTsx3.__workletHash=13810561592306;ScrollViewGestureTsx3.__pluginVersion="0.5.2";ScrollViewGestureTsx3.__initData=_worklet_13810561592306_init_data;ScrollViewGestureTsx3.__stackDetails=_e;return ScrollViewGestureTsx3;}({_worklet_13810561592306_init_data:_worklet_13810561592306_init_data,size:size,loop:loop,overscrollEnabled:overscrollEnabled,vertical:vertical,containerSize:containerSize,dataLength:dataLength}),[loop,size,dataLength,overscrollEnabled,vertical,containerSize]);var withSpring=_react.default.useCallback(function ScrollViewGestureTsx5Factory(_ref4){var _worklet_1300349626787_init_data=_ref4._worklet_1300349626787_init_data,scrollAnimationDuration=_ref4.scrollAnimationDuration,Easing=_ref4.Easing,dealWithAnimation=_ref4.dealWithAnimation,withAnimation=_ref4.withAnimation,_worklet_2188036911353_init_data=_ref4._worklet_2188036911353_init_data,scheduleOnRN=_ref4.scheduleOnRN;var _e=[new global.Error(),-7,-27];var ScrollViewGestureTsx5=function ScrollViewGestureTsx5(toValue,onFinished){var defaultWithAnimation={type:"timing",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation(withAnimation!=null?withAnimation:defaultWithAnimation)(toValue,function ScrollViewGestureTsx4Factory(_ref5){var _worklet_2188036911353_init_data=_ref5._worklet_2188036911353_init_data,onFinished=_ref5.onFinished,scheduleOnRN=_ref5.scheduleOnRN;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx4=function ScrollViewGestureTsx4(isFinished){if(isFinished)onFinished&&scheduleOnRN(onFinished);};ScrollViewGestureTsx4.__closure={onFinished:onFinished,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx4.__workletHash=2188036911353;ScrollViewGestureTsx4.__pluginVersion="0.5.2";ScrollViewGestureTsx4.__initData=_worklet_2188036911353_init_data;ScrollViewGestureTsx4.__stackDetails=_e;return ScrollViewGestureTsx4;}({_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,onFinished:onFinished,scheduleOnRN:scheduleOnRN}));};ScrollViewGestureTsx5.__closure={scrollAnimationDuration:scrollAnimationDuration,Easing:Easing,dealWithAnimation:dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx5.__workletHash=1300349626787;ScrollViewGestureTsx5.__pluginVersion="0.5.2";ScrollViewGestureTsx5.__initData=_worklet_1300349626787_init_data;ScrollViewGestureTsx5.__stackDetails=_e;return ScrollViewGestureTsx5;}({_worklet_1300349626787_init_data:_worklet_1300349626787_init_data,scrollAnimationDuration:scrollAnimationDuration,Easing:_constants.Easing,dealWithAnimation:_dealWithAnimation.dealWithAnimation,withAnimation:withAnimation,_worklet_2188036911353_init_data:_worklet_2188036911353_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[scrollAnimationDuration,withAnimation]);var endWithSpring=_react.default.useCallback(function ScrollViewGestureTsx6Factory(_ref6){var _worklet_9858368380469_init_data=_ref6._worklet_9858368380469_init_data,resolvedSize=_ref6.resolvedSize,translation=_ref6.translation,withDecay=_ref6.withDecay,maxScrollDistancePerSwipeIsSet=_ref6.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref6.maxScrollDistancePerSwipe,pagingEnabled=_ref6.pagingEnabled,withSpring=_ref6.withSpring,loop=_ref6.loop,maxPage=_ref6.maxPage,snapEnabled=_ref6.snapEnabled,overscrollEnabled=_ref6.overscrollEnabled,getLimit=_ref6.getLimit;var _e=[new global.Error(),-13,-27];var ScrollViewGestureTsx6=function ScrollViewGestureTsx6(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){var _resolvedSize$value2;var currentSize=(_resolvedSize$value2=resolvedSize.value)!=null?_resolvedSize$value2:0;if(currentSize<=0){return;}var origin=translation.value;var velocity=scrollEndVelocityValue;var finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{var nextPage=-Math.round((origin+velocity*2)/currentSize);if(pagingEnabled){var offset=-(scrollEndTranslationValue>=0?1:-1);var computed=offset<0?Math.ceil:Math.floor;var page=computed(-origin/currentSize);var velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*currentSize),onFinished);}else if(loop){var finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*currentSize),onFinished);}else{var _finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-_finalPage*currentSize),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*currentSize),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;}};ScrollViewGestureTsx6.__closure={resolvedSize:resolvedSize,translation:translation,withDecay:withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit};ScrollViewGestureTsx6.__workletHash=9858368380469;ScrollViewGestureTsx6.__pluginVersion="0.5.2";ScrollViewGestureTsx6.__initData=_worklet_9858368380469_init_data;ScrollViewGestureTsx6.__stackDetails=_e;return ScrollViewGestureTsx6;}({_worklet_9858368380469_init_data:_worklet_9858368380469_init_data,resolvedSize:resolvedSize,translation:translation,withDecay:_reactNativeReanimated.withDecay,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,pagingEnabled:pagingEnabled,withSpring:withSpring,loop:loop,maxPage:maxPage,snapEnabled:snapEnabled,overscrollEnabled:overscrollEnabled,getLimit:getLimit}),[withSpring,resolvedSize,maxPage,loop,snapEnabled,translation,pagingEnabled,maxScrollDistancePerSwipe,maxScrollDistancePerSwipeIsSet]);var onFinish=_react.default.useCallback(function ScrollViewGestureTsx7Factory(_ref7){var _worklet_9026185779806_init_data=_ref7._worklet_9026185779806_init_data,touching=_ref7.touching,onScrollEnd=_ref7.onScrollEnd,scheduleOnRN=_ref7.scheduleOnRN;var _e=[new global.Error(),-4,-27];var ScrollViewGestureTsx7=function ScrollViewGestureTsx7(isFinished){if(isFinished){touching.value=false;onScrollEnd&&scheduleOnRN(onScrollEnd);}};ScrollViewGestureTsx7.__closure={touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:scheduleOnRN};ScrollViewGestureTsx7.__workletHash=9026185779806;ScrollViewGestureTsx7.__pluginVersion="0.5.2";ScrollViewGestureTsx7.__initData=_worklet_9026185779806_init_data;ScrollViewGestureTsx7.__stackDetails=_e;return ScrollViewGestureTsx7;}({_worklet_9026185779806_init_data:_worklet_9026185779806_init_data,touching:touching,onScrollEnd:onScrollEnd,scheduleOnRN:_reactNativeWorklets.scheduleOnRN}),[onScrollEnd,touching]);var activeDecay=_react.default.useCallback(function ScrollViewGestureTsx8Factory(_ref8){var _worklet_5593859302814_init_data=_ref8._worklet_5593859302814_init_data,touching=_ref8.touching,translation=_ref8.translation,withDecay=_ref8.withDecay,scrollEndVelocity=_ref8.scrollEndVelocity,onFinish=_ref8.onFinish;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx8=function ScrollViewGestureTsx8(){touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function ScrollViewGestureTsx9Factory(_ref9){var _worklet_10440224148495_init_data=_ref9._worklet_10440224148495_init_data,onFinish=_ref9.onFinish;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx9=function ScrollViewGestureTsx9(isFinished){return onFinish(isFinished);};ScrollViewGestureTsx9.__closure={onFinish:onFinish};ScrollViewGestureTsx9.__workletHash=10440224148495;ScrollViewGestureTsx9.__pluginVersion="0.5.2";ScrollViewGestureTsx9.__initData=_worklet_10440224148495_init_data;ScrollViewGestureTsx9.__stackDetails=_e;return ScrollViewGestureTsx9;}({_worklet_10440224148495_init_data:_worklet_10440224148495_init_data,onFinish:onFinish}));};ScrollViewGestureTsx8.__closure={touching:touching,translation:translation,withDecay:withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish};ScrollViewGestureTsx8.__workletHash=5593859302814;ScrollViewGestureTsx8.__pluginVersion="0.5.2";ScrollViewGestureTsx8.__initData=_worklet_5593859302814_init_data;ScrollViewGestureTsx8.__stackDetails=_e;return ScrollViewGestureTsx8;}({_worklet_5593859302814_init_data:_worklet_5593859302814_init_data,touching:touching,translation:translation,withDecay:_reactNativeReanimated.withDecay,scrollEndVelocity:scrollEndVelocity,onFinish:onFinish}),[onFinish,scrollEndVelocity,touching,translation]);var resetBoundary=_react.default.useCallback(function ScrollViewGestureTsx10Factory(_ref0){var _worklet_1192613327258_init_data=_ref0._worklet_1192613327258_init_data,resolvedSize=_ref0.resolvedSize,touching=_ref0.touching,translation=_ref0.translation,scrollEndTranslation=_ref0.scrollEndTranslation,activeDecay=_ref0.activeDecay,loop=_ref0.loop,withSpring=_ref0.withSpring,maxPage=_ref0.maxPage;var _e=[new global.Error(),-9,-27];var ScrollViewGestureTsx10=function ScrollViewGestureTsx10(){var _resolvedSize$value3;var currentSize=(_resolvedSize$value3=resolvedSize.value)!=null?_resolvedSize$value3:0;if(currentSize<=0)return;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*currentSize)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*currentSize));}};ScrollViewGestureTsx10.__closure={resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage};ScrollViewGestureTsx10.__workletHash=1192613327258;ScrollViewGestureTsx10.__pluginVersion="0.5.2";ScrollViewGestureTsx10.__initData=_worklet_1192613327258_init_data;ScrollViewGestureTsx10.__stackDetails=_e;return ScrollViewGestureTsx10;}({_worklet_1192613327258_init_data:_worklet_1192613327258_init_data,resolvedSize:resolvedSize,touching:touching,translation:translation,scrollEndTranslation:scrollEndTranslation,activeDecay:activeDecay,loop:loop,withSpring:withSpring,maxPage:maxPage}),[touching,translation,maxPage,resolvedSize,scrollEndTranslation,loop,activeDecay,withSpring]);(0,_reactNativeReanimated.useAnimatedReaction)(function ScrollViewGestureTsx11Factory(_ref1){var _worklet_8670557262418_init_data=_ref1._worklet_8670557262418_init_data,translation=_ref1.translation;var _e=[new global.Error(),-2,-27];var ScrollViewGestureTsx11=function ScrollViewGestureTsx11(){return translation.value;};ScrollViewGestureTsx11.__closure={translation:translation};ScrollViewGestureTsx11.__workletHash=8670557262418;ScrollViewGestureTsx11.__pluginVersion="0.5.2";ScrollViewGestureTsx11.__initData=_worklet_8670557262418_init_data;ScrollViewGestureTsx11.__stackDetails=_e;return ScrollViewGestureTsx11;}({_worklet_8670557262418_init_data:_worklet_8670557262418_init_data,translation:translation}),function ScrollViewGestureTsx12Factory(_ref10){var _worklet_8859522539420_init_data=_ref10._worklet_8859522539420_init_data,pagingEnabled=_ref10.pagingEnabled,resetBoundary=_ref10.resetBoundary;var _e=[new global.Error(),-3,-27];var ScrollViewGestureTsx12=function ScrollViewGestureTsx12(){if(!pagingEnabled)resetBoundary();};ScrollViewGestureTsx12.__closure={pagingEnabled:pagingEnabled,resetBoundary:resetBoundary};ScrollViewGestureTsx12.__workletHash=8859522539420;ScrollViewGestureTsx12.__pluginVersion="0.5.2";ScrollViewGestureTsx12.__initData=_worklet_8859522539420_init_data;ScrollViewGestureTsx12.__stackDetails=_e;return ScrollViewGestureTsx12;}({_worklet_8859522539420_init_data:_worklet_8859522539420_init_data,pagingEnabled:pagingEnabled,resetBoundary:resetBoundary}),[pagingEnabled,resetBoundary]);var withProcessTranslation=function withProcessTranslation_ScrollViewGestureTsx13Factory(_ref11){var _worklet_12299006691003_init_data=_ref11._worklet_12299006691003_init_data,loop=_ref11.loop,overscrollEnabled=_ref11.overscrollEnabled,getLimit=_ref11.getLimit;var _e=[new global.Error(),-4,-27];var withProcessTranslation=function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){var limit=getLimit();return Math.min(0,Math.max(-limit,translation));}return translation;};withProcessTranslation.__closure={loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit};withProcessTranslation.__workletHash=12299006691003;withProcessTranslation.__pluginVersion="0.5.2";withProcessTranslation.__initData=_worklet_12299006691003_init_data;withProcessTranslation.__stackDetails=_e;return withProcessTranslation;}({_worklet_12299006691003_init_data:_worklet_12299006691003_init_data,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit});var onGestureStart=(0,_react.useCallback)(function ScrollViewGestureTsx14Factory(_ref12){var _worklet_6770704903726_init_data=_ref12._worklet_6770704903726_init_data,resolvedSize=_ref12.resolvedSize,sizeReady=_ref12.sizeReady,touching=_ref12.touching,validStart=_ref12.validStart,onScrollStart=_ref12.onScrollStart,scheduleOnRN=_ref12.scheduleOnRN,max=_ref12.max,maxPage=_ref12.maxPage,loop=_ref12.loop,overscrollEnabled=_ref12.overscrollEnabled,getLimit=_ref12.getLimit,panOffset=_ref12.panOffset,translation=_ref12.translation;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx14=function ScrollViewGestureTsx14(_){var _resolvedSize$value4;var currentSize=(_resolvedSize$value4=resolvedSize.value)!=null?_resolvedSize$value4:0;if(!sizeReady.value||currentSize<=0){return;}touching.value=true;validStart.value=true;onScrollStart&&scheduleOnRN(onScrollStart);max.value=(maxPage-1)*currentSize;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;};ScrollViewGestureTsx14.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation};ScrollViewGestureTsx14.__workletHash=6770704903726;ScrollViewGestureTsx14.__pluginVersion="0.5.2";ScrollViewGestureTsx14.__initData=_worklet_6770704903726_init_data;ScrollViewGestureTsx14.__stackDetails=_e;return ScrollViewGestureTsx14;}({_worklet_6770704903726_init_data:_worklet_6770704903726_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,touching:touching,validStart:validStart,onScrollStart:onScrollStart,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,max:max,maxPage:maxPage,loop:loop,overscrollEnabled:overscrollEnabled,getLimit:getLimit,panOffset:panOffset,translation:translation}),[max,maxPage,loop,touching,panOffset,validStart,translation,overscrollEnabled,getLimit,onScrollStart,sizeReady,resolvedSize]);var onGestureUpdate=(0,_react.useCallback)(function ScrollViewGestureTsx15Factory(_ref13){var _worklet_12670828273673_init_data=_ref13._worklet_12670828273673_init_data,resolvedSize=_ref13.resolvedSize,sizeReady=_ref13.sizeReady,panOffset=_ref13.panOffset,validStart=_ref13.validStart,cancelAnimation=_ref13.cancelAnimation,translation=_ref13.translation,touching=_ref13.touching,isHorizontal=_ref13.isHorizontal,fixedDirection=_ref13.fixedDirection,computeGestureTranslation=_ref13.computeGestureTranslation,loop=_ref13.loop,overscrollEnabled=_ref13.overscrollEnabled,max=_ref13.max;var _e=[new global.Error(),-14,-27];var ScrollViewGestureTsx15=function ScrollViewGestureTsx15(e){var _resolvedSize$value5;var currentSize=(_resolvedSize$value5=resolvedSize.value)!=null?_resolvedSize$value5:0;if(!sizeReady.value||currentSize<=0){return;}if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;var translationX=e.translationX,translationY=e.translationY;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);translation.value=computeGestureTranslation({loop:loop,overscrollEnabled:overscrollEnabled!=null?overscrollEnabled:true,currentTranslation:translation.value,panOffset:panOffset.value,panTranslation:panTranslation,max:max.value});};ScrollViewGestureTsx15.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max};ScrollViewGestureTsx15.__workletHash=12670828273673;ScrollViewGestureTsx15.__pluginVersion="0.5.2";ScrollViewGestureTsx15.__initData=_worklet_12670828273673_init_data;ScrollViewGestureTsx15.__stackDetails=_e;return ScrollViewGestureTsx15;}({_worklet_12670828273673_init_data:_worklet_12670828273673_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,validStart:validStart,cancelAnimation:_reactNativeReanimated.cancelAnimation,translation:translation,touching:touching,isHorizontal:isHorizontal,fixedDirection:fixedDirection,computeGestureTranslation:_computeGestureTranslation.computeGestureTranslation,loop:loop,overscrollEnabled:overscrollEnabled,max:max}),[isHorizontal,max,panOffset,loop,overscrollEnabled,fixedDirection,translation,validStart,touching,sizeReady,resolvedSize]);var onGestureEnd=(0,_react.useCallback)(function ScrollViewGestureTsx16Factory(_ref14){var _worklet_3955652701817_init_data=_ref14._worklet_3955652701817_init_data,resolvedSize=_ref14.resolvedSize,sizeReady=_ref14.sizeReady,panOffset=_ref14.panOffset,isHorizontal=_ref14.isHorizontal,scrollEndVelocity=_ref14.scrollEndVelocity,fixedDirection=_ref14.fixedDirection,scrollEndTranslation=_ref14.scrollEndTranslation,maxScrollDistancePerSwipeIsSet=_ref14.maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe=_ref14.maxScrollDistancePerSwipe,translation=_ref14.translation,withSpring=_ref14.withSpring,withProcessTranslation=_ref14.withProcessTranslation,onScrollEnd=_ref14.onScrollEnd,minScrollDistancePerSwipeIsSet=_ref14.minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe=_ref14.minScrollDistancePerSwipe,endWithSpring=_ref14.endWithSpring,loop=_ref14.loop,touching=_ref14.touching;var _e=[new global.Error(),-19,-27];var ScrollViewGestureTsx16=function ScrollViewGestureTsx16(e,_success){var _resolvedSize$value6;var currentSize=(_resolvedSize$value6=resolvedSize.value)!=null?_resolvedSize$value6:0;if(!sizeReady.value||currentSize<=0){panOffset.value=undefined;return;}if(panOffset.value===undefined){return;}var velocityX=e.velocityX,velocityY=e.velocityY,translationX=e.translationX,translationY=e.translationY;var scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;var panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;var totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){var nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){var _nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Math.sign(totalTranslation))/currentSize)*currentSize;translation.value=withSpring(withProcessTranslation(_nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;};ScrollViewGestureTsx16.__closure={resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching};ScrollViewGestureTsx16.__workletHash=3955652701817;ScrollViewGestureTsx16.__pluginVersion="0.5.2";ScrollViewGestureTsx16.__initData=_worklet_3955652701817_init_data;ScrollViewGestureTsx16.__stackDetails=_e;return ScrollViewGestureTsx16;}({_worklet_3955652701817_init_data:_worklet_3955652701817_init_data,resolvedSize:resolvedSize,sizeReady:sizeReady,panOffset:panOffset,isHorizontal:isHorizontal,scrollEndVelocity:scrollEndVelocity,fixedDirection:fixedDirection,scrollEndTranslation:scrollEndTranslation,maxScrollDistancePerSwipeIsSet:maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe:maxScrollDistancePerSwipe,translation:translation,withSpring:withSpring,withProcessTranslation:withProcessTranslation,onScrollEnd:onScrollEnd,minScrollDistancePerSwipeIsSet:minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe:minScrollDistancePerSwipe,endWithSpring:endWithSpring,loop:loop,touching:touching}),[loop,touching,panOffset,translation,isHorizontal,scrollEndVelocity,scrollEndTranslation,fixedDirection,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,withSpring,onScrollEnd,sizeReady,resolvedSize]);var gesture=(0,_usePanGestureProxy.usePanGestureProxy)({onConfigurePanGesture:onConfigurePanGesture,onGestureStart:onGestureStart,onGestureUpdate:onGestureUpdate,onGestureEnd:onGestureEnd,options:{enabled:enabled}});var onLayout=_react.default.useCallback(function ScrollViewGestureTsx17Factory(_ref15){var _worklet_16842131914021_init_data=_ref15._worklet_16842131914021_init_data,vertical=_ref15.vertical,sizeExplicit=_ref15.sizeExplicit,resolvedSize=_ref15.resolvedSize,sizePhase=_ref15.sizePhase,updateContainerSize=_ref15.updateContainerSize;var _e=[new global.Error(),-6,-27];var ScrollViewGestureTsx17=function ScrollViewGestureTsx17(e){var measuredWidth=e.nativeEvent.layout.width;var measuredHeight=e.nativeEvent.layout.height;var measuredSize=Math.round((vertical?measuredHeight:measuredWidth)||0);if(!sizeExplicit&&measuredSize>0){var _resolvedSize$value7;var current=(_resolvedSize$value7=resolvedSize.value)!=null?_resolvedSize$value7:0;if(Math.abs(current-measuredSize)>0){sizePhase.value=current>0?"updating":sizePhase.value;resolvedSize.value=measuredSize;sizePhase.value="ready";}}updateContainerSize({width:measuredWidth,height:measuredHeight});};ScrollViewGestureTsx17.__closure={vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize};ScrollViewGestureTsx17.__workletHash=16842131914021;ScrollViewGestureTsx17.__pluginVersion="0.5.2";ScrollViewGestureTsx17.__initData=_worklet_16842131914021_init_data;ScrollViewGestureTsx17.__stackDetails=_e;return ScrollViewGestureTsx17;}({_worklet_16842131914021_init_data:_worklet_16842131914021_init_data,vertical:vertical,sizeExplicit:sizeExplicit,resolvedSize:resolvedSize,sizePhase:sizePhase,updateContainerSize:updateContainerSize}),[updateContainerSize,resolvedSize,sizePhase,vertical,sizeExplicit]);return(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector,{gesture:gesture,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{testID:testID,style:style,onTouchStart:onTouchBegin,onTouchEnd:onTouchEnd,onLayout:onLayout,children:props.children})});};var ScrollViewGesture=exports.ScrollViewGesture=IScrollViewGesture;
2
2
  //# sourceMappingURL=ScrollViewGesture.js.map