react-native-reanimated-carousel 5.0.0-beta.3 → 5.0.0-beta.5

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 (74) hide show
  1. package/README.md +2 -0
  2. package/lib/commonjs/components/ItemLayout.js +1 -1
  3. package/lib/commonjs/components/ItemLayout.js.map +1 -1
  4. package/lib/commonjs/components/Pagination/Basic/PaginationItem.js +1 -1
  5. package/lib/commonjs/components/Pagination/Basic/PaginationItem.js.map +1 -1
  6. package/lib/commonjs/components/Pagination/Basic/index.js +1 -1
  7. package/lib/commonjs/components/Pagination/Basic/index.js.map +1 -1
  8. package/lib/commonjs/components/Pagination/Custom/PaginationItem.js +1 -1
  9. package/lib/commonjs/components/Pagination/Custom/PaginationItem.js.map +1 -1
  10. package/lib/commonjs/components/Pagination/Custom/index.js +1 -1
  11. package/lib/commonjs/components/Pagination/Custom/index.js.map +1 -1
  12. package/lib/commonjs/components/ScrollViewGesture.js +1 -1
  13. package/lib/commonjs/components/ScrollViewGesture.js.map +1 -1
  14. package/lib/commonjs/hooks/useCarouselController.js +1 -1
  15. package/lib/commonjs/hooks/useCarouselController.js.map +1 -1
  16. package/lib/commonjs/hooks/useVisibleRanges.js +1 -1
  17. package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -1
  18. package/lib/commonjs/utils/compute-gesture-translation.js +2 -0
  19. package/lib/commonjs/utils/compute-gesture-translation.js.map +1 -0
  20. package/lib/commonjs/utils/sanitize-animation-style.js +2 -0
  21. package/lib/commonjs/utils/sanitize-animation-style.js.map +1 -0
  22. package/lib/module/components/ItemLayout.js +1 -1
  23. package/lib/module/components/ItemLayout.js.map +1 -1
  24. package/lib/module/components/Pagination/Basic/PaginationItem.js +1 -1
  25. package/lib/module/components/Pagination/Basic/PaginationItem.js.map +1 -1
  26. package/lib/module/components/Pagination/Basic/index.js +1 -1
  27. package/lib/module/components/Pagination/Basic/index.js.map +1 -1
  28. package/lib/module/components/Pagination/Custom/PaginationItem.js +1 -1
  29. package/lib/module/components/Pagination/Custom/PaginationItem.js.map +1 -1
  30. package/lib/module/components/Pagination/Custom/index.js +1 -1
  31. package/lib/module/components/Pagination/Custom/index.js.map +1 -1
  32. package/lib/module/components/ScrollViewGesture.js +1 -1
  33. package/lib/module/components/ScrollViewGesture.js.map +1 -1
  34. package/lib/module/hooks/useCarouselController.js +1 -1
  35. package/lib/module/hooks/useCarouselController.js.map +1 -1
  36. package/lib/module/hooks/useVisibleRanges.js +1 -1
  37. package/lib/module/hooks/useVisibleRanges.js.map +1 -1
  38. package/lib/module/utils/compute-gesture-translation.js +2 -0
  39. package/lib/module/utils/compute-gesture-translation.js.map +1 -0
  40. package/lib/module/utils/sanitize-animation-style.js +2 -0
  41. package/lib/module/utils/sanitize-animation-style.js.map +1 -0
  42. package/lib/typescript/components/ItemLayout.d.ts.map +1 -1
  43. package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts +10 -1
  44. package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts.map +1 -1
  45. package/lib/typescript/components/Pagination/Basic/index.d.ts +6 -1
  46. package/lib/typescript/components/Pagination/Basic/index.d.ts.map +1 -1
  47. package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts +10 -0
  48. package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts.map +1 -1
  49. package/lib/typescript/components/Pagination/Custom/index.d.ts +6 -1
  50. package/lib/typescript/components/Pagination/Custom/index.d.ts.map +1 -1
  51. package/lib/typescript/components/ScrollViewGesture.d.ts.map +1 -1
  52. package/lib/typescript/hooks/useCarouselController.d.ts.map +1 -1
  53. package/lib/typescript/hooks/useVisibleRanges.d.ts.map +1 -1
  54. package/lib/typescript/utils/compute-gesture-translation.d.ts +9 -0
  55. package/lib/typescript/utils/compute-gesture-translation.d.ts.map +1 -0
  56. package/lib/typescript/utils/sanitize-animation-style.d.ts +3 -0
  57. package/lib/typescript/utils/sanitize-animation-style.d.ts.map +1 -0
  58. package/package.json +5 -2
  59. package/src/components/Carousel.test.tsx +86 -0
  60. package/src/components/ItemLayout.tsx +2 -1
  61. package/src/components/Pagination/Basic/PaginationItem.tsx +23 -5
  62. package/src/components/Pagination/Basic/index.tsx +21 -2
  63. package/src/components/Pagination/Custom/PaginationItem.tsx +23 -4
  64. package/src/components/Pagination/Custom/index.tsx +21 -2
  65. package/src/components/Pagination/Pagination.test.tsx +73 -4
  66. package/src/components/ScrollViewGesture.tsx +11 -16
  67. package/src/hooks/useCarouselController.test.tsx +93 -6
  68. package/src/hooks/useCarouselController.tsx +23 -25
  69. package/src/hooks/useVisibleRanges.test.tsx +39 -0
  70. package/src/hooks/useVisibleRanges.tsx +14 -3
  71. package/src/utils/compute-gesture-translation.test.ts +70 -0
  72. package/src/utils/compute-gesture-translation.ts +29 -0
  73. package/src/utils/sanitize-animation-style.test.ts +40 -0
  74. package/src/utils/sanitize-animation-style.ts +20 -0
package/README.md CHANGED
@@ -21,6 +21,8 @@
21
21
  - **Sizing**: `style` controls the **container size**; `itemWidth`/`itemHeight` control the **page size** (snap distance & animation progress).
22
22
  - **Scroll offset shared value**: use `scrollOffsetValue` (recommended). `defaultScrollOffsetValue` is deprecated but still supported.
23
23
  - **Progress**: `onProgressChange` supports both a callback and `SharedValue<number>`.
24
+ - **Pagination accessibility**: `Pagination.Basic` and `Pagination.Custom` support `paginationItemAccessibility` for per-item a11y overrides.
25
+ - **Custom animation safety**: `customAnimation` styles are sanitized and `zIndex` is normalized to finite integers.
24
26
 
25
27
  ## 📊 Version Compatibility
