"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("prop-types"),t=require("@material-ui/core"),l=require("../sharedStyles.js"),i=require("../constants.js"),a=require("./FormatedNumber.js"),s=require("../../../../../utils/mobileDetect.js"),u=require("../../../../../utils/index.js"),d=require("react/jsx-runtime");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),c=n(r);function f(e){var r=e.label,n=e.unit,c=e.value,f=e.format,p=e.placeholder,m=e.xs,b=l.useStyles({isMobile:s.isMobileDetected}),j=n?"".concat(r," (").concat(u.getUnitDisplay(n),")"):r,x=s.isMobileDetected?i.CONTAINER_XS:m;return d.jsxs(t.Grid,{item:!0,xs:x,className:o.default({},b.cellInnerMobile,s.isMobileDetected),children:[d.jsx(t.Tooltip,{title:j,children:d.jsx("div",{className:b.cellLabel,children:j})}),d.jsx("div",{className:b.cellValue,children:f?d.jsx(a.FormatedNumber,{value:c,format:f,placeholder:p}):c||p})]})}f.propTypes={label:c.default.string.isRequired,unit:c.default.string,value:c.default.any,format:c.default.string,placeholder:c.default.string,xs:c.default.number.isRequired},f.defaultProps={unit:null,value:null,format:"0.00",placeholder:"—"},exports.StaticField=f;
//# sourceMappingURL=StaticField.js.map
