"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const I=require("semantic-ui-react");function L(t){if(typeof t=="boolean")return t;if(typeof t!="string")return!!t;switch(t.trim().toLowerCase()){case"true":case"yes":case"1":case"on":return!0;case"false":case"no":case"0":case"off":return!1;default:return!1}}const $=t=>{const{isDisabled:n,child:r,selectedKey:m,appliedFilters:g,dimension1:q,dimension2:d,app:v,group:E,parent:O,blockName:R,hasParentFilters:A,onSetFilter:P,onUnSetFilter:T,intl:p,numberFontSize:b,labelFontSize:f,backgroundColor:h,numberColor:x,labelColor:y,unselectedBackgroundColor:C,unselectedNumberColor:S,unselectedLabelColor:F,formatObject:i,decode:l,getLabel:u,idx:N}=t,a=g.indexOf(r.value)>-1,j=r[m],k=()=>{n||t.handleClick&&t.handleClick()},w=e=>({cursor:n?"not-allowed":"pointer",color:l(e?x:S),fontSize:b+"px",textAlign:"center",paddingTop:"3%",paddingLeft:"1%",paddingRight:"1%",paddingBottom:"0px",margin:"0px"}),B=e=>({cursor:n?"not-allowed":"pointer",color:l(e?y:F),fontSize:f+"px",textAlign:"center",padding:"0px",margin:"0px"}),D=e=>({border:"1px solid #EEE",backgroundColor:l(e?h:C),opacity:n?.4:1,cursor:n?"not-allowed":"pointer"}),z=e=>{const s={style:i.style==="compacted"?"decimal":i.style,notation:i.style==="compacted"?"compact":"standard",currency:i.currency,minimumFractionDigits:parseInt(i.minimumFractionDigits),maximumFractionDigits:parseInt(i.maximumFractionDigits)};return p.formatNumber(e,{...s})};let c=!1;return d!=="none"&&(c=r&&r.children?r.children.map(e=>L(e.value)).reduce((e,s)=>e&&s,!0):!1),o.jsxs(I.Grid.Column,{className:`big filter item ${a?"selected":"unselected"} ${c?`highlighted ${d}`:""} ${n?"disabled":""}`,onClick:k,style:D(a),children:[o.jsx("p",{style:w(a),className:"big-number",children:z(j)}),c&&o.jsx("p",{children:o.jsx("div",{className:"highlighted-pill",children:"Zoonotic"})}),o.jsx("p",{style:B(a),className:"big-number-label",children:u?u(r.value):r.label||r.value})]},N)};exports.BigNumberItem=$;