26
28
 
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ItemLayout=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _useOffsetX=require("../hooks/useOffsetX");var _store=require("../store");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.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_10542892523305_init_data={code:"function ItemLayoutTsx1(){const{vertical,width,explicitItemSize,explicitAxisSize,height,measuredSize,effectivePageSize}=this.__closure;var _explicitItemSize,_explicitItemSize2,_measuredSize$value$w,_effectivePageSize,_measuredSize$value$h,_effectivePageSize2;const widthCandidate=vertical?width:(_explicitItemSize=explicitItemSize)!==null&&_explicitItemSize!==void 0?_explicitItemSize:explicitAxisSize;const heightCandidate=vertical?(_explicitItemSize2=explicitItemSize)!==null&&_explicitItemSize2!==void 0?_explicitItemSize2:explicitAxisSize:height;const computedWidth=typeof widthCandidate===\"number\"?widthCandidate:(_measuredSize$value$w=measuredSize.value.width)!==null&&_measuredSize$value$w!==void 0?_measuredSize$value$w:vertical?\"100%\":(_effectivePageSize=effectivePageSize)!==null&&_effectivePageSize!==void 0?_effectivePageSize:\"100%\";const computedHeight=typeof heightCandidate===\"number\"?heightCandidate:(_measuredSize$value$h=measuredSize.value.height)!==null&&_measuredSize$value$h!==void 0?_measuredSize$value$h:vertical?(_effectivePageSize2=effectivePageSize)!==null&&_effectivePageSize2!==void 0?_effectivePageSize2:\"100%\":\"100%\";return{width:computedWidth,height:computedHeight};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx1\",\"vertical\",\"width\",\"explicitItemSize\",\"explicitAxisSize\",\"height\",\"measuredSize\",\"effectivePageSize\",\"__closure\",\"_explicitItemSize\",\"_explicitItemSize2\",\"_measuredSize$value$w\",\"_effectivePageSize\",\"_measuredSize$value$h\",\"_effectivePageSize2\",\"widthCandidate\",\"heightCandidate\",\"computedWidth\",\"value\",\"computedHeight\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAmEsD,SAAAA,cAAMA,CAAA,QAAAC,QAAA,CAAAC,KAAA,CAAAC,gBAAA,CAAAC,gBAAA,CAAAC,MAAA,CAAAC,YAAA,CAAAC,iBAAA,OAAAC,SAAA,KAAAC,iBAAA,CAAAC,kBAAA,CAAAC,qBAAA,CAAAC,kBAAA,CAAAC,qBAAA,CAAAC,mBAAA,CAExD,KAAM,CAAAC,cAAc,CAAGd,QAAQ,CAAGC,KAAK,EAAAO,iBAAA,CAAIN,gBAAgB,UAAAM,iBAAA,UAAAA,iBAAA,CAAIL,gBAAiB,CAChF,KAAM,CAAAY,eAAe,CAAGf,QAAQ,EAAAS,kBAAA,CAAIP,gBAAgB,UAAAO,kBAAA,UAAAA,kBAAA,CAAIN,gBAAgB,CAAIC,MAAM,CAElF,KAAM,CAAAY,aAAa,CACjB,MAAO,CAAAF,cAAc,GAAK,QAAQ,CAC9BA,cAAc,EAAAJ,qBAAA,CACbL,YAAY,CAACY,KAAK,CAAChB,KAAK,UAAAS,qBAAA,UAAAA,qBAAA,CAAKV,QAAQ,CAAG,MAAM,EAAAW,kBAAA,CAAIL,iBAAiB,UAAAK,kBAAA,UAAAA,kBAAA,CAAI,MAAS,CAEvF,KAAM,CAAAO,cAAc,CAClB,MAAO,CAAAH,eAAe,GAAK,QAAQ,CAC/BA,eAAe,EAAAH,qBAAA,CACdP,YAAY,CAACY,KAAK,CAACb,MAAM,UAAAQ,qBAAA,UAAAA,qBAAA,CAAKZ,QAAQ,EAAAa,mBAAA,CAAIP,iBAAiB,UAAAO,mBAAA,UAAAA,mBAAA,CAAI,MAAM,CAAI,MAAQ,CAExF,MAAO,CACLZ,KAAK,CAAEe,aAAa,CACpBZ,MAAM,CAAEc,cACV,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_1238571432864_init_data={code:"function ItemLayoutTsx2(){const{size,x}=this.__closure;if(!size)return 0;return x.value/size;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx2\",\"size\",\"x\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAgHyC,SAAAA,cAAMA,CAAA,QAAAC,IAAA,CAAAC,CAAA,OAAAC,SAAA,CAC3C,GAAI,CAACF,IAAI,CAAE,MAAO,EAAC,CACnB,MAAO,CAAAC,CAAC,CAACE,KAAK,CAAGH,IAAI,CACvB\",\"ignoreList\":[]}"};var _worklet_2368137795349_init_data={code:"function ItemLayoutTsx3(){const{size,animationStyle,x,index}=this.__closure;const safeSize=size||1;return animationStyle(x.value/safeSize,index);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx3\",\"size\",\"animationStyle\",\"x\",\"index\",\"__closure\",\"safeSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAoHoD,SAAAA,cAAMA,CAAA,QAAAC,IAAA,CAAAC,cAAA,CAAAC,CAAA,CAAAC,KAAA,OAAAC,SAAA,CACtD,KAAM,CAAAC,QAAQ,CAAGL,IAAI,EAAI,CAAC,CAC1B,MAAO,CAAAC,cAAc,CAACC,CAAC,CAACI,KAAK,CAAGD,QAAQ,CAAEF,KAAK,CAAC,CAClD\",\"ignoreList\":[]}"};var _worklet_247236454236_init_data={code:"function ItemLayoutTsx4(){const{measuredSize,layoutWidth,layoutHeight,updateItemDimensions,index}=this.__closure;const{width:prevWidth,height:prevHeight}=measuredSize.value;if(prevWidth===layoutWidth&&prevHeight===layoutHeight)return;measuredSize.value={width:layoutWidth,height:layoutHeight};updateItemDimensions(index,{width:layoutWidth,height:layoutHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx4\",\"measuredSize\",\"layoutWidth\",\"layoutHeight\",\"updateItemDimensions\",\"index\",\"__closure\",\"width\",\"prevWidth\",\"height\",\"prevHeight\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AA4IyB,SAAAA,cAAMA,CAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,oBAAA,CAAAC,KAAA,OAAAC,SAAA,CACjB,KAAM,CAAEC,KAAK,CAAEC,SAAS,CAAEC,MAAM,CAAEC,UAAW,CAAC,CAAGT,YAAY,CAACU,KAAK,CACnE,GAAIH,SAAS,GAAKN,WAAW,EAAIQ,UAAU,GAAKP,YAAY,CAAE,OAE9DF,YAAY,CAACU,KAAK,CAAG,CACnBJ,KAAK,CAAEL,WAAW,CAClBO,MAAM,CAAEN,YACV,CAAC,CACDC,oBAAoB,CAACC,KAAK,CAAE,CAC1BE,KAAK,CAAEL,WAAW,CAClBO,MAAM,CAAEN,YACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var ItemLayout=exports.ItemLayout=function ItemLayout(props){var _ref2;var handlerOffset=props.handlerOffset,index=props.index,children=props.children,visibleRanges=props.visibleRanges,animationStyle=props.animationStyle;var _useGlobalState=(0,_store.useGlobalState)(),_useGlobalState$props=_useGlobalState.props,loop=_useGlobalState$props.loop,dataLength=_useGlobalState$props.dataLength,width=_useGlobalState$props.width,height=_useGlobalState$props.height,vertical=_useGlobalState$props.vertical,customConfig=_useGlobalState$props.customConfig,mode=_useGlobalState$props.mode,modeConfig=_useGlobalState$props.modeConfig,style=_useGlobalState$props.style,itemWidth=_useGlobalState$props.itemWidth,itemHeight=_useGlobalState$props.itemHeight,common=_useGlobalState.common,updateItemDimensions=_useGlobalState.layout.updateItemDimensions;var measuredSize=(0,_reactNativeReanimated.useSharedValue)({width:null,height:null});var fallbackSize=common.size;var _ref=_reactNative.StyleSheet.flatten(style)||{},styleWidth=_ref.width,styleHeight=_ref.height;var styleWidthNumber=typeof styleWidth==="number"?styleWidth:undefined;var styleHeightNumber=typeof styleHeight==="number"?styleHeight:undefined;var explicitItemSize=vertical?itemHeight:itemWidth;var explicitAxisSize=vertical?styleHeightNumber!=null?styleHeightNumber:height:styleWidthNumber!=null?styleWidthNumber:width;var size=((_ref2=explicitItemSize!=null?explicitItemSize:explicitAxisSize)!=null?_ref2:fallbackSize)||0;var effectivePageSize=size>0?size:undefined;var dimensionsStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function ItemLayoutTsx1Factory(_ref3){var _worklet_10542892523305_init_data=_ref3._worklet_10542892523305_init_data,vertical=_ref3.vertical,width=_ref3.width,explicitItemSize=_ref3.explicitItemSize,explicitAxisSize=_ref3.explicitAxisSize,height=_ref3.height,measuredSize=_ref3.measuredSize,effectivePageSize=_ref3.effectivePageSize;var _e=[new global.Error(),-8,-27];var ItemLayoutTsx1=function ItemLayoutTsx1(){var _measuredSize$value$w,_measuredSize$value$h;var widthCandidate=vertical?width:explicitItemSize!=null?explicitItemSize:explicitAxisSize;var heightCandidate=vertical?explicitItemSize!=null?explicitItemSize:explicitAxisSize:height;var computedWidth=typeof widthCandidate==="number"?widthCandidate:(_measuredSize$value$w=measuredSize.value.width)!=null?_measuredSize$value$w:vertical?"100%":effectivePageSize!=null?effectivePageSize:"100%";var computedHeight=typeof heightCandidate==="number"?heightCandidate:(_measuredSize$value$h=measuredSize.value.height)!=null?_measuredSize$value$h:vertical?effectivePageSize!=null?effectivePageSize:"100%":"100%";return{width:computedWidth,height:computedHeight};};ItemLayoutTsx1.__closure={vertical:vertical,width:width,explicitItemSize:explicitItemSize,explicitAxisSize:explicitAxisSize,height:height,measuredSize:measuredSize,effectivePageSize:effectivePageSize};ItemLayoutTsx1.__workletHash=10542892523305;ItemLayoutTsx1.__pluginVersion="0.5.2";ItemLayoutTsx1.__initData=_worklet_10542892523305_init_data;ItemLayoutTsx1.__stackDetails=_e;return ItemLayoutTsx1;}({_worklet_10542892523305_init_data:_worklet_10542892523305_init_data,vertical:vertical,width:width,explicitItemSize:explicitItemSize,explicitAxisSize:explicitAxisSize,height:height,measuredSize:measuredSize,effectivePageSize:effectivePageSize}),[vertical,width,height,explicitAxisSize,explicitItemSize,effectivePageSize]);var offsetXConfig=Object.assign({handlerOffset:handlerOffset,index:index,size:size,dataLength:dataLength,loop:loop},typeof customConfig==="function"?customConfig():{});if(mode==="horizontal-stack"){var _ref4=modeConfig,snapDirection=_ref4.snapDirection,showLength=_ref4.showLength;offsetXConfig={handlerOffset:handlerOffset,index:index,size:size,dataLength:dataLength,loop:loop,type:snapDirection==="right"?"negative":"positive",viewCount:showLength};}var x=(0,_useOffsetX.useOffsetX)(offsetXConfig,visibleRanges);var animationValue=(0,_reactNativeReanimated.useDerivedValue)(function ItemLayoutTsx2Factory(_ref5){var _worklet_1238571432864_init_data=_ref5._worklet_1238571432864_init_data,size=_ref5.size,x=_ref5.x;var _e=[new global.Error(),-3,-27];var ItemLayoutTsx2=function ItemLayoutTsx2(){if(!size)return 0;return x.value/size;};ItemLayoutTsx2.__closure={size:size,x:x};ItemLayoutTsx2.__workletHash=1238571432864;ItemLayoutTsx2.__pluginVersion="0.5.2";ItemLayoutTsx2.__initData=_worklet_1238571432864_init_data;ItemLayoutTsx2.__stackDetails=_e;return ItemLayoutTsx2;}({_worklet_1238571432864_init_data:_worklet_1238571432864_init_data,size:size,x:x}),[x,size]);var animatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function ItemLayoutTsx3Factory(_ref6){var _worklet_2368137795349_init_data=_ref6._worklet_2368137795349_init_data,size=_ref6.size,animationStyle=_ref6.animationStyle,x=_ref6.x,index=_ref6.index;var _e=[new global.Error(),-5,-27];var ItemLayoutTsx3=function ItemLayoutTsx3(){var safeSize=size||1;return animationStyle(x.value/safeSize,index);};ItemLayoutTsx3.__closure={size:size,animationStyle:animationStyle,x:x,index:index};ItemLayoutTsx3.__workletHash=2368137795349;ItemLayoutTsx3.__pluginVersion="0.5.2";ItemLayoutTsx3.__initData=_worklet_2368137795349_init_data;ItemLayoutTsx3.__stackDetails=_e;return ItemLayoutTsx3;}({_worklet_2368137795349_init_data:_worklet_2368137795349_init_data,size:size,animationStyle:animationStyle,x:x,index:index}),[animationStyle,index,x,size]);var child=children({animationValue:animationValue});var enhancedChild=_react.default.isValidElement(child)?_react.default.cloneElement(child,{collapsable:false,onLayout:function onLayout(event){var _child$props;var _event$nativeEvent$la=event.nativeEvent.layout,layoutWidth=_event$nativeEvent$la.width,layoutHeight=_event$nativeEvent$la.height;if(layoutWidth>0&&layoutHeight>0){(0,_reactNativeWorklets.scheduleOnUI)(function ItemLayoutTsx4Factory(_ref7){var _worklet_247236454236_init_data=_ref7._worklet_247236454236_init_data,measuredSize=_ref7.measuredSize,layoutWidth=_ref7.layoutWidth,layoutHeight=_ref7.layoutHeight,updateItemDimensions=_ref7.updateItemDimensions,index=_ref7.index;var _e=[new global.Error(),-6,-27];var ItemLayoutTsx4=function ItemLayoutTsx4(){var _measuredSize$value=measuredSize.value,prevWidth=_measuredSize$value.width,prevHeight=_measuredSize$value.height;if(prevWidth===layoutWidth&&prevHeight===layoutHeight)return;measuredSize.value={width:layoutWidth,height:layoutHeight};updateItemDimensions(index,{width:layoutWidth,height:layoutHeight});};ItemLayoutTsx4.__closure={measuredSize:measuredSize,layoutWidth:layoutWidth,layoutHeight:layoutHeight,updateItemDimensions:updateItemDimensions,index:index};ItemLayoutTsx4.__workletHash=247236454236;ItemLayoutTsx4.__pluginVersion="0.5.2";ItemLayoutTsx4.__initData=_worklet_247236454236_init_data;ItemLayoutTsx4.__stackDetails=_e;return ItemLayoutTsx4;}({_worklet_247236454236_init_data:_worklet_247236454236_init_data,measuredSize:measuredSize,layoutWidth:layoutWidth,layoutHeight:layoutHeight,updateItemDimensions:updateItemDimensions,index:index}));}(_child$props=child.props)==null||_child$props.onLayout==null||_child$props.onLayout(event);}}):child;return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{position:"absolute",pointerEvents:"box-none"},dimensionsStyle,animatedStyle],testID:`__CAROUSEL_ITEM_${index}__`,children:enhancedChild});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ItemLayout=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _useOffsetX=require("../hooks/useOffsetX");var _store=require("../store");var _sanitizeAnimationStyle=require("../utils/sanitize-animation-style");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.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_10542892523305_init_data={code:"function ItemLayoutTsx1(){const{vertical,width,explicitItemSize,explicitAxisSize,height,measuredSize,effectivePageSize}=this.__closure;var _explicitItemSize,_explicitItemSize2,_measuredSize$value$w,_effectivePageSize,_measuredSize$value$h,_effectivePageSize2;const widthCandidate=vertical?width:(_explicitItemSize=explicitItemSize)!==null&&_explicitItemSize!==void 0?_explicitItemSize:explicitAxisSize;const heightCandidate=vertical?(_explicitItemSize2=explicitItemSize)!==null&&_explicitItemSize2!==void 0?_explicitItemSize2:explicitAxisSize:height;const computedWidth=typeof widthCandidate===\"number\"?widthCandidate:(_measuredSize$value$w=measuredSize.value.width)!==null&&_measuredSize$value$w!==void 0?_measuredSize$value$w:vertical?\"100%\":(_effectivePageSize=effectivePageSize)!==null&&_effectivePageSize!==void 0?_effectivePageSize:\"100%\";const computedHeight=typeof heightCandidate===\"number\"?heightCandidate:(_measuredSize$value$h=measuredSize.value.height)!==null&&_measuredSize$value$h!==void 0?_measuredSize$value$h:vertical?(_effectivePageSize2=effectivePageSize)!==null&&_effectivePageSize2!==void 0?_effectivePageSize2:\"100%\":\"100%\";return{width:computedWidth,height:computedHeight};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx1\",\"vertical\",\"width\",\"explicitItemSize\",\"explicitAxisSize\",\"height\",\"measuredSize\",\"effectivePageSize\",\"__closure\",\"_explicitItemSize\",\"_explicitItemSize2\",\"_measuredSize$value$w\",\"_effectivePageSize\",\"_measuredSize$value$h\",\"_effectivePageSize2\",\"widthCandidate\",\"heightCandidate\",\"computedWidth\",\"value\",\"computedHeight\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAoEsD,SAAAA,cAAMA,CAAA,QAAAC,QAAA,CAAAC,KAAA,CAAAC,gBAAA,CAAAC,gBAAA,CAAAC,MAAA,CAAAC,YAAA,CAAAC,iBAAA,OAAAC,SAAA,KAAAC,iBAAA,CAAAC,kBAAA,CAAAC,qBAAA,CAAAC,kBAAA,CAAAC,qBAAA,CAAAC,mBAAA,CAExD,KAAM,CAAAC,cAAc,CAAGd,QAAQ,CAAGC,KAAK,EAAAO,iBAAA,CAAIN,gBAAgB,UAAAM,iBAAA,UAAAA,iBAAA,CAAIL,gBAAiB,CAChF,KAAM,CAAAY,eAAe,CAAGf,QAAQ,EAAAS,kBAAA,CAAIP,gBAAgB,UAAAO,kBAAA,UAAAA,kBAAA,CAAIN,gBAAgB,CAAIC,MAAM,CAElF,KAAM,CAAAY,aAAa,CACjB,MAAO,CAAAF,cAAc,GAAK,QAAQ,CAC9BA,cAAc,EAAAJ,qBAAA,CACbL,YAAY,CAACY,KAAK,CAAChB,KAAK,UAAAS,qBAAA,UAAAA,qBAAA,CAAKV,QAAQ,CAAG,MAAM,EAAAW,kBAAA,CAAIL,iBAAiB,UAAAK,kBAAA,UAAAA,kBAAA,CAAI,MAAS,CAEvF,KAAM,CAAAO,cAAc,CAClB,MAAO,CAAAH,eAAe,GAAK,QAAQ,CAC/BA,eAAe,EAAAH,qBAAA,CACdP,YAAY,CAACY,KAAK,CAACb,MAAM,UAAAQ,qBAAA,UAAAA,qBAAA,CAAKZ,QAAQ,EAAAa,mBAAA,CAAIP,iBAAiB,UAAAO,mBAAA,UAAAA,mBAAA,CAAI,MAAM,CAAI,MAAQ,CAExF,MAAO,CACLZ,KAAK,CAAEe,aAAa,CACpBZ,MAAM,CAAEc,cACV,CAAC,CACH\",\"ignoreList\":[]}"};var _worklet_1238571432864_init_data={code:"function ItemLayoutTsx2(){const{size,x}=this.__closure;if(!size)return 0;return x.value/size;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx2\",\"size\",\"x\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAiHyC,SAAAA,cAAMA,CAAA,QAAAC,IAAA,CAAAC,CAAA,OAAAC,SAAA,CAC3C,GAAI,CAACF,IAAI,CAAE,MAAO,EAAC,CACnB,MAAO,CAAAC,CAAC,CAACE,KAAK,CAAGH,IAAI,CACvB\",\"ignoreList\":[]}"};var _worklet_11434826089240_init_data={code:"function ItemLayoutTsx3(){const{size,sanitizeAnimationStyle,animationStyle,x,index}=this.__closure;const safeSize=size||1;return sanitizeAnimationStyle(animationStyle(x.value/safeSize,index));}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx3\",\"size\",\"sanitizeAnimationStyle\",\"animationStyle\",\"x\",\"index\",\"__closure\",\"safeSize\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AAqHoD,SAAAA,cAAMA,CAAA,QAAAC,IAAA,CAAAC,sBAAA,CAAAC,cAAA,CAAAC,CAAA,CAAAC,KAAA,OAAAC,SAAA,CACtD,KAAM,CAAAC,QAAQ,CAAGN,IAAI,EAAI,CAAC,CAC1B,MAAO,CAAAC,sBAAsB,CAACC,cAAc,CAACC,CAAC,CAACI,KAAK,CAAGD,QAAQ,CAAEF,KAAK,CAAC,CAAC,CAC1E\",\"ignoreList\":[]}"};var _worklet_247236454236_init_data={code:"function ItemLayoutTsx4(){const{measuredSize,layoutWidth,layoutHeight,updateItemDimensions,index}=this.__closure;const{width:prevWidth,height:prevHeight}=measuredSize.value;if(prevWidth===layoutWidth&&prevHeight===layoutHeight)return;measuredSize.value={width:layoutWidth,height:layoutHeight};updateItemDimensions(index,{width:layoutWidth,height:layoutHeight});}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx",sourceMap:"{\"version\":3,\"names\":[\"ItemLayoutTsx4\",\"measuredSize\",\"layoutWidth\",\"layoutHeight\",\"updateItemDimensions\",\"index\",\"__closure\",\"width\",\"prevWidth\",\"height\",\"prevHeight\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/ItemLayout.tsx\"],\"mappings\":\"AA6IyB,SAAAA,cAAMA,CAAA,QAAAC,YAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,oBAAA,CAAAC,KAAA,OAAAC,SAAA,CACjB,KAAM,CAAEC,KAAK,CAAEC,SAAS,CAAEC,MAAM,CAAEC,UAAW,CAAC,CAAGT,YAAY,CAACU,KAAK,CACnE,GAAIH,SAAS,GAAKN,WAAW,EAAIQ,UAAU,GAAKP,YAAY,CAAE,OAE9DF,YAAY,CAACU,KAAK,CAAG,CACnBJ,KAAK,CAAEL,WAAW,CAClBO,MAAM,CAAEN,YACV,CAAC,CACDC,oBAAoB,CAACC,KAAK,CAAE,CAC1BE,KAAK,CAAEL,WAAW,CAClBO,MAAM,CAAEN,YACV,CAAC,CAAC,CACJ\",\"ignoreList\":[]}"};var ItemLayout=exports.ItemLayout=function ItemLayout(props){var _ref2;var handlerOffset=props.handlerOffset,index=props.index,children=props.children,visibleRanges=props.visibleRanges,animationStyle=props.animationStyle;var _useGlobalState=(0,_store.useGlobalState)(),_useGlobalState$props=_useGlobalState.props,loop=_useGlobalState$props.loop,dataLength=_useGlobalState$props.dataLength,width=_useGlobalState$props.width,height=_useGlobalState$props.height,vertical=_useGlobalState$props.vertical,customConfig=_useGlobalState$props.customConfig,mode=_useGlobalState$props.mode,modeConfig=_useGlobalState$props.modeConfig,style=_useGlobalState$props.style,itemWidth=_useGlobalState$props.itemWidth,itemHeight=_useGlobalState$props.itemHeight,common=_useGlobalState.common,updateItemDimensions=_useGlobalState.layout.updateItemDimensions;var measuredSize=(0,_reactNativeReanimated.useSharedValue)({width:null,height:null});var fallbackSize=common.size;var _ref=_reactNative.StyleSheet.flatten(style)||{},styleWidth=_ref.width,styleHeight=_ref.height;var styleWidthNumber=typeof styleWidth==="number"?styleWidth:undefined;var styleHeightNumber=typeof styleHeight==="number"?styleHeight:undefined;var explicitItemSize=vertical?itemHeight:itemWidth;var explicitAxisSize=vertical?styleHeightNumber!=null?styleHeightNumber:height:styleWidthNumber!=null?styleWidthNumber:width;var size=((_ref2=explicitItemSize!=null?explicitItemSize:explicitAxisSize)!=null?_ref2:fallbackSize)||0;var effectivePageSize=size>0?size:undefined;var dimensionsStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function ItemLayoutTsx1Factory(_ref3){var _worklet_10542892523305_init_data=_ref3._worklet_10542892523305_init_data,vertical=_ref3.vertical,width=_ref3.width,explicitItemSize=_ref3.explicitItemSize,explicitAxisSize=_ref3.explicitAxisSize,height=_ref3.height,measuredSize=_ref3.measuredSize,effectivePageSize=_ref3.effectivePageSize;var _e=[new global.Error(),-8,-27];var ItemLayoutTsx1=function ItemLayoutTsx1(){var _measuredSize$value$w,_measuredSize$value$h;var widthCandidate=vertical?width:explicitItemSize!=null?explicitItemSize:explicitAxisSize;var heightCandidate=vertical?explicitItemSize!=null?explicitItemSize:explicitAxisSize:height;var computedWidth=typeof widthCandidate==="number"?widthCandidate:(_measuredSize$value$w=measuredSize.value.width)!=null?_measuredSize$value$w:vertical?"100%":effectivePageSize!=null?effectivePageSize:"100%";var computedHeight=typeof heightCandidate==="number"?heightCandidate:(_measuredSize$value$h=measuredSize.value.height)!=null?_measuredSize$value$h:vertical?effectivePageSize!=null?effectivePageSize:"100%":"100%";return{width:computedWidth,height:computedHeight};};ItemLayoutTsx1.__closure={vertical:vertical,width:width,explicitItemSize:explicitItemSize,explicitAxisSize:explicitAxisSize,height:height,measuredSize:measuredSize,effectivePageSize:effectivePageSize};ItemLayoutTsx1.__workletHash=10542892523305;ItemLayoutTsx1.__pluginVersion="0.5.2";ItemLayoutTsx1.__initData=_worklet_10542892523305_init_data;ItemLayoutTsx1.__stackDetails=_e;return ItemLayoutTsx1;}({_worklet_10542892523305_init_data:_worklet_10542892523305_init_data,vertical:vertical,width:width,explicitItemSize:explicitItemSize,explicitAxisSize:explicitAxisSize,height:height,measuredSize:measuredSize,effectivePageSize:effectivePageSize}),[vertical,width,height,explicitAxisSize,explicitItemSize,effectivePageSize]);var offsetXConfig=Object.assign({handlerOffset:handlerOffset,index:index,size:size,dataLength:dataLength,loop:loop},typeof customConfig==="function"?customConfig():{});if(mode==="horizontal-stack"){var _ref4=modeConfig,snapDirection=_ref4.snapDirection,showLength=_ref4.showLength;offsetXConfig={handlerOffset:handlerOffset,index:index,size:size,dataLength:dataLength,loop:loop,type:snapDirection==="right"?"negative":"positive",viewCount:showLength};}var x=(0,_useOffsetX.useOffsetX)(offsetXConfig,visibleRanges);var animationValue=(0,_reactNativeReanimated.useDerivedValue)(function ItemLayoutTsx2Factory(_ref5){var _worklet_1238571432864_init_data=_ref5._worklet_1238571432864_init_data,size=_ref5.size,x=_ref5.x;var _e=[new global.Error(),-3,-27];var ItemLayoutTsx2=function ItemLayoutTsx2(){if(!size)return 0;return x.value/size;};ItemLayoutTsx2.__closure={size:size,x:x};ItemLayoutTsx2.__workletHash=1238571432864;ItemLayoutTsx2.__pluginVersion="0.5.2";ItemLayoutTsx2.__initData=_worklet_1238571432864_init_data;ItemLayoutTsx2.__stackDetails=_e;return ItemLayoutTsx2;}({_worklet_1238571432864_init_data:_worklet_1238571432864_init_data,size:size,x:x}),[x,size]);var animatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function ItemLayoutTsx3Factory(_ref6){var _worklet_11434826089240_init_data=_ref6._worklet_11434826089240_init_data,size=_ref6.size,sanitizeAnimationStyle=_ref6.sanitizeAnimationStyle,animationStyle=_ref6.animationStyle,x=_ref6.x,index=_ref6.index;var _e=[new global.Error(),-6,-27];var ItemLayoutTsx3=function ItemLayoutTsx3(){var safeSize=size||1;return sanitizeAnimationStyle(animationStyle(x.value/safeSize,index));};ItemLayoutTsx3.__closure={size:size,sanitizeAnimationStyle:sanitizeAnimationStyle,animationStyle:animationStyle,x:x,index:index};ItemLayoutTsx3.__workletHash=11434826089240;ItemLayoutTsx3.__pluginVersion="0.5.2";ItemLayoutTsx3.__initData=_worklet_11434826089240_init_data;ItemLayoutTsx3.__stackDetails=_e;return ItemLayoutTsx3;}({_worklet_11434826089240_init_data:_worklet_11434826089240_init_data,size:size,sanitizeAnimationStyle:_sanitizeAnimationStyle.sanitizeAnimationStyle,animationStyle:animationStyle,x:x,index:index}),[animationStyle,index,x,size]);var child=children({animationValue:animationValue});var enhancedChild=_react.default.isValidElement(child)?_react.default.cloneElement(child,{collapsable:false,onLayout:function onLayout(event){var _child$props;var _event$nativeEvent$la=event.nativeEvent.layout,layoutWidth=_event$nativeEvent$la.width,layoutHeight=_event$nativeEvent$la.height;if(layoutWidth>0&&layoutHeight>0){(0,_reactNativeWorklets.scheduleOnUI)(function ItemLayoutTsx4Factory(_ref7){var _worklet_247236454236_init_data=_ref7._worklet_247236454236_init_data,measuredSize=_ref7.measuredSize,layoutWidth=_ref7.layoutWidth,layoutHeight=_ref7.layoutHeight,updateItemDimensions=_ref7.updateItemDimensions,index=_ref7.index;var _e=[new global.Error(),-6,-27];var ItemLayoutTsx4=function ItemLayoutTsx4(){var _measuredSize$value=measuredSize.value,prevWidth=_measuredSize$value.width,prevHeight=_measuredSize$value.height;if(prevWidth===layoutWidth&&prevHeight===layoutHeight)return;measuredSize.value={width:layoutWidth,height:layoutHeight};updateItemDimensions(index,{width:layoutWidth,height:layoutHeight});};ItemLayoutTsx4.__closure={measuredSize:measuredSize,layoutWidth:layoutWidth,layoutHeight:layoutHeight,updateItemDimensions:updateItemDimensions,index:index};ItemLayoutTsx4.__workletHash=247236454236;ItemLayoutTsx4.__pluginVersion="0.5.2";ItemLayoutTsx4.__initData=_worklet_247236454236_init_data;ItemLayoutTsx4.__stackDetails=_e;return ItemLayoutTsx4;}({_worklet_247236454236_init_data:_worklet_247236454236_init_data,measuredSize:measuredSize,layoutWidth:layoutWidth,layoutHeight:layoutHeight,updateItemDimensions:updateItemDimensions,index:index}));}(_child$props=child.props)==null||_child$props.onLayout==null||_child$props.onLayout(event);}}):child;return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{position:"absolute",pointerEvents:"box-none"},dimensionsStyle,animatedStyle],testID:`__CAROUSEL_ITEM_${index}__`,children:enhancedChild});};
2
2
  //# sourceMappingURL=ItemLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeWorklets","_useOffsetX","_store","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_10542892523305_init_data","code","location","sourceMap","_worklet_1238571432864_init_data","_worklet_2368137795349_init_data","_worklet_247236454236_init_data","ItemLayout","exports","props","_ref2","handlerOffset","index","children","visibleRanges","animationStyle","_useGlobalState","useGlobalState","_useGlobalState$props","loop","dataLength","width","height","vertical","customConfig","mode","modeConfig","style","itemWidth","itemHeight","common","updateItemDimensions","layout","measuredSize","useSharedValue","fallbackSize","size","_ref","StyleSheet","flatten","styleWidth","styleHeight","styleWidthNumber","undefined","styleHeightNumber","explicitItemSize","explicitAxisSize","effectivePageSize","dimensionsStyle","useAnimatedStyle","ItemLayoutTsx1Factory","_ref3","_e","global","Error","ItemLayoutTsx1","_measuredSize$value$w","_measuredSize$value$h","widthCandidate","heightCandidate","computedWidth","value","computedHeight","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","offsetXConfig","assign","_ref4","snapDirection","showLength","type","viewCount","x","useOffsetX","animationValue","useDerivedValue","ItemLayoutTsx2Factory","_ref5","ItemLayoutTsx2","animatedStyle","ItemLayoutTsx3Factory","_ref6","ItemLayoutTsx3","safeSize","child","enhancedChild","React","isValidElement","cloneElement","collapsable","onLayout","event","_child$props","_event$nativeEvent$la","nativeEvent","layoutWidth","layoutHeight","scheduleOnUI","ItemLayoutTsx4Factory","_ref7","ItemLayoutTsx4","_measuredSize$value","prevWidth","prevHeight","jsx","View","position","pointerEvents","testID"],"sourceRoot":"../../../src","sources":["components/ItemLayout.tsx"],"mappings":"sKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBAEA,IAAAE,sBAAA,CAAAC,uBAAA,CAAAH,OAAA,6BAKA,IAAAI,oBAAA,CAAAJ,OAAA,0BAGA,IAAAK,WAAA,CAAAL,OAAA,wBAGA,IAAAM,MAAA,CAAAN,OAAA,aAA0C,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,KAAA,MAAAC,YAAA,8HAAAN,wBAAAO,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAT,uBAAA,UAAAA,wBAAAO,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,EAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,CAAAc,EAAA,KAAAP,CAAA,CAAAK,GAAA,EAAAL,CAAA,CAAAM,GAAA,EAAA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AAZA,YAAY,CAM5DpE,oBAAoB,CAApBA,oBAAoB,CAACnB,KAAK,CAALA,KAAK,EAI3B,CAAC,CACJ,CAEA,CAAAmF,YAAA,CAAAR,KAAK,CAAC9E,KAAK,SAAXsF,YAAA,CAAaF,QAAQ,QAArBE,YAAA,CAAaF,QAAQ,CAAGC,KAAK,CAAC,CAChC,CACF,CAAC,CAAC,CACFP,KAAK,CAET,MACE,GAAA9G,WAAA,CAAAkI,GAAA,EAACvI,sBAAA,CAAAkB,OAAQ,CAACsH,IAAI,EACZjF,KAAK,CAAE,CACL,CACEkF,QAAQ,CAAE,UAAU,CACpBC,aAAa,CAAE,UACjB,CAAC,CACD9D,eAAe,CACfkC,aAAa,CACb,CAMF6B,MAAM,CAAE,mBAAmBnG,KAAK,IAAK,CAAAC,QAAA,CAEpC2E,aAAa,CACD,CAAC,CAEpB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeWorklets","_useOffsetX","_store","_sanitizeAnimationStyle","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_10542892523305_init_data","code","location","sourceMap","_worklet_1238571432864_init_data","_worklet_11434826089240_init_data","_worklet_247236454236_init_data","ItemLayout","exports","props","_ref2","handlerOffset","index","children","visibleRanges","animationStyle","_useGlobalState","useGlobalState","_useGlobalState$props","loop","dataLength","width","height","vertical","customConfig","mode","modeConfig","style","itemWidth","itemHeight","common","updateItemDimensions","layout","measuredSize","useSharedValue","fallbackSize","size","_ref","StyleSheet","flatten","styleWidth","styleHeight","styleWidthNumber","undefined","styleHeightNumber","explicitItemSize","explicitAxisSize","effectivePageSize","dimensionsStyle","useAnimatedStyle","ItemLayoutTsx1Factory","_ref3","_e","global","Error","ItemLayoutTsx1","_measuredSize$value$w","_measuredSize$value$h","widthCandidate","heightCandidate","computedWidth","value","computedHeight","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","offsetXConfig","assign","_ref4","snapDirection","showLength","type","viewCount","x","useOffsetX","animationValue","useDerivedValue","ItemLayoutTsx2Factory","_ref5","ItemLayoutTsx2","animatedStyle","ItemLayoutTsx3Factory","_ref6","sanitizeAnimationStyle","ItemLayoutTsx3","safeSize","child","enhancedChild","React","isValidElement","cloneElement","collapsable","onLayout","event","_child$props","_event$nativeEvent$la","nativeEvent","layoutWidth","layoutHeight","scheduleOnUI","ItemLayoutTsx4Factory","_ref7","ItemLayoutTsx4","_measuredSize$value","prevWidth","prevHeight","jsx","View","position","pointerEvents","testID"],"sourceRoot":"../../../src","sources":["components/ItemLayout.tsx"],"mappings":"sKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBAEA,IAAAE,sBAAA,CAAAC,uBAAA,CAAAH,OAAA,6BAKA,IAAAI,oBAAA,CAAAJ,OAAA,0BAGA,IAAAK,WAAA,CAAAL,OAAA,wBAGA,IAAAM,MAAA,CAAAN,OAAA,aAEA,IAAAO,uBAAA,CAAAP,OAAA,sCAA2E,IAAAQ,WAAA,CAAAR,OAAA,0BAAAS,KAAA,MAAAC,YAAA,8HAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,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KAAK,CAAE8E,WAAW,CAClB7E,MAAM,CAAE8E,YACV,CAAC,CAAC,CACJ,CAAC,CAAAI,cAAA,CAAAzC,SAAA,EAXkD9B,YAAY,CAAZA,YAAY,CAC3CkE,WAAW,CAAXA,WAAW,CAAmBC,YAAY,CAAZA,YAAY,CAM5DrE,oBAAoB,CAApBA,oBAAoB,CAACnB,KAAK,CAALA,KAAK,EAAA4F,cAAA,CAAAxC,aAAA,cAAAwC,cAAA,CAAAvC,eAAA,SAAAuC,cAAA,CAAAtC,UAAA,CAAA5D,+BAAA,CAAAkG,cAAA,CAAArC,cAAA,CAAAf,EAAA,QAAAoD,cAAA,EARf,EAAAlG,+BAAA,CAAAA,+BAAA,CACsC2B,YAAY,CAAZA,YAAY,CAC3CkE,WAAW,CAAXA,WAAW,CAAmBC,YAAY,CAAZA,YAAY,CAM5DrE,oBAAoB,CAApBA,oBAAoB,CAACnB,KAAK,CAALA,KAAK,EAI3B,CAAC,CACJ,CAEA,CAAAoF,YAAA,CAAAR,KAAK,CAAC/E,KAAK,SAAXuF,YAAA,CAAaF,QAAQ,QAArBE,YAAA,CAAaF,QAAQ,CAAGC,KAAK,CAAC,CAChC,CACF,CAAC,CAAC,CACFP,KAAK,CAET,MACE,GAAA/G,WAAA,CAAAmI,GAAA,EAACzI,sBAAA,CAAAmB,OAAQ,CAACuH,IAAI,EACZlF,KAAK,CAAE,CACL,CACEmF,QAAQ,CAAE,UAAU,CACpBC,aAAa,CAAE,UACjB,CAAC,CACD/D,eAAe,CACfkC,aAAa,CACb,CAMF8B,MAAM,CAAE,mBAAmBpG,KAAK,IAAK,CAAAC,QAAA,CAEpC4E,aAAa,CACD,CAAC,CAEpB,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_14735271691165_init_data={code:"function PaginationItemTsx1(){const{animValue}=this.__closure;return animValue.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx1\",\"animValue\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AAkEI,SAAAA,mBAAA,QAAAC,SAAA,OAAAC,SAAA,OAAM,CAAAD,SAAU,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_15827712769857_init_data={code:"function PaginationItemTsx2(value){const{scheduleOnRN,setIsSelected,index}=this.__closure;scheduleOnRN(setIsSelected,value===index);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx2\",\"value\",\"scheduleOnRN\",\"setIsSelected\",\"index\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AAmEK,SAAAA,kBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,aAAA,CAAAC,KAAA,OAAAC,SAAA,CACTH,YAAY,CAACC,aAAa,CAAEF,KAAK,GAAKG,KAAK,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_3460551008817_init_data={code:"function PaginationItemTsx3(){const{horizontal,height,width,index,animValue,count,interpolate,Extrapolation}=this.__closure;var _animValue,_animValue2;const size=horizontal?height:width;let inputRange=[index-1,index,index+1];let outputRange=[-size,0,size];if(index===0&&((_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value)>count-1){inputRange=[count-1,count,count+1];outputRange=[-size,0,size];}return{transform:[{translateX:interpolate((_animValue2=animValue)===null||_animValue2===void 0?void 0:_animValue2.value,inputRange,outputRange,Extrapolation.CLAMP)}]};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx3\",\"horizontal\",\"height\",\"width\",\"index\",\"animValue\",\"count\",\"interpolate\",\"Extrapolation\",\"__closure\",\"_animValue\",\"_animValue2\",\"size\",\"inputRange\",\"outputRange\",\"value\",\"transform\",\"translateX\",\"CLAMP\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AAyEqC,SAAAA,kBAAMA,CAAA,QAAAC,UAAA,CAAAC,MAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,aAAA,OAAAC,SAAA,KAAAC,UAAA,CAAAC,WAAA,CACvC,KAAM,CAAAC,IAAI,CAAGX,UAAU,CAAGC,MAAM,CAAGC,KAAK,CACxC,GAAI,CAAAU,UAAU,CAAG,CAACT,KAAK,CAAG,CAAC,CAAEA,KAAK,CAAEA,KAAK,CAAG,CAAC,CAAC,CAC9C,GAAI,CAAAU,WAAW,CAAG,CAAC,CAACF,IAAI,CAAE,CAAC,CAAEA,IAAI,CAAC,CAElC,GAAIR,KAAK,GAAK,CAAC,EAAI,EAAAM,UAAA,CAAAL,SAAS,UAAAK,UAAA,iBAATA,UAAA,CAAWK,KAAK,EAAGT,KAAK,CAAG,CAAC,CAAE,CAC/CO,UAAU,CAAG,CAACP,KAAK,CAAG,CAAC,CAAEA,KAAK,CAAEA,KAAK,CAAG,CAAC,CAAC,CAC1CQ,WAAW,CAAG,CAAC,CAACF,IAAI,CAAE,CAAC,CAAEA,IAAI,CAAC,CAChC,CAEA,MAAO,CACLI,SAAS,CAAE,CACT,CACEC,UAAU,CAAEV,WAAW,EAAAI,WAAA,CAACN,SAAS,UAAAM,WAAA,iBAATA,WAAA,CAAWI,KAAK,CAAEF,UAAU,CAAEC,WAAW,CAAEN,aAAa,CAACU,KAAK,CACxF,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"};var PaginationItem=exports.PaginationItem=function PaginationItem(props){var animValue=props.animValue,dotStyle=props.dotStyle,activeDotStyle=props.activeDotStyle,index=props.index,count=props.count,size=props.size,horizontal=props.horizontal,children=props.children,onPress=props.onPress,accessibilityLabel=props.accessibilityLabel;var defaultDotSize=10;var sizes={width:size||(dotStyle==null?void 0:dotStyle.width)||defaultDotSize,height:size||(dotStyle==null?void 0:dotStyle.height)||defaultDotSize};var width=sizes.width;var height=sizes.height;var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isSelected=_useState2[0],setIsSelected=_useState2[1];(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx1Factory(_ref){var _worklet_14735271691165_init_data=_ref._worklet_14735271691165_init_data,animValue=_ref.animValue;var _e=[new global.Error(),-2,-27];var PaginationItemTsx1=function PaginationItemTsx1(){return animValue.value;};PaginationItemTsx1.__closure={animValue:animValue};PaginationItemTsx1.__workletHash=14735271691165;PaginationItemTsx1.__pluginVersion="0.5.2";PaginationItemTsx1.__initData=_worklet_14735271691165_init_data;PaginationItemTsx1.__stackDetails=_e;return PaginationItemTsx1;}({_worklet_14735271691165_init_data:_worklet_14735271691165_init_data,animValue:animValue}),function PaginationItemTsx2Factory(_ref2){var _worklet_15827712769857_init_data=_ref2._worklet_15827712769857_init_data,scheduleOnRN=_ref2.scheduleOnRN,setIsSelected=_ref2.setIsSelected,index=_ref2.index;var _e=[new global.Error(),-4,-27];var PaginationItemTsx2=function PaginationItemTsx2(value){scheduleOnRN(setIsSelected,value===index);};PaginationItemTsx2.__closure={scheduleOnRN:scheduleOnRN,setIsSelected:setIsSelected,index:index};PaginationItemTsx2.__workletHash=15827712769857;PaginationItemTsx2.__pluginVersion="0.5.2";PaginationItemTsx2.__initData=_worklet_15827712769857_init_data;PaginationItemTsx2.__stackDetails=_e;return PaginationItemTsx2;}({_worklet_15827712769857_init_data:_worklet_15827712769857_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setIsSelected:setIsSelected,index:index}),[animValue,index]);var animStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx3Factory(_ref3){var _worklet_3460551008817_init_data=_ref3._worklet_3460551008817_init_data,horizontal=_ref3.horizontal,height=_ref3.height,width=_ref3.width,index=_ref3.index,animValue=_ref3.animValue,count=_ref3.count,interpolate=_ref3.interpolate,Extrapolation=_ref3.Extrapolation;var _e=[new global.Error(),-9,-27];var PaginationItemTsx3=function PaginationItemTsx3(){var size=horizontal?height:width;var inputRange=[index-1,index,index+1];var outputRange=[-size,0,size];if(index===0&&(animValue==null?void 0:animValue.value)>count-1){inputRange=[count-1,count,count+1];outputRange=[-size,0,size];}return{transform:[{translateX:interpolate(animValue==null?void 0:animValue.value,inputRange,outputRange,Extrapolation.CLAMP)}]};};PaginationItemTsx3.__closure={horizontal:horizontal,height:height,width:width,index:index,animValue:animValue,count:count,interpolate:interpolate,Extrapolation:Extrapolation};PaginationItemTsx3.__workletHash=3460551008817;PaginationItemTsx3.__pluginVersion="0.5.2";PaginationItemTsx3.__initData=_worklet_3460551008817_init_data;PaginationItemTsx3.__stackDetails=_e;return PaginationItemTsx3;}({_worklet_3460551008817_init_data:_worklet_3460551008817_init_data,horizontal:horizontal,height:height,width:width,index:index,animValue:animValue,count:count,interpolate:_reactNativeReanimated.interpolate,Extrapolation:_reactNativeReanimated.Extrapolation}),[animValue,index,count,horizontal]);return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{onPress:onPress,accessibilityLabel:accessibilityLabel,accessibilityRole:"button",accessibilityHint:isSelected?"":`Go to ${accessibilityLabel}`,accessibilityState:{selected:isSelected},children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{width:width,height:height,overflow:"hidden",transform:[{rotateZ:horizontal?"90deg":"0deg"}]},dotStyle],children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{backgroundColor:"black",flex:1},animStyle,activeDotStyle],children:children})})});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_14735271691165_init_data={code:"function PaginationItemTsx1(){const{animValue}=this.__closure;return animValue.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx1\",\"animValue\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AAoFI,SAAAA,mBAAA,QAAAC,SAAA,OAAAC,SAAA,OAAM,CAAAD,SAAU,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_15827712769857_init_data={code:"function PaginationItemTsx2(value){const{scheduleOnRN,setIsSelected,index}=this.__closure;scheduleOnRN(setIsSelected,value===index);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx2\",\"value\",\"scheduleOnRN\",\"setIsSelected\",\"index\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AAqFK,SAAAA,kBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,aAAA,CAAAC,KAAA,OAAAC,SAAA,CACTH,YAAY,CAACC,aAAa,CAAEF,KAAK,GAAKG,KAAK,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_3460551008817_init_data={code:"function PaginationItemTsx3(){const{horizontal,height,width,index,animValue,count,interpolate,Extrapolation}=this.__closure;var _animValue,_animValue2;const size=horizontal?height:width;let inputRange=[index-1,index,index+1];let outputRange=[-size,0,size];if(index===0&&((_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value)>count-1){inputRange=[count-1,count,count+1];outputRange=[-size,0,size];}return{transform:[{translateX:interpolate((_animValue2=animValue)===null||_animValue2===void 0?void 0:_animValue2.value,inputRange,outputRange,Extrapolation.CLAMP)}]};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx3\",\"horizontal\",\"height\",\"width\",\"index\",\"animValue\",\"count\",\"interpolate\",\"Extrapolation\",\"__closure\",\"_animValue\",\"_animValue2\",\"size\",\"inputRange\",\"outputRange\",\"value\",\"transform\",\"translateX\",\"CLAMP\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/PaginationItem.tsx\"],\"mappings\":\"AA2FqC,SAAAA,kBAAMA,CAAA,QAAAC,UAAA,CAAAC,MAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,aAAA,OAAAC,SAAA,KAAAC,UAAA,CAAAC,WAAA,CACvC,KAAM,CAAAC,IAAI,CAAGX,UAAU,CAAGC,MAAM,CAAGC,KAAK,CACxC,GAAI,CAAAU,UAAU,CAAG,CAACT,KAAK,CAAG,CAAC,CAAEA,KAAK,CAAEA,KAAK,CAAG,CAAC,CAAC,CAC9C,GAAI,CAAAU,WAAW,CAAG,CAAC,CAACF,IAAI,CAAE,CAAC,CAAEA,IAAI,CAAC,CAElC,GAAIR,KAAK,GAAK,CAAC,EAAI,EAAAM,UAAA,CAAAL,SAAS,UAAAK,UAAA,iBAATA,UAAA,CAAWK,KAAK,EAAGT,KAAK,CAAG,CAAC,CAAE,CAC/CO,UAAU,CAAG,CAACP,KAAK,CAAG,CAAC,CAAEA,KAAK,CAAEA,KAAK,CAAG,CAAC,CAAC,CAC1CQ,WAAW,CAAG,CAAC,CAACF,IAAI,CAAE,CAAC,CAAEA,IAAI,CAAC,CAChC,CAEA,MAAO,CACLI,SAAS,CAAE,CACT,CACEC,UAAU,CAAEV,WAAW,EAAAI,WAAA,CAACN,SAAS,UAAAM,WAAA,iBAATA,WAAA,CAAWI,KAAK,CAAEF,UAAU,CAAEC,WAAW,CAAEN,aAAa,CAACU,KAAK,CACxF,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"};var PaginationItem=exports.PaginationItem=function PaginationItem(props){var animValue=props.animValue,dotStyle=props.dotStyle,activeDotStyle=props.activeDotStyle,index=props.index,count=props.count,size=props.size,horizontal=props.horizontal,children=props.children,onPress=props.onPress,accessibilityLabel=props.accessibilityLabel,accessibilityHint=props.accessibilityHint,accessibilityRole=props.accessibilityRole,accessibilityState=props.accessibilityState;var defaultDotSize=10;var sizes={width:size||(dotStyle==null?void 0:dotStyle.width)||defaultDotSize,height:size||(dotStyle==null?void 0:dotStyle.height)||defaultDotSize};var width=sizes.width;var height=sizes.height;var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isSelected=_useState2[0],setIsSelected=_useState2[1];var resolvedAccessibilityLabel=accessibilityLabel!=null?accessibilityLabel:`Slide ${index+1} of ${count}`;var resolvedAccessibilityHint=accessibilityHint!=null?accessibilityHint:isSelected?"":`Go to ${resolvedAccessibilityLabel}`;var resolvedAccessibilityRole=accessibilityRole!=null?accessibilityRole:"button";var resolvedAccessibilityState=accessibilityState!=null?accessibilityState:{selected:isSelected};(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx1Factory(_ref){var _worklet_14735271691165_init_data=_ref._worklet_14735271691165_init_data,animValue=_ref.animValue;var _e=[new global.Error(),-2,-27];var PaginationItemTsx1=function PaginationItemTsx1(){return animValue.value;};PaginationItemTsx1.__closure={animValue:animValue};PaginationItemTsx1.__workletHash=14735271691165;PaginationItemTsx1.__pluginVersion="0.5.2";PaginationItemTsx1.__initData=_worklet_14735271691165_init_data;PaginationItemTsx1.__stackDetails=_e;return PaginationItemTsx1;}({_worklet_14735271691165_init_data:_worklet_14735271691165_init_data,animValue:animValue}),function PaginationItemTsx2Factory(_ref2){var _worklet_15827712769857_init_data=_ref2._worklet_15827712769857_init_data,scheduleOnRN=_ref2.scheduleOnRN,setIsSelected=_ref2.setIsSelected,index=_ref2.index;var _e=[new global.Error(),-4,-27];var PaginationItemTsx2=function PaginationItemTsx2(value){scheduleOnRN(setIsSelected,value===index);};PaginationItemTsx2.__closure={scheduleOnRN:scheduleOnRN,setIsSelected:setIsSelected,index:index};PaginationItemTsx2.__workletHash=15827712769857;PaginationItemTsx2.__pluginVersion="0.5.2";PaginationItemTsx2.__initData=_worklet_15827712769857_init_data;PaginationItemTsx2.__stackDetails=_e;return PaginationItemTsx2;}({_worklet_15827712769857_init_data:_worklet_15827712769857_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setIsSelected:setIsSelected,index:index}),[animValue,index]);var animStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx3Factory(_ref3){var _worklet_3460551008817_init_data=_ref3._worklet_3460551008817_init_data,horizontal=_ref3.horizontal,height=_ref3.height,width=_ref3.width,index=_ref3.index,animValue=_ref3.animValue,count=_ref3.count,interpolate=_ref3.interpolate,Extrapolation=_ref3.Extrapolation;var _e=[new global.Error(),-9,-27];var PaginationItemTsx3=function PaginationItemTsx3(){var size=horizontal?height:width;var inputRange=[index-1,index,index+1];var outputRange=[-size,0,size];if(index===0&&(animValue==null?void 0:animValue.value)>count-1){inputRange=[count-1,count,count+1];outputRange=[-size,0,size];}return{transform:[{translateX:interpolate(animValue==null?void 0:animValue.value,inputRange,outputRange,Extrapolation.CLAMP)}]};};PaginationItemTsx3.__closure={horizontal:horizontal,height:height,width:width,index:index,animValue:animValue,count:count,interpolate:interpolate,Extrapolation:Extrapolation};PaginationItemTsx3.__workletHash=3460551008817;PaginationItemTsx3.__pluginVersion="0.5.2";PaginationItemTsx3.__initData=_worklet_3460551008817_init_data;PaginationItemTsx3.__stackDetails=_e;return PaginationItemTsx3;}({_worklet_3460551008817_init_data:_worklet_3460551008817_init_data,horizontal:horizontal,height:height,width:width,index:index,animValue:animValue,count:count,interpolate:_reactNativeReanimated.interpolate,Extrapolation:_reactNativeReanimated.Extrapolation}),[animValue,index,count,horizontal]);return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{onPress:onPress,accessibilityLabel:resolvedAccessibilityLabel,accessibilityRole:resolvedAccessibilityRole,accessibilityHint:resolvedAccessibilityHint,accessibilityState:resolvedAccessibilityState,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{width:width,height:height,overflow:"hidden",transform:[{rotateZ:horizontal?"90deg":"0deg"}]},dotStyle],children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{backgroundColor:"black",flex:1},animStyle,activeDotStyle],children:children})})});};
