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

1 line
5.7 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":40,"index":83}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","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.indexes = indexes;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n let indicesCache = null;\n function queryAccounts(api) {\n return api.query.indices.accounts.entries().pipe((0, _rxjs.map)(entries => entries.reduce((indexes, [key, idOpt]) => {\n if (idOpt.isSome) {\n indexes[idOpt.unwrap()[0].toString()] = api.registry.createType('AccountIndex', key.args[0]);\n }\n return indexes;\n }, {})));\n }\n /**\n * @name indexes\n * @returns Returns all the indexes on the system.\n * @description This is an unwieldly query since it loops through\n * all of the enumsets and returns all of the values found. This could be up to 32k depending\n * on the number of active accounts in the system.\n * @example\n * ```javascript\n * api.derive.accounts.indexes((indexes) => {\n * console.log('All existing AccountIndexes', indexes);\n * });\n * ```\n */\n function indexes(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, () => indicesCache ? (0, _rxjs.of)(indicesCache) : (api.query.indices ? queryAccounts(api).pipe((0, _rxjs.startWith)({})) : (0, _rxjs.of)({})).pipe((0, _rxjs.map)(indices => {\n indicesCache = indices;\n return indices;\n })));\n }\n});","lineCount":38,"map":[[7,2,25,0,"exports"],[7,9,25,0],[7,10,25,0,"indexes"],[7,17,25,0],[7,20,25,0,"indexes"],[7,27,25,0],[8,2,1,0],[8,6,1,0,"_rxjs"],[8,11,1,0],[8,14,1,0,"require"],[8,21,1,0],[8,22,1,0,"_dependencyMap"],[8,36,1,0],[9,2,2,0],[9,6,2,0,"_utilIndexJs"],[9,18,2,0],[9,21,2,0,"require"],[9,28,2,0],[9,29,2,0,"_dependencyMap"],[9,43,2,0],[10,2,3,0],[10,6,3,4,"indicesCache"],[10,18,3,16],[10,21,3,19],[10,25,3,23],[11,2,4,0],[11,11,4,9,"queryAccounts"],[11,24,4,22,"queryAccounts"],[11,25,4,23,"api"],[11,28,4,26],[11,30,4,28],[12,4,5,4],[12,11,5,11,"api"],[12,14,5,14],[12,15,5,15,"query"],[12,20,5,20],[12,21,5,21,"indices"],[12,28,5,28],[12,29,5,29,"accounts"],[12,37,5,37],[12,38,5,38,"entries"],[12,45,5,45],[12,46,5,46],[12,47,5,47],[12,48,5,48,"pipe"],[12,52,5,52],[12,53,5,53],[12,57,5,53,"map"],[12,62,5,56],[12,63,5,56,"map"],[12,66,5,56],[12,68,5,58,"entries"],[12,75,5,65],[12,79,5,70,"entries"],[12,86,5,77],[12,87,5,78,"reduce"],[12,93,5,84],[12,94,5,85],[12,95,5,86,"indexes"],[12,102,5,93],[12,104,5,95],[12,105,5,96,"key"],[12,108,5,99],[12,110,5,101,"idOpt"],[12,115,5,106],[12,116,5,107],[12,121,5,112],[13,6,6,8],[13,10,6,12,"idOpt"],[13,15,6,17],[13,16,6,18,"isSome"],[13,22,6,24],[13,24,6,26],[14,8,7,12,"indexes"],[14,15,7,19],[14,16,7,20,"idOpt"],[14,21,7,25],[14,22,7,26,"unwrap"],[14,28,7,32],[14,29,7,33],[14,30,7,34],[14,31,7,35],[14,32,7,36],[14,33,7,37],[14,34,7,38,"toString"],[14,42,7,46],[14,43,7,47],[14,44,7,48],[14,45,7,49],[14,48,7,52,"api"],[14,51,7,55],[14,52,7,56,"registry"],[14,60,7,64],[14,61,7,65,"createType"],[14,71,7,75],[14,72,7,76],[14,86,7,90],[14,88,7,92,"key"],[14,91,7,95],[14,92,7,96,"args"],[14,96,7,100],[14,97,7,101],[14,98,7,102],[14,99,7,103],[14,100,7,104],[15,6,8,8],[16,6,9,8],[16,13,9,15,"indexes"],[16,20,9,22],[17,4,10,4],[17,5,10,5],[17,7,10,7],[17,8,10,8],[17,9,10,9],[17,10,10,10],[17,11,10,11],[17,12,10,12],[18,2,11,0],[19,2,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,0,24,0],[32,2,25,7],[32,11,25,16,"indexes"],[32,18,25,23,"indexes"],[32,19,25,24,"instanceId"],[32,29,25,34],[32,31,25,36,"api"],[32,34,25,39],[32,36,25,41],[33,4,26,4],[33,11,26,11],[33,15,26,11,"memo"],[33,27,26,15],[33,28,26,15,"memo"],[33,32,26,15],[33,34,26,16,"instanceId"],[33,44,26,26],[33,46,26,28],[33,52,26,34,"indicesCache"],[33,64,26,46],[33,67,27,10],[33,71,27,10,"of"],[33,76,27,12],[33,77,27,12,"of"],[33,79,27,12],[33,81,27,13,"indicesCache"],[33,93,27,25],[33,94,27,26],[33,97,28,10],[33,98,28,11,"api"],[33,101,28,14],[33,102,28,15,"query"],[33,107,28,20],[33,108,28,21,"indices"],[33,115,28,28],[33,118,29,14,"queryAccounts"],[33,131,29,27],[33,132,29,28,"api"],[33,135,29,31],[33,136,29,32],[33,137,29,33,"pipe"],[33,141,29,37],[33,142,29,38],[33,146,29,38,"startWith"],[33,151,29,47],[33,152,29,47,"startWith"],[33,161,29,47],[33,163,29,48],[33,164,29,49],[33,165,29,50],[33,166,29,51],[33,167,29,52],[33,170,30,14],[33,174,30,14,"of"],[33,179,30,16],[33,180,30,16,"of"],[33,182,30,16],[33,184,30,17],[33,185,30,18],[33,186,30,19],[33,187,30,20],[33,189,30,22,"pipe"],[33,193,30,26],[33,194,30,27],[33,198,30,27,"map"],[33,203,30,30],[33,204,30,30,"map"],[33,207,30,30],[33,209,30,32,"indices"],[33,216,30,39],[33,220,30,44],[34,6,31,12,"indicesCache"],[34,18,31,24],[34,21,31,27,"indices"],[34,28,31,34],[35,6,32,12],[35,13,32,19,"indices"],[35,20,32,26],[36,4,33,8],[36,5,33,9],[36,6,33,10],[36,7,33,11],[36,8,33,12],[37,2,34,0],[38,0,34,1],[38,3]],"functionMap":{"names":["<global>","queryAccounts","map$argument_0","entries.reduce$argument_0","indexes","memo$argument_1"],"mappings":"AAA;ACG;yDCC,4BC;KDK,KD;CDC;OIc;4BCC;+BHI;SGG,ED;CJC"},"hasCjsExports":false},"type":"js/module"}]}