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Y,EAAW,KAAI,CAAC,EAAW,KAExG,MAAM,EAAe,SAAS,EAAW,IACzC,OAAK,MAAM,OAAO,IAIP,MAAM,cAAc,kBAAmB,CAAE,IAAK,EAAO,UAAW,EAAW,UAAW,IAHrF,MAAM,cAAc,eAAgB,CAAE,IAAK,EAAO,MAAO,EAAO,MAAO,SAAS,GAAY,UAAW,EAAW,gBAAiB,GAI/I,KACC,iBAEE","file":"/npm/rn-animated-number@1.0.4/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/rn-animated-number@1.0.4/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import React from 'react';\nimport { Text, View } from 'react-native';\nimport Animated, { FadeInDown, FadeInUp, useAnimatedStyle, withSpring, withDelay } from 'react-native-reanimated';\nconst defaultAnimationConfig = {\n    stagger: 50,\n    damping: 80,\n    stiffness: 200,\n};\nconst numberToTen = [...Array(10).keys()];\nconst getFontSize = (textStyle) => {\n    const defaultFontSize = 14;\n    return (textStyle?.fontSize ?? defaultFontSize) * 1.2;\n};\nconst AnimatedCharacter = ({ character, textStyle }) => {\n    const fontSize = getFontSize(textStyle);\n    return (React.createElement(Text, { style: [\n            {\n                fontSize: fontSize,\n                lineHeight: fontSize * 1,\n                fontWeight: 'bold',\n            },\n            textStyle,\n        ], key: `character-item-${character}` }, character));\n};\nconst AnimatedColumn = ({ value, index, textStyle, animationConfig = defaultAnimationConfig }) => {\n    const fontSize = getFontSize(textStyle);\n    const { stagger, damping, stiffness } = animationConfig;\n    const animatedStyle = useAnimatedStyle(() => {\n        return {\n            transform: [\n                {\n                    translateY: withDelay((stagger || defaultAnimationConfig.stagger) * index, withSpring(-value * fontSize, {\n                        damping: damping,\n                        stiffness: stiffness,\n                    })),\n                },\n            ],\n        };\n    });\n    return (React.createElement(Animated.View, { style: {\n            height: fontSize,\n            overflow: 'hidden',\n        }, entering: FadeInDown.springify().damping(20).stiffness(200), exiting: FadeInUp.springify().damping(20).stiffness(200) },\n        React.createElement(Animated.View, { style: [animatedStyle] }, numberToTen.map((number) => (React.createElement(AnimatedCharacter, { key: number, character: number, textStyle: textStyle }))))));\n};\nconst AnimatedNumber = ({ value, textStyle, formatter = (val) => val.toString(), animationConfig = defaultAnimationConfig, }) => {\n    const formattedValue = formatter(value);\n    const splitValue = formattedValue.split('');\n    return (React.createElement(View, null,\n        React.createElement(View, { style: { flexDirection: 'row', flexWrap: 'wrap' } }, splitValue.map((character, index) => {\n            // Check if the character is a numeric value\n            const numericValue = parseInt(character, 10);\n            if (!isNaN(Number(numericValue))) {\n                return (React.createElement(AnimatedColumn, { key: index, index: index, value: parseInt(character), textStyle: textStyle, animationConfig: animationConfig }));\n            }\n            else {\n                return React.createElement(AnimatedCharacter, { key: index, character: character, textStyle: textStyle });\n            }\n        }))));\n};\nexport default AnimatedNumber;\n"]}