2
2
  //# sourceMappingURL=PaginationItem.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeWorklets","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_14735271691165_init_data","code","location","sourceMap","_worklet_15827712769857_init_data","_worklet_3460551008817_init_data","PaginationItem","exports","props","animValue","dotStyle","activeDotStyle","index","count","size","horizontal","children","onPress","accessibilityLabel","defaultDotSize","sizes","width","height","_useState","useState","_useState2","_slicedToArray2","isSelected","setIsSelected","useAnimatedReaction","PaginationItemTsx1Factory","_ref","_e","global","Error","PaginationItemTsx1","value","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","PaginationItemTsx2Factory","_ref2","scheduleOnRN","PaginationItemTsx2","animStyle","useAnimatedStyle","PaginationItemTsx3Factory","_ref3","interpolate","Extrapolation","PaginationItemTsx3","inputRange","outputRange","transform","translateX","CLAMP","jsx","Pressable","accessibilityRole","accessibilityHint","accessibilityState","selected","View","style","overflow","rotateZ","backgroundColor","flex"],"s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S,CAAE,CACT,CACEY,OAAO,CAAEpD,UAAU,CAAG,OAAO,CAAG,MAClC,CAAC,CAEL,CAAC,CACDL,QAAQ,CACR,CAAAM,QAAA,CAEF,GAAAvC,WAAA,CAAAiF,GAAA,EAACnF,sBAAA,CAAAe,OAAQ,CAAC0E,IAAI,EACZC,KAAK,CAAE,CACL,CACEG,eAAe,CAAE,OAAO,CACxBC,IAAI,CAAE,CACR,CAAC,CACDvB,SAAS,CACTnC,cAAc,CACd,CAAAK,QAAA,CAEDA,QAAQ,CACI,CAAC,CACZ,CAAC,CACE,CAAC,CAEhB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeWorklets","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_14735271691165_init_data","code","location","sourceMap","_worklet_15827712769857_init_data","_worklet_3460551008817_init_data","PaginationItem","exports","props","animValue","dotStyle","activeDotStyle","index","count","size","horizontal","children","onPress","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState","defaultDotSize","sizes","width","height","_useState","useState","_useState2","_slicedToArray2","isSelected","setIsSelected","resolvedAccessibilityLabel","resolvedAccessibilityHint","resolvedAccessibilityRole","resolvedAccessibilityState","selected","useAnimatedReaction","PaginationItemTsx1Factory","_ref","_e","global","Error","PaginationItemTsx1","value","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","PaginationItemTsx2Factory","_ref2","scheduleOnRN","PaginationItemTsx2","animStyle","useAnimatedStyle","PaginationItemTsx3Factory","_ref3","interpolate","Extrapolation","PaginationItemTsx3","inputRange","outputRange","transform","translateX","CLAMP","jsx","Pressable","View","style","overflow","rotateZ","backgroundColor","flex"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Basic/PaginationItem.tsx"],"mappings":"sQACA,IAAAA,MAAA,CAAAC,uBAAA,CAAA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CAAAyF,GAAA,EAAC5F,YAAA,CAAA6F,SAAS,EACRlD,OAAO,CAAEA,OAAQ,CACjBC,kBAAkB,CAAEc,0BAA2B,CAC/CZ,iBAAiB,CAAEc,yBAA0B,CAC7Cf,iBAAiB,CAAEc,yBAA0B,CAC7CZ,kBAAkB,CAAEc,0BAA2B,CAAAnB,QAAA,CAE/C,GAAAvC,WAAA,CAAAyF,GAAA,EAAC5F,YAAA,CAAA8F,IAAI,EACHC,KAAK,CAAE,CACL,CACE7C,KAAK,CAALA,KAAK,CACLC,MAAM,CAANA,MAAM,CACN6C,QAAQ,CAAE,QAAQ,CAClBP,SAAS,CAAE,CACT,CACEQ,OAAO,CAAExD,UAAU,CAAG,OAAO,CAAG,MAClC,CAAC,CAEL,CAAC,CACDL,QAAQ,CACR,CAAAM,QAAA,CAEF,GAAAvC,WAAA,CAAAyF,GAAA,EAAC3F,sBAAA,CAAAe,OAAQ,CAAC8E,IAAI,EACZC,KAAK,CAAE,CACL,CACEG,eAAe,CAAE,OAAO,CACxBC,IAAI,CAAE,CACR,CAAC,CACDnB,SAAS,CACT3C,cAAc,CACd,CAAAK,QAAA,CAEDA,QAAQ,CACI,CAAC,CACZ,CAAC,CACE,CAAC,CAEhB,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Basic=void 0;var _reactNative=require("react-native");var _react=_interopRequireDefault(require("react"));var _PaginationItem=require("./PaginationItem");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/index.tsx";var Basic=exports.Basic=function Basic(props){var activeDotStyle=props.activeDotStyle,dotStyle=props.dotStyle,progress=props.progress,_props$horizontal=props.horizontal,horizontal=_props$horizontal===void 0?true:_props$horizontal,data=props.data,size=props.size,containerStyle=props.containerStyle,renderItem=props.renderItem,_onPress=props.onPress,carouselName=props.carouselName;if(typeof size==="string"||typeof(dotStyle==null?void 0:dotStyle.width)==="string"||typeof(dotStyle==null?void 0:dotStyle.height)==="string")throw new Error("size/width/height must be a number");return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{justifyContent:"space-between",alignSelf:"center"},horizontal?{flexDirection:"row"}:{flexDirection:"column"},containerStyle],children:data.map(function(item,index){return(0,_jsxRuntime.jsx)(_PaginationItem.PaginationItem,{index:index,size:size,count:data.length,dotStyle:dotStyle,animValue:progress,horizontal:!horizontal,activeDotStyle:activeDotStyle,onPress:function onPress(){return _onPress==null?void 0:_onPress(index);},accessibilityLabel:`Slide ${index+1} of ${data.length} - ${carouselName}`,children:renderItem==null?void 0:renderItem(item,index)},index);})});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Basic=void 0;var _reactNative=require("react-native");var _react=_interopRequireDefault(require("react"));var _PaginationItem=require("./PaginationItem");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Basic/index.tsx";var Basic=exports.Basic=function Basic(props){var activeDotStyle=props.activeDotStyle,dotStyle=props.dotStyle,progress=props.progress,_props$horizontal=props.horizontal,horizontal=_props$horizontal===void 0?true:_props$horizontal,data=props.data,size=props.size,containerStyle=props.containerStyle,renderItem=props.renderItem,_onPress=props.onPress,carouselName=props.carouselName,paginationItemAccessibility=props.paginationItemAccessibility;if(typeof size==="string"||typeof(dotStyle==null?void 0:dotStyle.width)==="string"||typeof(dotStyle==null?void 0:dotStyle.height)==="string")throw new Error("size/width/height must be a number");return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{justifyContent:"space-between",alignSelf:"center"},horizontal?{flexDirection:"row"}:{flexDirection:"column"},containerStyle],children:data.map(function(item,index){var _paginationItemAccess,_accessibilityOverrid;var defaultAccessibilityLabel=carouselName?`Slide ${index+1} of ${data.length} - ${carouselName}`:`Slide ${index+1} of ${data.length}`;var accessibilityOverrides=(_paginationItemAccess=paginationItemAccessibility==null?void 0:paginationItemAccessibility(index,data.length))!=null?_paginationItemAccess:{};return(0,_jsxRuntime.jsx)(_PaginationItem.PaginationItem,{index:index,size:size,count:data.length,dotStyle:dotStyle,animValue:progress,horizontal:!horizontal,activeDotStyle:activeDotStyle,onPress:function onPress(){return _onPress==null?void 0:_onPress(index);},accessibilityLabel:(_accessibilityOverrid=accessibilityOverrides.accessibilityLabel)!=null?_accessibilityOverrid:defaultAccessibilityLabel,accessibilityHint:accessibilityOverrides.accessibilityHint,accessibilityRole:accessibilityOverrides.accessibilityRole,accessibilityState:accessibilityOverrides.accessibilityState,children:renderItem==null?void 0:renderItem(item,index)},index);})});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_PaginationItem","_jsxRuntime","_this","_jsxFileName","Basic","exports","props","activeDotStyle","dotStyle","progress","_props$horizontal","horizontal","data","size","containerStyle","renderItem","onPress","carouselName","width","height","Error","jsx","View","style","justifyContent","alignSelf","flexDirection","children","map","item","index","PaginationItem","count","length","animValue","accessibilityLabel"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Basic/index.tsx"],"mappings":"iKAAA,IAAAA,YAAA,CAAAC,OAAA,iBAGA,IAAAC,MAAA,CAAAC,sBAAA,CAAAF,OAAA,WAEA,IAAAG,eAAA,CAAAH,OAAA,qBAAkD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,iIAe3C,GAAM,CAAAC,KAAK,CAAAC,OAAA,CAAAD,KAAA,CAAG,QAAR,CAAAA,KAAKA,CAAkBE,KAAoB,CAAK,CAC3D,GACE,CAAAC,cAAc,CAUZD,KAAK,CAVPC,cAAc,CACdC,QAAQ,CASNF,KAAK,CATPE,QAAQ,CACRC,QAAQ,CAQNH,KAAK,CARPG,QAAQ,CAAAC,iBAAA,CAQ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AChCK,kBAAkB,CAAE,SAASL,KAAK,CAAG,CAAC,OAAOlB,IAAI,CAACqB,MAAM,MAAMhB,YAAY,EAAG,CAAAU,QAAA,CAE5EZ,UAAU,cAAVA,UAAU,CAAGc,IAAI,CAAEC,KAAK,CAAC,EAXrBA,KAYS,CAAC,CAErB,CAAC,CAAC,CACE,CAAC,CAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_PaginationItem","_jsxRuntime","_this","_jsxFileName","Basic","exports","props","activeDotStyle","dotStyle","progress","_props$horizontal","horizontal","data","size","containerStyle","renderItem","onPress","carouselName","paginationItemAccessibility","width","height","Error","jsx","View","style","justifyContent","alignSelf","flexDirection","children","map","item","index","_paginationItemAccess","_accessibilityOverrid","defaultAccessibilityLabel","length","accessibilityOverrides","PaginationItem","count","animValue","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Basic/index.tsx"],"mappings":"iKAAA,IAAAA,YAAA,CAAAC,OAAA,iBAGA,IAAAC,MAAA,CAAAC,sBAAA,CAAAF,OAAA,WAEA,IAAAG,eAAA,CAAAH,OAAA,qBAAkD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,iIAuB3C,GAAM,CAAAC,KAAK,CAAAC,OAAA,CAAAD,KAAA,CAAG,QAAR,CAAAA,KAAKA,CAAkBE,KAAoB,CAAK,CAC3D,GACE,CAAAC,cAAc,CAWZD,KAAK,CAXPC,cAAc,CACdC,QAAQ,CAUNF,KAAK,CAVPE,QAAQ,CACRC,QAAQ,CASNH,KAAK,CATPG,QAAQ,CAAAC,iBAAA,CASNJ,KAAK,CARPK,UAAU,CAAVA,UAAU,CAAAD,iBAAA,UAAG,IAAI,CAAAA,iBAAA,CACjBE,IAAI,CAOFN,KAAK,CAPPM,IAAI,CACJC,IAAI,CAMFP,KAAK,CANPO,IAAI,CACJC,cAAc,CAKZR,KAAK,CALPQ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uB,MAAO,CACnB3B,QAAQ,CAAEA,QAAS,CACnB+B,SAAS,CAAE9B,QAAS,CACpBE,UAAU,CAAE,CAACA,UAAW,CACxBJ,cAAc,CAAEA,cAAe,CAC/BS,OAAO,CAAE,QAAT,CAAAA,OAAOA,CAAA,QAAQ,CAAAA,QAAO,cAAPA,QAAO,CAAGe,KAAK,CAAC,EAAC,CAChCS,kBAAkB,EAAAP,qBAAA,CAChBG,sBAAsB,CAACI,kBAAkB,QAAAP,qBAAA,CAAIC,yBAC9C,CACDO,iBAAiB,CAAEL,sBAAsB,CAACK,iBAAkB,CAC5DC,iBAAiB,CAAEN,sBAAsB,CAACM,iBAAkB,CAC5DC,kBAAkB,CAAEP,sBAAsB,CAACO,kBAAmB,CAAAf,QAAA,CAE7Db,UAAU,cAAVA,UAAU,CAAGe,IAAI,CAAEC,KAAK,CAAC,EAhBrBA,KAiBS,CAAC,CAErB,CAAC,CAAC,CACE,CAAC,CAEX,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["width","height","borderRadius","backgroundColor"],_excluded2=["width","height","borderRadius","backgroundColor"];var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_15771819902534_init_data={code:"function PaginationItemTsx1(){const{scheduleOnRN,handleCustomAnimation,animValue}=this.__closure;var _animValue;scheduleOnRN(handleCustomAnimation,(_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx1\",\"scheduleOnRN\",\"handleCustomAnimation\",\"animValue\",\"__closure\",\"_animValue\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAgEkB,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,qBAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,UAAA,CACpBJ,YAAY,CAACC,qBAAqB,EAAAG,UAAA,CAAEF,SAAS,UAAAE,UAAA,iBAATA,UAAA,CAAWC,KAAK,CAAC,CACvD\",\"ignoreList\":[]}"};var _worklet_1491418758174_init_data={code:"function PaginationItemTsx2(){const{animValue}=this.__closure;return animValue.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx2\",\"animValue\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAqEI,SAAAA,mBAAA,QAAAC,SAAA,OAAAC,SAAA,OAAM,CAAAD,SAAU,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_8491159381056_init_data={code:"function PaginationItemTsx3(value){const{scheduleOnRN,setIsSelected,index}=this.__closure;scheduleOnRN(setIsSelected,value===index);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx3\",\"value\",\"scheduleOnRN\",\"setIsSelected\",\"index\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAsEK,SAAAA,kBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,aAAA,CAAAC,KAAA,OAAAC,SAAA,CACTH,YAAY,CAACC,aAAa,CAAEF,KAAK,GAAKG,KAAK,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_1894073649076_init_data={code:"function PaginationItemTsx4(){const{size,defaultDotSize,dotStyle,activeDotStyle,animValue,index,count,interpolate,Extrapolation,interpolateColor,customReanimatedStyleRef}=this.__closure;var _dotStyle,_activeDotStyle,_animValue,_animValue2,_animValue3,_ref,_ref2,_customReanimatedStyl,_restStyle$transform,_customReanimatedStyl2,_customReanimatedStyl3;const{width=size||defaultDotSize,height=size||defaultDotSize,borderRadius:borderRadius,backgroundColor=\"#FFF\",...restDotStyle}=(_dotStyle=dotStyle)!==null&&_dotStyle!==void 0?_dotStyle:{};const{width:activeWidth=width,height:activeHeight=height,borderRadius:activeBorderRadius,backgroundColor:activeBackgroundColor=\"#000\",...restActiveDotStyle}=(_activeDotStyle=activeDotStyle)!==null&&_activeDotStyle!==void 0?_activeDotStyle:{};let val=Math.abs(((_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value)-index);if(index===0&&((_animValue2=animValue)===null||_animValue2===void 0?void 0:_animValue2.value)>count-1)val=Math.abs(((_animValue3=animValue)===null||_animValue3===void 0?void 0:_animValue3.value)-count);const inputRange=[0,1,2];const restStyle=(_ref=val===0?restActiveDotStyle:restDotStyle)!==null&&_ref!==void 0?_ref:{};return{width:interpolate(val,inputRange,[activeWidth,width,width],Extrapolation.CLAMP),height:interpolate(val,inputRange,[activeHeight,height,height],Extrapolation.CLAMP),borderRadius:interpolate(val,inputRange,[(_ref2=activeBorderRadius!==null&&activeBorderRadius!==void 0?activeBorderRadius:borderRadius)!==null&&_ref2!==void 0?_ref2:0,borderRadius!==null&&borderRadius!==void 0?borderRadius:0,borderRadius!==null&&borderRadius!==void 0?borderRadius:0],Extrapolation.CLAMP),backgroundColor:interpolateColor(val,inputRange,[activeBackgroundColor,backgroundColor,backgroundColor]),...restStyle,...((_customReanimatedStyl=customReanimatedStyleRef.value)!==null&&_customReanimatedStyl!==void 0?_customReanimatedStyl:{}),transform:[...((_restStyle$transform=restStyle===null||restStyle===void 0?void 0:restStyle.transform)!==null&&_restStyle$transform!==void 0?_restStyle$transform:[]),...((_customReanimatedStyl2=(_customReanimatedStyl3=customReanimatedStyleRef.value)===null||_customReanimatedStyl3===void 0?void 0:_customReanimatedStyl3.transform)!==null&&_customReanimatedStyl2!==void 0?_customReanimatedStyl2:[])]};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx4\",\"size\",\"defaultDotSize\",\"dotStyle\",\"activeDotStyle\",\"animValue\",\"index\",\"count\",\"interpolate\",\"Extrapolation\",\"interpolateColor\",\"customReanimatedStyleRef\",\"__closure\",\"_dotStyle\",\"_activeDotStyle\",\"_animValue\",\"_animValue2\",\"_animValue3\",\"_ref\",\"_ref2\",\"_customReanimatedStyl\",\"_restStyle$transform\",\"_customReanimatedStyl2\",\"_customReanimatedStyl3\",\"width\",\"height\",\"borderRadius\",\"backgroundColor\",\"restDotStyle\",\"activeWidth\",\"activeHeight\",\"activeBorderRadius\",\"activeBackgroundColor\",\"restActiveDotStyle\",\"val\",\"Math\",\"abs\",\"value\",\"inputRange\",\"restStyle\",\"CLAMP\",\"transform\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AA4EqC,SAAAA,kBAA4BA,CAAA,QAAAC,IAAA,CAAAC,cAAA,CAAAC,QAAA,CAAAC,cAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,aAAA,CAAAC,gBAAA,CAAAC,wBAAA,OAAAC,SAAA,KAAAC,SAAA,CAAAC,eAAA,CAAAC,UAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,qBAAA,CAAAC,oBAAA,CAAAC,sBAAA,CAAAC,sBAAA,CAC7D,KAAM,CACJC,KAAK,CAAGvB,IAAI,EAAIC,cAAc,CAC9BuB,MAAM,CAAGxB,IAAI,EAAIC,cAAc,CAC/BwB,YAAY,CAAZA,YAAY,CACZC,eAAe,CAAG,MAAM,CACxB,GAAGC,YACL,CAAC,EAAAf,SAAA,CAAGV,QAAQ,UAAAU,SAAA,UAAAA,SAAA,CAAI,CAAC,CAAC,CAClB,KAAM,CACJW,KAAK,CAAEK,WAAW,CAAGL,KAAK,CAC1BC,MAAM,CAAEK,YAAY,CAAGL,MAAM,CAC7BC,YAAY,CAAEK,kBAAkB,CAChCJ,eAAe,CAAEK,qBAAqB,CAAG,MAAM,CAC/C,GAAGC,kBACL,CAAC,EAAAnB,eAAA,CAAGV,cAAc,UAAAU,eAAA,UAAAA,eAAA,CAAI,CAAC,CAAC,CACxB,GAAI,CAAAoB,GAAG,CAAGC,IAAI,CAACC,GAAG,CAAC,EAAArB,UAAA,CAAAV,SAAS,UAAAU,UAAA,iBAATA,UAAA,CAAWsB,KAAK,EAAG/B,KAAK,CAAC,CAC5C,GAAIA,KA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AAIT,wBAAwB,CAAC0B,KAAK,UAAAjB,qBAAA,UAAAA,qBAAA,CAAI,CAAC,CAAC,CAAC,CACzCqB,SAAS,CAAE,CACT,KAAApB,oBAAA,CAAIkB,SAAS,SAATA,SAAS,iBAATA,SAAS,CAAEE,SAAS,UAAApB,oBAAA,UAAAA,oBAAA,CAAI,EAAE,CAAC,CAC/B,KAAAC,sBAAA,EAAAC,sBAAA,CAAIZ,wBAAwB,CAAC0B,KAAK,UAAAd,sBAAA,iBAA9BA,sBAAA,CAAgCkB,SAAS,UAAAnB,sBAAA,UAAAA,sBAAA,CAAI,EAAE,CAAC,CAExD,CAAC,CACH\",\"ignoreList\":[]}"};var PaginationItem=exports.PaginationItem=function PaginationItem(props){var defaultDotSize=10;var animValue=props.animValue,dotStyle=props.dotStyle,activeDotStyle=props.activeDotStyle,index=props.index,count=props.count,size=props.size,horizontal=props.horizontal,children=props.children,customReanimatedStyle=props.customReanimatedStyle,onPress=props.onPress,accessibilityLabel=props.accessibilityLabel;var customReanimatedStyleRef=(0,_reactNativeReanimated.useSharedValue)({});var handleCustomAnimation=function handleCustomAnimation(progress){var _customReanimatedStyl;customReanimatedStyleRef.value=(_customReanimatedStyl=customReanimatedStyle==null?void 0:customReanimatedStyle(progress,index,count))!=null?_customReanimatedStyl:{};};var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isSelected=_useState2[0],setIsSelected=_useState2[1];(0,_reactNativeReanimated.useDerivedValue)(function PaginationItemTsx1Factory(_ref){var _worklet_15771819902534_init_data=_ref._worklet_15771819902534_init_data,scheduleOnRN=_ref.scheduleOnRN,handleCustomAnimation=_ref.handleCustomAnimation,animValue=_ref.animValue;var _e=[new global.Error(),-4,-27];var PaginationItemTsx1=function PaginationItemTsx1(){scheduleOnRN(handleCustomAnimation,animValue==null?void 0:animValue.value);};PaginationItemTsx1.__closure={scheduleOnRN:scheduleOnRN,handleCustomAnimation:handleCustomAnimation,animValue:animValue};PaginationItemTsx1.__workletHash=15771819902534;PaginationItemTsx1.__pluginVersion="0.5.2";PaginationItemTsx1.__initData=_worklet_15771819902534_init_data;PaginationItemTsx1.__stackDetails=_e;return PaginationItemTsx1;}({_worklet_15771819902534_init_data:_worklet_15771819902534_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,handleCustomAnimation:handleCustomAnimation,animValue:animValue}));(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx2Factory(_ref2){var _worklet_1491418758174_init_data=_ref2._worklet_1491418758174_init_data,animValue=_ref2.animValue;var _e=[new global.Error(),-2,-27];var PaginationItemTsx2=function PaginationItemTsx2(){return animValue.value;};PaginationItemTsx2.__closure={animValue:animValue};PaginationItemTsx2.__workletHash=1491418758174;PaginationItemTsx2.__pluginVersion="0.5.2";PaginationItemTsx2.__initData=_worklet_1491418758174_init_data;PaginationItemTsx2.__stackDetails=_e;return PaginationItemTsx2;}({_worklet_1491418758174_init_data:_worklet_1491418758174_init_data,animValue:animValue}),function PaginationItemTsx3Factory(_ref3){var _worklet_8491159381056_init_data=_ref3._worklet_8491159381056_init_data,scheduleOnRN=_ref3.scheduleOnRN,setIsSelected=_ref3.setIsSelected,index=_ref3.index;var _e=[new global.Error(),-4,-27];var PaginationItemTsx3=function PaginationItemTsx3(value){scheduleOnRN(setIsSelected,value===index);};PaginationItemTsx3.__closure={scheduleOnRN:scheduleOnRN,setIsSelected:setIsSelected,index:index};PaginationItemTsx3.__workletHash=8491159381056;PaginationItemTsx3.__pluginVersion="0.5.2";PaginationItemTsx3.__initData=_worklet_8491159381056_init_data;PaginationItemTsx3.__stackDetails=_e;return PaginationItemTsx3;}({_worklet_8491159381056_init_data:_worklet_8491159381056_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setIsSelected:setIsSelected,index:index}),[animValue,index]);var animStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx4Factory(_ref4){var _worklet_1894073649076_init_data=_ref4._worklet_1894073649076_init_data,size=_ref4.size,defaultDotSize=_ref4.defaultDotSize,dotStyle=_ref4.dotStyle,activeDotStyle=_ref4.activeDotStyle,animValue=_ref4.animValue,index=_ref4.index,count=_ref4.count,interpolate=_ref4.interpolate,Extrapolation=_ref4.Extrapolation,interpolateColor=_ref4.interpolateColor,customReanimatedStyleRef=_ref4.customReanimatedStyleRef;var _e=[new global.Error(),-12,-27];var PaginationItemTsx4=function PaginationItemTsx4(){var _ref7,_ref8,_customReanimatedStyl2,_restStyle$transform,_customReanimatedStyl3,_customReanimatedStyl4;var _ref5=dotStyle!=null?dotStyle:{},_ref5$width=_ref5.width,width=_ref5$width===void 0?size||defaultDotSize:_ref5$width,_ref5$height=_ref5.height,height=_ref5$height===void 0?size||defaultDotSize:_ref5$height,borderRadius=_ref5.borderRadius,_ref5$backgroundColor=_ref5.backgroundColor,backgroundColor=_ref5$backgroundColor===void 0?"#FFF":_ref5$backgroundColor,restDotStyle=(0,_objectWithoutProperties2.default)(_ref5,_excluded);var _ref6=activeDotStyle!=null?activeDotStyle:{},_ref6$width=_ref6.width,activeWidth=_ref6$width===void 0?width:_ref6$width,_ref6$height=_ref6.height,activeHeight=_ref6$height===void 0?height:_ref6$height,activeBorderRadius=_ref6.borderRadius,_ref6$backgroundColor=_ref6.backgroundColor,activeBackgroundColor=_ref6$backgroundColor===void 0?"#000":_ref6$backgroundColor,restActiveDotStyle=(0,_objectWithoutProperties2.default)(_ref6,_excluded2);var val=Math.abs((animValue==null?void 0:animValue.value)-index);if(index===0&&(animValue==null?void 0:animValue.value)>count-1)val=Math.abs((animValue==null?void 0:animValue.value)-count);var inputRange=[0,1,2];var restStyle=(_ref7=val===0?restActiveDotStyle:restDotStyle)!=null?_ref7:{};return Object.assign({width:interpolate(val,inputRange,[activeWidth,width,width],Extrapolation.CLAMP),height:interpolate(val,inputRange,[activeHeight,height,height],Extrapolation.CLAMP),borderRadius:interpolate(val,inputRange,[(_ref8=activeBorderRadius!=null?activeBorderRadius:borderRadius)!=null?_ref8:0,borderRadius!=null?borderRadius:0,borderRadius!=null?borderRadius:0],Extrapolation.CLAMP),backgroundColor:interpolateColor(val,inputRange,[activeBackgroundColor,backgroundColor,backgroundColor])},restStyle,(_customReanimatedStyl2=customReanimatedStyleRef.value)!=null?_customReanimatedStyl2:{},{transform:[].concat((0,_toConsumableArray2.default)((_restStyle$transform=restStyle==null?void 0:restStyle.transform)!=null?_restStyle$transform:[]),(0,_toConsumableArray2.default)((_customReanimatedStyl3=(_customReanimatedStyl4=customReanimatedStyleRef.value)==null?void 0:_customReanimatedStyl4.transform)!=null?_customReanimatedStyl3:[]))});};PaginationItemTsx4.__closure={size:size,defaultDotSize:defaultDotSize,dotStyle:dotStyle,activeDotStyle:activeDotStyle,animValue:animValue,index:index,count:count,interpolate:interpolate,Extrapolation:Extrapolation,interpolateColor:interpolateColor,customReanimatedStyleRef:customReanimatedStyleRef};PaginationItemTsx4.__workletHash=1894073649076;PaginationItemTsx4.__pluginVersion="0.5.2";PaginationItemTsx4.__initData=_worklet_1894073649076_init_data;PaginationItemTsx4.__stackDetails=_e;return PaginationItemTsx4;}({_worklet_1894073649076_init_data:_worklet_1894073649076_init_data,size:size,defaultDotSize:defaultDotSize,dotStyle:dotStyle,activeDotStyle:activeDotStyle,animValue:animValue,index:index,count:count,interpolate:_reactNativeReanimated.interpolate,Extrapolation:_reactNativeReanimated.Extrapolation,interpolateColor:_reactNativeReanimated.interpolateColor,customReanimatedStyleRef:customReanimatedStyleRef}),[animValue,index,count,horizontal,dotStyle,activeDotStyle,customReanimatedStyle]);return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{onPress:onPress,accessibilityLabel:accessibilityLabel,accessibilityRole:"button",accessibilityHint:isSelected?"":`Go to ${accessibilityLabel}`,accessibilityState:{selected:isSelected},children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{overflow:"hidden",transform:[{rotateZ:horizontal?"90deg":"0deg"}]},dotStyle,animStyle],children:children})});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaginationItem=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeReanimated=_interopRequireWildcard(require("react-native-reanimated"));var _reactNativeWorklets=require("react-native-worklets");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["width","height","borderRadius","backgroundColor"],_excluded2=["width","height","borderRadius","backgroundColor"];var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_15771819902534_init_data={code:"function PaginationItemTsx1(){const{scheduleOnRN,handleCustomAnimation,animValue}=this.__closure;var _animValue;scheduleOnRN(handleCustomAnimation,(_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx1\",\"scheduleOnRN\",\"handleCustomAnimation\",\"animValue\",\"__closure\",\"_animValue\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAmFkB,SAAAA,kBAAMA,CAAA,QAAAC,YAAA,CAAAC,qBAAA,CAAAC,SAAA,OAAAC,SAAA,KAAAC,UAAA,CACpBJ,YAAY,CAACC,qBAAqB,EAAAG,UAAA,CAAEF,SAAS,UAAAE,UAAA,iBAATA,UAAA,CAAWC,KAAK,CAAC,CACvD\",\"ignoreList\":[]}"};var _worklet_1491418758174_init_data={code:"function PaginationItemTsx2(){const{animValue}=this.__closure;return animValue.value;}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx2\",\"animValue\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAwFI,SAAAA,mBAAA,QAAAC,SAAA,OAAAC,SAAA,OAAM,CAAAD,SAAU,CAAAE,KAAA\",\"ignoreList\":[]}"};var _worklet_8491159381056_init_data={code:"function PaginationItemTsx3(value){const{scheduleOnRN,setIsSelected,index}=this.__closure;scheduleOnRN(setIsSelected,value===index);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx3\",\"value\",\"scheduleOnRN\",\"setIsSelected\",\"index\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AAyFK,SAAAA,kBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,aAAA,CAAAC,KAAA,OAAAC,SAAA,CACTH,YAAY,CAACC,aAAa,CAAEF,KAAK,GAAKG,KAAK,CAAC,CAC9C\",\"ignoreList\":[]}"};var _worklet_1894073649076_init_data={code:"function PaginationItemTsx4(){const{size,defaultDotSize,dotStyle,activeDotStyle,animValue,index,count,interpolate,Extrapolation,interpolateColor,customReanimatedStyleRef}=this.__closure;var _dotStyle,_activeDotStyle,_animValue,_animValue2,_animValue3,_ref,_ref2,_customReanimatedStyl,_restStyle$transform,_customReanimatedStyl2,_customReanimatedStyl3;const{width=size||defaultDotSize,height=size||defaultDotSize,borderRadius:borderRadius,backgroundColor=\"#FFF\",...restDotStyle}=(_dotStyle=dotStyle)!==null&&_dotStyle!==void 0?_dotStyle:{};const{width:activeWidth=width,height:activeHeight=height,borderRadius:activeBorderRadius,backgroundColor:activeBackgroundColor=\"#000\",...restActiveDotStyle}=(_activeDotStyle=activeDotStyle)!==null&&_activeDotStyle!==void 0?_activeDotStyle:{};let val=Math.abs(((_animValue=animValue)===null||_animValue===void 0?void 0:_animValue.value)-index);if(index===0&&((_animValue2=animValue)===null||_animValue2===void 0?void 0:_animValue2.value)>count-1)val=Math.abs(((_animValue3=animValue)===null||_animValue3===void 0?void 0:_animValue3.value)-count);const inputRange=[0,1,2];const restStyle=(_ref=val===0?restActiveDotStyle:restDotStyle)!==null&&_ref!==void 0?_ref:{};return{width:interpolate(val,inputRange,[activeWidth,width,width],Extrapolation.CLAMP),height:interpolate(val,inputRange,[activeHeight,height,height],Extrapolation.CLAMP),borderRadius:interpolate(val,inputRange,[(_ref2=activeBorderRadius!==null&&activeBorderRadius!==void 0?activeBorderRadius:borderRadius)!==null&&_ref2!==void 0?_ref2:0,borderRadius!==null&&borderRadius!==void 0?borderRadius:0,borderRadius!==null&&borderRadius!==void 0?borderRadius:0],Extrapolation.CLAMP),backgroundColor:interpolateColor(val,inputRange,[activeBackgroundColor,backgroundColor,backgroundColor]),...restStyle,...((_customReanimatedStyl=customReanimatedStyleRef.value)!==null&&_customReanimatedStyl!==void 0?_customReanimatedStyl:{}),transform:[...((_restStyle$transform=restStyle===null||restStyle===void 0?void 0:restStyle.transform)!==null&&_restStyle$transform!==void 0?_restStyle$transform:[]),...((_customReanimatedStyl2=(_customReanimatedStyl3=customReanimatedStyleRef.value)===null||_customReanimatedStyl3===void 0?void 0:_customReanimatedStyl3.transform)!==null&&_customReanimatedStyl2!==void 0?_customReanimatedStyl2:[])]};}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx",sourceMap:"{\"version\":3,\"names\":[\"PaginationItemTsx4\",\"size\",\"defaultDotSize\",\"dotStyle\",\"activeDotStyle\",\"animValue\",\"index\",\"count\",\"interpolate\",\"Extrapolation\",\"interpolateColor\",\"customReanimatedStyleRef\",\"__closure\",\"_dotStyle\",\"_activeDotStyle\",\"_animValue\",\"_animValue2\",\"_animValue3\",\"_ref\",\"_ref2\",\"_customReanimatedStyl\",\"_restStyle$transform\",\"_customReanimatedStyl2\",\"_customReanimatedStyl3\",\"width\",\"height\",\"borderRadius\",\"backgroundColor\",\"restDotStyle\",\"activeWidth\",\"activeHeight\",\"activeBorderRadius\",\"activeBackgroundColor\",\"restActiveDotStyle\",\"val\",\"Math\",\"abs\",\"value\",\"inputRange\",\"restStyle\",\"CLAMP\",\"transform\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/PaginationItem.tsx\"],\"mappings\":\"AA+FqC,SAAAA,kBAA4BA,CAAA,QAAAC,IAAA,CAAAC,cAAA,CAAAC,QAAA,CAAAC,cAAA,CAAAC,SAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,aAAA,CAAAC,gBAAA,CAAAC,wBAAA,OAAAC,SAAA,KAAAC,SAAA,CAAAC,eAAA,CAAAC,UAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,qBAAA,CAAAC,oBAAA,CAAAC,sBAAA,CAAAC,sBAAA,CAC7D,KAAM,CACJC,KAAK,CAAGvB,IAAI,EAAIC,cAAc,CAC9BuB,MAAM,CAAGxB,IAAI,EAAIC,cAAc,CA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CAAEI,UAAU,CAAE,CAACR,YAAY,CAAEL,MAAM,CAAEA,MAAM,CAAC,CAAEhB,aAAa,CAAC+B,KAAK,CAAC,CACzFd,YAAY,CAAElB,WAAW,CACvB0B,GAAG,CACHI,UAAU,CACV,EAAAnB,KAAA,CAACY,kBAAkB,SAAlBA,kBAAkB,UAAlBA,kBAAkB,CAAIL,YAAY,UAAAP,KAAA,UAAAA,KAAA,CAAI,CAAC,CAAEO,YAAY,SAAZA,YAAY,UAAZA,YAAY,CAAI,CAAC,CAAEA,YAAY,SAAZA,YAAY,UAAZA,YAAY,CAAI,CAAC,CAAC,CAC/EjB,aAAa,CAAC+B,KAChB,CAAC,CACDb,eAAe,CAAEjB,gBAAgB,CAACwB,GAAG,CAAEI,UAAU,CAAE,CACjDN,qBAAqB,CACrBL,eAAe,CACfA,eAAe,CAChB,CAAC,CACF,GAAGY,SAAS,CACZ,KAAAnB,qBAAA,CAAIT,wBAAwB,CAAC0B,KAAK,UAAAjB,qBAAA,UAAAA,qBAAA,CAAI,CAAC,CAAC,CAAC,CACzCqB,SAAS,CAAE,CACT,KAAApB,oBAAA,CAAIkB,SAAS,SAATA,SAAS,iBAATA,SAAS,CAAEE,SAAS,UAAApB,oBAAA,UAAAA,oBAAA,CAAI,EAAE,CAAC,CAC/B,KAAAC,sBAAA,EAAAC,sBAAA,CAAIZ,wBAAwB,CAAC0B,KAAK,UAAAd,sBAAA,iBAA9BA,sBAAA,CAAgCkB,SAAS,UAAAnB,sBAAA,UAAAA,sBAAA,CAAI,EAAE,CAAC,CAExD,CAAC,CACH\",\"ignoreList\":[]}"};var PaginationItem=exports.PaginationItem=function PaginationItem(props){var defaultDotSize=10;var animValue=props.animValue,dotStyle=props.dotStyle,activeDotStyle=props.activeDotStyle,index=props.index,count=props.count,size=props.size,horizontal=props.horizontal,children=props.children,customReanimatedStyle=props.customReanimatedStyle,onPress=props.onPress,accessibilityLabel=props.accessibilityLabel,accessibilityHint=props.accessibilityHint,accessibilityRole=props.accessibilityRole,accessibilityState=props.accessibilityState;var customReanimatedStyleRef=(0,_reactNativeReanimated.useSharedValue)({});var handleCustomAnimation=function handleCustomAnimation(progress){var _customReanimatedStyl;customReanimatedStyleRef.value=(_customReanimatedStyl=customReanimatedStyle==null?void 0:customReanimatedStyle(progress,index,count))!=null?_customReanimatedStyl:{};};var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isSelected=_useState2[0],setIsSelected=_useState2[1];var resolvedAccessibilityLabel=accessibilityLabel!=null?accessibilityLabel:`Slide ${index+1} of ${count}`;var resolvedAccessibilityHint=accessibilityHint!=null?accessibilityHint:isSelected?"":`Go to ${resolvedAccessibilityLabel}`;var resolvedAccessibilityRole=accessibilityRole!=null?accessibilityRole:"button";var resolvedAccessibilityState=accessibilityState!=null?accessibilityState:{selected:isSelected};(0,_reactNativeReanimated.useDerivedValue)(function PaginationItemTsx1Factory(_ref){var _worklet_15771819902534_init_data=_ref._worklet_15771819902534_init_data,scheduleOnRN=_ref.scheduleOnRN,handleCustomAnimation=_ref.handleCustomAnimation,animValue=_ref.animValue;var _e=[new global.Error(),-4,-27];var PaginationItemTsx1=function PaginationItemTsx1(){scheduleOnRN(handleCustomAnimation,animValue==null?void 0:animValue.value);};PaginationItemTsx1.__closure={scheduleOnRN:scheduleOnRN,handleCustomAnimation:handleCustomAnimation,animValue:animValue};PaginationItemTsx1.__workletHash=15771819902534;PaginationItemTsx1.__pluginVersion="0.5.2";PaginationItemTsx1.__initData=_worklet_15771819902534_init_data;PaginationItemTsx1.__stackDetails=_e;return PaginationItemTsx1;}({_worklet_15771819902534_init_data:_worklet_15771819902534_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,handleCustomAnimation:handleCustomAnimation,animValue:animValue}));(0,_reactNativeReanimated.useAnimatedReaction)(function PaginationItemTsx2Factory(_ref2){var _worklet_1491418758174_init_data=_ref2._worklet_1491418758174_init_data,animValue=_ref2.animValue;var _e=[new global.Error(),-2,-27];var PaginationItemTsx2=function PaginationItemTsx2(){return animValue.value;};PaginationItemTsx2.__closure={animValue:animValue};PaginationItemTsx2.__workletHash=1491418758174;PaginationItemTsx2.__pluginVersion="0.5.2";PaginationItemTsx2.__initData=_worklet_1491418758174_init_data;PaginationItemTsx2.__stackDetails=_e;return PaginationItemTsx2;}({_worklet_1491418758174_init_data:_worklet_1491418758174_init_data,animValue:animValue}),function PaginationItemTsx3Factory(_ref3){var _worklet_8491159381056_init_data=_ref3._worklet_8491159381056_init_data,scheduleOnRN=_ref3.scheduleOnRN,setIsSelected=_ref3.setIsSelected,index=_ref3.index;var _e=[new global.Error(),-4,-27];var PaginationItemTsx3=function PaginationItemTsx3(value){scheduleOnRN(setIsSelected,value===index);};PaginationItemTsx3.__closure={scheduleOnRN:scheduleOnRN,setIsSelected:setIsSelected,index:index};PaginationItemTsx3.__workletHash=8491159381056;PaginationItemTsx3.__pluginVersion="0.5.2";PaginationItemTsx3.__initData=_worklet_8491159381056_init_data;PaginationItemTsx3.__stackDetails=_e;return PaginationItemTsx3;}({_worklet_8491159381056_init_data:_worklet_8491159381056_init_data,scheduleOnRN:_reactNativeWorklets.scheduleOnRN,setIsSelected:setIsSelected,index:index}),[animValue,index]);var animStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function PaginationItemTsx4Factory(_ref4){var _worklet_1894073649076_init_data=_ref4._worklet_1894073649076_init_data,size=_ref4.size,defaultDotSize=_ref4.defaultDotSize,dotStyle=_ref4.dotStyle,activeDotStyle=_ref4.activeDotStyle,animValue=_ref4.animValue,index=_ref4.index,count=_ref4.count,interpolate=_ref4.interpolate,Extrapolation=_ref4.Extrapolation,interpolateColor=_ref4.interpolateColor,customReanimatedStyleRef=_ref4.customReanimatedStyleRef;var _e=[new global.Error(),-12,-27];var PaginationItemTsx4=function PaginationItemTsx4(){var _ref7,_ref8,_customReanimatedStyl2,_restStyle$transform,_customReanimatedStyl3,_customReanimatedStyl4;var _ref5=dotStyle!=null?dotStyle:{},_ref5$width=_ref5.width,width=_ref5$width===void 0?size||defaultDotSize:_ref5$width,_ref5$height=_ref5.height,height=_ref5$height===void 0?size||defaultDotSize:_ref5$height,borderRadius=_ref5.borderRadius,_ref5$backgroundColor=_ref5.backgroundColor,backgroundColor=_ref5$backgroundColor===void 0?"#FFF":_ref5$backgroundColor,restDotStyle=(0,_objectWithoutProperties2.default)(_ref5,_excluded);var _ref6=activeDotStyle!=null?activeDotStyle:{},_ref6$width=_ref6.width,activeWidth=_ref6$width===void 0?width:_ref6$width,_ref6$height=_ref6.height,activeHeight=_ref6$height===void 0?height:_ref6$height,activeBorderRadius=_ref6.borderRadius,_ref6$backgroundColor=_ref6.backgroundColor,activeBackgroundColor=_ref6$backgroundColor===void 0?"#000":_ref6$backgroundColor,restActiveDotStyle=(0,_objectWithoutProperties2.default)(_ref6,_excluded2);var val=Math.abs((animValue==null?void 0:animValue.value)-index);if(index===0&&(animValue==null?void 0:animValue.value)>count-1)val=Math.abs((animValue==null?void 0:animValue.value)-count);var inputRange=[0,1,2];var restStyle=(_ref7=val===0?restActiveDotStyle:restDotStyle)!=null?_ref7:{};return Object.assign({width:interpolate(val,inputRange,[activeWidth,width,width],Extrapolation.CLAMP),height:interpolate(val,inputRange,[activeHeight,height,height],Extrapolation.CLAMP),borderRadius:interpolate(val,inputRange,[(_ref8=activeBorderRadius!=null?activeBorderRadius:borderRadius)!=null?_ref8:0,borderRadius!=null?borderRadius:0,borderRadius!=null?borderRadius:0],Extrapolation.CLAMP),backgroundColor:interpolateColor(val,inputRange,[activeBackgroundColor,backgroundColor,backgroundColor])},restStyle,(_customReanimatedStyl2=customReanimatedStyleRef.value)!=null?_customReanimatedStyl2:{},{transform:[].concat((0,_toConsumableArray2.default)((_restStyle$transform=restStyle==null?void 0:restStyle.transform)!=null?_restStyle$transform:[]),(0,_toConsumableArray2.default)((_customReanimatedStyl3=(_customReanimatedStyl4=customReanimatedStyleRef.value)==null?void 0:_customReanimatedStyl4.transform)!=null?_customReanimatedStyl3:[]))});};PaginationItemTsx4.__closure={size:size,defaultDotSize:defaultDotSize,dotStyle:dotStyle,activeDotStyle:activeDotStyle,animValue:animValue,index:index,count:count,interpolate:interpolate,Extrapolation:Extrapolation,interpolateColor:interpolateColor,customReanimatedStyleRef:customReanimatedStyleRef};PaginationItemTsx4.__workletHash=1894073649076;PaginationItemTsx4.__pluginVersion="0.5.2";PaginationItemTsx4.__initData=_worklet_1894073649076_init_data;PaginationItemTsx4.__stackDetails=_e;return PaginationItemTsx4;}({_worklet_1894073649076_init_data:_worklet_1894073649076_init_data,size:size,defaultDotSize:defaultDotSize,dotStyle:dotStyle,activeDotStyle:activeDotStyle,animValue:animValue,index:index,count:count,interpolate:_reactNativeReanimated.interpolate,Extrapolation:_reactNativeReanimated.Extrapolation,interpolateColor:_reactNativeReanimated.interpolateColor,customReanimatedStyleRef:customReanimatedStyleRef}),[animValue,index,count,horizontal,dotStyle,activeDotStyle,customReanimatedStyle]);return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{onPress:onPress,accessibilityLabel:resolvedAccessibilityLabel,accessibilityRole:resolvedAccessibilityRole,accessibilityHint:resolvedAccessibilityHint,accessibilityState:resolvedAccessibilityState,children:(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[{overflow:"hidden",transform:[{rotateZ:horizontal?"90deg":"0deg"}]},dotStyle,animStyle],children:children})});};
