katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/8a8a952ba9a2a424eda3c03975f...

1 line
4.9 KiB
JSON

{"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 <div className=\"grid\">\n <div className=\"col-12\">\n <div className=\"card\">\n <h5>Advanced</h5>\n <FileUpload name=\"demo[]\" url=\"./upload.php\" onUpload={onUpload} multiple accept=\"image/*\" maxFileSize={1000000} />\n\n <h5>Basic</h5>\n <FileUpload mode=\"basic\" name=\"demo[]\" url=\"./upload.php\" accept=\"image/*\" maxFileSize={1000000} onUpload={onUpload} />\n </div>\n </div>\n </div>\n )\n}\n\nconst comparisonFn = function (prevProps, nextProps) {\n return prevProps.location.pathname === nextProps.location.pathname;\n};\n\nexport default React.memo(FileDemo, comparisonFn);\n"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,MAAhB,QAA8B,OAA9B;AACA,SAASC,UAAT,QAA2B,uBAA3B;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,GAAM;EACnB,IAAMC,KAAK,GAAGH,MAAM,CAAC,IAAD,CAApB;;EAEA,IAAMI,QAAQ,GAAG,SAAXA,QAAW,GAAM;IACnBD,KAAK,CAACE,OAAN,CAAcC,IAAd,CAAmB;MAAEC,QAAQ,EAAE,MAAZ;MAAoBC,OAAO,EAAE,SAA7B;MAAwCC,MAAM,EAAE,eAAhD;MAAiEC,IAAI,EAAE;IAAvE,C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