mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
5.2 KiB
Plaintext
1 line
5.2 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":152},"end":{"line":5,"column":30,"index":167}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":15,"index":184},"end":{"line":6,"column":40,"index":209}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":19,"index":230},"end":{"line":7,"column":46,"index":257}}],"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.expand = expand;\n exports.getExpanded = getExpanded;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n var index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n /**\n * @name expand\n * @description Expands a given bag by retrieving all its nodes (accounts contained within the bag).\n * @param {Bag} bag The bag to be expanded.\n */\n function expand(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, bag => api.derive.bagsList.listNodes(bag.bag).pipe((0, rxjs_1.map)(nodes => (0, util_1.objectSpread)({\n nodes\n }, bag))));\n }\n /**\n * @name getExpanded\n * @description Retrieves and expands a specific bag from the BagsList pallet.\n * @param {BN | number} id The id of the bag to expand.\n */\n function getExpanded(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, id => api.derive.bagsList.get(id).pipe((0, rxjs_1.switchMap)(bag => api.derive.bagsList.expand(bag))));\n }\n});","lineCount":30,"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,"expand"],[7,16,3,14],[7,19,3,17,"expand"],[7,25,3,23],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"getExpanded"],[8,21,4,19],[8,24,4,22,"getExpanded"],[8,35,4,33],[9,2,5,0],[9,6,5,6,"rxjs_1"],[9,12,5,12],[9,15,5,15,"require"],[9,22,5,22],[9,23,5,22,"_dependencyMap"],[9,37,5,22],[9,48,5,29],[9,49,5,30],[10,2,6,0],[10,6,6,6,"util_1"],[10,12,6,12],[10,15,6,15,"require"],[10,22,6,22],[10,23,6,22,"_dependencyMap"],[10,37,6,22],[10,58,6,39],[10,59,6,40],[11,2,7,0],[11,6,7,6,"index_js_1"],[11,16,7,16],[11,19,7,19,"require"],[11,26,7,26],[11,27,7,26,"_dependencyMap"],[11,41,7,26],[11,64,7,45],[11,65,7,46],[12,2,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,11,13,9,"expand"],[17,17,13,15,"expand"],[17,18,13,16,"instanceId"],[17,28,13,26],[17,30,13,28,"api"],[17,33,13,31],[17,35,13,33],[18,4,14,4],[18,11,14,11],[18,12,14,12],[18,13,14,13],[18,15,14,15,"index_js_1"],[18,25,14,25],[18,26,14,26,"memo"],[18,30,14,30],[18,32,14,32,"instanceId"],[18,42,14,42],[18,44,14,45,"bag"],[18,47,14,48],[18,51,14,53,"api"],[18,54,14,56],[18,55,14,57,"derive"],[18,61,14,63],[18,62,14,64,"bagsList"],[18,70,14,72],[18,71,14,73,"listNodes"],[18,80,14,82],[18,81,14,83,"bag"],[18,84,14,86],[18,85,14,87,"bag"],[18,88,14,90],[18,89,14,91],[18,90,14,92,"pipe"],[18,94,14,96],[18,95,14,97],[18,96,14,98],[18,97,14,99],[18,99,14,101,"rxjs_1"],[18,105,14,107],[18,106,14,108,"map"],[18,109,14,111],[18,111,14,114,"nodes"],[18,116,14,119],[18,120,14,124],[18,121,14,125],[18,122,14,126],[18,124,14,128,"util_1"],[18,130,14,134],[18,131,14,135,"objectSpread"],[18,143,14,147],[18,145,14,149],[19,6,14,151,"nodes"],[20,4,14,157],[20,5,14,158],[20,7,14,160,"bag"],[20,10,14,163],[20,11,14,164],[20,12,14,165],[20,13,14,166],[20,14,14,167],[21,2,15,0],[22,2,16,0],[23,0,17,0],[24,0,18,0],[25,0,19,0],[26,0,20,0],[27,2,21,0],[27,11,21,9,"getExpanded"],[27,22,21,20,"getExpanded"],[27,23,21,21,"instanceId"],[27,33,21,31],[27,35,21,33,"api"],[27,38,21,36],[27,40,21,38],[28,4,22,4],[28,11,22,11],[28,12,22,12],[28,13,22,13],[28,15,22,15,"index_js_1"],[28,25,22,25],[28,26,22,26,"memo"],[28,30,22,30],[28,32,22,32,"instanceId"],[28,42,22,42],[28,44,22,45,"id"],[28,46,22,47],[28,50,22,52,"api"],[28,53,22,55],[28,54,22,56,"derive"],[28,60,22,62],[28,61,22,63,"bagsList"],[28,69,22,71],[28,70,22,72,"get"],[28,73,22,75],[28,74,22,76,"id"],[28,76,22,78],[28,77,22,79],[28,78,22,80,"pipe"],[28,82,22,84],[28,83,22,85],[28,84,22,86],[28,85,22,87],[28,87,22,89,"rxjs_1"],[28,93,22,95],[28,94,22,96,"switchMap"],[28,103,22,105],[28,105,22,108,"bag"],[28,108,22,111],[28,112,22,116,"api"],[28,115,22,119],[28,116,22,120,"derive"],[28,122,22,126],[28,123,22,127,"bagsList"],[28,131,22,135],[28,132,22,136,"expand"],[28,138,22,142],[28,139,22,143,"bag"],[28,142,22,146],[28,143,22,147],[28,144,22,148],[28,145,22,149],[28,146,22,150],[29,2,23,0],[30,0,23,1],[30,3]],"functionMap":{"names":["<global>","expand","<anonymous>","getExpanded"],"mappings":"AAA;ACY;4CCC,0HD;CDC;AGM;4CDC,yGC;CHC"},"hasCjsExports":true},"type":"js/module"}]} |