mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-29 23:31:05 +00:00
1 line
6.3 KiB
Plaintext
1 line
6.3 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":113},"end":{"line":4,"column":30,"index":128}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":149},"end":{"line":5,"column":46,"index":176}}],"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.info = info;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name info\n * @description Get the overall info for a society.\n * @example\n * ```javascript\n * const societyInfo = await api.derive.society.candidates();\n * console.log(societyInfo);\n * ```\n */\n function info(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([api.query.society.bids(), api.query.society['defender'] ? api.query.society['defender']() : (0, rxjs_1.of)(undefined), api.query.society.founder(), api.query.society.head(), api.query.society['maxMembers'] ? api.query.society['maxMembers']() : (0, rxjs_1.of)(undefined), api.query.society.pot()]).pipe((0, rxjs_1.map)(([bids, defender, founder, head, maxMembers, pot]) => ({\n bids,\n defender: defender?.unwrapOr(undefined),\n founder: founder.unwrapOr(undefined),\n hasDefender: defender?.isSome && head.isSome && !head.eq(defender) || false,\n head: head.unwrapOr(undefined),\n maxMembers,\n pot\n }))));\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,"info"],[7,14,3,12],[7,17,3,15,"info"],[7,21,3,19],[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,2,15,0],[19,11,15,9,"info"],[19,15,15,13,"info"],[19,16,15,14,"instanceId"],[19,26,15,24],[19,28,15,26,"api"],[19,31,15,29],[19,33,15,31],[20,4,16,4],[20,11,16,11],[20,12,16,12],[20,13,16,13],[20,15,16,15,"index_js_1"],[20,25,16,25],[20,26,16,26,"memo"],[20,30,16,30],[20,32,16,32,"instanceId"],[20,42,16,42],[20,44,16,44],[20,50,16,50],[20,51,16,51],[20,52,16,52],[20,54,16,54,"rxjs_1"],[20,60,16,60],[20,61,16,61,"combineLatest"],[20,74,16,74],[20,76,16,76],[20,77,17,8,"api"],[20,80,17,11],[20,81,17,12,"query"],[20,86,17,17],[20,87,17,18,"society"],[20,94,17,25],[20,95,17,26,"bids"],[20,99,17,30],[20,100,17,31],[20,101,17,32],[20,103,18,8,"api"],[20,106,18,11],[20,107,18,12,"query"],[20,112,18,17],[20,113,18,18,"society"],[20,120,18,25],[20,121,18,26],[20,131,18,36],[20,132,18,37],[20,135,19,14,"api"],[20,138,19,17],[20,139,19,18,"query"],[20,144,19,23],[20,145,19,24,"society"],[20,152,19,31],[20,153,19,32],[20,163,19,42],[20,164,19,43],[20,165,19,44],[20,166,19,45],[20,169,20,14],[20,170,20,15],[20,171,20,16],[20,173,20,18,"rxjs_1"],[20,179,20,24],[20,180,20,25,"of"],[20,182,20,27],[20,184,20,29,"undefined"],[20,193,20,38],[20,194,20,39],[20,196,21,8,"api"],[20,199,21,11],[20,200,21,12,"query"],[20,205,21,17],[20,206,21,18,"society"],[20,213,21,25],[20,214,21,26,"founder"],[20,221,21,33],[20,222,21,34],[20,223,21,35],[20,225,22,8,"api"],[20,228,22,11],[20,229,22,12,"query"],[20,234,22,17],[20,235,22,18,"society"],[20,242,22,25],[20,243,22,26,"head"],[20,247,22,30],[20,248,22,31],[20,249,22,32],[20,251,23,8,"api"],[20,254,23,11],[20,255,23,12,"query"],[20,260,23,17],[20,261,23,18,"society"],[20,268,23,25],[20,269,23,26],[20,281,23,38],[20,282,23,39],[20,285,24,14,"api"],[20,288,24,17],[20,289,24,18,"query"],[20,294,24,23],[20,295,24,24,"society"],[20,302,24,31],[20,303,24,32],[20,315,24,44],[20,316,24,45],[20,317,24,46],[20,318,24,47],[20,321,25,14],[20,322,25,15],[20,323,25,16],[20,325,25,18,"rxjs_1"],[20,331,25,24],[20,332,25,25,"of"],[20,334,25,27],[20,336,25,29,"undefined"],[20,345,25,38],[20,346,25,39],[20,348,26,8,"api"],[20,351,26,11],[20,352,26,12,"query"],[20,357,26,17],[20,358,26,18,"society"],[20,365,26,25],[20,366,26,26,"pot"],[20,369,26,29],[20,370,26,30],[20,371,26,31],[20,372,27,5],[20,373,27,6],[20,374,27,7,"pipe"],[20,378,27,11],[20,379,27,12],[20,380,27,13],[20,381,27,14],[20,383,27,16,"rxjs_1"],[20,389,27,22],[20,390,27,23,"map"],[20,393,27,26],[20,395,27,28],[20,396,27,29],[20,397,27,30,"bids"],[20,401,27,34],[20,403,27,36,"defender"],[20,411,27,44],[20,413,27,46,"founder"],[20,420,27,53],[20,422,27,55,"head"],[20,426,27,59],[20,428,27,61,"maxMembers"],[20,438,27,71],[20,440,27,73,"pot"],[20,443,27,76],[20,444,27,77],[20,450,27,83],[21,6,28,8,"bids"],[21,10,28,12],[22,6,29,8,"defender"],[22,14,29,16],[22,16,29,18,"defender"],[22,24,29,26],[22,26,29,28,"unwrapOr"],[22,34,29,36],[22,35,29,37,"undefined"],[22,44,29,46],[22,45,29,47],[23,6,30,8,"founder"],[23,13,30,15],[23,15,30,17,"founder"],[23,22,30,24],[23,23,30,25,"unwrapOr"],[23,31,30,33],[23,32,30,34,"undefined"],[23,41,30,43],[23,42,30,44],[24,6,31,8,"hasDefender"],[24,17,31,19],[24,19,31,22,"defender"],[24,27,31,30],[24,29,31,32,"isSome"],[24,35,31,38],[24,39,31,42,"head"],[24,43,31,46],[24,44,31,47,"isSome"],[24,50,31,53],[24,54,31,57],[24,55,31,58,"head"],[24,59,31,62],[24,60,31,63,"eq"],[24,62,31,65],[24,63,31,66,"defender"],[24,71,31,74],[24,72,31,75],[24,76,31,80],[24,81,31,85],[25,6,32,8,"head"],[25,10,32,12],[25,12,32,14,"head"],[25,16,32,18],[25,17,32,19,"unwrapOr"],[25,25,32,27],[25,26,32,28,"undefined"],[25,35,32,37],[25,36,32,38],[26,6,33,8,"maxMembers"],[26,16,33,18],[27,6,34,8,"pot"],[28,4,35,4],[28,5,35,5],[28,6,35,6],[28,7,35,7],[28,8,35,8],[28,9,35,9],[29,2,36,0],[30,0,36,1],[30,3]],"functionMap":{"names":["<global>","info","<anonymous>"],"mappings":"AAA;ACc;4CCC;QDmB;CDC"},"hasCjsExports":true},"type":"js/module"}]} |