2
2
  //# sourceMappingURL=PaginationItem.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeWorklets","_jsxRuntime","_excluded","_excluded2","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_15771819902534_init_data","code","location","sourceMap","_worklet_1491418758174_init_data","_worklet_8491159381056_init_data","_worklet_1894073649076_init_data","PaginationItem","exports","props","defaultDotSize","animValue","dotStyle","activeDotStyle","index","count","size","horizontal","children","customReanimatedStyle","onPress","accessibilityLabel","customReanimatedStyleRef","useSharedValue","handleCustomAnimation","progress","_customReanimatedStyl","value","_useState","useState","_useState2","_slicedToArray2","isSelected","setIsSelected","useDerivedValue","PaginationItemTsx1Factory","_ref","scheduleOnRN","_e","global","Error","PaginationItemTsx1","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","useAnimatedReaction","PaginationItemTsx2Factory","_ref2","PaginationItemTsx2","PaginationItemTsx3Factory","_ref3","PaginationItemTsx3","animStyle","useAnimatedStyle","PaginationItemTsx4Factory","_ref4","interpolate","Extrapolation","interpolateColor","PaginationItemTsx4","_ref7","_ref8","_customReanimatedStyl2","_restStyle$transform","_customReanimatedStyl3","_customReanimatedStyl4","_ref5","_ref5$width","width","_ref5$height","height","borderRadius","_ref5$backgroundColor","backgroundColor","restDotStyle","_objectWithoutProperties2","_ref6","_ref6$width","activeWidth","_ref6$height","activeHeight","activeBorderRadius","_ref6$backgroundColor","activeBackgroundColor","restActiveDotStyle","val","Math","abs","inputRange","restStyle","assign","CLAMP","transform","concat","_toConsumableArray2","jsx","Pressable","accessibilityRole","accessibilityHint","accessibilityState","selected","View","style","overflow","rotateZ"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Custom/PaginationItem.tsx"],"mappings":"0dACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAGA,IAAAE,sBAAA,CAAAH,uBAAA,CAAAC,OAAA,6BASA,IAAAG,oBAAA,CAAAH,OAAA,0BAAqD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,SAAA,qDAAAC,UAAA,yDAAAC,KAAA,MAAAC,YAAA,oJAAAT,wBAAAU,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAZ,uBAAA,UAAAA,wBAAAU,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CA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AAiB,CAAEpE,UAAU,CAAG,EAAE,CAAG,SAASX,kBAAkB,EAAG,CACnEgF,kBAAkB,CAAE,CAAEC,QAAQ,CAAEtE,UAAW,CAAE,CAAAd,QAAA,CAE7C,GAAA3C,WAAA,CAAA0H,GAAA,EAAC5H,sBAAA,CAAAiB,OAAQ,CAACiH,IAAI,EACZC,KAAK,CAAE,CACL,CACEC,QAAQ,CAAE,QAAQ,CAClBX,SAAS,CAAE,CACT,CACEY,OAAO,CAAEzF,UAAU,CAAG,OAAO,CAAG,MAClC,CAAC,CAEL,CAAC,CACDL,QAAQ,CACR0C,SAAS,CACT,CAAApC,QAAA,CAEDA,QAAQ,CACI,CAAC,CACP,CAAC,CAEhB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeWorklets","_jsxRuntime","_excluded","_excluded2","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_worklet_15771819902534_init_data","code","location","sourceMap","_worklet_1491418758174_init_data","_worklet_8491159381056_init_data","_worklet_1894073649076_init_data","PaginationItem","exports","props","defaultDotSize","animValue","dotStyle","activeDotStyle","index","count","size","horizontal","children","customReanimatedStyle","onPress","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState","customReanimatedStyleRef","useSharedValue","handleCustomAnimation","progress","_customReanimatedStyl","value","_useState","useState","_useState2","_slicedToArray2","isSelected","setIsSelected","resolvedAccessibilityLabel","resolvedAccessibilityHint","resolvedAccessibilityRole","resolvedAccessibilityState","selected","useDerivedValue","PaginationItemTsx1Factory","_ref","scheduleOnRN","_e","global","Error","PaginationItemTsx1","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","useAnimatedReaction","PaginationItemTsx2Factory","_ref2","PaginationItemTsx2","PaginationItemTsx3Factory","_ref3","PaginationItemTsx3","animStyle","useAnimatedStyle","PaginationItemTsx4Factory","_ref4","interpolate","Extrapolation","interpolateColor","PaginationItemTsx4","_ref7","_ref8","_customReanimatedStyl2","_restStyle$transform","_customReanimatedStyl3","_customReanimatedStyl4","_ref5","_ref5$width","width","_ref5$height","height","borderRadius","_ref5$backgroundColor","backgroundColor","restDotStyle","_objectWithoutProperties2","_ref6","_ref6$width","activeWidth","_ref6$height","activeHeight","activeBorderRadius","_ref6$backgroundColor","activeBackgroundColor","restActiveDotStyle","val","Math","abs","inputRange","restStyle","assign","CLAMP","transform","concat","_toConsumableArray2","jsx","Pressable","View","style","overflow","rotateZ"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Custom/PaginationItem.tsx"],"mappings":"0dACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBAGA,IAAAE,sBAAA,CAAAH,uBAAA,CAAAC,OAAA,6BASA,IAAAG,oBAAA,CAAAH,OAAA,0BAAqD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,SAAA,qDAAAC,UAAA,yDAAAC,KAAA,MAAAC,YAAA,oJAAAT,wBAAAU,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAZ,uBAAA,UAAAA,wBAAAU,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,I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,CAAC,CAAC,CAE1F,MACE,GAAA5C,WAAA,CAAAkI,GAAA,EAACrI,YAAA,CAAAsI,SAAS,EACRtF,OAAO,CAAEA,OAAQ,CACjBC,kBAAkB,CAAEgB,0BAA2B,CAC/Cd,iBAAiB,CAAEgB,yBAA0B,CAC7CjB,iBAAiB,CAAEgB,yBAA0B,CAC7Cd,kBAAkB,CAAEgB,0BAA2B,CAAAtB,QAAA,CAE/C,GAAA3C,WAAA,CAAAkI,GAAA,EAACpI,sBAAA,CAAAiB,OAAQ,CAACqH,IAAI,EACZC,KAAK,CAAE,CACL,CACEC,QAAQ,CAAE,QAAQ,CAClBP,SAAS,CAAE,CACT,CACEQ,OAAO,CAAE7F,UAAU,CAAG,OAAO,CAAG,MAClC,CAAC,CAEL,CAAC,CACDL,QAAQ,CACRkD,SAAS,CACT,CAAA5C,QAAA,CAEDA,QAAQ,CACI,CAAC,CACP,CAAC,CAEhB,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Custom=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _PaginationItem=require("./PaginationItem");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/index.tsx";var Custom=exports.Custom=function Custom(props){var _dotStyle$width,_activeDotStyle$width,_dotStyle$height,_activeDotStyle$heigh;var activeDotStyle=props.activeDotStyle,dotStyle=props.dotStyle,progress=props.progress,_props$horizontal=props.horizontal,horizontal=_props$horizontal===void 0?true:_props$horizontal,data=props.data,size=props.size,containerStyle=props.containerStyle,renderItem=props.renderItem,_onPress=props.onPress,customReanimatedStyle=props.customReanimatedStyle,carouselName=props.carouselName;if(typeof size==="string"||typeof(dotStyle==null?void 0:dotStyle.width)==="string"||typeof(dotStyle==null?void 0:dotStyle.height)==="string"||typeof(activeDotStyle==null?void 0:activeDotStyle.width)==="string"||typeof(activeDotStyle==null?void 0:activeDotStyle.height)==="string")throw new Error("size/width/height must be a number");var maxItemWidth=Math.max(size!=null?size:0,(_dotStyle$width=dotStyle==null?void 0:dotStyle.width)!=null?_dotStyle$width:0,(_activeDotStyle$width=activeDotStyle==null?void 0:activeDotStyle.width)!=null?_activeDotStyle$width:0);var maxItemHeight=Math.max(size!=null?size:0,(_dotStyle$height=dotStyle==null?void 0:dotStyle.height)!=null?_dotStyle$height:0,(_activeDotStyle$heigh=activeDotStyle==null?void 0:activeDotStyle.height)!=null?_activeDotStyle$heigh:0);return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{justifyContent:"space-between",alignSelf:"center",minWidth:maxItemWidth,minHeight:maxItemHeight},horizontal?{flexDirection:"row"}:{flexDirection:"column"},containerStyle],children:data.map(function(item,index){return(0,_jsxRuntime.jsx)(_PaginationItem.PaginationItem,{index:index,size:size,count:data.length,dotStyle:dotStyle,animValue:progress,horizontal:!horizontal,activeDotStyle:activeDotStyle,customReanimatedStyle:customReanimatedStyle,onPress:function onPress(){return _onPress==null?void 0:_onPress(index);},accessibilityLabel:`Slide ${index+1} of ${data.length} - ${carouselName}`,children:renderItem==null?void 0:renderItem(item,index)},index);})});};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Custom=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _PaginationItem=require("./PaginationItem");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/components/Pagination/Custom/index.tsx";var Custom=exports.Custom=function Custom(props){var _dotStyle$width,_activeDotStyle$width,_dotStyle$height,_activeDotStyle$heigh;var activeDotStyle=props.activeDotStyle,dotStyle=props.dotStyle,progress=props.progress,_props$horizontal=props.horizontal,horizontal=_props$horizontal===void 0?true:_props$horizontal,data=props.data,size=props.size,containerStyle=props.containerStyle,renderItem=props.renderItem,_onPress=props.onPress,customReanimatedStyle=props.customReanimatedStyle,carouselName=props.carouselName,paginationItemAccessibility=props.paginationItemAccessibility;if(typeof size==="string"||typeof(dotStyle==null?void 0:dotStyle.width)==="string"||typeof(dotStyle==null?void 0:dotStyle.height)==="string"||typeof(activeDotStyle==null?void 0:activeDotStyle.width)==="string"||typeof(activeDotStyle==null?void 0:activeDotStyle.height)==="string")throw new Error("size/width/height must be a number");var maxItemWidth=Math.max(size!=null?size:0,(_dotStyle$width=dotStyle==null?void 0:dotStyle.width)!=null?_dotStyle$width:0,(_activeDotStyle$width=activeDotStyle==null?void 0:activeDotStyle.width)!=null?_activeDotStyle$width:0);var maxItemHeight=Math.max(size!=null?size:0,(_dotStyle$height=dotStyle==null?void 0:dotStyle.height)!=null?_dotStyle$height:0,(_activeDotStyle$heigh=activeDotStyle==null?void 0:activeDotStyle.height)!=null?_activeDotStyle$heigh:0);return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[{justifyContent:"space-between",alignSelf:"center",minWidth:maxItemWidth,minHeight:maxItemHeight},horizontal?{flexDirection:"row"}:{flexDirection:"column"},containerStyle],children:data.map(function(item,index){var _paginationItemAccess,_accessibilityOverrid;var defaultAccessibilityLabel=carouselName?`Slide ${index+1} of ${data.length} - ${carouselName}`:`Slide ${index+1} of ${data.length}`;var accessibilityOverrides=(_paginationItemAccess=paginationItemAccessibility==null?void 0:paginationItemAccessibility(index,data.length))!=null?_paginationItemAccess:{};return(0,_jsxRuntime.jsx)(_PaginationItem.PaginationItem,{index:index,size:size,count:data.length,dotStyle:dotStyle,animValue:progress,horizontal:!horizontal,activeDotStyle:activeDotStyle,customReanimatedStyle:customReanimatedStyle,onPress:function onPress(){return _onPress==null?void 0:_onPress(index);},accessibilityLabel:(_accessibilityOverrid=accessibilityOverrides.accessibilityLabel)!=null?_accessibilityOverrid:defaultAccessibilityLabel,accessibilityHint:accessibilityOverrides.accessibilityHint,accessibilityRole:accessibilityOverrides.accessibilityRole,accessibilityState:accessibilityOverrides.accessibilityState,children:renderItem==null?void 0:renderItem(item,index)},index);})});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginationItem","_jsxRuntime","_this","_jsxFileName","Custom","exports","props","_dotStyle$width","_activeDotStyle$width","_dotStyle$height","_activeDotStyle$heigh","activeDotStyle","dotStyle","progress","_props$horizontal","horizontal","data","size","containerStyle","renderItem","onPress","customReanimatedStyle","carouselName","width","height","Error","maxItemWidth","Math","max","maxItemHeight","jsx","View","style","justifyContent","alignSelf","minWidth","minHeight","flexDirection","children","map","item","index","PaginationItem","count","length","animValue","accessibilityLabel"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Custom/index.tsx"],"mappings":"kKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,iBAIA,IAAAE,eAAA,CAAAF,OAAA,qBAAkD,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,KAAA,MAAAC,YAAA,kIAkB3C,GAAM,CAAAC,MAAM,CAAAC,OAAA,CAAAD,MAAA,CAAG,QAAT,CAAAA,MAAMA,CAAkBE,KAAoB,CAAK,KAAAC,eAAA,CAAAC,qBAAA,CAAAC,gBAAA,CAAAC,qBAAA,CAC5D,GACE,CAAAC,cAAc,CAWZL,KAAK,CAXPK,cAAc,CACdC,QAAQ,CAUNN,KAAK,CAVPM,QAAQ,CACRC,QAAQ,CASNP,KAAK,CATPO,QAAQ,CAAAC,iBAAA,CASNR,KAAK,CARPS,UAAU,CAAVA,UAAU,CAAAD,iBAAA,UAAG,IAAI,CAAAA,iBAAA,CACjBE,IAAI,CAOFV,KAAK,CAPPU,IAAI,CACJC,IAAI,CAMFX,KAAK,CANPW,IAAI,CACJC,cAAc,CAKZZ,KAAK,CALPY,cAAc,CACdC,UAAU,CAIRb,KAAK,CAJPa,UAAU,CACVC,QAAO,CAGLd,K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AAC,CACLnB,cAAc,CACd,CAAAoB,QAAA,CAEDtB,IAAI,CAACuB,GAAG,CAAC,SAACC,IAAI,CAAEC,KAAK,CAAK,CACzB,MACE,GAAAxC,WAAA,CAAA6B,GAAA,EAAC9B,eAAA,CAAA0C,cAAc,EAEbD,KAAK,CAAEA,KAAM,CACbxB,IAAI,CAAEA,IAAK,CACX0B,KAAK,CAAE3B,IAAI,CAAC4B,MAAO,CACnBhC,QAAQ,CAAEA,QAAS,CACnBiC,SAAS,CAAEhC,QAAS,CACpBE,UAAU,CAAE,CAACA,UAAW,CACxBJ,cAAc,CAAEA,cAAe,CAC/BU,qBAAqB,CAAEA,qBAAsB,CAC7CD,OAAO,CAAE,QAAT,CAAAA,OAAOA,CAAA,QAAQ,CAAAA,QAAO,cAAPA,QAAO,CAAGqB,KAAK,CAAC,EAAC,CAChCK,kBAAkB,CAAE,SAASL,KAAK,CAAG,CAAC,OAAOzB,IAAI,CAAC4B,MAAM,MAAMtB,YAAY,EAAG,CAAAgB,QAAA,CAE5EnB,UAAU,cAAVA,UAAU,CAAGqB,IAAI,CAAEC,KAAK,CAAC,EAZrBA,KAaS,CAAC,CAErB,CAAC,CAAC,CACE,CAAC,CAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginationItem","_jsxRuntime","_this","_jsxFileName","Custom","exports","props","_dotStyle$width","_activeDotStyle$width","_dotStyle$height","_activeDotStyle$heigh","activeDotStyle","dotStyle","progress","_props$horizontal","horizontal","data","size","containerStyle","renderItem","onPress","customReanimatedStyle","carouselName","paginationItemAccessibility","width","height","Error","maxItemWidth","Math","max","maxItemHeight","jsx","View","style","justifyContent","alignSelf","minWidth","minHeight","flexDirection","children","map","item","index","_paginationItemAccess","_accessibilityOverrid","defaultAccessibilityLabel","length","accessibilityOverrides","PaginationItem","count","animValue","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState"],"sourceRoot":"../../../../../src","sources":["components/Pagination/Custom/index.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