Liferay.Loader.define("data-engine-js-components-web@1.0.89/js/custom/form-report/components/table/Table",["module","exports","require","@frontend-taglib-clay$clayui/table","liferay!frontend-js-react-web$react","../../utils/data"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function Table({data:e,totalEntries:t}){return e=(0,u.removeEmptyValues)(e),n.default.createElement(a.default,null,n.default.createElement(a.default.Head,null,n.default.createElement(a.default.Row,null,n.default.createElement(a.default.Cell,{expanded:!0,headingCell:!0},Liferay.Language.get("options")),n.default.createElement(a.default.Cell,{headingCell:!0},"%"),n.default.createElement(a.default.Cell,{headingCell:!0},Liferay.Language.get("votes")))),n.default.createElement(a.default.Body,null,Array.isArray(e)&&e.map((({count:e,label:l},r)=>n.default.createElement(a.default.Row,{key:r},n.default.createElement(a.default.Cell,null,l),n.default.createElement(a.default.Cell,null,(0,u.roundPercentage)((0,u.getPercentage)(e,t))),n.default.createElement(a.default.Cell,null,e))))))};var a=_interopRequireDefault(l("@frontend-taglib-clay$clayui/table")),n=_interopRequireDefault(l("liferay!frontend-js-react-web$react")),u=l("../../utils/data");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=Table.js.map