import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/regenerator";import{chunk as t}from"lodash";var n=function(){var n=r(e.mark((function r(n){var a,o,u,i,s,c;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.ids,o=n.chunkSize,u=n.fetcher,i=n.signal,0!==a.length){r.next=3;break}return r.abrupt("return",[]);case 3:return null==i||i.throwIfAborted(),s=t(a,o),r.next=7,Promise.all(s.map((function(r){return null==i||i.throwIfAborted(),u(r,i)})));case 7:return c=r.sent,r.abrupt("return",c.flat());case 9:case"end":return r.stop()}}),r)})));return function(r){return n.apply(this,arguments)}}();export{n as fetchByIdChunks};
//# sourceMappingURL=fetchByIdChunks.js.map
