Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/da/ea716d3cf4b458738c8531b0ec26d7188e2d5cc28ac4b41b86af13471fcb71ac49b65a
T
2025-10-24 02:46:57 +00:00

1 line
3.9 KiB
Plaintext

{"dependencies":[{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./Asset","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":45},"end":{"line":2,"column":32,"index":77}}],"key":"TwnMoPBJu+ST6a0NSE4l343cBbk=","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 exports.useAssets = useAssets;\n var _react = require(_dependencyMap[0], \"react\");\n var _Asset = require(_dependencyMap[1], \"./Asset\");\n // @needsAudit\n /**\n * Downloads and stores one or more assets locally.\n * After the assets are loaded, this hook returns a list of asset instances.\n * If something went wrong when loading the assets, an error is returned.\n *\n * > Note, the assets are not \"reloaded\" when you dynamically change the asset list.\n *\n * @return Returns an array containing:\n * - on the first position, a list of all loaded assets. If they aren't loaded yet, this value is\n * `undefined`.\n * - on the second position, an error which encountered when loading the assets. If there was no\n * error, this value is `undefined`.\n *\n * @example\n * ```tsx\n * const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);\n *\n * return assets ? <Image source={assets[0]} /> : null;\n * ```\n */\n function useAssets(moduleIds) {\n const [assets, setAssets] = (0, _react.useState)();\n const [error, setError] = (0, _react.useState)();\n (0, _react.useEffect)(() => {\n _Asset.Asset.loadAsync(moduleIds).then(setAssets).catch(setError);\n }, []);\n return [assets, error];\n }\n});","lineCount":39,"map":[[7,2,24,0,"exports"],[7,9,24,0],[7,10,24,0,"useAssets"],[7,19,24,0],[7,22,24,0,"useAssets"],[7,31,24,0],[8,2,1,0],[8,6,1,0,"_react"],[8,12,1,0],[8,15,1,0,"require"],[8,22,1,0],[8,23,1,0,"_dependencyMap"],[8,37,1,0],[9,2,2,0],[9,6,2,0,"_Asset"],[9,12,2,0],[9,15,2,0,"require"],[9,22,2,0],[9,23,2,0,"_dependencyMap"],[9,37,2,0],[10,2,3,0],[11,2,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,0,20,0],[28,0,21,0],[29,0,22,0],[30,0,23,0],[31,2,24,7],[31,11,24,16,"useAssets"],[31,20,24,25,"useAssets"],[31,21,24,26,"moduleIds"],[31,30,24,35],[31,32,24,37],[32,4,25,4],[32,10,25,10],[32,11,25,11,"assets"],[32,17,25,17],[32,19,25,19,"setAssets"],[32,28,25,28],[32,29,25,29],[32,32,25,32],[32,36,25,32,"useState"],[32,42,25,40],[32,43,25,40,"useState"],[32,51,25,40],[32,53,25,41],[32,54,25,42],[33,4,26,4],[33,10,26,10],[33,11,26,11,"error"],[33,16,26,16],[33,18,26,18,"setError"],[33,26,26,26],[33,27,26,27],[33,30,26,30],[33,34,26,30,"useState"],[33,40,26,38],[33,41,26,38,"useState"],[33,49,26,38],[33,51,26,39],[33,52,26,40],[34,4,27,4],[34,8,27,4,"useEffect"],[34,14,27,13],[34,15,27,13,"useEffect"],[34,24,27,13],[34,26,27,14],[34,32,27,20],[35,6,28,8,"Asset"],[35,12,28,13],[35,13,28,13,"Asset"],[35,18,28,13],[35,19,28,14,"loadAsync"],[35,28,28,23],[35,29,28,24,"moduleIds"],[35,38,28,33],[35,39,28,34],[35,40,28,35,"then"],[35,44,28,39],[35,45,28,40,"setAssets"],[35,54,28,49],[35,55,28,50],[35,56,28,51,"catch"],[35,61,28,56],[35,62,28,57,"setError"],[35,70,28,65],[35,71,28,66],[36,4,29,4],[36,5,29,5],[36,7,29,7],[36,9,29,9],[36,10,29,10],[37,4,30,4],[37,11,30,11],[37,12,30,12,"assets"],[37,18,30,18],[37,20,30,20,"error"],[37,25,30,25],[37,26,30,26],[38,2,31,0],[39,0,31,1],[39,3]],"functionMap":{"names":["<global>","useAssets","useEffect$argument_0"],"mappings":"AAA;OCuB;cCG;KDE;CDE"},"hasCjsExports":false},"type":"js/module"}]}