Liferay.Loader.define("data-engine-js-components-web@1.0.75/js/custom/form-report/components/chart/TooltipContent",["module","exports","require","liferay!frontend-js-react-web$react","../../utils/data"],(function(e,t,l){var a;window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({active:e,field:t,label:l,payload:a,roundBullet:o=!0,showBullet:c=!0,showHeader:u=!0,totalEntries:d=0}){if(e){const e=e=>e/d;return d||(d=a.reduce(((e,t)=>e+t.value),0)),r.default.createElement("div",{className:"custom-tooltip"},u?r.default.createElement("div",{className:"header"},r.default.createElement("div",{className:"title"},l)):null,r.default.createElement("ul",null,a.map((({dataKey:l,fill:a,payload:d,value:i},f)=>{var s;return l=u?(0,n.getColumnLabel)(l,t):d.label,a=null!==(s=d.fill)&&void 0!==s?s:a,r.default.createElement("li",{key:"tooltip-".concat(f)},c?r.default.createElement("svg",{height:"12",width:"12"},o?r.default.createElement("circle",{cx:"6",cy:"6",fill:a,r:"6",strokeWidth:"0"}):r.default.createElement("rect",{fill:a,height:"12",width:"12"})):null,r.default.createElement("div",{id:"tooltip-label"},"".concat(l,": ").concat(i," "),1===Number(i)?"".concat(Liferay.Language.get("entry").toLowerCase()," "):"".concat(Liferay.Language.get("entries").toLowerCase()," "),r.default.createElement("b",null,"(",(0,n.roundPercentage)(e(i)),")")))}))))}return null};var r=(a=l("liferay!frontend-js-react-web$react"))&&a.__esModule?a:{default:a},n=l("../../utils/data")}));
//# sourceMappingURL=TooltipContent.js.map