{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/pages/TimelineDemo.js\";\n\nimport React from 'react';\nimport { Button } from 'primereact/button';\nimport { Card } from 'primereact/card';\nimport { Timeline } from 'primereact/timeline';\nimport classNames from 'classnames';\n\nvar TimelineDemo = function TimelineDemo() {\n var customEvents = [{\n status: 'Ordered',\n date: '15/10/2020 10:30',\n icon: 'pi pi-shopping-cart',\n color: '#9C27B0',\n image: 'game-controller.jpg'\n }, {\n status: 'Processing',\n date: '15/10/2020 14:00',\n icon: 'pi pi-cog',\n color: '#673AB7'\n }, {\n status: 'Shipped',\n date: '15/10/2020 16:15',\n icon: 'pi pi-envelope',\n color: '#FF9800'\n }, {\n status: 'Delivered',\n date: '16/10/2020 10:00',\n icon: 'pi pi-check',\n color: '#607D8B'\n }];\n var horizontalEvents = ['2020', '2021', '2022', '2023'];\n\n var customizedContent = function customizedContent(item) {\n return /*#__PURE__*/React.createElement(Card, {\n title: item.status,\n subTitle: item.date,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, item.image && /*#__PURE__*/React.createElement(\"img\", {\n src: \"assets/demo/images/product/\".concat(item.image),\n onError: function onError(e) {\n return e.target.src = 'https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png';\n },\n alt: item.name,\n width: 200,\n className: \"shadow-2 mb-3\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 33\n }\n }), /*#__PURE__*/React.createElement(\"p\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 17\n }\n }, \"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!\"), /*#__PURE__*/React.createElement(Button, {\n label: \"Read more\",\n className: \"p-button-text\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 17\n }\n }));\n };\n\n var customizedMarker = function customizedMarker(item) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"flex w-2rem h-2rem align-items-center justify-content-center text-white border-circle z-1 shadow-2\",\n style: {\n backgroundColor: item.color\n },\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: classNames('marker-icon', item.icon),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }\n }));\n };\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"grid timeline-demo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 12\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"col-12\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h4\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 17\n }\n }, \"Timeline\"), /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 17\n }\n }, \"Custom Timeline\"), /*#__PURE__*/React.createElement(Timeline, {\n value: customEvents,\n align: \"alternate\",\n className: \"customized-timeline\",\n marker: customizedMarker,\n content: customizedContent,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"h5\", {\n style: {\n marginTop: '5em'\n },\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 17\n }\n }, \"Horizontal - Alternate Align\"), /*#__PURE__*/React.createElement(Timeline, {\n value: horizontalEvents,\n layout: \"horizontal\",\n align: \"alternate\",\n content: function content(item) {\n return item;\n },\n opposite: /*#__PURE__*/React.createElement(\"span\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 125\n }\n }, \"\\xA0\"),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 17\n }\n }))));\n};\n\nvar comparisonFn = function comparisonFn(prevProps, nextProps) {\n return prevProps.location.pathname === nextProps.location.pathname;\n};\n\nexport default React.memo(TimelineDemo, comparisonFn);","map":{"version":3,"names":["React","Button","Card","Timeline","classNames","TimelineDemo","customEvents","status","date","icon","color","image","horizontalEvents","customizedContent","item","e","target","src","name","customizedMarker","backgroundColor","marginTop","comparisonFn","prevProps","nextProps","location","pathname","memo"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/pages/TimelineDemo.js"],"sourcesContent":["import React from 'react';\nimport { Button } from 'primereact/button';\nimport { Card } from 'primereact/card';\nimport { Timeline } from 'primereact/timeline';\nimport classNames from 'classnames';\n\nconst TimelineDemo = () => {\n const customEvents = [\n {\n status: 'Ordered',\n date: '15/10/2020 10:30',\n icon: 'pi pi-shopping-cart',\n color: '#9C27B0',\n image: 'game-controller.jpg'\n },\n { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },\n { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-envelope', color: '#FF9800' },\n { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }\n ];\n\n const horizontalEvents = [\n '2020', '2021', '2022', '2023'\n ];\n\n\n const customizedContent = (item) => {\n return (\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt\n quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!