{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nimport React, { Component } from \"react\";\nimport times from \"lodash/times\";\nimport View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport Animated from \"react-native-web/dist/exports/Animated\";\nimport PanResponder from \"react-native-web/dist/exports/PanResponder\";\nimport Image from \"react-native-web/dist/exports/Image\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport Dimensions from \"react-native-web/dist/exports/Dimensions\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar STAR_IMAGE = require(\"./images/star.png\");\nvar HEART_IMAGE = require(\"./images/heart.png\");\nvar ROCKET_IMAGE = require(\"./images/rocket.png\");\nvar BELL_IMAGE = require(\"./images/bell.png\");\nvar TYPES = {\n star: {\n source: STAR_IMAGE,\n color: \"#f1c40f\",\n backgroundColor: \"white\"\n },\n heart: {\n source: HEART_IMAGE,\n color: \"#e74c3c\",\n backgroundColor: \"white\"\n },\n rocket: {\n source: ROCKET_IMAGE,\n color: \"#2ecc71\",\n backgroundColor: \"white\"\n },\n bell: {\n source: BELL_IMAGE,\n color: \"#f39c12\",\n backgroundColor: \"white\"\n },\n custom: {}\n};\nvar fractionsType = function fractionsType(props, propName, componentName) {\n if (props[propName]) {\n var value = props[propName];\n if (typeof value === \"number\") {\n return value >= 0 && value <= 20 ? null : new Error(\"`\" + propName + \"` in `\" + componentName + \"` must be between 0 and 20\");\n }\n return new Error(\"`\" + propName + \"` in `\" + componentName + \"` must be a number\");\n }\n};\nvar SwipeRating = function (_Component) {\n _inherits(SwipeRating, _Component);\n var _super = _createSuper(SwipeRating);\n function SwipeRating(props) {\n var _this;\n _classCallCheck(this, SwipeRating);\n _this = _super.call(this, props);\n var _this$props = _this.props,\n onStartRating = _this$props.onStartRating,\n onSwipeRating = _this$props.onSwipeRating,\n onFinishRating = _this$props.onFinishRating,\n fractions = _this$props.fractions;\n var position = new Animated.ValueXY();\n var panResponder = PanResponder.create({\n onStartShouldSetPanResponder: function onStartShouldSetPanResponder() {\n return true;\n },\n onPanResponderGrant: function onPanResponderGrant(event, gesture) {\n var newPosition = new Animated.ValueXY();\n var tapPositionX = gesture.x0 - _this.state.centerX + gesture.dx;\n newPosition.setValue({\n x: tapPositionX,\n y: 0\n });\n if (_this.state.isComponentMounted) {\n _this.setState({\n position: newPosition,\n value: tapPositionX\n });\n var rating = _this.getCurrentRating(tapPositionX);\n if (typeof onStartRating === \"function\") {\n onStartRating(rating);\n }\n }\n },\n onPanResponderMove: function onPanResponderMove(event, gesture) {\n var newPosition = new Animated.ValueXY();\n var tapPositionX = gesture.x0 - _this.state.centerX + gesture.dx;\n newPosition.setValue({\n x: tapPositionX,\n y: 0\n });\n if (_this.state.isComponentMounted) {\n _this.setState({\n position: newPosition,\n value: tapPositionX\n });\n var rating = _this.getCurrentRating(tapPositionX);\n if (typeof onSwipeRating === \"function\") {\n onSwipeRating(rating);\n }\n }\n },\n onPanResponderRelease: function onPanResponderRelease() {\n var rating = _this.getCurrentRating(_this.state.value);\n if (rating >= _this.props.minValue) {\n if (!fractions) {\n _this.setCurrentRating(rating);\n }\n if (typeof onFinishRating === \"function\") {\n onFinishRating(rating);\n }\n }\n }\n });\n _this.state = {\n panResponder: panResponder,\n position: position,\n display: false,\n isComponentMounted: false\n };\n return _this;\n }\n _createClass(SwipeRating, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n try {\n this.setState({\n display: true,\n isComponentMounted: true\n }, function () {\n return _this2.setCurrentRating(_this2.props.startingValue);\n });\n } catch (err) {\n console.log(err);\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.props.startingValue !== prevProps.startingValue) {\n this.setCurrentRating(this.props.startingValue);\n }\n }\n }, {\n key: \"handleLayoutChange\",\n value: function handleLayoutChange() {\n var _this3 = this;\n this.ratingRef.measure(function (fx, fy, width, height, px) {\n var halfWidth = width / 2;\n var pageXWithinWindow = px % Dimensions.get(\"window\").width;\n _this3.setState({\n centerX: pageXWithinWindow + halfWidth\n });\n });\n }\n }, {\n key: \"getPrimaryViewStyle\",\n value: function getPrimaryViewStyle() {\n var position = this.state.position;\n var _this$props2 = this.props,\n imageSize = _this$props2.imageSize,\n ratingCount = _this$props2.ratingCount,\n type = _this$props2.type;\n var color = TYPES[type].color;\n var width = position.x.interpolate({\n inputRange: [-ratingCount * (imageSize / 2), 0, ratingCount * (imageSize / 2)],\n outputRange: [0, ratingCount * imageSize / 2, ratingCount * imageSize],\n extrapolate: \"clamp\"\n }, {\n useNativeDriver: true\n });\n return {\n backgroundColor: color,\n width: width,\n height: width ? imageSize : 0\n };\n }\n }, {\n key: \"getSecondaryViewStyle\",\n value: function getSecondaryViewStyle() {\n var position = this.state.position;\n var _this$props3 = this.props,\n imageSize = _this$props3.imageSize,\n ratingCount = _this$props3.ratingCount,\n type = _this$props3.type;\n var backgroundColor = TYPES[type].backgroundColor;\n var width = position.x.interpolate({\n inputRange: [-ratingCount * (imageSize / 2), 0, ratingCount * (imageSize / 2)],\n outputRange: [ratingCount * imageSize, ratingCount * imageSize / 2, 0],\n extrapolate: \"clamp\"\n }, {\n useNativeDriver: true\n });\n return {\n backgroundColor: backgroundColor,\n width: width,\n height: width ? imageSize : 0\n };\n }\n }, {\n key: \"renderRatings\",\n value: function renderRatings() {\n var _this$props4 = this.props,\n imageSize = _this$props4.imageSize,\n ratingCount = _this$props4.ratingCount,\n type = _this$props4.type,\n tintColor = _this$props4.tintColor;\n var source = TYPES[type].source;\n return times(ratingCount, function (index) {\n return _jsx(View, {\n style: styles.starContainer,\n children: _jsx(Image, {\n source: source,\n style: {\n width: imageSize,\n height: imageSize,\n tintColor: tintColor\n }\n })\n }, index);\n });\n }\n }, {\n key: \"getCurrentRating\",\n value: function getCurrentRating(value) {\n var _this$props5 = this.props,\n fractions = _this$props5.fractions,\n imageSize = _this$props5.imageSize,\n ratingCount = _this$props5.ratingCount;\n var startingValue = ratingCount / 2;\n var currentRating = this.props.minValue ? this.props.minValue : 0;\n if (value > ratingCount * imageSize / 2) {\n currentRating = ratingCount;\n } else if (value < -ratingCount * imageSize / 2) {\n currentRating = this.props.minValue ? this.props.minValue : 0;\n } else if (value <= imageSize || value > imageSize) {\n var diff = value / imageSize;\n currentRating = startingValue + diff;\n currentRating = fractions ? Number(currentRating.toFixed(fractions)) : Math.ceil(currentRating);\n } else {\n currentRating = fractions ? Number(startingValue.toFixed(fractions)) : Math.ceil(startingValue);\n }\n if (this.props.jumpValue > 0 && this.props.jumpValue < this.props.ratingCount) {\n return Math.ceil(currentRating * (1 / this.props.jumpValue)) / (1 / this.props.jumpValue);\n } else {\n return currentRating;\n }\n }\n }, {\n key: \"setCurrentRating\",\n value: function setCurrentRating(rating) {\n var _this$props6 = this.props,\n imageSize = _this$props6.imageSize,\n ratingCount = _this$props6.ratingCount;\n var initialRating = ratingCount / 2;\n var value = null;\n if (rating > ratingCount) {\n value = ratingCount * imageSize / 2;\n } else if (rating < 0) {\n value = -ratingCount * imageSize / 2;\n } else if (rating < ratingCount / 2 || rating > ratingCount / 2) {\n value = (rating - initialRating) * imageSize;\n } else {\n value = 0;\n }\n var newPosition = new Animated.ValueXY();\n newPosition.setValue({\n x: value,\n y: 0\n });\n if (this.state.isComponentMounted) {\n this.setState({\n position: newPosition,\n value: value\n });\n }\n }\n }, {\n key: \"displayCurrentRating\",\n value: function displayCurrentRating() {\n var _this$props7 = this.props,\n ratingCount = _this$props7.ratingCount,\n type = _this$props7.type,\n readonly = _this$props7.readonly,\n showReadOnlyText = _this$props7.showReadOnlyText,\n ratingTextColor = _this$props7.ratingTextColor;\n var color = ratingTextColor || TYPES[type].color;\n return _jsxs(View, {\n style: styles.showRatingView,\n children: [_jsxs(View, {\n style: styles.ratingView,\n children: [_jsx(Text, {\n style: [styles.ratingText, {\n color: color\n }],\n children: \"Rating: \"\n }), _jsx(Text, {\n style: [styles.currentRatingText, {\n color: color\n }],\n children: this.getCurrentRating(this.state.value)\n }), _jsxs(Text, {\n style: [styles.maxRatingText, {\n color: color\n }],\n children: [\"/\", ratingCount]\n })]\n }), _jsx(View, {\n children: readonly && showReadOnlyText && _jsx(Text, {\n style: [styles.readonlyLabel, {\n color: color\n }],\n children: \"(readonly)\"\n })\n })]\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n var _this$props8 = this.props,\n readonly = _this$props8.readonly,\n type = _this$props8.type,\n ratingImage = _this$props8.ratingImage,\n ratingColor = _this$props8.ratingColor,\n ratingBackgroundColor = _this$props8.ratingBackgroundColor,\n style = _this$props8.style,\n showRating = _this$props8.showRating;\n if (type === \"custom\") {\n var custom = {\n source: ratingImage,\n color: ratingColor,\n backgroundColor: ratingBackgroundColor\n };\n TYPES.custom = custom;\n }\n return this.state.display ? _jsxs(View, {\n pointerEvents: readonly ? \"none\" : \"auto\",\n style: style,\n children: [showRating && this.displayCurrentRating(), _jsxs(View, _objectSpread(_objectSpread({\n style: styles.starsWrapper\n }, this.state.panResponder.panHandlers), {}, {\n children: [_jsxs(View, {\n style: styles.starsInsideWrapper,\n onLayout: function onLayout() {\n _this4.handleLayoutChange();\n },\n ref: function ref(view) {\n _this4.ratingRef = view;\n },\n children: [_jsx(Animated.View, {\n style: this.getPrimaryViewStyle()\n }), _jsx(Animated.View, {\n style: this.getSecondaryViewStyle()\n })]\n }), this.renderRatings()]\n }))]\n }) : null;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.setState({\n isComponentMounted: false\n });\n }\n }]);\n return SwipeRating;\n}(Component);\nexport { SwipeRating as default };\nSwipeRating.defaultProps = {\n type: \"star\",\n ratingImage: STAR_IMAGE,\n ratingColor: \"#f1c40f\",\n ratingBackgroundColor: \"white\",\n ratingCount: 5,\n showReadOnlyText: true,\n imageSize: 40,\n minValue: 0,\n jumpValue: 0\n};\nvar styles = StyleSheet.create({\n starsWrapper: {\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n starsInsideWrapper: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n showRatingView: {\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n paddingBottom: 5\n },\n ratingView: {\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n paddingBottom: 5\n },\n ratingText: {\n fontSize: 15,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495e\"\n },\n readonlyLabel: {\n justifyContent: \"center\",\n alignItems: \"center\",\n fontSize: 12,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495a\"\n },\n currentRatingText: {\n fontSize: 30,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null\n },\n maxRatingText: {\n fontSize: 18,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495e\"\n }\n});","map":{"version":3,"names":["React","Component","times","STAR_IMAGE","require","HEART_IMAGE","ROCKET_IMAGE","BELL_IMAGE","TYPES","star","source","color","backgroundColor","heart","rocket","bell","custom","fractionsType","props","propName","componentName","value","Error","SwipeRating","onStartRating","onSwipeRating","onFinishRating","fractions","position","Animated","ValueXY","panResponder","PanResponder","create","onStartShouldSetPanResponder","onPanResponderGrant","event","gesture","newPosition","tapPositionX","x0","state","centerX","dx","setValue","x","y","isComponentMounted","setState","rating","getCurrentRating","onPanResponderMove","onPanResponderRelease","minValue","setCurrentRating","display","startingValue","err","console","log","prevProps","ratingRef","measure","fx","fy","width","height","px","halfWidth","pageXWithinWindow","Dimensions","get","imageSize","ratingCount","type","interpolate","inputRange","outputRange","extrapolate","useNativeDriver","tintColor","index","styles","starContainer","currentRating","diff","Number","toFixed","Math","ceil","jumpValue","initialRating","readonly","showReadOnlyText","ratingTextColor","showRatingView","ratingView","ratingText","currentRatingText","maxRatingText","readonlyLabel","ratingImage","ratingColor","ratingBackgroundColor","style","showRating","displayCurrentRating","starsWrapper","panHandlers","starsInsideWrapper","handleLayoutChange","view","getPrimaryViewStyle","getSecondaryViewStyle","renderRatings","defaultProps","StyleSheet","flexDirection","justifyContent","alignItems","top","left","right","bottom","paddingBottom","fontSize","textAlign","fontFamily","Platform","OS"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-ratings/dist/SwipeRating.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport times from \"lodash/times\";\nimport { View, Text, Animated, PanResponder, Image, StyleSheet, Platform, Dimensions } from \"react-native\";\n// RATING IMAGES WITH STATIC BACKGROUND COLOR (white)\nconst STAR_IMAGE = require(\"./images/star.png\");\nconst HEART_IMAGE = require(\"./images/heart.png\");\nconst ROCKET_IMAGE = require(\"./images/rocket.png\");\nconst BELL_IMAGE = require(\"./images/bell.png\");\nconst TYPES = {\n star: {\n source: STAR_IMAGE,\n color: \"#f1c40f\",\n backgroundColor: \"white\"\n },\n heart: {\n source: HEART_IMAGE,\n color: \"#e74c3c\",\n backgroundColor: \"white\"\n },\n rocket: {\n source: ROCKET_IMAGE,\n color: \"#2ecc71\",\n backgroundColor: \"white\"\n },\n bell: {\n source: BELL_IMAGE,\n color: \"#f39c12\",\n backgroundColor: \"white\"\n },\n custom: {}\n};\nconst fractionsType = (props, propName, componentName) => {\n if (props[propName]) {\n const value = props[propName];\n if (typeof value === \"number\") {\n return value >= 0 && value <= 20 ?\n null :\n new Error(`\\`${propName}\\` in \\`${componentName}\\` must be between 0 and 20`);\n }\n return new Error(`\\`${propName}\\` in \\`${componentName}\\` must be a number`);\n }\n};\nexport default class SwipeRating extends Component {\n constructor(props) {\n super(props);\n const { onStartRating, onSwipeRating, onFinishRating, fractions } = this.props;\n const position = new Animated.ValueXY();\n const panResponder = PanResponder.create({\n onStartShouldSetPanResponder: () => true,\n onPanResponderGrant: (event, gesture) => {\n const newPosition = new Animated.ValueXY();\n const tapPositionX = gesture.x0 - this.state.centerX + gesture.dx;\n newPosition.setValue({ x: tapPositionX, y: 0 });\n if (this.state.isComponentMounted) {\n this.setState({ position: newPosition, value: tapPositionX });\n const rating = this.getCurrentRating(tapPositionX);\n if (typeof onStartRating === \"function\") {\n onStartRating(rating);\n }\n }\n },\n onPanResponderMove: (event, gesture) => {\n const newPosition = new Animated.ValueXY();\n const tapPositionX = gesture.x0 - this.state.centerX + gesture.dx;\n newPosition.setValue({ x: tapPositionX, y: 0 });\n if (this.state.isComponentMounted) {\n this.setState({ position: newPosition, value: tapPositionX });\n const rating = this.getCurrentRating(tapPositionX);\n if (typeof onSwipeRating === \"function\") {\n onSwipeRating(rating);\n }\n }\n },\n onPanResponderRelease: () => {\n const rating = this.getCurrentRating(this.state.value);\n if (rating >= this.props.minValue) {\n if (!fractions) {\n // 'round up' to the nearest rating image\n this.setCurrentRating(rating);\n }\n if (typeof onFinishRating === \"function\") {\n onFinishRating(rating);\n }\n }\n }\n });\n this.state = {\n panResponder,\n position,\n display: false,\n isComponentMounted: false\n };\n }\n componentDidMount() {\n try {\n this.setState({ display: true, isComponentMounted: true }, () => this.setCurrentRating(this.props.startingValue));\n }\n catch (err) {\n // eslint-disable-next-line no-console\n console.log(err);\n }\n }\n componentDidUpdate(prevProps) {\n if (this.props.startingValue !== prevProps.startingValue) {\n this.setCurrentRating(this.props.startingValue);\n }\n }\n handleLayoutChange() {\n // eslint-disable-next-line max-params\n this.ratingRef.measure((fx, fy, width, height, px) => {\n const halfWidth = width / 2;\n const pageXWithinWindow = px % Dimensions.get(\"window\").width;\n this.setState({\n centerX: pageXWithinWindow + halfWidth\n });\n });\n }\n getPrimaryViewStyle() {\n const { position } = this.state;\n const { imageSize, ratingCount, type } = this.props;\n const { color } = TYPES[type];\n const width = position.x.interpolate({\n inputRange: [\n -ratingCount * (imageSize / 2),\n 0,\n ratingCount * (imageSize / 2)\n ],\n outputRange: [\n 0,\n ratingCount * imageSize / 2,\n ratingCount * imageSize\n ],\n extrapolate: \"clamp\"\n }, {\n useNativeDriver: true\n });\n return {\n backgroundColor: color,\n width,\n height: width ? imageSize : 0\n };\n }\n getSecondaryViewStyle() {\n const { position } = this.state;\n const { imageSize, ratingCount, type } = this.props;\n const { backgroundColor } = TYPES[type];\n const width = position.x.interpolate({\n inputRange: [\n -ratingCount * (imageSize / 2),\n 0,\n ratingCount * (imageSize / 2)\n ],\n outputRange: [\n ratingCount * imageSize,\n ratingCount * imageSize / 2,\n 0\n ],\n extrapolate: \"clamp\"\n }, {\n useNativeDriver: true\n });\n return {\n backgroundColor,\n width,\n height: width ? imageSize : 0\n };\n }\n renderRatings() {\n const { imageSize, ratingCount, type, tintColor } = this.props;\n const { source } = TYPES[type];\n return times(ratingCount, index => \n \n );\n }\n // eslint-disable-next-line max-statements\n getCurrentRating(value) {\n const { fractions, imageSize, ratingCount } = this.props;\n const startingValue = ratingCount / 2;\n let currentRating = this.props.minValue ? this.props.minValue : 0;\n if (value > ratingCount * imageSize / 2) {\n currentRating = ratingCount;\n }\n else if (value < -ratingCount * imageSize / 2) {\n currentRating = this.props.minValue ? this.props.minValue : 0;\n }\n else if (value <= imageSize || value > imageSize) {\n const diff = value / imageSize;\n currentRating = startingValue + diff;\n currentRating = fractions ?\n Number(currentRating.toFixed(fractions)) :\n Math.ceil(currentRating);\n }\n else {\n currentRating = fractions ?\n Number(startingValue.toFixed(fractions)) :\n Math.ceil(startingValue);\n }\n if (this.props.jumpValue > 0 &&\n this.props.jumpValue < this.props.ratingCount) {\n return (Math.ceil(currentRating * (1 / this.props.jumpValue)) /\n (1 / this.props.jumpValue));\n }\n else {\n return currentRating;\n }\n }\n // eslint-disable-next-line max-statements\n setCurrentRating(rating) {\n const { imageSize, ratingCount } = this.props;\n // `initialRating` corresponds to `startingValue` in the getter. Naming it\n // Differently here avoids confusion with `value` below.\n const initialRating = ratingCount / 2;\n let value = null;\n if (rating > ratingCount) {\n value = ratingCount * imageSize / 2;\n }\n else if (rating < 0) {\n value = -ratingCount * imageSize / 2;\n }\n else if (rating < ratingCount / 2 || rating > ratingCount / 2) {\n value = (rating - initialRating) * imageSize;\n }\n else {\n value = 0;\n }\n const newPosition = new Animated.ValueXY();\n newPosition.setValue({ x: value, y: 0 });\n if (this.state.isComponentMounted) {\n this.setState({ position: newPosition, value });\n }\n }\n displayCurrentRating() {\n const { ratingCount, type, readonly, showReadOnlyText, ratingTextColor } = this.props;\n const color = ratingTextColor || TYPES[type].color;\n return (\n \n Rating: \n \n {this.getCurrentRating(this.state.value)}\n \n /{ratingCount}\n \n \n {readonly && showReadOnlyText &&\n (readonly)}\n \n );\n }\n render() {\n const { readonly, type, ratingImage, ratingColor, ratingBackgroundColor, style, showRating } = this.props;\n if (type === \"custom\") {\n const custom = {\n source: ratingImage,\n color: ratingColor,\n backgroundColor: ratingBackgroundColor\n };\n TYPES.custom = custom;\n }\n return this.state.display ?\n \n {showRating && this.displayCurrentRating()}\n \n {\n this.handleLayoutChange();\n }} ref={view => {\n this.ratingRef = view;\n }}>\n \n \n \n {this.renderRatings()}\n \n :\n null;\n }\n componentWillUnmount() {\n this.setState({ isComponentMounted: false });\n }\n}\nSwipeRating.defaultProps = {\n type: \"star\",\n ratingImage: STAR_IMAGE,\n ratingColor: \"#f1c40f\",\n ratingBackgroundColor: \"white\",\n ratingCount: 5,\n showReadOnlyText: true,\n imageSize: 40,\n minValue: 0,\n jumpValue: 0\n};\nconst styles = StyleSheet.create({\n starsWrapper: {\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n starsInsideWrapper: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n showRatingView: {\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n paddingBottom: 5\n },\n ratingView: {\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n paddingBottom: 5\n },\n ratingText: {\n fontSize: 15,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495e\"\n },\n readonlyLabel: {\n justifyContent: \"center\",\n alignItems: \"center\",\n fontSize: 12,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495a\"\n },\n currentRatingText: {\n fontSize: 30,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null\n },\n maxRatingText: {\n fontSize: 18,\n textAlign: \"center\",\n fontFamily: Platform.OS === \"ios\" ? \"Trebuchet MS\" : null,\n color: \"#34495e\"\n }\n});\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,KAAK,MAAM,cAAc;AAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGjC,IAAMC,UAAU,GAAGC,OAAO,qBAAqB;AAC/C,IAAMC,WAAW,GAAGD,OAAO,sBAAsB;AACjD,IAAME,YAAY,GAAGF,OAAO,uBAAuB;AACnD,IAAMG,UAAU,GAAGH,OAAO,qBAAqB;AAC/C,IAAMI,KAAK,GAAG;EACVC,IAAI,EAAE;IACFC,MAAM,EAAEP,UAAU;IAClBQ,KAAK,EAAE,SAAS;IAChBC,eAAe,EAAE;EACrB,CAAC;EACDC,KAAK,EAAE;IACHH,MAAM,EAAEL,WAAW;IACnBM,KAAK,EAAE,SAAS;IAChBC,eAAe,EAAE;EACrB,CAAC;EACDE,MAAM,EAAE;IACJJ,MAAM,EAAEJ,YAAY;IACpBK,KAAK,EAAE,SAAS;IAChBC,eAAe,EAAE;EACrB,CAAC;EACDG,IAAI,EAAE;IACFL,MAAM,EAAEH,UAAU;IAClBI,KAAK,EAAE,SAAS;IAChBC,eAAe,EAAE;EACrB,CAAC;EACDI,MAAM,EAAE,CAAC;AACb,CAAC;AACD,IAAMC,aAAa,GAAG,SAAhBA,aAAa,CAAIC,KAAK,EAAEC,QAAQ,EAAEC,aAAa,EAAK;EACtD,IAAIF,KAAK,CAACC,QAAQ,CAAC,EAAE;I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