{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/components/FileDemo.js\";\n\nimport React, { useRef } from 'react';\nimport { FileUpload } from 'primereact/fileupload';\n\nvar FileDemo = function FileDemo() {\n var toast = useRef(null);\n\n var onUpload = function onUpload() {\n toast.current.show({\n severity: 'info',\n summary: 'Success',\n detail: 'File Uploaded',\n life: 3000\n });\n };\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"grid\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"col-12\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }\n }, \"Advanced\"), /*#__PURE__*/React.createElement(FileUpload, {\n name: \"demo[]\",\n url: \"./upload.php\",\n onUpload: onUpload,\n multiple: true,\n accept: \"image/*\",\n maxFileSize: 1000000,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }, \"Basic\"), /*#__PURE__*/React.createElement(FileUpload, {\n mode: \"basic\",\n name: \"demo[]\",\n url: \"./upload.php\",\n accept: \"image/*\",\n maxFileSize: 1000000,\n onUpload: onUpload,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }))));\n};\n\nvar comparisonFn = function comparisonFn(prevProps, nextProps) {\n return prevProps.location.pathname === nextProps.location.pathname;\n};\n\nexport default React.memo(FileDemo, comparisonFn);","map":{"version":3,"names":["React","useRef","FileUpload","FileDemo","toast","onUpload","current","show","severity","summary","detail","life","comparisonFn","prevProps","nextProps","location","pathname","memo"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/components/FileDemo.js"],"sourcesContent":["import React, { useRef } from 'react';\nimport { FileUpload } from 'primereact/fileupload';\n\nconst FileDemo = () => {\n const toast = useRef(null);\n\n const onUpload = () => {\n toast.current.show({ severity: 'info', summary: 'Success', detail: 'File Uploaded', life: 3000 });\n }\n\n return (\n