import{get as n}from"lodash";import{convertValue as t}from"../../../utils/convert.js";var r=function(r){var e=r.mapping,i=r.data,a=r.indexesKeys;return e.reduce((function(r,e){var o=e.key,u=e.unit,c=e.unitType,m=e.collection,p="".concat(m,".").concat(o),s=a[m],d=1/0,f=-1/0;return r[p]={},i[m]&&(r[p].data=i[m].map((function(r){var e=t(n(r,o),c,u);return Number.isFinite(e)&&(e>f&&(f=e),e<d&&(d=e)),[t(n(r,s.key),s.unitType,s.unit),e]})),r[p].min=d,r[p].max=f),r}),{})};export{r as convertData};
//# sourceMappingURL=dataParser.js.map
