mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
5.4 KiB
Plaintext
1 line
5.4 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":15,"index":195},"end":{"line":6,"column":30,"index":210}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":15,"index":227},"end":{"line":7,"column":40,"index":252}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":19,"index":273},"end":{"line":8,"column":46,"index":300}}],"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.getInstance = getInstance;\n exports.withSection = withSection;\n exports.callMethod = callMethod;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n function getInstance(api, section) {\n const instances = api.registry.getModuleInstances(api.runtimeVersion.specName, section);\n const name = instances?.length ? instances[0] : section;\n return api.query[name];\n }\n function withSection(section, fn) {\n return (instanceId, api) => (0, index_js_1.memo)(instanceId, fn(getInstance(api, section), api, instanceId));\n }\n function callMethod(method, empty) {\n return section => withSection(section, query => () => (0, util_1.isFunction)(query?.[method]) ? query[method]() : (0, rxjs_1.of)(empty));\n }\n});","lineCount":24,"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,"getInstance"],[7,21,3,19],[7,24,3,22,"getInstance"],[7,35,3,33],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"withSection"],[8,21,4,19],[8,24,4,22,"withSection"],[8,35,4,33],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"callMethod"],[9,20,5,18],[9,23,5,21,"callMethod"],[9,33,5,31],[10,2,6,0],[10,8,6,6,"rxjs_1"],[10,14,6,12],[10,17,6,15,"require"],[10,24,6,22],[10,25,6,22,"_dependencyMap"],[10,39,6,22],[10,50,6,29],[10,51,6,30],[11,2,7,0],[11,8,7,6,"util_1"],[11,14,7,12],[11,17,7,15,"require"],[11,24,7,22],[11,25,7,22,"_dependencyMap"],[11,39,7,22],[11,60,7,39],[11,61,7,40],[12,2,8,0],[12,8,8,6,"index_js_1"],[12,18,8,16],[12,21,8,19,"require"],[12,28,8,26],[12,29,8,26,"_dependencyMap"],[12,43,8,26],[12,66,8,45],[12,67,8,46],[13,2,9,0],[13,11,9,9,"getInstance"],[13,22,9,20,"getInstance"],[13,23,9,21,"api"],[13,26,9,24],[13,28,9,26,"section"],[13,35,9,33],[13,37,9,35],[14,4,10,4],[14,10,10,10,"instances"],[14,19,10,19],[14,22,10,22,"api"],[14,25,10,25],[14,26,10,26,"registry"],[14,34,10,34],[14,35,10,35,"getModuleInstances"],[14,53,10,53],[14,54,10,54,"api"],[14,57,10,57],[14,58,10,58,"runtimeVersion"],[14,72,10,72],[14,73,10,73,"specName"],[14,81,10,81],[14,83,10,83,"section"],[14,90,10,90],[14,91,10,91],[15,4,11,4],[15,10,11,10,"name"],[15,14,11,14],[15,17,11,17,"instances"],[15,26,11,26],[15,28,11,28,"length"],[15,34,11,34],[15,37,12,10,"instances"],[15,46,12,19],[15,47,12,20],[15,48,12,21],[15,49,12,22],[15,52,13,10,"section"],[15,59,13,17],[16,4,14,4],[16,11,14,11,"api"],[16,14,14,14],[16,15,14,15,"query"],[16,20,14,20],[16,21,14,21,"name"],[16,25,14,25],[16,26,14,26],[17,2,15,0],[18,2,16,0],[18,11,16,9,"withSection"],[18,22,16,20,"withSection"],[18,23,16,21,"section"],[18,30,16,28],[18,32,16,30,"fn"],[18,34,16,32],[18,36,16,34],[19,4,17,4],[19,11,17,11],[19,12,17,12,"instanceId"],[19,22,17,22],[19,24,17,24,"api"],[19,27,17,27],[19,32,17,32],[19,33,17,33],[19,34,17,34],[19,36,17,36,"index_js_1"],[19,46,17,46],[19,47,17,47,"memo"],[19,51,17,51],[19,53,17,53,"instanceId"],[19,63,17,63],[19,65,17,65,"fn"],[19,67,17,67],[19,68,17,68,"getInstance"],[19,79,17,79],[19,80,17,80,"api"],[19,83,17,83],[19,85,17,85,"section"],[19,92,17,92],[19,93,17,93],[19,95,17,95,"api"],[19,98,17,98],[19,100,17,100,"instanceId"],[19,110,17,110],[19,111,17,111],[19,112,17,112],[20,2,18,0],[21,2,19,0],[21,11,19,9,"callMethod"],[21,21,19,19,"callMethod"],[21,22,19,20,"method"],[21,28,19,26],[21,30,19,28,"empty"],[21,35,19,33],[21,37,19,35],[22,4,20,4],[22,11,20,12,"section"],[22,18,20,19],[22,22,20,24,"withSection"],[22,33,20,35],[22,34,20,36,"section"],[22,41,20,43],[22,43,20,46,"query"],[22,48,20,51],[22,52,20,56],[22,58,20,62],[22,59,20,63],[22,60,20,64],[22,62,20,66,"util_1"],[22,68,20,72],[22,69,20,73,"isFunction"],[22,79,20,83],[22,81,20,85,"query"],[22,86,20,90],[22,89,20,93,"method"],[22,95,20,99],[22,96,20,100],[22,97,20,101],[22,100,21,10,"query"],[22,105,21,15],[22,106,21,16,"method"],[22,112,21,22],[22,113,21,23],[22,114,21,24],[22,115,21,25],[22,118,22,10],[22,119,22,11],[22,120,22,12],[22,122,22,14,"rxjs_1"],[22,128,22,20],[22,129,22,21,"of"],[22,131,22,23],[22,133,22,25,"empty"],[22,138,22,30],[22,139,22,31],[22,140,22,32],[23,2,23,0],[24,0,23,1],[24,3]],"functionMap":{"names":["<global>","getInstance","withSection","<anonymous>","callMethod","withSection$argument_1"],"mappings":"AAA;ACQ;CDM;AEC;WCC,qGD;CFC;AIC;WDC,kCE,WF;gCCE;CJC"},"hasCjsExports":true},"type":"js/module"}]} |