mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
6.8 KiB
Plaintext
1 line
6.8 KiB
Plaintext
{"dependencies":[{"name":"react-native-web/dist/exports/Platform","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"dV3bI3NOD8bfMzaIniMaFGy/nn8=","exportNames":["*"],"imports":1}},{"name":"buffer","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":41},"end":{"line":2,"column":32,"index":73}}],"key":"L2R9OUI0/cSYwzijo34ce4VujKY=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n exports.fetchText = fetchText;\n var _reactNativeWebDistExportsPlatform = require(_dependencyMap[0], \"react-native-web/dist/exports/Platform\");\n var Platform = _interopDefault(_reactNativeWebDistExportsPlatform);\n var _buffer = require(_dependencyMap[1], \"buffer\");\n async function fetchText(uri) {\n if (!uri) {\n return null;\n }\n if (uri.startsWith('data:image/svg+xml;utf8') && Platform.default.OS === 'android') {\n return dataUriToXml(uri);\n } else if (uri.startsWith('data:image/svg+xml;base64')) {\n return decodeBase64Image(uri);\n } else {\n return fetchUriData(uri);\n }\n }\n const decodeBase64Image = uri => {\n const decoded = decodeURIComponent(uri);\n const splitContent = decoded.split(';')[1].split(',');\n const dataType = splitContent[0];\n const content = splitContent.slice(1).join(',');\n return _buffer.Buffer.from(content, dataType).toString('utf-8');\n };\n function dataUriToXml(uri) {\n try {\n // decode and remove data:image/svg+xml;utf8, prefix\n return decodeURIComponent(uri).split(',').slice(1).join(',');\n } catch (error) {\n throw new Error(`Decoding ${uri} failed with error: ${error}`);\n }\n }\n async function fetchUriData(uri) {\n const response = await fetch(uri);\n if (response.ok || response.status === 0 && uri.startsWith('file://')) {\n return await response.text();\n }\n throw new Error(`Fetching ${uri} failed with status ${response.status}`);\n }\n});","lineCount":50,"map":[[12,2,3,0,"exports"],[12,9,3,0],[12,10,3,0,"fetchText"],[12,19,3,0],[12,22,3,0,"fetchText"],[12,31,3,0],[13,2,14,1],[13,6,14,1,"_reactNativeWebDistExportsPlatform"],[13,40,14,1],[13,43,14,1,"require"],[13,50,14,1],[13,51,14,1,"_dependencyMap"],[13,65,14,1],[14,2,14,1],[14,6,14,1,"Platform"],[14,14,14,1],[14,17,14,1,"_interopDefault"],[14,32,14,1],[14,33,14,1,"_reactNativeWebDistExportsPlatform"],[14,67,14,1],[15,2,2,0],[15,6,2,0,"_buffer"],[15,13,2,0],[15,16,2,0,"require"],[15,23,2,0],[15,24,2,0,"_dependencyMap"],[15,38,2,0],[16,2,3,7],[16,17,3,22,"fetchText"],[16,26,3,31,"fetchText"],[16,27,3,32,"uri"],[16,30,3,35],[16,32,3,37],[17,4,4,2],[17,8,4,6],[17,9,4,7,"uri"],[17,12,4,10],[17,14,4,12],[18,6,5,4],[18,13,5,11],[18,17,5,15],[19,4,6,2],[20,4,7,2],[20,8,7,6,"uri"],[20,11,7,9],[20,12,7,10,"startsWith"],[20,22,7,20],[20,23,7,21],[20,48,7,46],[20,49,7,47],[20,53,7,51,"Platform"],[20,61,7,59],[20,62,7,59,"default"],[20,69,7,59],[20,70,7,60,"OS"],[20,72,7,62],[20,77,7,67],[20,86,7,76],[20,88,7,78],[21,6,8,4],[21,13,8,11,"dataUriToXml"],[21,25,8,23],[21,26,8,24,"uri"],[21,29,8,27],[21,30,8,28],[22,4,9,2],[22,5,9,3],[22,11,9,9],[22,15,9,13,"uri"],[22,18,9,16],[22,19,9,17,"startsWith"],[22,29,9,27],[22,30,9,28],[22,57,9,55],[22,58,9,56],[22,60,9,58],[23,6,10,4],[23,13,10,11,"decodeBase64Image"],[23,30,10,28],[23,31,10,29,"uri"],[23,34,10,32],[23,35,10,33],[24,4,11,2],[24,5,11,3],[24,11,11,9],[25,6,12,4],[25,13,12,11,"fetchUriData"],[25,25,12,23],[25,26,12,24,"uri"],[25,29,12,27],[25,30,12,28],[26,4,13,2],[27,2,14,0],[28,2,15,0],[28,8,15,6,"decodeBase64Image"],[28,25,15,23],[28,28,15,26,"uri"],[28,31,15,29],[28,35,15,33],[29,4,16,2],[29,10,16,8,"decoded"],[29,17,16,15],[29,20,16,18,"decodeURIComponent"],[29,38,16,36],[29,39,16,37,"uri"],[29,42,16,40],[29,43,16,41],[30,4,17,2],[30,10,17,8,"splitContent"],[30,22,17,20],[30,25,17,23,"decoded"],[30,32,17,30],[30,33,17,31,"split"],[30,38,17,36],[30,39,17,37],[30,42,17,40],[30,43,17,41],[30,44,17,42],[30,45,17,43],[30,46,17,44],[30,47,17,45,"split"],[30,52,17,50],[30,53,17,51],[30,56,17,54],[30,57,17,55],[31,4,18,2],[31,10,18,8,"dataType"],[31,18,18,16],[31,21,18,19,"splitContent"],[31,33,18,31],[31,34,18,32],[31,35,18,33],[31,36,18,34],[32,4,19,2],[32,10,19,8,"content"],[32,17,19,15],[32,20,19,18,"splitContent"],[32,32,19,30],[32,33,19,31,"slice"],[32,38,19,36],[32,39,19,37],[32,40,19,38],[32,41,19,39],[32,42,19,40,"join"],[32,46,19,44],[32,47,19,45],[32,50,19,48],[32,51,19,49],[33,4,20,2],[33,11,20,9,"Buffer"],[33,18,20,15],[33,19,20,15,"Buffer"],[33,25,20,15],[33,26,20,16,"from"],[33,30,20,20],[33,31,20,21,"content"],[33,38,20,28],[33,40,20,30,"dataType"],[33,48,20,38],[33,49,20,39],[33,50,20,40,"toString"],[33,58,20,48],[33,59,20,49],[33,66,20,56],[33,67,20,57],[34,2,21,0],[34,3,21,1],[35,2,22,0],[35,11,22,9,"dataUriToXml"],[35,23,22,21,"dataUriToXml"],[35,24,22,22,"uri"],[35,27,22,25],[35,29,22,27],[36,4,23,2],[36,8,23,6],[37,6,24,4],[38,6,25,4],[38,13,25,11,"decodeURIComponent"],[38,31,25,29],[38,32,25,30,"uri"],[38,35,25,33],[38,36,25,34],[38,37,25,35,"split"],[38,42,25,40],[38,43,25,41],[38,46,25,44],[38,47,25,45],[38,48,25,46,"slice"],[38,53,25,51],[38,54,25,52],[38,55,25,53],[38,56,25,54],[38,57,25,55,"join"],[38,61,25,59],[38,62,25,60],[38,65,25,63],[38,66,25,64],[39,4,26,2],[39,5,26,3],[39,6,26,4],[39,13,26,11,"error"],[39,18,26,16],[39,20,26,18],[40,6,27,4],[40,12,27,10],[40,16,27,14,"Error"],[40,21,27,19],[40,22,27,20],[40,34,27,32,"uri"],[40,37,27,35],[40,60,27,58,"error"],[40,65,27,63],[40,67,27,65],[40,68,27,66],[41,4,28,2],[42,2,29,0],[43,2,30,0],[43,17,30,15,"fetchUriData"],[43,29,30,27,"fetchUriData"],[43,30,30,28,"uri"],[43,33,30,31],[43,35,30,33],[44,4,31,2],[44,10,31,8,"response"],[44,18,31,16],[44,21,31,19],[44,27,31,25,"fetch"],[44,32,31,30],[44,33,31,31,"uri"],[44,36,31,34],[44,37,31,35],[45,4,32,2],[45,8,32,6,"response"],[45,16,32,14],[45,17,32,15,"ok"],[45,19,32,17],[45,23,32,21,"response"],[45,31,32,29],[45,32,32,30,"status"],[45,38,32,36],[45,43,32,41],[45,44,32,42],[45,48,32,46,"uri"],[45,51,32,49],[45,52,32,50,"startsWith"],[45,62,32,60],[45,63,32,61],[45,72,32,70],[45,73,32,71],[45,75,32,73],[46,6,33,4],[46,13,33,11],[46,19,33,17,"response"],[46,27,33,25],[46,28,33,26,"text"],[46,32,33,30],[46,33,33,31],[46,34,33,32],[47,4,34,2],[48,4,35,2],[48,10,35,8],[48,14,35,12,"Error"],[48,19,35,17],[48,20,35,18],[48,32,35,30,"uri"],[48,35,35,33],[48,58,35,56,"response"],[48,66,35,64],[48,67,35,65,"status"],[48,73,35,71],[48,75,35,73],[48,76,35,74],[49,2,36,0],[50,0,36,1],[50,3]],"functionMap":{"names":["<global>","fetchText","decodeBase64Image","dataUriToXml","fetchUriData"],"mappings":"AAA;OCE;CDW;0BEC;CFM;AGC;CHO;AIC;CJM"},"hasCjsExports":false},"type":"js/module"}]} |