@react-navigation/stack 6.3.4 → 6.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js +1 -1
- package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
- package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js.map +1 -1
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +1 -1
- package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigators/createStackNavigator.js +1 -1
- package/lib/commonjs/navigators/createStackNavigator.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/CardAnimationContext.js.map +1 -1
- package/lib/commonjs/utils/GestureHandlerRefContext.js.map +1 -1
- package/lib/commonjs/utils/ModalPresentationContext.js.map +1 -1
- package/lib/commonjs/utils/conditional.js.map +1 -1
- package/lib/commonjs/utils/debounce.js.map +1 -1
- package/lib/commonjs/utils/getDistanceForDirection.js.map +1 -1
- package/lib/commonjs/utils/getInvertedMultiplier.js.map +1 -1
- package/lib/commonjs/utils/memoize.js.map +1 -1
- package/lib/commonjs/utils/useCardAnimation.js.map +1 -1
- package/lib/commonjs/utils/useGestureHandlerRef.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardManager.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.android.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.ios.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.js.map +1 -1
- package/lib/commonjs/views/GestureHandlerNative.js +1 -1
- package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
- package/lib/commonjs/views/Header/Header.js +1 -1
- package/lib/commonjs/views/Header/Header.js.map +1 -1
- package/lib/commonjs/views/Header/HeaderContainer.js.map +1 -1
- package/lib/commonjs/views/Header/HeaderSegment.js +1 -1
- package/lib/commonjs/views/Header/HeaderSegment.js.map +1 -1
- package/lib/commonjs/views/ModalStatusBarManager.js.map +1 -1
- package/lib/commonjs/views/Screens.js +1 -1
- package/lib/commonjs/views/Screens.js.map +1 -1
- package/lib/commonjs/views/Stack/Card.js +1 -1
- package/lib/commonjs/views/Stack/Card.js.map +1 -1
- package/lib/commonjs/views/Stack/CardContainer.js.map +1 -1
- package/lib/commonjs/views/Stack/CardSheet.js +1 -1
- package/lib/commonjs/views/Stack/CardSheet.js.map +1 -1
- package/lib/commonjs/views/Stack/CardStack.js.map +1 -1
- package/lib/commonjs/views/Stack/StackView.js +1 -1
- package/lib/commonjs/views/Stack/StackView.js.map +1 -1
- package/lib/module/TransitionConfigs/CardStyleInterpolators.js +1 -1
- package/lib/module/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
- package/lib/module/TransitionConfigs/HeaderStyleInterpolators.js.map +1 -1
- package/lib/module/TransitionConfigs/TransitionPresets.js.map +1 -1
- package/lib/module/TransitionConfigs/TransitionSpecs.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createStackNavigator.js +1 -1
- package/lib/module/navigators/createStackNavigator.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/CardAnimationContext.js.map +1 -1
- package/lib/module/utils/GestureHandlerRefContext.js.map +1 -1
- package/lib/module/utils/ModalPresentationContext.js.map +1 -1
- package/lib/module/utils/conditional.js.map +1 -1
- package/lib/module/utils/debounce.js.map +1 -1
- package/lib/module/utils/getDistanceForDirection.js.map +1 -1
- package/lib/module/utils/getInvertedMultiplier.js.map +1 -1
- package/lib/module/utils/memoize.js.map +1 -1
- package/lib/module/utils/useCardAnimation.js.map +1 -1
- package/lib/module/utils/useGestureHandlerRef.js.map +1 -1
- package/lib/module/utils/useKeyboardManager.js.map +1 -1
- package/lib/module/views/GestureHandler.android.js.map +1 -1
- package/lib/module/views/GestureHandler.ios.js.map +1 -1
- package/lib/module/views/GestureHandler.js.map +1 -1
- package/lib/module/views/GestureHandlerNative.js +1 -1
- package/lib/module/views/GestureHandlerNative.js.map +1 -1
- package/lib/module/views/Header/Header.js +1 -1
- package/lib/module/views/Header/Header.js.map +1 -1
- package/lib/module/views/Header/HeaderContainer.js.map +1 -1
- package/lib/module/views/Header/HeaderSegment.js +1 -1
- package/lib/module/views/Header/HeaderSegment.js.map +1 -1
- package/lib/module/views/ModalStatusBarManager.js.map +1 -1
- package/lib/module/views/Screens.js +1 -1
- package/lib/module/views/Screens.js.map +1 -1
- package/lib/module/views/Stack/Card.js +1 -1
- package/lib/module/views/Stack/Card.js.map +1 -1
- package/lib/module/views/Stack/CardContainer.js.map +1 -1
- package/lib/module/views/Stack/CardSheet.js +1 -1
- package/lib/module/views/Stack/CardSheet.js.map +1 -1
- package/lib/module/views/Stack/CardStack.js.map +1 -1
- package/lib/module/views/Stack/StackView.js +1 -1
- package/lib/module/views/Stack/StackView.js.map +1 -1
- package/package.json +5 -5
- package/src/TransitionConfigs/CardStyleInterpolators.tsx +1 -1
|
@@ -116,7 +116,7 @@ function forModalPresentationIOS(_ref3) {
|
|
|
116
116
|
},
|
|
117
117
|
insets
|
|
118
118
|
} = _ref3;
|
|
119
|
-
const hasNotchIos = _reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && !_reactNative.Platform.
|
|
119
|
+
const hasNotchIos = _reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && !_reactNative.Platform.isTV && insets.top > 20;
|
|
120
120
|
const isLandscape = screen.width > screen.height;
|
|
121
121
|
const topOffset = isLandscape ? 0 : 10;
|
|
122
122
|
const statusBarHeight = insets.top;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["CardStyleInterpolators.tsx"],"names":["add","multiply","Animated","forHorizontalIOS","current","next","inverted","layouts","screen","translateFocused","progress","interpolate","inputRange","outputRange","width","extrapolate","translateUnfocused","overlayOpacity","shadowOpacity","cardStyle","transform","translateX","overlayStyle","opacity","shadowStyle","forVerticalIOS","translateY","height","forModalPresentationIOS","index","insets","hasNotchIos","Platform","OS","isPad","isTVOS","top","isLandscape","topOffset","statusBarHeight","aspectRatio","isFirst","scale","borderRadius","overflow","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","marginTop","marginBottom","forFadeFromBottomAndroid","closing","forRevealFromBottomAndroid","containerTranslateY","cardTranslateYFocused","cardTranslateYUnfocused","containerStyle","forScaleFromCenterAndroid","forBottomSheetAndroid","forFadeFromCenter","forNoAnimation"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAMA;;;;AAEA,MAAM;AAAEA,EAAAA,GAAF;AAAOC,EAAAA;AAAP,IAAoBC,qBAA1B;AAEA;AACA;AACA;;AACO,SAASC,gBAAT,OAKqD;AAAA,MAL3B;AAC/BC,IAAAA,OAD+B;AAE/BC,IAAAA,IAF+B;AAG/BC,IAAAA,QAH+B;AAI/BC,IAAAA,OAAO,EAAE;AAAEC,MAAAA;AAAF;AAJsB,GAK2B;AAC1D,QAAMC,gBAAgB,GAAGR,QAAQ,CAC/BG,OAAO,CAACM,QAAR,CAAiBC,WAAjB,CAA6B;AAC3BC,IAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADe;AAE3BC,IAAAA,WAAW,EAAE,CAACL,MAAM,CAACM,KAAR,EAAe,CAAf,CAFc;AAG3BC,IAAAA,WAAW,EAAE;AAHc,GAA7B,CAD+B,EAM/BT,QAN+B,CAAjC;AASA,QAAMU,kBAAkB,GAAGX,IAAI,GAC3BJ,QAAQ,CACNI,IAAI,CAACK,QAAL,CAAcC,WAAd,CAA0B;AACxBC,IAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADY;AAExBC,IAAAA,WAAW,EAAE,CAAC,CAAD,EAAIL,MAAM,CAACM,KAAP,GAAe,CAAC,GAApB,CAFW;AAGxBC,IAAAA,WAAW,EAAE;AAHW,GAA1B,CADM,EAMNT,QANM,CADmB,GAS3B,CATJ;AAWA,QAAMW,cAAc,GAAGb,OAAO,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EAAE;AACTI,MAAAA,OAAO,EAAEb,QAAQ,CAACC,WAAT,CAAqB;AAC5BC,QAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,GAAJ,EAAS,GAAT,EAAc,CAAd,CADgB;AAE5BC,QAAAA,WAAW,EAAE,CAAC,CAAD,EAAI,IAAJ,EAAU,GAAV,EAAe,CAAf;AAFe,OAArB;AADA,KADN;AAOLS,IAAAA,YAAY,EAAE;AACZC,MAAAA,OAAO,EAAEb,QAAQ,CAACC,WAAT,CAAqB;AAC5BC,QAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADgB;AAE5BC,QAAAA,WAAW,EAAE,CAAC,CAAD,EAAI,GAAJ,CAFe;AAG5BE,QAAAA,WAAW,EAAE;AAHe,OAArB;AADG;AAPT,GAAP;AAeD;;AAEM,SAAS8C,cAAT,GAAsD;AAC3D,SAAO,EAAP;AACD","sourcesContent":["import { Animated, Platform } from 'react-native';\n\nimport type {\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n} from '../types';\nimport conditional from '../utils/conditional';\n\nconst { add, multiply } = Animated;\n\n/**\n * Standard iOS-style slide in from the right.\n */\nexport function forHorizontalIOS({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.width, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const translateUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.width * -0.3],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.07],\n extrapolate: 'clamp',\n });\n\n const shadowOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.3],\n extrapolate: 'clamp',\n });\n\n return {\n cardStyle: {\n transform: [\n // Translation for the animation of the current card\n { translateX: translateFocused },\n // Translation for the animation of the card on top of this\n { translateX: translateUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n shadowStyle: { shadowOpacity },\n };\n}\n\n/**\n * Standard iOS-style slide in from the bottom (used for modals).\n */\nexport function forVerticalIOS({\n current,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n return {\n cardStyle: {\n transform: [{ translateY }],\n },\n };\n}\n\n/**\n * Standard iOS-style modal animation in iOS 13.\n */\nexport function forModalPresentationIOS({\n index,\n current,\n next,\n inverted,\n layouts: { screen },\n insets,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const hasNotchIos =\n Platform.OS === 'ios' &&\n !Platform.isPad &&\n !Platform.isTVOS &&\n insets.top > 20;\n const isLandscape = screen.width > screen.height;\n const topOffset = isLandscape ? 0 : 10;\n const statusBarHeight = insets.top;\n const aspectRatio = screen.height / screen.width;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const isFirst = index === 0;\n\n const translateY = multiply(\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n screen.height,\n isFirst ? 0 : topOffset,\n (isFirst ? statusBarHeight : 0) - topOffset * aspectRatio,\n ],\n }),\n inverted\n );\n\n const overlayOpacity = progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0.3, 1, 1],\n });\n\n const scale = isLandscape\n ? 1\n : progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n 1,\n 1,\n screen.width ? 1 - (topOffset * 2) / screen.width : 1,\n ],\n });\n\n const borderRadius = isLandscape\n ? 0\n : isFirst\n ? progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0, hasNotchIos ? 38 : 0, 10],\n })\n : 10;\n\n return {\n cardStyle: {\n overflow: 'hidden',\n borderTopLeftRadius: borderRadius,\n borderTopRightRadius: borderRadius,\n // We don't need these for the animation\n // But different border radius for corners improves animation perf\n borderBottomLeftRadius: hasNotchIos ? borderRadius : 0,\n borderBottomRightRadius: hasNotchIos ? borderRadius : 0,\n marginTop: isFirst ? 0 : statusBarHeight,\n marginBottom: isFirst ? 0 : topOffset,\n transform: [{ translateY }, { scale }],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style fade in from the bottom for Android Oreo.\n */\nexport function forFadeFromBottomAndroid({\n current,\n inverted,\n layouts: { screen },\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * 0.08, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const opacity = conditional(\n closing,\n current.progress,\n current.progress.interpolate({\n inputRange: [0, 0.5, 0.9, 1],\n outputRange: [0, 0.25, 0.7, 1],\n extrapolate: 'clamp',\n })\n );\n\n return {\n cardStyle: {\n opacity,\n transform: [{ translateY }],\n },\n };\n}\n\n/**\n * Standard Android-style reveal from the bottom for Android Pie.\n */\nexport function forRevealFromBottomAndroid({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const containerTranslateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * (95.9 / 100) * -1, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.height * (2 / 100) * -1],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 0.36, 1],\n outputRange: [0, 0.1, 0.1],\n extrapolate: 'clamp',\n });\n\n return {\n containerStyle: {\n overflow: 'hidden',\n transform: [{ translateY: containerTranslateY }],\n },\n cardStyle: {\n transform: [\n { translateY: cardTranslateYFocused },\n { translateY: cardTranslateYUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style zoom for Android 10.\n */\nexport function forScaleFromCenterAndroid({\n current,\n next,\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 0.75, 0.875, 1, 1.0825, 1.2075, 2],\n outputRange: [0, 0, 1, 1, 1, 1, 0],\n });\n\n const scale = conditional(\n closing,\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0.925, 1],\n extrapolate: 'clamp',\n }),\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0.85, 1, 1.075],\n })\n );\n\n return {\n cardStyle: {\n opacity,\n transform: [{ scale }],\n },\n };\n}\n\n/**\n * Standard bottom sheet slide in from the bottom for Android.\n */\nexport function forBottomSheetAndroid({\n current,\n inverted,\n layouts: { screen },\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * 0.8, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const opacity = conditional(\n closing,\n current.progress,\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n );\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.3],\n extrapolate: 'clamp',\n });\n\n return {\n cardStyle: {\n opacity,\n transform: [{ translateY }],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Simple fade animation for dialogs\n */\nexport function forFadeFromCenter({\n current: { progress },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n return {\n cardStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 0.5, 0.9, 1],\n outputRange: [0, 0.25, 0.7, 1],\n }),\n },\n overlayStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.5],\n extrapolate: 'clamp',\n }),\n },\n };\n}\n\nexport function forNoAnimation(): StackCardInterpolatedStyle {\n return {};\n}\n"]}
|
|
1
|
+
{"version":3,"names":["add","multiply","Animated","forHorizontalIOS","current","next","inverted","layouts","screen","translateFocused","progress","interpolate","inputRange","outputRange","width","extrapolate","translateUnfocused","overlayOpacity","shadowOpacity","cardStyle","transform","translateX","overlayStyle","opacity","shadowStyle","forVerticalIOS","translateY","height","forModalPresentationIOS","index","insets","hasNotchIos","Platform","OS","isPad","isTV","top","isLandscape","topOffset","statusBarHeight","aspectRatio","isFirst","scale","borderRadius","overflow","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","marginTop","marginBottom","forFadeFromBottomAndroid","closing","conditional","forRevealFromBottomAndroid","containerTranslateY","cardTranslateYFocused","cardTranslateYUnfocused","containerStyle","forScaleFromCenterAndroid","forBottomSheetAndroid","forFadeFromCenter","forNoAnimation"],"sources":["CardStyleInterpolators.tsx"],"sourcesContent":["import { Animated, Platform } from 'react-native';\n\nimport type {\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n} from '../types';\nimport conditional from '../utils/conditional';\n\nconst { add, multiply } = Animated;\n\n/**\n * Standard iOS-style slide in from the right.\n */\nexport function forHorizontalIOS({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.width, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const translateUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.width * -0.3],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.07],\n extrapolate: 'clamp',\n });\n\n const shadowOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.3],\n extrapolate: 'clamp',\n });\n\n return {\n cardStyle: {\n transform: [\n // Translation for the animation of the current card\n { translateX: translateFocused },\n // Translation for the animation of the card on top of this\n { translateX: translateUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n shadowStyle: { shadowOpacity },\n };\n}\n\n/**\n * Standard iOS-style slide in from the bottom (used for modals).\n */\nexport function forVerticalIOS({\n current,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n return {\n cardStyle: {\n transform: [{ translateY }],\n },\n };\n}\n\n/**\n * Standard iOS-style modal animation in iOS 13.\n */\nexport function forModalPresentationIOS({\n index,\n current,\n next,\n inverted,\n layouts: { screen },\n insets,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const hasNotchIos =\n Platform.OS === 'ios' &&\n !Platform.isPad &&\n !Platform.isTV &&\n insets.top > 20;\n const isLandscape = screen.width > screen.height;\n const topOffset = isLandscape ? 0 : 10;\n const statusBarHeight = insets.top;\n const aspectRatio = screen.height / screen.width;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const isFirst = index === 0;\n\n const translateY = multiply(\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n screen.height,\n isFirst ? 0 : topOffset,\n (isFirst ? statusBarHeight : 0) - topOffset * aspectRatio,\n ],\n }),\n inverted\n );\n\n const overlayOpacity = progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0.3, 1, 1],\n });\n\n const scale = isLandscape\n ? 1\n : progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n 1,\n 1,\n screen.width ? 1 - (topOffset * 2) / screen.width : 1,\n ],\n });\n\n const borderRadius = isLandscape\n ? 0\n : isFirst\n ? progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0, hasNotchIos ? 38 : 0, 10],\n })\n : 10;\n\n return {\n cardStyle: {\n overflow: 'hidden',\n borderTopLeftRadius: borderRadius,\n borderTopRightRadius: borderRadius,\n // We don't need these for the animation\n // But different border radius for corners improves animation perf\n borderBottomLeftRadius: hasNotchIos ? borderRadius : 0,\n borderBottomRightRadius: hasNotchIos ? borderRadius : 0,\n marginTop: isFirst ? 0 : statusBarHeight,\n marginBottom: isFirst ? 0 : topOffset,\n transform: [{ translateY }, { scale }],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style fade in from the bottom for Android Oreo.\n */\nexport function forFadeFromBottomAndroid({\n current,\n inverted,\n layouts: { screen },\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * 0.08, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const opacity = conditional(\n closing,\n current.progress,\n current.progress.interpolate({\n inputRange: [0, 0.5, 0.9, 1],\n outputRange: [0, 0.25, 0.7, 1],\n extrapolate: 'clamp',\n })\n );\n\n return {\n cardStyle: {\n opacity,\n transform: [{ translateY }],\n },\n };\n}\n\n/**\n * Standard Android-style reveal from the bottom for Android Pie.\n */\nexport function forRevealFromBottomAndroid({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const containerTranslateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * (95.9 / 100) * -1, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.height * (2 / 100) * -1],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 0.36, 1],\n outputRange: [0, 0.1, 0.1],\n extrapolate: 'clamp',\n });\n\n return {\n containerStyle: {\n overflow: 'hidden',\n transform: [{ translateY: containerTranslateY }],\n },\n cardStyle: {\n transform: [\n { translateY: cardTranslateYFocused },\n { translateY: cardTranslateYUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style zoom for Android 10.\n */\nexport function forScaleFromCenterAndroid({\n current,\n next,\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 0.75, 0.875, 1, 1.0825, 1.2075, 2],\n outputRange: [0, 0, 1, 1, 1, 1, 0],\n });\n\n const scale = conditional(\n closing,\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0.925, 1],\n extrapolate: 'clamp',\n }),\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0.85, 1, 1.075],\n })\n );\n\n return {\n cardStyle: {\n opacity,\n transform: [{ scale }],\n },\n };\n}\n\n/**\n * Standard bottom sheet slide in from the bottom for Android.\n */\nexport function forBottomSheetAndroid({\n current,\n inverted,\n layouts: { screen },\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * 0.8, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const opacity = conditional(\n closing,\n current.progress,\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n );\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.3],\n extrapolate: 'clamp',\n });\n\n return {\n cardStyle: {\n opacity,\n transform: [{ translateY }],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Simple fade animation for dialogs\n */\nexport function forFadeFromCenter({\n current: { progress },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n return {\n cardStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 0.5, 0.9, 1],\n outputRange: [0, 0.25, 0.7, 1],\n }),\n },\n overlayStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.5],\n extrapolate: 'clamp',\n }),\n },\n };\n}\n\nexport function forNoAnimation(): StackCardInterpolatedStyle {\n return {};\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAMA;;;;AAEA,MAAM;EAAEA,GAAF;EAAOC;AAAP,IAAoBC,qBAA1B;AAEA;AACA;AACA;;AACO,SAASC,gBAAT,OAKqD;EAAA,IAL3B;IAC/BC,OAD+B;IAE/BC,IAF+B;IAG/BC,QAH+B;IAI/BC,OAAO,EAAE;MAAEC;IAAF;EAJsB,CAK2B;EAC1D,MAAMC,gBAAgB,GAAGR,QAAQ,CAC/BG,OAAO,CAACM,QAAR,CAAiBC,WAAjB,CAA6B;IA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AC3D,OAAO,EAAP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["HeaderStyleInterpolators.tsx"],"names":["add","Animated","forUIKit","current","next","layouts","defaultOffset","leftSpacing","leftLabelOffset","leftLabel","screen","width","titleLeftOffset","title","rightOffset","progress","interpolate","inputRange","outputRange","extrapolate","leftButtonStyle","opacity","leftLabelStyle","transform","translateX","I18nManager","getConstants","isRTL","rightButtonStyle","titleStyle","backgroundStyle","forFade","forSlideLeft","forSlideRight","forSlideUp","header","translateY","height","forNoAnimation"],"mappings":";;;;;;;;;;;;AAAA;;AAOA,MAAM;AAAEA,EAAAA;AAAF,IAAUC,qBAAhB;AAEA;AACA;AACA;;AACO,SAASC,QAAT,OAIyD;AAAA,MAJvC;AACvBC,IAAAA,OADuB;AAEvBC,IAAAA,IAFuB;AAGvBC,IAAAA;AAHuB,GAIuC;AAC9D,QAAMC,aAAa,GAAG,GAAtB;AACA,QAAMC,WAAW,GAAG,EAApB,CAF8D,CAI9D;AACA;AACA;AACA;AACA;;AACA,QAAMC,eAAe,GAAGH,OAAO,CAACI,SAAR,GACpB,CAACJ,OAAO,CAACK,MAAR,CAAeC,KAAf,GAAuBN,OAAO,CAACI,SAAR,CAAkBE,KAA1C,IAAmD,CAAnD,GAAuDJ,WADnC,GAEpBD,aAFJ;AAGA,QAAMM,eAAe,GAAGP,OAAO,CAACQ,KAAR,GACpB,CAACR,OAAO,CAACK,MAAR,CAAeC,KAAf,GAAuBN,OAAO,CAACQ,KAAR,CAAcF,KAAtC,IAA+C,CAA/C,GAAmDJ,WAD/B,GAEpBD,aAFJ,CAZ8D,CAgB9D;AACA;;AACA,QAAMQ,WAAW,GAAGT,OAAO,CAACK,MAAR,CAAeC,KAAf,GAAuB,CAA3C;AAEA,QAAMI,QAAQ,GAAGf,GAAG,CAClBG,OAAO,CAACY,QAAR,CAAiBC,WAAjB,CAA6B;AAC3BC,IAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,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Z,GAAP;AAMD;;AAEM,SAASe,cAAT,GAAwD;AAC7D,SAAO,EAAP;AACD","sourcesContent":["import { Animated, I18nManager } from 'react-native';\n\nimport type {\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n} from '../types';\n\nconst { add } = Animated;\n\n/**\n * Standard UIKit style animation for the header where the title fades into the back button label.\n */\nexport function forUIKit({\n current,\n next,\n layouts,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const defaultOffset = 100;\n const leftSpacing = 27;\n\n // The title and back button title should cross-fade to each other\n // When screen is fully open, the title should be in center, and back title should be on left\n // When screen is closing, the previous title will animate to back title's position\n // And back title will animate to title's position\n // We achieve this by calculating the offsets needed to translate title to back title's position and vice-versa\n const leftLabelOffset = layouts.leftLabel\n ? (layouts.screen.width - layouts.leftLabel.width) / 2 - leftSpacing\n : defaultOffset;\n const titleLeftOffset = layouts.title\n ? (layouts.screen.width - layouts.title.width) / 2 - leftSpacing\n : defaultOffset;\n\n // When the current title is animating to right, it is centered in the right half of screen in middle of transition\n // The back title also animates in from this position\n const rightOffset = layouts.screen.width / 4;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n return {\n leftButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n leftLabelStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-rightOffset, 0, leftLabelOffset]\n : [leftLabelOffset, 0, -rightOffset],\n }),\n },\n ],\n },\n rightButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n titleStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 0.4, 1, 1.5],\n outputRange: [0, 0.1, 1, 0],\n }),\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0.5, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-titleLeftOffset, 0, rightOffset]\n : [rightOffset, 0, -titleLeftOffset],\n }),\n },\n ],\n },\n backgroundStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-layouts.screen.width, 0, layouts.screen.width]\n : [layouts.screen.width, 0, -layouts.screen.width],\n }),\n },\n ],\n },\n };\n}\n\n/**\n * Simple fade animation for the header elements.\n */\nexport function forFade({\n current,\n next,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0, 1, 0],\n });\n\n return {\n leftButtonStyle: { opacity },\n rightButtonStyle: { opacity },\n titleStyle: { opacity },\n backgroundStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 1, 1.9, 2],\n outputRange: [0, 1, 1, 0],\n }),\n },\n };\n}\n\n/**\n * Simple translate animation to translate the header to left.\n */\nexport function forSlideLeft({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-screen.width, 0, screen.width]\n : [screen.width, 0, -screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to right.\n */\nexport function forSlideRight({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [screen.width, 0, -screen.width]\n : [-screen.width, 0, screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to slide up.\n */\nexport function forSlideUp({\n current,\n next,\n layouts: { header },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateY = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [-header.height, 0, -header.height],\n });\n\n const transform = [{ translateY }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\nexport function forNoAnimation(): StackHeaderInterpolatedStyle {\n return {};\n}\n"]}
|
|
1
|
+
{"version":3,"names":["add","Animated","forUIKit","current","next","layouts","defaultOffset","leftSpacing","leftLabelOffset","leftLabel","screen","width","titleLeftOffset","title","rightOffset","progress","interpolate","inputRange","outputRange","extrapolate","leftButtonStyle","opacity","leftLabelStyle","transform","translateX","I18nManager","getConstants","isRTL","rightButtonStyle","titleStyle","backgroundStyle","forFade","forSlideLeft","forSlideRight","forSlideUp","header","translateY","height","forNoAnimation"],"sources":["HeaderStyleInterpolators.tsx"],"sourcesContent":["import { Animated, I18nManager } from 'react-native';\n\nimport type {\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n} from '../types';\n\nconst { add } = Animated;\n\n/**\n * Standard UIKit style animation for the header where the title fades into the back button label.\n */\nexport function forUIKit({\n current,\n next,\n layouts,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const defaultOffset = 100;\n const leftSpacing = 27;\n\n // The title and back button title should cross-fade to each other\n // When screen is fully open, the title should be in center, and back title should be on left\n // When screen is closing, the previous title will animate to back title's position\n // And back title will animate to title's position\n // We achieve this by calculating the offsets needed to translate title to back title's position and vice-versa\n const leftLabelOffset = layouts.leftLabel\n ? (layouts.screen.width - layouts.leftLabel.width) / 2 - leftSpacing\n : defaultOffset;\n const titleLeftOffset = layouts.title\n ? (layouts.screen.width - layouts.title.width) / 2 - leftSpacing\n : defaultOffset;\n\n // When the current title is animating to right, it is centered in the right half of screen in middle of transition\n // The back title also animates in from this position\n const rightOffset = layouts.screen.width / 4;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n return {\n leftButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n leftLabelStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-rightOffset, 0, leftLabelOffset]\n : [leftLabelOffset, 0, -rightOffset],\n }),\n },\n ],\n },\n rightButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n titleStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 0.4, 1, 1.5],\n outputRange: [0, 0.1, 1, 0],\n }),\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0.5, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-titleLeftOffset, 0, rightOffset]\n : [rightOffset, 0, -titleLeftOffset],\n }),\n },\n ],\n },\n backgroundStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-layouts.screen.width, 0, layouts.screen.width]\n : [layouts.screen.width, 0, -layouts.screen.width],\n }),\n },\n ],\n },\n };\n}\n\n/**\n * Simple fade animation for the header elements.\n */\nexport function forFade({\n current,\n next,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0, 1, 0],\n });\n\n return {\n leftButtonStyle: { opacity },\n rightButtonStyle: { opacity },\n titleStyle: { opacity },\n backgroundStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 1, 1.9, 2],\n outputRange: [0, 1, 1, 0],\n }),\n },\n };\n}\n\n/**\n * Simple translate animation to translate the header to left.\n */\nexport function forSlideLeft({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [-screen.width, 0, screen.width]\n : [screen.width, 0, -screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to right.\n */\nexport function forSlideRight({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.getConstants().isRTL\n ? [screen.width, 0, -screen.width]\n : [-screen.width, 0, screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to slide up.\n */\nexport function forSlideUp({\n current,\n next,\n layouts: { header },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateY = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [-header.height, 0, -header.height],\n });\n\n const transform = [{ translateY }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\nexport function forNoAnimation(): StackHeaderInterpolatedStyle {\n return {};\n}\n"],"mappings":";;;;;;;;;;;;AAAA;;AAOA,MAAM;EAAEA;AAAF,IAAUC,qBAAhB;AAEA;AACA;AACA;;AACO,SAASC,QAAT,OAIy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AAO,EAAP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ANDROID_VERSION_PIE","ANDROID_VERSION_10","SlideFromRightIOS","gestureDirection","transitionSpec","open","TransitionIOSSpec","close","cardStyleInterpolator","forHorizontalIOS","headerStyleInterpolator","forFade","ModalSlideFromBottomIOS","forVerticalIOS","ModalPresentationIOS","forModalPresentationIOS","FadeFromBottomAndroid","FadeInFromBottomAndroidSpec","FadeOutToBottomAndroidSpec","forFadeFromBottomAndroid","RevealFromBottomAndroid","RevealFromBottomAndroidSpec","forRevealFromBottomAndroid","ScaleFromCenterAndroid","ScaleFromCenterAndroidSpec","forScaleFromCenterAndroid","BottomSheetAndroid","BottomSheetSlideInSpec","BottomSheetSlideOutSpec","forBottomSheetAndroid","ModalFadeTransition","forFadeCard","DefaultTransition","Platform","select","ios","android","Version","default","ModalTransition"],"sources":["TransitionPresets.tsx"],"sourcesContent":["import { Platform } from 'react-native';\n\nimport type { TransitionPreset } from '../types';\nimport {\n forBottomSheetAndroid,\n forFadeFromBottomAndroid,\n forFadeFromCenter as forFadeCard,\n forHorizontalIOS,\n forModalPresentationIOS,\n forRevealFromBottomAndroid,\n forScaleFromCenterAndroid,\n forVerticalIOS,\n} from './CardStyleInterpolators';\nimport { forFade } from './HeaderStyleInterpolators';\nimport {\n BottomSheetSlideInSpec,\n BottomSheetSlideOutSpec,\n FadeInFromBottomAndroidSpec,\n FadeOutToBottomAndroidSpec,\n RevealFromBottomAndroidSpec,\n ScaleFromCenterAndroidSpec,\n TransitionIOSSpec,\n} from './TransitionSpecs';\n\nconst ANDROID_VERSION_PIE = 28;\nconst ANDROID_VERSION_10 = 29;\n\n/**\n * Standard iOS navigation transition.\n */\nexport const SlideFromRightIOS: TransitionPreset = {\n gestureDirection: 'horizontal',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forHorizontalIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard iOS navigation transition for modals.\n */\nexport const ModalSlideFromBottomIOS: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forVerticalIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard iOS modal presentation style (introduced in iOS 13).\n */\nexport const ModalPresentationIOS: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forModalPresentationIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android < 9 (Oreo).\n */\nexport const FadeFromBottomAndroid: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: FadeInFromBottomAndroidSpec,\n close: FadeOutToBottomAndroidSpec,\n },\n cardStyleInterpolator: forFadeFromBottomAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android 9 (Pie).\n */\nexport const RevealFromBottomAndroid: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: RevealFromBottomAndroidSpec,\n close: RevealFromBottomAndroidSpec,\n },\n cardStyleInterpolator: forRevealFromBottomAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android 10 (Q).\n */\nexport const ScaleFromCenterAndroid: TransitionPreset = {\n gestureDirection: 'horizontal',\n transitionSpec: {\n open: ScaleFromCenterAndroidSpec,\n close: ScaleFromCenterAndroidSpec,\n },\n cardStyleInterpolator: forScaleFromCenterAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard bottom sheet slide transition for Android 10.\n */\nexport const BottomSheetAndroid: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: BottomSheetSlideInSpec,\n close: BottomSheetSlideOutSpec,\n },\n cardStyleInterpolator: forBottomSheetAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Fade transition for transparent modals.\n */\nexport const ModalFadeTransition: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: BottomSheetSlideInSpec,\n close: BottomSheetSlideOutSpec,\n },\n cardStyleInterpolator: forFadeCard,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Default navigation transition for the current platform.\n */\nexport const DefaultTransition = Platform.select({\n ios: SlideFromRightIOS,\n android:\n Platform.Version >= ANDROID_VERSION_10\n ? ScaleFromCenterAndroid\n : Platform.Version >= ANDROID_VERSION_PIE\n ? RevealFromBottomAndroid\n : FadeFromBottomAndroid,\n default: ScaleFromCenterAndroid,\n});\n\n/**\n * Default modal transition for the current platform.\n */\nexport const ModalTransition = Platform.select({\n ios: ModalPresentationIOS,\n default: BottomSheetAndroid,\n});\n"],"mappings":";;;;;;;AAAA;;AAGA;;AAUA;;AACA;;AAUA,MAAMA,mBAAmB,GAAG,EAA5B;AACA,MAAMC,kBAAkB,GAAG,EAA3B;AAEA;AACA;AACA;;AACO,MAAMC,iBAAmC,GAAG;EACjDC,gBAAgB,EAAE,YAD+B;EAEjDC,cAAc,EAAE;IACdC,IAAI,EAAEC,kCADQ;IAEdC,KAAK,EAAED;EAFO,CAFiC;EAMjDE,qBAAqB,EAAEC,wCAN0B;EAOjDC,uBAAuB,EAAEC;AAPwB,CAA5C;AAUP;AACA;AACA;;;AACO,MAAMC,uBAAyC,GAAG;EACvDT,gBAAgB,EAAE,UADqC;EAEvDC,cAAc,EAAE;IACdC,IAAI,EAAEC,kCADQ;IAEdC,KAAK,EAAED;EAFO,CAFuC;EAMvDE,qBAAqB,EAAEK,sCANgC;EAOvDH,uBAAuB,EAAEC;AAP8B,CAAlD;AAUP;AACA;AACA;;;AACO,MAAMG,oBAAsC,GAAG;EACpDX,gBAAgB,EAAE,UADkC;EAEpDC,cAAc,EAAE;IACdC,IAAI,EAAEC,kCADQ;IAEdC,KAAK,EAAED;EAFO,C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AACA;;;;AACO,MAAMqB,iBAAiB,GAAGC,qBAAA,CAASC,MAAT,CAAgB;EAC/CC,GAAG,EAAEjC,iBAD0C;EAE/CkC,OAAO,EACLH,qBAAA,CAASI,OAAT,IAAoBpC,kBAApB,GACIsB,sBADJ,GAEIU,qBAAA,CAASI,OAAT,IAAoBrC,mBAApB,GACAoB,uBADA,GAEAJ,qBAPyC;EAQ/CsB,OAAO,EAAEf;AARsC,CAAhB,CAA1B;AAWP;AACA;AACA;;;;;AACO,MAAMgB,eAAe,GAAGN,qBAAA,CAASC,MAAT,CAAgB;EAC7CC,GAAG,EAAErB,oBADwC;EAE7CwB,OAAO,EAAEZ;AAFoC,CAAhB,CAAxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["TransitionIOSSpec","animation","config","stiffness","damping","mass","overshootClamping","restDisplacementThreshold","restSpeedThreshold","FadeInFromBottomAndroidSpec","duration","easing","Easing","out","poly","FadeOutToBottomAndroidSpec","in","linear","RevealFromBottomAndroidSpec","bezier","ScaleFromCenterAndroidSpec","BottomSheetSlideInSpec","t","Math","cos","PI","BottomSheetSlideOutSpec","pow"],"sources":["TransitionSpecs.tsx"],"sourcesContent":["import { Easing } from 'react-native';\n\nimport type { TransitionSpec } from '../types';\n\n/**\n * Exact values from UINavigationController's animation configuration.\n */\nexport const TransitionIOSSpec: TransitionSpec = {\n animation: 'spring',\n config: {\n stiffness: 1000,\n damping: 500,\n mass: 3,\n overshootClamping: true,\n restDisplacementThreshold: 10,\n restSpeedThreshold: 10,\n },\n};\n\n/**\n * Configuration for activity open animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const FadeInFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 350,\n easing: Easing.out(Easing.poly(5)),\n },\n};\n\n/**\n * Configuration for activity close animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml\n */\nexport const FadeOutToBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 150,\n easing: Easing.in(Easing.linear),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Pie.\n * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const RevealFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 425,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Q.\n * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const ScaleFromCenterAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 400,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Configuration for bottom sheet slide in animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideInSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 250,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateDecelerateInterpolator.java\n easing: (t) => Math.cos((t + 1) * Math.PI) / 2.0 + 0.5,\n },\n};\n\n/**\n * Configuration for bottom sheet slide out animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideOutSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 200,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateInterpolator.java\n easing: (t) => (t === 1.0 ? 1 : Math.pow(t, 2)),\n },\n};\n"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACO,MAAMA,iBAAiC,GAAG;EAC/CC,SAAS,EAAE,QADoC;EAE/CC,MAAM,EAAE;IACNC,SAAS,EAAE,IADL;IAENC,OAAO,EAAE,GAFH;IAGNC,IAAI,EAAE,CAHA;IAINC,iBAAiB,EAAE,IAJb;IAKNC,yBAAyB,EAAE,EALrB;IAMNC,kBAAkB,EAAE;EANd;AAFuC,CAA1C;AAYP;AACA;AACA;AACA;;;AACO,MAAMC,2BAA2C,GAAG;EACzDR,SAAS,EAAE,QAD8C;EAEzDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAENC,MAAM,EAAEC,mBAAA,CAAOC,GAAP,CAAWD,mBAAA,CAAOE,IAAP,CAAY,CAAZ,CAAX;EAFF;AAFiD,CAApD;AAQP;AACA;AACA;AACA;;;AACO,MAAMC,0BAA0C,GAAG;EACxDd,SAAS,EAAE,QAD6C;EAExDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAENC,MAAM,EAAEC,mBAAA,CAAOI,EAAP,CAAUJ,mBAAA,CAAOK,MAAjB;EAFF;AAFgD,CAAnD;AAQP;AACA;AACA;AACA;;;AACO,MAAMC,2BAA2C,GAAG;EACzDjB,SAAS,EAAE,QAD8C;EAEzDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACA;IACAC,MAAM,EAAEC,mBAAA,CAAOO,MAAP,CAAc,IAAd,EAAoB,IAApB,EAA0B,CAA1B,EAA6B,CAA7B;EAJF;AAFiD,CAApD;AAUP;AACA;AACA;AACA;;;AACO,MAAMC,0BAA0C,GAAG;EACxDnB,SAAS,EAAE,QAD6C;EAExDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACA;IACAC,MAAM,EAAEC,mBAAA,CAAOO,MAAP,CAAc,IAAd,EAAoB,IAApB,EAA0B,CAA1B,EAA6B,CAA7B;EAJF;AAFgD,CAAnD;AAUP;AACA;AACA;AACA;;;AACO,MAAME,sBAAsC,GAAG;EACpDpB,SAAS,EAAE,QADyC;EAEpDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACAC,MAAM,EAAGW,CAAD,IAAOC,IAAI,CAACC,GAAL,CAAS,CAACF,CAAC,GAAG,CAAL,IAAUC,IAAI,CAACE,EAAxB,IAA8B,GAA9B,GAAoC;EAH7C;AAF4C,CAA/C;AASP;AACA;AACA;AACA;;;AACO,MAAMC,uBAAuC,GAAG;EACrDzB,SAAS,EAAE,QAD0C;EAErDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACAC,MAAM,EAAGW,CAAD,IAAQA,CAAC,KAAK,GAAN,GAAY,CAAZ,GAAgBC,IAAI,CAACI,GAAL,CAASL,CAAT,EAAY,CAAZ;EAH1B;AAF6C,CAAhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators';\nimport * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators';\nimport * as TransitionPresets from './TransitionConfigs/TransitionPresets';\nimport * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';\n\n/**\n * Navigators\n */\nexport { default as createStackNavigator } from './navigators/createStackNavigator';\n\n/**\n * Views\n */\nexport { default as Header } from './views/Header/Header';\nexport { default as StackView } from './views/Stack/StackView';\n\n/**\n * Transition presets\n */\nexport {\n CardStyleInterpolators,\n HeaderStyleInterpolators,\n TransitionPresets,\n TransitionSpecs,\n};\n\n/**\n * Utilities\n */\nexport { default as CardAnimationContext } from './utils/CardAnimationContext';\nexport { default as GestureHandlerRefContext } from './utils/GestureHandlerRefContext';\nexport { default as useCardAnimation } from './utils/useCardAnimation';\nexport { default as useGestureHandlerRef } from './utils/useGestureHandlerRef';\n\n/**\n * Types\n */\nexport type {\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n StackCardStyleInterpolator,\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n StackHeaderProps,\n StackHeaderStyleInterpolator,\n StackNavigationEventMap,\n StackNavigationOptions,\n StackNavigationProp,\n StackScreenProps,\n TransitionPreset,\n} from './types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;AAKA;;AAKA;;AACA;;AAeA;;AACA;;AACA;;AACA"}
|
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
|
-
function _extends() { _extends = Object.assign
|
|
22
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
24
|
function StackNavigator(_ref) {
|
|
25
25
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["StackNavigator","id","initialRouteName","children","screenListeners","screenOptions","rest","mode","warnOnce","headerMode","keyboardHandlingEnabled","undefined","defaultScreenOptions","presentation","headerShown","state","descriptors","navigation","NavigationContent","useNavigationBuilder","StackRouter","React","useEffect","addListener","e","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","StackActions","popToTop","target","key","createNavigatorFactory"],"sources":["createStackNavigator.tsx"],"sourcesContent":["import {\n createNavigatorFactory,\n DefaultNavigatorOptions,\n EventArg,\n ParamListBase,\n StackActionHelpers,\n StackActions,\n StackNavigationState,\n StackRouter,\n StackRouterOptions,\n useNavigationBuilder,\n} from '@react-navigation/native';\nimport * as React from 'react';\nimport warnOnce from 'warn-once';\n\nimport type {\n StackHeaderMode,\n StackNavigationConfig,\n StackNavigationEventMap,\n StackNavigationOptions,\n} from '../types';\nimport StackView from '../views/Stack/StackView';\n\ntype Props = DefaultNavigatorOptions<\n ParamListBase,\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n> &\n StackRouterOptions &\n StackNavigationConfig;\n\nfunction StackNavigator({\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n ...rest\n}: Props) {\n // @ts-expect-error: mode is deprecated\n const mode = rest.mode as 'card' | 'modal' | undefined;\n\n warnOnce(\n mode != null,\n `Stack Navigator: 'mode=\"${mode}\"' is deprecated. Use 'presentation: \"${mode}\"' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator#presentation for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const headerMode = rest.headerMode as StackHeaderMode | 'none' | undefined;\n\n warnOnce(\n headerMode === 'none',\n `Stack Navigator: 'headerMode=\"none\"' is deprecated. Use 'headerShown: false' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headershown for more details.`\n );\n\n warnOnce(\n headerMode != null && headerMode !== 'none',\n `Stack Navigator: 'headerMode' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headermode for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const keyboardHandlingEnabled = rest.keyboardHandlingEnabled;\n\n warnOnce(\n keyboardHandlingEnabled !== undefined,\n `Stack Navigator: 'keyboardHandlingEnabled' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#keyboardhandlingenabled for more details.`\n );\n\n const defaultScreenOptions: StackNavigationOptions = {\n presentation: mode,\n headerShown: headerMode ? headerMode !== 'none' : true,\n headerMode: headerMode && headerMode !== 'none' ? headerMode : undefined,\n keyboardHandlingEnabled,\n };\n\n const { state, descriptors, navigation, NavigationContent } =\n useNavigationBuilder<\n StackNavigationState<ParamListBase>,\n StackRouterOptions,\n StackActionHelpers<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n >(StackRouter, {\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n defaultScreenOptions,\n });\n\n React.useEffect(\n () =>\n // @ts-expect-error: there may not be a tab navigator in parent\n navigation.addListener?.('tabPress', (e) => {\n const isFocused = navigation.isFocused();\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n if (\n state.index > 0 &&\n isFocused &&\n !(e as unknown as EventArg<'tabPress', true>).defaultPrevented\n ) {\n // When user taps on already focused tab and we're inside the tab,\n // reset the stack to replicate native behaviour\n navigation.dispatch({\n ...StackActions.popToTop(),\n target: state.key,\n });\n }\n });\n }),\n [navigation, state.index, state.key]\n );\n\n return (\n <NavigationContent>\n <StackView\n {...rest}\n state={state}\n descriptors={descriptors}\n navigation={navigation}\n />\n </NavigationContent>\n );\n}\n\nexport default createNavigatorFactory<\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap,\n typeof StackNavigator\n>(StackNavigator);\n"],"mappings":";;;;;;;AAAA;;AAYA;;AACA;;AAQA;;;;;;;;;;AAWA,SAASA,cAAT,OAOU;EAAA,IAPc;IACtBC,EADsB;IAEtBC,gBAFsB;IAGtBC,QAHsB;IAItBC,eAJsB;IAKtBC,aALsB;IAMtB,GAAGC;EANmB,CAOd;EACR;EACA,MAAMC,IAAI,GAAGD,IAAI,CAACC,IAAlB;EAEA,IAAAC,iBAAA,EACED,IAAI,IAAI,IADV,EAEG,2BAA0BA,IAAK,yCAAwCA,IAAK,uHAF/E,EAJQ,CASR;;EACA,MAAME,UAAU,GAAGH,IAAI,CAACG,UAAxB;EAEA,IAAAD,iBAAA,EACEC,UAAU,KAAK,MADjB,EAEG,iMAFH;EAKA,IAAAD,iBAAA,EACEC,UAAU,IAAI,IAAd,IAAsBA,UAAU,KAAK,MADvC,EAEG,kMAFH,EAjBQ,CAsBR;;EACA,MAAMC,uBAAuB,GAAGJ,IAAI,CAACI,uBAArC;EAEA,IAAAF,iBAAA,EACEE,uBAAuB,KAAKC,SAD9B,EAEG,4NAFH;EAKA,MAAMC,oBAA4C,GAAG;IACnDC,YAAY,EAAEN,IADqC;IAEnDO,WAAW,EAAEL,UAAU,GAAGA,UAAU,KAAK,MAAlB,GAA2B,IAFC;IAGnDA,UAAU,EAAEA,UAAU,IAAIA,UAAU,KAAK,MAA7B,GAAsCA,UAAtC,GAAmDE,SAHZ;IAInDD;EAJmD,CAArD;EAOA,MAAM;IAAEK,KAAF;IAASC,WAAT;IAAsBC,UAAtB;IAAkCC;EAAlC,IACJ,IAAAC,4BAAA,EAMEC,mBANF,EAMe;IACbnB,EADa;IAEbC,gBAFa;IAGbC,QAHa;IAIbC,eAJa;IAKbC,aALa;IAMbO;EANa,CANf,CADF;EAgBAS,KAAK,CAACC,SAAN,CACE;IAAA;;IAAA,OACE;MADF,yBAEEL,UAAU,CAACM,WAFb,0DAEE,2BAAAN,UAAU,EAAe,UAAf,EAA4BO,CAAD,IAAO;QAC1C,MAAMC,SAAS,GAAGR,UAAU,CAACQ,SAAX,EAAlB,CAD0C,CAG1C;QACA;;QACAC,qBAAqB,CAAC,MAAM;UAC1B,IACEX,KAAK,CAACY,KAAN,GAAc,CAAd,IACAF,SADA,IAEA,CAAED,CAAD,CAA6CI,gBAHhD,EAIE;YACA;YACA;YACAX,UAAU,CAACY,QAAX,CAAoB,EAClB,GAAGC,oBAAA,CAAaC,QAAb,EADe;cAElBC,MAAM,EAAEjB,KAAK,CAACkB;YAFI,CAApB;UAID;QACF,CAboB,CAArB;MAcD,CAnBS;IAFZ;EAAA,CADF,EAuBE,CAAChB,UAAD,EAAaF,KAAK,CAACY,KAAnB,EAA0BZ,KAAK,CAACkB,GAAhC,CAvBF;EA0BA,oBACE,oBAAC,iBAAD,qBACE,oBAAC,kBAAD,eACM3B,IADN;IAEE,KAAK,EAAES,KAFT;IAGE,WAAW,EAAEC,WAHf;IAIE,UAAU,EAAEC;EAJd,GADF,CADF;AAUD;;eAEc,IAAAiB,8BAAA,EAKblC,cALa,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.tsx"],"sourcesContent":["import type {\n HeaderBackButton,\n HeaderBackButtonProps,\n HeaderButtonProps,\n HeaderOptions,\n HeaderTitleProps,\n} from '@react-navigation/elements';\nimport type {\n Descriptor,\n NavigationHelpers,\n NavigationProp,\n ParamListBase,\n Route,\n RouteProp,\n StackActionHelpers,\n StackNavigationState,\n} from '@react-navigation/native';\nimport type * as React from 'react';\nimport type { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';\n\nexport type StackNavigationEventMap = {\n /**\n * Event which fires when a transition animation starts.\n */\n transitionStart: { data: { closing: boolean } };\n /**\n * Event which fires when a transition animation ends.\n */\n transitionEnd: { data: { closing: boolean } };\n /**\n * Event which fires when navigation gesture starts.\n */\n gestureStart: { data: undefined };\n /**\n * Event which fires when navigation gesture is completed.\n */\n gestureEnd: { data: undefined };\n /**\n * Event which fires when navigation gesture is canceled.\n */\n gestureCancel: { data: undefined };\n};\n\nexport type StackNavigationHelpers = NavigationHelpers<\n ParamListBase,\n StackNavigationEventMap\n> &\n StackActionHelpers<ParamListBase>;\n\nexport type StackNavigationProp<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = keyof ParamList,\n NavigatorID extends string | undefined = undefined\n> = NavigationProp<\n ParamList,\n RouteName,\n NavigatorID,\n StackNavigationState<ParamList>,\n StackNavigationOptions,\n StackNavigationEventMap\n> &\n StackActionHelpers<ParamList>;\n\nexport type StackScreenProps<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = keyof ParamList,\n NavigatorID extends string | undefined = undefined\n> = {\n navigation: StackNavigationProp<ParamList, RouteName, NavigatorID>;\n route: RouteProp<ParamList, RouteName>;\n};\n\nexport type Layout = { width: number; height: number };\n\nexport type GestureDirection =\n | 'horizontal'\n | 'horizontal-inverted'\n | 'vertical'\n | 'vertical-inverted';\n\ntype SceneOptionsDefaults = TransitionPreset & {\n animationEnabled: boolean;\n gestureEnabled: boolean;\n cardOverlayEnabled: boolean;\n headerMode: StackHeaderMode;\n};\n\nexport type Scene = {\n /**\n * Route object for the current screen.\n */\n route: Route<string>;\n /**\n * Descriptor object for the screen.\n */\n descriptor: Omit<StackDescriptor, 'options'> & {\n options: Omit<StackDescriptor['options'], keyof SceneOptionsDefaults> &\n SceneOptionsDefaults;\n };\n /**\n * Animated nodes representing the progress of the animation.\n */\n progress: SceneProgress;\n};\n\nexport type SceneProgress = {\n /**\n * Progress value of the current screen.\n */\n current: Animated.AnimatedInterpolation;\n /**\n * Progress value for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: Animated.AnimatedInterpolation;\n /**\n * Progress value for the screen before this one in the stack.\n * This can be `undefined` in case the screen animating is the first one.\n */\n previous?: Animated.AnimatedInterpolation;\n};\n\nexport type StackHeaderMode = 'float' | 'screen';\n\nexport type StackPresentationMode = 'card' | 'modal';\n\nexport type StackHeaderOptions = Omit<\n HeaderOptions,\n 'headerLeft' | 'headerTitle' | 'headerRight'\n> & {\n /**\n * String or a function that returns a React Element to be used by the header.\n * Defaults to screen `title` or route name.\n *\n * It receives `allowFontScaling`, `tintColor`, `style` and `children` in the options object as an argument.\n * The title string is passed in `children`.\n */\n headerTitle?: string | ((props: HeaderTitleProps) => React.ReactNode);\n /**\n * Function which returns a React Element to display on the left side of the header.\n */\n headerLeft?: (props: HeaderBackButtonProps) => React.ReactNode;\n /**\n * Function which returns a React Element to display on the right side of the header.\n */\n headerRight?: (props: HeaderButtonProps) => React.ReactNode;\n /**\n * Whether back button title font should scale to respect Text Size accessibility settings. Defaults to `false`.\n */\n headerBackAllowFontScaling?: boolean;\n /**\n * Accessibility label for the header back button.\n */\n headerBackAccessibilityLabel?: string;\n /**\n * ID to locate this back button in tests.\n */\n headerBackTestID?: string;\n /**\n * Title string used by the back button on iOS.\n * Defaults to the previous screen's title, or \"Back\" if there's not enough space.\n * Use `headerBackTitleVisible: false` to hide it.\n */\n headerBackTitle?: string;\n /**\n * Whether the back button title should be visible or not.\n *\n * Defaults to `true` on iOS, `false on Android.\n */\n headerBackTitleVisible?: boolean;\n /**\n * Style object for the back title.\n */\n headerBackTitleStyle?: StyleProp<TextStyle>;\n /**\n * Title string used by the back button when `headerBackTitle` doesn't fit on the screen. `\"Back\"` by default.\n */\n headerTruncatedBackTitle?: string;\n /**\n * Function which returns a React Element to display custom image in header's back button.\n * It receives the `tintColor` in in the options object as an argument. object.\n * Defaults to Image component with a the default back icon image for the platform (a chevron on iOS and an arrow on Android).\n */\n headerBackImage?: React.ComponentProps<typeof HeaderBackButton>['backImage'];\n};\n\nexport type StackHeaderProps = {\n /**\n * Layout of the screen.\n */\n layout: Layout;\n /**\n * Options for the back button.\n */\n back?: {\n /**\n * Title of the previous screen.\n */\n title: string;\n };\n /**\n * Animated nodes representing the progress of the animation.\n */\n progress: SceneProgress;\n /**\n * Options for the current screen.\n */\n options: StackNavigationOptions;\n /**\n * Route object for the current screen.\n */\n route: Route<string>;\n /**\n * Navigation prop for the header.\n */\n navigation: StackNavigationProp<ParamListBase>;\n /**\n * Interpolated styles for various elements in the header.\n */\n styleInterpolator: StackHeaderStyleInterpolator;\n};\n\nexport type StackDescriptor = Descriptor<\n StackNavigationOptions,\n StackNavigationProp<ParamListBase>,\n RouteProp<ParamListBase>\n>;\n\nexport type StackDescriptorMap = Record<string, StackDescriptor>;\n\nexport type StackNavigationOptions = StackHeaderOptions &\n Partial<TransitionPreset> & {\n /**\n * String that can be displayed in the header as a fallback for `headerTitle`.\n */\n title?: string;\n /**\n * Function that given `HeaderProps` returns a React Element to display as a header.\n */\n header?: (props: StackHeaderProps) => React.ReactNode;\n /**\n * Whether the header floats above the screen or part of the screen.\n * Defaults to `float` on iOS for non-modals, and `screen` for the rest.\n */\n headerMode?: StackHeaderMode;\n /**\n * Whether to show the header. The header is shown by default.\n * Setting this to `false` hides the header.\n */\n headerShown?: boolean;\n /**\n * Whether a shadow is visible for the card during transitions. Defaults to `true`.\n */\n cardShadowEnabled?: boolean;\n /**\n * Whether to have a semi-transparent dark overlay visible under the card during transitions.\n * Defaults to `true` on Android and `false` on iOS.\n */\n cardOverlayEnabled?: boolean;\n /**\n * Function that returns a React Element to display as a overlay for the card.\n */\n cardOverlay?: (props: {\n style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n }) => React.ReactNode;\n /**\n * Style object for the card in stack.\n * You can provide a custom background color to use instead of the default background here.\n *\n * You can also specify `{ backgroundColor: 'transparent' }` to make the previous screen visible underneath.\n * This is useful to implement things like modal dialogs.\n *\n * You should also specify `detachPreviousScreen: false` in options when using a transparent background\n * so that the previous screen isn't detached and stays below the current screen.\n *\n * You might also need to change the animation of the screen using `cardStyleInterpolator`\n * so that the previous screen isn't transformed or invisible.\n */\n cardStyle?: StyleProp<ViewStyle>;\n /**\n * Whether this screen should be presented as a modal or a regular card.\n *\n * Specifying this will configure several options:\n * - `card`: Use the default OS animations for iOS and Android screen transitions.\n * - `modal`: Use Modal animations. This changes a few things:\n * - Sets `headerMode` to `screen` for the screen unless specified otherwise.\n * - Changes the screen animation to match the platform behavior for modals.\n * - `transparentModal`: Similar to `modal`. This changes following things:\n * - Sets `headerMode` to `screen` for the screen unless specified otherwise.\n * - Sets background color of the screen to transparent, so previous screen is visible\n * - Adjusts the `detachPreviousScreen` option so that the previous screen stays rendered.\n * - Prevents the previous screen from animating from its last position.\n * - Changes the screen animation to a vertical slide animation.\n *\n * Defaults to 'card'.\n */\n presentation?: 'card' | 'modal' | 'transparentModal';\n /**\n * Whether transition animation should be enabled the screen.\n * If you set it to `false`, the screen won't animate when pushing or popping.\n * Defaults to `true` on Android and iOS, `false` on Web.\n */\n animationEnabled?: boolean;\n /**\n * The type of animation to use when this screen replaces another screen. Defaults to `push`.\n * When `pop` is used, the `pop` animation is applied to the screen being replaced.\n */\n animationTypeForReplace?: 'push' | 'pop';\n /**\n * Whether you can use gestures to dismiss this screen. Defaults to `true` on iOS, `false` on Android.\n * Not supported on Web.\n */\n gestureEnabled?: boolean;\n /**\n * Distance of touch start from the edge of the screen to recognize gestures.\n * Not supported on Web.\n */\n gestureResponseDistance?: number;\n /**\n * Number which determines the relevance of velocity for the gesture. Defaults to 0.3.\n * Not supported on Web.\n */\n gestureVelocityImpact?: number;\n /**\n * Whether to detach the previous screen from the view hierarchy to save memory.\n * Set it to `false` if you need the previous screen to be seen through the active screen.\n * Only applicable if `detachInactiveScreens` isn't set to `false`.\n * Defaults to `false` for the last screen for modals, otherwise `true`.\n */\n detachPreviousScreen?: boolean;\n /**\n * If `false`, the keyboard will NOT automatically dismiss when navigating to a new screen from this screen.\n * Defaults to `true`.\n */\n keyboardHandlingEnabled?: boolean;\n /**\n * Whether inactive screens should be suspended from re-rendering. Defaults to `false`.\n * Defaults to `true` when `enableFreeze()` is run at the top of the application.\n * Requires `react-native-screens` version >=3.16.0.\n *\n * Only supported on iOS and Android.\n */\n freezeOnBlur?: boolean;\n };\n\nexport type StackNavigationConfig = {\n /**\n * Whether inactive screens should be detached from the view hierarchy to save memory.\n * This will have no effect if you disable `react-native-screens`.\n *\n * Defaults to `true`.\n */\n detachInactiveScreens?: boolean;\n};\n\nexport type TransitionSpec =\n | {\n animation: 'spring';\n config: Omit<\n Animated.SpringAnimationConfig,\n 'toValue' | keyof Animated.AnimationConfig\n >;\n }\n | {\n animation: 'timing';\n config: Omit<\n Animated.TimingAnimationConfig,\n 'toValue' | keyof Animated.AnimationConfig\n >;\n };\n\nexport type StackCardInterpolationProps = {\n /**\n * Values for the current screen.\n */\n current: {\n /**\n * Animated node representing the progress value of the current screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Values for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: {\n /**\n * Animated node representing the progress value of the next screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * The index of the card with this interpolation in the stack.\n */\n index: number;\n /**\n * Animated node representing whether the card is closing (1 - closing, 0 - not closing).\n */\n closing: Animated.AnimatedInterpolation;\n /**\n * Animated node representing whether the card is being swiped (1 - swiping, 0 - not swiping).\n */\n swiping: Animated.AnimatedInterpolation;\n /**\n * Animated node representing multiplier when direction is inverted (-1 - inverted, 1 - normal).\n */\n inverted: Animated.AnimatedInterpolation;\n /**\n * Layout measurements for various items we use for animation.\n */\n layouts: {\n /**\n * Layout of the whole screen.\n */\n screen: Layout;\n };\n /**\n * Safe area insets\n */\n insets: {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n\nexport type StackCardInterpolatedStyle = {\n /**\n * Interpolated style for the container view wrapping the card.\n */\n containerStyle?: any;\n /**\n * Interpolated style for the view representing the card.\n */\n cardStyle?: any;\n /**\n * Interpolated style for the view representing the semi-transparent overlay below the card.\n */\n overlayStyle?: any;\n /**\n * Interpolated style representing the card shadow.\n */\n shadowStyle?: any;\n};\n\nexport type StackCardStyleInterpolator = (\n props: StackCardInterpolationProps\n) => StackCardInterpolatedStyle;\n\nexport type StackHeaderInterpolationProps = {\n /**\n * Values for the current screen (the screen which owns this header).\n */\n current: {\n /**\n * Animated node representing the progress value of the current screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Values for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: {\n /**\n * Animated node representing the progress value of the next screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Layout measurements for various items we use for animation.\n */\n layouts: {\n /**\n * Layout of the header\n */\n header: Layout;\n /**\n * Layout of the whole screen.\n */\n screen: Layout;\n /**\n * Layout of the title element.\n */\n title?: Layout;\n /**\n * Layout of the back button label.\n */\n leftLabel?: Layout;\n };\n};\n\nexport type StackHeaderInterpolatedStyle = {\n /**\n * Interpolated style for the label of the left button (back button label).\n */\n leftLabelStyle?: any;\n /**\n * Interpolated style for the left button (usually the back button).\n */\n leftButtonStyle?: any;\n /**\n * Interpolated style for the right button.\n */\n rightButtonStyle?: any;\n /**\n * Interpolated style for the header title text.\n */\n titleStyle?: any;\n /**\n * Interpolated style for the header background.\n */\n backgroundStyle?: any;\n};\n\nexport type StackHeaderStyleInterpolator = (\n props: StackHeaderInterpolationProps\n) => StackHeaderInterpolatedStyle;\n\nexport type TransitionPreset = {\n /**\n * The direction of swipe gestures, `horizontal` or `vertical`.\n */\n gestureDirection: GestureDirection;\n /**\n * Object which specifies the animation type (timing or spring) and their options (such as duration for timing).\n */\n transitionSpec: {\n /**\n * Transition configuration when adding a screen.\n */\n open: TransitionSpec;\n /**\n * Transition configuration when removing a screen.\n */\n close: TransitionSpec;\n };\n /**\n * Function which specifies interpolated styles for various parts of the card, e.g. the overlay, shadow etc.\n */\n cardStyleInterpolator: StackCardStyleInterpolator;\n /**\n * Function which specifies interpolated styles for various parts of the header, e.g. the title, left button etc.\n */\n headerStyleInterpolator: StackHeaderStyleInterpolator;\n};\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["React","createContext","undefined"],"sources":["CardAnimationContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { StackCardInterpolationProps } from '../types';\n\nexport default React.createContext<StackCardInterpolationProps | undefined>(\n undefined\n);\n"],"mappings":";;;;;;;AAAA;;;;;;4BAIeA,KAAK,CAACC,aAAN,CACbC,SADa,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["React","createContext"],"sources":["GestureHandlerRefContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport default React.createContext<React.Ref<\n import('react-native-gesture-handler').PanGestureHandler\n> | null>(null);\n"],"mappings":";;;;;;;AAAA;;;;;;4BAEeA,KAAK,CAACC,aAAN,CAEL,IAFK,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ModalPresentationContext","React","createContext"],"sources":["ModalPresentationContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nconst ModalPresentationContext = React.createContext(false);\n\nexport default ModalPresentationContext;\n"],"mappings":";;;;;;;AAAA;;;;;;AAEA,MAAMA,wBAAwB,gBAAGC,KAAK,CAACC,aAAN,CAAoB,KAApB,CAAjC;eAEeF,wB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["add","multiply","Animated","conditional","condition","main","fallback","interpolate","inputRange","outputRange"],"sources":["conditional.tsx"],"sourcesContent":["import { Animated } from 'react-native';\n\nconst { add, multiply } = Animated;\n\n/**\n * Use an Animated Node based on a condition. Similar to Reanimated's `cond`.\n *\n * @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`\n * @param main Animated Node to use if the condition is `true`\n * @param fallback Animated Node to use if the condition is `false`\n */\nexport default function conditional(\n condition: Animated.AnimatedInterpolation,\n main: Animated.AnimatedInterpolation,\n fallback: Animated.AnimatedInterpolation\n) {\n // To implement this behavior, we multiply the main node with the condition.\n // So if condition is 0, result will be 0, and if condition is 1, result will be main node.\n // Then we multiple reverse of the condition (0 if condition is 1) with the fallback.\n // So if condition is 0, result will be fallback node, and if condition is 1, result will be 0,\n // This way, one of them will always be 0, and other one will be the value we need.\n // In the end we add them both together, 0 + value we need = value we need\n return add(\n multiply(condition, main),\n multiply(\n condition.interpolate({\n inputRange: [0, 1],\n outputRange: [1, 0],\n }),\n fallback\n )\n );\n}\n"],"mappings":";;;;;;;AAAA;;AAEA,MAAM;EAAEA,GAAF;EAAOC;AAAP,IAAoBC,qBAA1B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACe,SAASC,WAAT,CACbC,SADa,EAEbC,IAFa,EAGbC,QAHa,EAIb;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAON,GAAG,CACRC,QAAQ,CAACG,SAAD,EAAYC,IAAZ,CADA,EAERJ,QAAQ,CACNG,SAAS,CAACG,WAAV,CAAsB;IACpBC,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADQ;IAEpBC,WAAW,EAAE,CAAC,CAAD,EAAI,CAAJ;EAFO,CAAtB,CADM,EAKNH,QALM,CAFA,CAAV;AAUD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["debounce","func","duration","timeout","args","apply","setTimeout","undefined"],"sources":["debounce.tsx"],"sourcesContent":["export default function debounce<T extends (...args: any[]) => void>(\n func: T,\n duration: number\n): T {\n let timeout: NodeJS.Timeout | number | undefined;\n\n return function (this: any, ...args) {\n if (!timeout) {\n // eslint-disable-next-line babel/no-invalid-this\n func.apply(this, args);\n\n timeout = setTimeout(() => {\n timeout = undefined;\n }, duration);\n }\n } as T;\n}\n"],"mappings":";;;;;;;AAAe,SAASA,QAAT,CACbC,IADa,EAEbC,QAFa,EAGV;EACH,IAAIC,OAAJ;EAEA,OAAO,YAA8B;IACnC,IAAI,CAACA,OAAL,EAAc;MAAA,kCADeC,IACf;QADeA,IACf;MAAA;;MACZ;MACAH,IAAI,CAACI,KAAL,CAAW,IAAX,EAAiBD,IAAjB;MAEAD,OAAO,GAAGG,UAAU,CAAC,MAAM;QACzBH,OAAO,GAAGI,SAAV;MACD,CAFmB,EAEjBL,QAFiB,CAApB;IAGD;EACF,CATD;AAUD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["getDistanceForDirection","layout","gestureDirection","multiplier","getInvertedMultiplier","height","width"],"sources":["getDistanceForDirection.tsx"],"sourcesContent":["import type { GestureDirection, Layout } from '../types';\nimport getInvertedMultiplier from './getInvertedMultiplier';\n\nexport default function getDistanceForDirection(\n layout: Layout,\n gestureDirection: GestureDirection\n): number {\n const multiplier = getInvertedMultiplier(gestureDirection);\n\n switch (gestureDirection) {\n case 'vertical':\n case 'vertical-inverted':\n return layout.height * multiplier;\n case 'horizontal':\n case 'horizontal-inverted':\n return layout.width * multiplier;\n }\n}\n"],"mappings":";;;;;;;AACA;;;;AAEe,SAASA,uBAAT,CACbC,MADa,EAEbC,gBAFa,EAGL;EACR,MAAMC,UAAU,GAAG,IAAAC,8BAAA,EAAsBF,gBAAtB,CAAnB;;EAEA,QAAQA,gBAAR;IACE,KAAK,UAAL;IACA,KAAK,mBAAL;MACE,OAAOD,MAAM,CAACI,MAAP,GAAgBF,UAAvB;;IACF,KAAK,YAAL;IACA,KAAK,qBAAL;MACE,OAAOF,MAAM,CAACK,KAAP,GAAeH,UAAtB;EANJ;AAQD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["getInvertedMultiplier","gestureDirection","I18nManager","getConstants","isRTL"],"sources":["getInvertedMultiplier.tsx"],"sourcesContent":["import { I18nManager } from 'react-native';\n\nimport type { GestureDirection } from '../types';\n\nexport default function getInvertedMultiplier(\n gestureDirection: GestureDirection\n): 1 | -1 {\n switch (gestureDirection) {\n case 'vertical':\n return 1;\n case 'vertical-inverted':\n return -1;\n case 'horizontal':\n return I18nManager.getConstants().isRTL ? -1 : 1;\n case 'horizontal-inverted':\n return I18nManager.getConstants().isRTL ? 1 : -1;\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAIe,SAASA,qBAAT,CACbC,gBADa,EAEL;EACR,QAAQA,gBAAR;IACE,KAAK,UAAL;MACE,OAAO,CAAP;;IACF,KAAK,mBAAL;MACE,OAAO,CAAC,CAAR;;IACF,KAAK,YAAL;MACE,OAAOC,wBAAA,CAAYC,YAAZ,GAA2BC,KAA3B,GAAmC,CAAC,CAApC,GAAwC,CAA/C;;IACF,KAAK,qBAAL;MACE,OAAOF,wBAAA,CAAYC,YAAZ,GAA2BC,KAA3B,GAAmC,CAAnC,GAAuC,CAAC,CAA/C;EARJ;AAUD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["memoize","callback","previous","result","hasChanged","dependencies","length","i","undefined"],"sources":["memoize.tsx"],"sourcesContent":["export default function memoize<Result, Deps extends readonly any[]>(\n callback: (...deps: Deps) => Result\n) {\n let previous: Deps | undefined;\n let result: Result | undefined;\n\n return (...dependencies: Deps): Result => {\n let hasChanged = false;\n\n if (previous) {\n if (previous.length !== dependencies.length) {\n hasChanged = true;\n } else {\n for (let i = 0; i < previous.length; i++) {\n if (previous[i] !== dependencies[i]) {\n hasChanged = true;\n break;\n }\n }\n }\n } else {\n hasChanged = true;\n }\n\n previous = dependencies;\n\n if (hasChanged || result === undefined) {\n result = callback(...dependencies);\n }\n\n return result;\n };\n}\n"],"mappings":";;;;;;;AAAe,SAASA,OAAT,CACbC,QADa,EAEb;EACA,IAAIC,QAAJ;EACA,IAAIC,MAAJ;EAEA,OAAO,YAAmC;IACxC,IAAIC,UAAU,GAAG,KAAjB;;IADwC,kCAA/BC,YAA+B;MAA/BA,YAA+B;IAAA;;IAGxC,IAAIH,QAAJ,EAAc;MACZ,IAAIA,QAAQ,CAACI,MAAT,KAAoBD,YAAY,CAACC,MAArC,EAA6C;QAC3CF,UAAU,GAAG,IAAb;MACD,CAFD,MAEO;QACL,KAAK,IAAIG,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,QAAQ,CAACI,MAA7B,EAAqCC,CAAC,EAAtC,EAA0C;UACxC,IAAIL,QAAQ,CAACK,CAAD,CAAR,KAAgBF,YAAY,CAACE,CAAD,CAAhC,EAAqC;YACnCH,UAAU,GAAG,IAAb;YACA;UACD;QACF;MACF;IACF,CAXD,MAWO;MACLA,UAAU,GAAG,IAAb;IACD;;IAEDF,QAAQ,GAAGG,YAAX;;IAEA,IAAID,UAAU,IAAID,MAAM,KAAKK,SAA7B,EAAwC;MACtCL,MAAM,GAAGF,QAAQ,CAAC,GAAGI,YAAJ,CAAjB;IACD;;IAED,OAAOF,MAAP;EACD,CAzBD;AA0BD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["useCardAnimation","animation","React","useContext","CardAnimationContext","undefined","Error"],"sources":["useCardAnimation.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport CardAnimationContext from './CardAnimationContext';\n\nexport default function useCardAnimation() {\n const animation = React.useContext(CardAnimationContext);\n\n if (animation === undefined) {\n throw new Error(\n \"Couldn't find values for card animation. Are you inside a screen in Stack?\"\n );\n }\n\n return animation;\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;AAEe,SAASA,gBAAT,GAA4B;EACzC,MAAMC,SAAS,GAAGC,KAAK,CAACC,UAAN,CAAiBC,6BAAjB,CAAlB;;EAEA,IAAIH,SAAS,KAAKI,SAAlB,EAA6B;IAC3B,MAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;EAGD;;EAED,OAAOL,SAAP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["useGestureHandlerRef","ref","React","useContext","StackGestureRefContext","undefined","Error"],"sources":["useGestureHandlerRef.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport StackGestureRefContext from './GestureHandlerRefContext';\n\nexport default function useGestureHandlerRef() {\n const ref = React.useContext(StackGestureRefContext);\n\n if (ref === undefined) {\n throw new Error(\n \"Couldn't find a ref for gesture handler. Are you inside a screen in Stack?\"\n );\n }\n\n return ref;\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;AAEe,SAASA,oBAAT,GAAgC;EAC7C,MAAMC,GAAG,GAAGC,KAAK,CAACC,UAAN,CAAiBC,iCAAjB,CAAZ;;EAEA,IAAIH,GAAG,KAAKI,SAAZ,EAAuB;IACrB,MAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;EAGD;;EAED,OAAOL,GAAP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["useKeyboardManager","isEnabled","previouslyFocusedTextInputRef","React","useRef","undefined","startTimestampRef","keyboardTimeoutRef","clearKeyboardTimeout","useCallback","current","clearTimeout","onPageChangeStart","input","TextInput","State","currentlyFocusedInput","blur","Date","now","onPageChangeConfirm","force","Keyboard","dismiss","onPageChangeCancel","setTimeout","focus","useEffect"],"sources":["useKeyboardManager.tsx"],"sourcesContent":["import * as React from 'react';\nimport { HostComponent, Keyboard, TextInput } from 'react-native';\n\ntype InputRef = React.ElementRef<HostComponent<unknown>> | undefined;\n\nexport default function useKeyboardManager(isEnabled: () => boolean) {\n // Numeric id of the previously focused text input\n // When a gesture didn't change the tab, we can restore the focused input with this\n const previouslyFocusedTextInputRef = React.useRef<InputRef>(undefined);\n const startTimestampRef = React.useRef<number>(0);\n const keyboardTimeoutRef = React.useRef<any>();\n\n const clearKeyboardTimeout = React.useCallback(() => {\n if (keyboardTimeoutRef.current !== undefined) {\n clearTimeout(keyboardTimeoutRef.current);\n keyboardTimeoutRef.current = undefined;\n }\n }, []);\n\n const onPageChangeStart = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n const input: InputRef = TextInput.State.currentlyFocusedInput();\n\n // When a page change begins, blur the currently focused input\n input?.blur();\n\n // Store the id of this input so we can refocus it if change was cancelled\n previouslyFocusedTextInputRef.current = input;\n\n // Store timestamp for touch start\n startTimestampRef.current = Date.now();\n }, [clearKeyboardTimeout, isEnabled]);\n\n const onPageChangeConfirm = React.useCallback(\n (force: boolean) => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n if (force) {\n // Always dismiss input, even if we don't have a ref to it\n // We might not have the ref if onPageChangeStart was never called\n // This can happen if page change was not from a gesture\n Keyboard.dismiss();\n } else {\n const input = previouslyFocusedTextInputRef.current;\n\n // Dismiss the keyboard only if an input was a focused before\n // This makes sure we don't dismiss input on going back and focusing an input\n input?.blur();\n }\n\n // Cleanup the ID on successful page change\n previouslyFocusedTextInputRef.current = undefined;\n },\n [clearKeyboardTimeout, isEnabled]\n );\n\n const onPageChangeCancel = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n // The page didn't change, we should restore the focus of text input\n const input = previouslyFocusedTextInputRef.current;\n\n if (input) {\n // If the interaction was super short we should make sure keyboard won't hide again.\n\n // Too fast input refocus will result only in keyboard flashing on screen and hiding right away.\n // During first ~100ms keyboard will be dismissed no matter what,\n // so we have to make sure it won't interrupt input refocus logic.\n // That's why when the interaction is shorter than 100ms we add delay so it won't hide once again.\n // Subtracting timestamps makes us sure the delay is executed only when needed.\n if (Date.now() - startTimestampRef.current < 100) {\n keyboardTimeoutRef.current = setTimeout(() => {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }, 100);\n } else {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }\n }\n }, [clearKeyboardTimeout, isEnabled]);\n\n React.useEffect(() => {\n return () => clearKeyboardTimeout();\n }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K,CAAP;AAKD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["GestureHandler.android.tsx"],"
|
|
1
|
+
{"version":3,"names":[],"sources":["GestureHandler.android.tsx"],"sourcesContent":["export * from './GestureHandlerNative';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["GestureHandler.ios.tsx"],"
|
|
1
|
+
{"version":3,"names":[],"sources":["GestureHandler.ios.tsx"],"sourcesContent":["export * from './GestureHandlerNative';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["Dummy","children","PanGestureHandler","GestureHandlerRootView","View","GestureState","UNDETERMINED","FAILED","BEGAN","CANCELLED","ACTIVE","END"],"sources":["GestureHandler.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport type { PanGestureHandlerProperties } from 'react-native-gesture-handler';\n\nconst Dummy: any = ({ children }: { children: React.ReactNode }) => (\n <>{children}</>\n);\n\nexport const PanGestureHandler =\n Dummy as React.ComponentType<PanGestureHandlerProperties>;\n\nexport const GestureHandlerRootView = View;\n\nexport const GestureState = {\n UNDETERMINED: 0,\n FAILED: 1,\n BEGAN: 2,\n CANCELLED: 3,\n ACTIVE: 4,\n END: 5,\n};\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;AAGA,MAAMA,KAAU,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACjB,0CAAGA,QAAH,CADiB;AAAA,CAAnB;;AAIO,MAAMC,iBAAiB,GAC5BF,KADK;;AAGA,MAAMG,sBAAsB,GAAGC,iBAA/B;;AAEA,MAAMC,YAAY,GAAG;EAC1BC,YAAY,EAAE,CADY;EAE1BC,MAAM,EAAE,CAFkB;EAG1BC,KAAK,EAAE,CAHmB;EAI1BC,SAAS,EAAE,CAJe;EAK1BC,MAAM,EAAE,CALkB;EAM1BC,GAAG,EAAE;AANqB,CAArB"}
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
|
|
32
|
-
function _extends() { _extends = Object.assign
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
33
|
|
|
34
34
|
function PanGestureHandler(props) {
|
|
35
35
|
const gestureRef = React.useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["PanGestureHandler","props","gestureRef","React","useRef"],"sources":["GestureHandlerNative.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n PanGestureHandler as PanGestureHandlerNative,\n PanGestureHandlerProperties,\n} from 'react-native-gesture-handler';\n\nimport GestureHandlerRefContext from '../utils/GestureHandlerRefContext';\n\nexport function PanGestureHandler(props: PanGestureHandlerProperties) {\n const gestureRef = React.useRef<PanGestureHandlerNative>(null);\n\n return (\n <GestureHandlerRefContext.Provider value={gestureRef}>\n <PanGestureHandlerNative {...props} ref={gestureRef} />\n </GestureHandlerRefContext.Provider>\n );\n}\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\nexport {\n GestureHandlerRootView,\n State as GestureState,\n} from 'react-native-gesture-handler';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAKA;;;;;;;;;;AAEO,SAASA,iBAAT,CAA2BC,KAA3B,EAA+D;EACpE,MAAMC,UAAU,GAAGC,KAAK,CAACC,MAAN,CAAsC,IAAtC,CAAnB;EAEA,oBACE,oBAAC,iCAAD,CAA0B,QAA1B;IAAmC,KAAK,EAAEF;EAA1C,gBACE,oBAAC,4CAAD,eAA6BD,KAA7B;IAAoC,GAAG,EAAEC;EAAzC,GADF,CADF;AAKD"}
|
|
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
29
|
|
|
30
30
|
var _default = /*#__PURE__*/React.memo(function Header(_ref) {
|
|
31
31
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["React","memo","Header","back","layout","progress","options","route","navigation","styleInterpolator","insets","useSafeAreaInsets","previousTitle","headerBackTitle","undefined","title","goBack","useCallback","debounce","isFocused","canGoBack","dispatch","StackActions","pop","source","key","isModal","useContext","ModalPresentationContext","isParentHeaderShown","HeaderShownContext","statusBarHeight","headerStatusBarHeight","top","getHeaderTitle","name"],"sources":["Header.tsx"],"sourcesContent":["import { getHeaderTitle, HeaderShownContext } from '@react-navigation/elements';\nimport { StackActions } from '@react-navigation/native';\nimport * as React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport type { StackHeaderProps } from '../../types';\nimport debounce from '../../utils/debounce';\nimport ModalPresentationContext from '../../utils/ModalPresentationContext';\nimport HeaderSegment from './HeaderSegment';\n\nexport default React.memo(function Header({\n back,\n layout,\n progress,\n options,\n route,\n navigation,\n styleInterpolator,\n}: StackHeaderProps) {\n const insets = useSafeAreaInsets();\n\n let previousTitle;\n\n // The label for the left back button shows the title of the previous screen\n // If a custom label is specified, we use it, otherwise use previous screen's title\n if (options.headerBackTitle !== undefined) {\n previousTitle = options.headerBackTitle;\n } else if (back) {\n previousTitle = back.title;\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const goBack = React.useCallback(\n debounce(() => {\n if (navigation.isFocused() && navigation.canGoBack()) {\n navigation.dispatch({\n ...StackActions.pop(),\n source: route.key,\n });\n }\n }, 50),\n [navigation, route.key]\n );\n\n const isModal = React.useContext(ModalPresentationContext);\n const isParentHeaderShown = React.useContext(HeaderShownContext);\n\n const statusBarHeight =\n options.headerStatusBarHeight !== undefined\n ? options.headerStatusBarHeight\n : isModal || isParentHeaderShown\n ? 0\n : insets.top;\n\n return (\n <HeaderSegment\n {...options}\n title={getHeaderTitle(options, route.name)}\n progress={progress}\n layout={layout}\n modal={isModal}\n headerBackTitle={\n options.headerBackTitle !== undefined\n ? options.headerBackTitle\n : previousTitle\n }\n headerStatusBarHeight={statusBarHeight}\n onGoBack={back ? goBack : undefined}\n styleInterpolator={styleInterpolator}\n />\n );\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;;;;;;;;;4BAEeA,KAAK,CAACC,IAAN,CAAW,SAASC,MAAT,OAQL;EAAA,IARqB;IACxCC,IADwC;IAExCC,MAFwC;IAGxCC,QAHwC;IAIxCC,OAJwC;IAKxCC,KALwC;IAMxCC,UANwC;IAOxCC;EAPwC,CAQrB;EACnB,MAAMC,MAAM,GAAG,IAAAC,6CAAA,GAAf;EAEA,IAAIC,aAAJ,CAHmB,CAKnB;EACA;;EACA,IAAIN,OAAO,CAACO,eAAR,KAA4BC,SAAhC,EAA2C;IACzCF,aAAa,GAAGN,OAAO,CAACO,eAAxB;EACD,CAFD,MAEO,IAAIV,IAAJ,EAAU;IACfS,aAAa,GAAGT,IAAI,CAACY,KAArB;EACD,CAXkB,CAanB;;;EACA,MAAMC,MAAM,GAAGhB,KAAK,CAACiB,WAAN,CACb,IAAAC,iBAAA,EAAS,MAAM;IACb,IAAIV,UAAU,CAACW,SAAX,MAA0BX,UAAU,CAACY,SAAX,EAA9B,EAAsD;MACpDZ,UAAU,CAACa,QAAX,CAAoB,EAClB,GAAGC,oBAAA,CAAaC,GAAb,EADe;QAElBC,MAAM,EAAEjB,KAAK,CAACkB;MAFI,CAApB;IAID;EACF,CAPD,EAOG,EAPH,CADa,EASb,CAACjB,UAAD,EAAaD,KAAK,CAACkB,GAAnB,CATa,CAAf;EAYA,MAAMC,OAAO,GAAG1B,KAAK,CAAC2B,UAAN,CAAiBC,iCAAjB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