mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
3.4 KiB
Plaintext
1 line
3.4 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":123},"end":{"line":4,"column":30,"index":138}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":159},"end":{"line":5,"column":46,"index":186}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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.idToIndex = idToIndex;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name idToIndex\n * @description Retrieves the corresponding AccountIndex.\n * @param {( AccountId | string )} accountId An accounts Id in different formats.\n * @example\n * ```javascript\n * const ALICE = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY';\n * api.derive.accounts.idToIndex(ALICE, (accountIndex) => {\n * console.log(`The AccountIndex of ${ALICE} is ${accountIndex}`);\n * });\n * ```\n */\n function idToIndex(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, accountId => api.derive.accounts.indexes().pipe((0, rxjs_1.map)(indexes => indexes[accountId.toString()])));\n }\n});","lineCount":25,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"idToIndex"],[7,19,3,17],[7,22,3,20,"idToIndex"],[7,31,3,29],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[9,2,5,0],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,66,5,45],[9,67,5,46],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,2,18,0],[22,11,18,9,"idToIndex"],[22,20,18,18,"idToIndex"],[22,21,18,19,"instanceId"],[22,31,18,29],[22,33,18,31,"api"],[22,36,18,34],[22,38,18,36],[23,4,19,4],[23,11,19,11],[23,12,19,12],[23,13,19,13],[23,15,19,15,"index_js_1"],[23,25,19,25],[23,26,19,26,"memo"],[23,30,19,30],[23,32,19,32,"instanceId"],[23,42,19,42],[23,44,19,45,"accountId"],[23,53,19,54],[23,57,19,59,"api"],[23,60,19,62],[23,61,19,63,"derive"],[23,67,19,69],[23,68,19,70,"accounts"],[23,76,19,78],[23,77,19,79,"indexes"],[23,84,19,86],[23,85,19,87],[23,86,19,88],[23,87,19,89,"pipe"],[23,91,19,93],[23,92,19,94],[23,93,19,95],[23,94,19,96],[23,96,19,98,"rxjs_1"],[23,102,19,104],[23,103,19,105,"map"],[23,106,19,108],[23,108,19,111,"indexes"],[23,115,19,118],[23,119,19,123,"indexes"],[23,126,19,130],[23,127,19,131,"accountId"],[23,136,19,140],[23,137,19,141,"toString"],[23,145,19,149],[23,146,19,150],[23,147,19,151],[23,148,19,152],[23,149,19,153],[23,150,19,154],[23,151,19,155],[24,2,20,0],[25,0,20,1],[25,3]],"functionMap":{"names":["<global>","idToIndex","<anonymous>"],"mappings":"AAA;ACiB;4CCC,8GD;CDC"},"hasCjsExports":true},"type":"js/module"}]} |