GoScrobble/web/node_modules/.cache/babel-loader/6c436fe6f2d75d4512ca7ecbc145d2e3.json

1 line
1.7 KiB
JSON
Raw Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"var _jsxFileName = \"/app/src/Components/FileUploader.js\";\nimport React from 'react';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst FileUploader = ({\n onFileSelect\n}) => {\n const handleFileInput = e => {\n // handle validations here in future\n onFileSelect(e.target.files[0]);\n };\n\n return /*#__PURE__*/_jsxDEV(\"span\", {\n children: /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"file\",\n onChange: handleFileInput\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 13\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 9\n }, this);\n};\n\n_c = FileUploader;\nexport default FileUploader;\n\nvar _c;\n\n$RefreshReg$(_c, \"FileUploader\");","map":{"version":3,"sources":["/app/src/Components/FileUploader.js"],"names":["React","FileUploader","onFileSelect","handleFileInput","e","target","files"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;;AAEA,MAAMC,YAAY,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,KAAoB;AACrC,QAAMC,eAAe,GAAIC,CAAD,IAAO;AAC3B;AACAF,IAAAA,YAAY,CAACE,CAAC,CAACC,MAAF,CAASC,KAAT,CAAe,CAAf,CAAD,CAAZ;AACD,GAHH;;AAKA,sBACI;AAAA,2BACI;AAAO,MAAA,IAAI,EAAC,MAAZ;AAAmB,MAAA,QAAQ,EAAEH;AAA7B;AAAA;AAAA;AAAA;AAAA;AADJ;AAAA;AAAA;AAAA;AAAA,UADJ;AAKH,CAXD;;KAAMF,Y;AAaN,eAAeA,YAAf","sourcesContent":["import React from 'react'\n\nconst FileUploader = ({onFileSelect}) => {\n const handleFileInput = (e) => {\n // handle validations here in future\n onFileSelect(e.target.files[0]);\n };\n\n return (\n <span>\n <input type=\"file\" onChange={handleFileInput} />\n </span>\n )\n}\n\nexport default FileUploader"]},"metadata":{},"sourceType":"module"}