ba605c6ee05848db5823ff8df27a7832.json
4.05 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require(\"react\"));var _View=_interopRequireDefault(require(\"react-native-web/dist/exports/View\"));var _Text=_interopRequireDefault(require(\"react-native-web/dist/exports/Text\"));var _reactRedux=require(\"react-redux\");var _FontAwesome=_interopRequireDefault(require(\"@expo/vector-icons/FontAwesome\"));var _RateSentence=_interopRequireDefault(require(\"../RateSentence/RateSentence\"));var _RateBar=_interopRequireDefault(require(\"../RateBar/RateBar\"));var _RateLine=_interopRequireDefault(require(\"../RateLine/RateLine\"));var _scoring=_interopRequireDefault(require(\"../../lib/scoring\"));var Rate=function Rate(_ref){var score=_ref.score;return _react.default.createElement(_View.default,{style:{flex:1,backgroundColor:'#eee',margin:0,padding:0,justifyContent:'center',alignItems:'center'}},_react.default.createElement(_RateSentence.default,null),_react.default.createElement(_RateBar.default,{score:score}),_react.default.createElement(_RateLine.default,null));};var RateContainer=function RateContainer(_ref2){var score=_ref2.score;return _react.default.createElement(Rate,{score:score});};RateContainer.navigationOptions={title:'평가',tabBarIcon:function tabBarIcon(_ref3){var tintColor=_ref3.tintColor;return _react.default.createElement(_FontAwesome.default,{name:\"bar-chart-o\",color:tintColor,style:{marginLeft:0.5},size:20});}};var _default=(0,_reactRedux.connect)(function(_ref4){var search=_ref4.search;return{score:(0,_scoring.default)(search.result.return_data)};})(RateContainer);exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/components/Rate/Rate.js"],"names":["Rate","score","flex","backgroundColor","margin","padding","justifyContent","alignItems","RateContainer","navigationOptions","title","tabBarIcon","tintColor","marginLeft","search","result","return_data"],"mappings":"mKAAA,oD,gKAEA,uCACA,mFACA,kFACA,mEACA,sEACA,kEAEA,GAAMA,CAAAA,IAAI,CAAG,QAAPA,CAAAA,IAAO,MAAa,IAAXC,CAAAA,KAAW,MAAXA,KAAW,CACtB,MACI,8BAAC,aAAD,EAAM,KAAK,CAAE,CAACC,IAAI,CAAE,CAAP,CAAUC,eAAe,CAAC,MAA1B,CAAkCC,MAAM,CAAC,CAAzC,CAA2CC,OAAO,CAAC,CAAnD,CAAsDC,cAAc,CAAC,QAArE,CAA8EC,UAAU,CAAC,QAAzF,CAAb,EACI,6BAAC,qBAAD,MADJ,CAEI,6BAAC,gBAAD,EAAS,KAAK,CAAEN,KAAhB,EAFJ,CAGI,6BAAC,iBAAD,MAHJ,CADJ,CAOH,CARD,CAUA,GAAMO,CAAAA,aAAa,CAAG,QAAhBA,CAAAA,aAAgB,OAAa,IAAXP,CAAAA,KAAW,OAAXA,KAAW,CAC/B,MAAO,8BAAC,IAAD,EAAM,KAAK,CAAEA,KAAb,EAAP,CACH,CAFD,CAIAO,aAAa,CAACC,iBAAd,CAAgC,CAC5BC,KAAK,CAAC,IADsB,CAE7BC,UAAU,CAAE,8BAAEC,CAAAA,SAAF,OAAEA,SAAF,OAAiB,8BAAC,oBAAD,EAAM,IAAI,CAAC,aAAX,CAAyB,KAAK,CAAEA,SAAhC,CAA6C,KAAK,CAAE,CAACC,UAAU,CAAC,GAAZ,CAApD,CAAsE,IAAI,CAAE,EAA5E,EAAjB,EAFiB,CAAhC,C,aAKe,wBACX,mBAAEC,CAAAA,MAAF,OAAEA,MAAF,OAAa,CACTb,KAAK,CAAE,qBAAQa,MAAM,CAACC,MAAP,CAAcC,WAAtB,CADE,CAAb,EADW,EAIbR,aAJa,C","sourcesContent":["import React from 'react';\r\nimport { View, Text} from 'react-native';\r\nimport {connect} from 'react-redux'\r\nimport Icon from 'react-native-vector-icons/FontAwesome';\r\nimport RateSentence from '../RateSentence/RateSentence';\r\nimport RateBar from '../RateBar/RateBar';\r\nimport RateLine from '../RateLine/RateLine';\r\nimport scoring from '../../lib/scoring';\r\n\r\nconst Rate = ({score}) => {\r\n return(\r\n <View style={{flex: 1, backgroundColor:'#eee', margin:0,padding:0, justifyContent:'center',alignItems:'center'}}>\r\n <RateSentence />\r\n <RateBar score={score}/>\r\n <RateLine />\r\n </View>\r\n )\r\n}\r\n\r\nconst RateContainer = ({score}) => {\r\n return(<Rate score={score} />)\r\n}\r\n\r\nRateContainer.navigationOptions={\r\n title:'평가',\r\n tabBarIcon: ({tintColor})=> (<Icon name=\"bar-chart-o\" color={tintColor} style={{marginLeft:0.5}} size={20} />),\r\n}\r\n\r\nexport default connect(\r\n ({search})=>({\r\n score: scoring(search.result.return_data)\r\n })\r\n)(RateContainer);"]},"metadata":{},"sourceType":"script"}