mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-06 03:17:58 +00:00
1 line
4.5 KiB
Plaintext
1 line
4.5 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":30,"index":146}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":167},"end":{"line":5,"column":46,"index":194}}],"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.referendumIds = referendumIds;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name referendumIds\n * @description Retrieves an array of active referendum IDs.\n * @example\n * ```javascript\n * const referendums = await api.derive.democracy.referendumIds();\n * ```\n */\n function referendumIds(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => api.query.democracy?.lowestUnbaked ? api.queryMulti([api.query.democracy.lowestUnbaked, api.query.democracy.referendumCount]).pipe((0, rxjs_1.map)(([first, total]) => total.gt(first)\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n ? [...Array(total.sub(first).toNumber())].map((_, i) => first.addn(i)) : [])) : (0, rxjs_1.of)([]));\n }\n});","lineCount":23,"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,"referendumIds"],[7,23,3,21],[7,26,3,24,"referendumIds"],[7,39,3,37],[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,2,14,0],[18,11,14,9,"referendumIds"],[18,24,14,22,"referendumIds"],[18,25,14,23,"instanceId"],[18,35,14,33],[18,37,14,35,"api"],[18,40,14,38],[18,42,14,40],[19,4,15,4],[19,11,15,11],[19,12,15,12],[19,13,15,13],[19,15,15,15,"index_js_1"],[19,25,15,25],[19,26,15,26,"memo"],[19,30,15,30],[19,32,15,32,"instanceId"],[19,42,15,42],[19,44,15,44],[19,50,15,50,"api"],[19,53,15,53],[19,54,15,54,"query"],[19,59,15,59],[19,60,15,60,"democracy"],[19,69,15,69],[19,71,15,71,"lowestUnbaked"],[19,84,15,84],[19,87,16,10,"api"],[19,90,16,13],[19,91,16,14,"queryMulti"],[19,101,16,24],[19,102,16,25],[19,103,17,12,"api"],[19,106,17,15],[19,107,17,16,"query"],[19,112,17,21],[19,113,17,22,"democracy"],[19,122,17,31],[19,123,17,32,"lowestUnbaked"],[19,136,17,45],[19,138,18,12,"api"],[19,141,18,15],[19,142,18,16,"query"],[19,147,18,21],[19,148,18,22,"democracy"],[19,157,18,31],[19,158,18,32,"referendumCount"],[19,173,18,47],[19,174,19,9],[19,175,19,10],[19,176,19,11,"pipe"],[19,180,19,15],[19,181,19,16],[19,182,19,17],[19,183,19,18],[19,185,19,20,"rxjs_1"],[19,191,19,26],[19,192,19,27,"map"],[19,195,19,30],[19,197,19,32],[19,198,19,33],[19,199,19,34,"first"],[19,204,19,39],[19,206,19,41,"total"],[19,211,19,46],[19,212,19,47],[19,217,19,52,"total"],[19,222,19,57],[19,223,19,58,"gt"],[19,225,19,60],[19,226,19,61,"first"],[19,231,19,66],[20,4,20,12],[21,4,20,12],[21,6,21,14],[21,7,21,15],[21,10,21,18,"Array"],[21,15,21,23],[21,16,21,24,"total"],[21,21,21,29],[21,22,21,30,"sub"],[21,25,21,33],[21,26,21,34,"first"],[21,31,21,39],[21,32,21,40],[21,33,21,41,"toNumber"],[21,41,21,49],[21,42,21,50],[21,43,21,51],[21,44,21,52],[21,45,21,53],[21,46,21,54,"map"],[21,49,21,57],[21,50,21,58],[21,51,21,59,"_"],[21,52,21,60],[21,54,21,62,"i"],[21,55,21,63],[21,60,21,68,"first"],[21,65,21,73],[21,66,21,74,"addn"],[21,70,21,78],[21,71,21,79,"i"],[21,72,21,80],[21,73,21,81],[21,74,21,82],[21,77,22,14],[21,79,22,16],[21,80,22,17],[21,81,22,18],[21,84,23,10],[21,85,23,11],[21,86,23,12],[21,88,23,14,"rxjs_1"],[21,94,23,20],[21,95,23,21,"of"],[21,97,23,23],[21,99,23,25],[21,101,23,27],[21,102,23,28],[21,103,23,29],[22,2,24,0],[23,0,24,1],[23,3]],"functionMap":{"names":["<global>","referendumIds","<anonymous>","map$argument_0"],"mappings":"AAA;ACa;4CCC;0DCM,uBD;4BDE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |