Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/custom/form-report/utils/data",["module","exports","require"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=t.sumTotalEntries=t.roundPercentage=t.removeEmptyValues=t.getColumnLabel=t.default=void 0;const e=(e,t)=>t.columns[e]?t.columns[e].value:void 0;t.getColumnLabel=e;const o=e=>Array.isArray(e)&&e.filter((e=>e));t.removeEmptyValues=o;const r=e=>"".concat(parseFloat((100*e).toFixed(1)),"%");t.roundPercentage=r;const n=e=>Object.values(e).reduce(((e,t)=>e+t),0);t.sumTotalEntries=n;const u=e=>e.map((({value:e})=>e));t.toArray=u;var a=(e,t)=>Object.entries(t).map((([t,o])=>({count:o,label:e[t]?e[t].value:t}))).sort(((e,t)=>e.count>t.count?-1:t.count>e.count?1:0));t.default=a}}));
//# sourceMappingURL=data.js.map