{"ast":null,"code":"var _jsxFileName = \"/Users/amir/Places/src/components/Review/Review.js\";\nimport './Review.css';\nimport { Card, Rate, Col, Row } from 'antd';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nfunction Review(props) {\n  let reviewItems = props.reviews.map(review => /*#__PURE__*/_jsxDEV(\"div\", {\n    children: /*#__PURE__*/_jsxDEV(\"li\", {\n      children: /*#__PURE__*/_jsxDEV(Card, {\n        className: \"review\",\n        size: \"small\",\n        style: {\n          borderRadius: \"10px\"\n        },\n        children: /*#__PURE__*/_jsxDEV(Row, {\n          children: [/*#__PURE__*/_jsxDEV(Col, {\n            lg: 12,\n            className: \"reviewer\",\n            children: /*#__PURE__*/_jsxDEV(\"h2\", {\n              children: review.reviewer\n            }, void 0, false, {\n              fileName: _jsxFileName,\n              lineNumber: 10,\n              columnNumber: 59\n            }, this)\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 10,\n            columnNumber: 25\n          }, this), /*#__PURE__*/_jsxDEV(Col, {\n            lg: 12,\n            className: \"rating\",\n            children: /*#__PURE__*/_jsxDEV(Rate, {\n              allowHalf: true,\n              defaultValue: review.rating\n            }, void 0, false, {\n              fileName: _jsxFileName,\n              lineNumber: 11,\n              columnNumber: 57\n            }, this)\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 11,\n            columnNumber: 25\n          }, this)]\n        }, void 0, true, {\n          fileName: _jsxFileName,\n          lineNumber: 9,\n          columnNumber: 21\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 8,\n        columnNumber: 17\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 7,\n      columnNumber: 13\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 6,\n    columnNumber: 9\n  }, this));\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n      children: props.reviews.length + \" Reviews\"\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 19,\n      columnNumber: 7\n    }, this), /*#__PURE__*/_jsxDEV(\"ul\", {\n      children: reviewItems\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 20,\n      columnNumber: 7\n    }, this)]\n  }, void 0, true, {\n    fileName: _jsxFileName,\n    lineNumber: 18,\n    columnNumber: 5\n  }, this);\n}\n\n_c = Review;\nexport default Review;\n\nvar _c;\n\n$RefreshReg$(_c, \"Review\");","map":{"version":3,"sources":["/Users/amir/Places/src/components/Review/Review.js"],"names":["Card","Rate","Col","Row","Review","props","reviewItems","reviews","map","review","borderRadius","reviewer","rating","length"],"mappings":";AAAA,OAAO,cAAP;AACA,SAASA,IAAT,EAAeC,IAAf,EAAqBC,GAArB,EAA0BC,GAA1B,QAAqC,MAArC;;;AAEA,SAASC,MAAT,CAAgBC,KAAhB,EAAuB;AACnB,MAAIC,WAAW,GAAGD,KAAK,CAACE,OAAN,CAAcC,GAAd,CAAmBC,MAAD,iBAChC;AAAA,2BACI;AAAA,6BACI,QAAC,IAAD;AAAM,QAAA,SAAS,EAAC,QAAhB;AAAyB,QAAA,IAAI,EAAC,OAA9B;AAAsC,QAAA,KAAK,EAAE;AAACC,UAAAA,YAAY,EAAE;AAAf,SAA7C;AAAA,+BACI,QAAC,GAAD;AAAA,kCACI,QAAC,GAAD;AAAK,YAAA,EAAE,EAAE,EAAT;AAAa,YAAA,SAAS,EAAC,UAAvB;AAAA,mCAAkC;AAAA,wBAAKD,MAAM,CAACE;AAAZ;AAAA;AAAA;AAAA;AAAA;AAAlC;AAAA;AAAA;AAAA;AAAA,kBADJ,eAEI,QAAC,GAAD;AAAK,YAAA,EAAE,EAAE,EAAT;AAAa,YAAA,SAAS,EAAC,QAAvB;AAAA,mCAAgC,QAAC,IAAD;AAAM,cAAA,SAAS,MAAf;AAAgB,cAAA,YAAY,EAAEF,MAAM,CAACG;AAArC;AAAA;AAAA;AAAA;AAAA;AAAhC;AAAA;AAAA;AAAA;AAAA,kBAFJ;AAAA;AAAA;AAAA;AAAA;AAAA;AADJ;AAAA;AAAA;AAAA;AAAA;AADJ;AAAA;AAAA;AAAA;AAAA;AADJ;AAAA;AAAA;AAAA;AAAA,UADc,CAAlB;AAYA,sBACA;AAAA,4BACE;AAAA,gBAAKP,KAAK,CAACE,OAAN,CAAcM,MAAd,GAAuB;AAA5B;AAAA;AAAA;AAAA;AAAA,YADF,eAEE;AAAA,gBAAKP;AAAL;AAAA;AAAA;AAAA;AAAA,YAFF;AAAA;AAAA;AAAA;AAAA;AAAA,UADA;AAOH;;KApBQF,M;AAsBT,eAAeA,MAAf","sourcesContent":["import './Review.css'\nimport { Card, Rate, Col, Row } from 'antd';\n\nfunction Review(props) {\n    let reviewItems = props.reviews.map((review) => \n        <div>\n            <li>\n                <Card className=\"review\" size=\"small\" style={{borderRadius: \"10px\"}}>\n                    <Row>\n                        <Col lg={12} className=\"reviewer\"><h2>{review.reviewer}</h2></Col>\n                        <Col lg={12} className=\"rating\"><Rate allowHalf defaultValue={review.rating} /></Col>\n                    </Row>\n                </Card>  \n            </li>   \n        </div>\n    );\n    return (\n    <div>\n      <h1>{props.reviews.length + \" Reviews\"}</h1>\n      <ul>{reviewItems}</ul> \n    </div>\n \n    );\n}\n\nexport default Review;\n"]},"metadata":{},"sourceType":"module"}