{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":42},"end":{"line":2,"column":40,"index":82}}],"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.votingBalances = votingBalances;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name votingBalances\n * @description Retrieves the balance information for multiple accounts, typically used in governance-related contexts to check voting power.\n * @param {(AccountId | AccountIndex | Address | string)[]} addresses An array of account identifiers.\n * @example\n * ```javascript\n * const addresses = [\"5D4b...Zf1\", \"5HGj...yrV\"];\n * const balances = await api.derive.balances.votingBalances(addresses);\n * console.log(\"Voting Balances:\", balances);\n * ```\n */\n function votingBalances(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, addresses => !addresses?.length ? (0, _rxjs.of)([]) : (0, _rxjs.combineLatest)(addresses.map(accountId => api.derive.balances.account(accountId))));\n }\n});","lineCount":24,"map":[[7,2,14,0,"exports"],[7,9,14,0],[7,10,14,0,"votingBalances"],[7,24,14,0],[7,27,14,0,"votingBalances"],[7,41,14,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],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,2,14,7],[21,11,14,16,"votingBalances"],[21,25,14,30,"votingBalances"],[21,26,14,31,"instanceId"],[21,36,14,41],[21,38,14,43,"api"],[21,41,14,46],[21,43,14,48],[22,4,15,4],[22,11,15,11],[22,15,15,11,"memo"],[22,27,15,15],[22,28,15,15,"memo"],[22,32,15,15],[22,34,15,16,"instanceId"],[22,44,15,26],[22,46,15,29,"addresses"],[22,55,15,38],[22,59,15,43],[22,60,15,44,"addresses"],[22,69,15,53],[22,71,15,55,"length"],[22,77,15,61],[22,80,16,10],[22,84,16,10,"of"],[22,89,16,12],[22,90,16,12,"of"],[22,92,16,12],[22,94,16,13],[22,96,16,15],[22,97,16,16],[22,100,17,10],[22,104,17,10,"combineLatest"],[22,109,17,23],[22,110,17,23,"combineLatest"],[22,123,17,23],[22,125,17,24,"addresses"],[22,134,17,33],[22,135,17,34,"map"],[22,138,17,37],[22,139,17,39,"accountId"],[22,148,17,48],[22,152,17,53,"api"],[22,155,17,56],[22,156,17,57,"derive"],[22,162,17,63],[22,163,17,64,"balances"],[22,171,17,72],[22,172,17,73,"account"],[22,179,17,80],[22,180,17,81,"accountId"],[22,189,17,90],[22,190,17,91],[22,191,17,92],[22,192,17,93],[22,193,17,94],[23,2,18,0],[24,0,18,1],[24,3]],"functionMap":{"names":["","votingBalances","memo$argument_1","addresses.map$argument_0"],"mappings":"AAA;OCa;4BCC;sCCE,qDD,ED;CDC"},"hasCjsExports":false},"type":"js/module"}]}