"use strict";var e=require("prop-types"),t=require("classnames"),a=require("@material-ui/core"),i=require("@material-ui/core/colors/blue"),r=require("react/jsx-runtime");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(e),o=s(t),l=s(i),c=a.makeStyles((function(e){return{item:{display:"inline-block"},firstItem:{marginRight:45},unit:{color:e.palette.grey[400],marginRight:5,display:"inline-block"},value:{color:l.default[300],display:"inline-block"}}})),u=function(e){var t=e.feedItem.context.daily_cost.data,i=t.cost,s=t.cumulative_cost,n=c();return r.jsxs(r.Fragment,{children:[r.jsxs(a.Typography,{variant:"body2",className:o.default(n.item,n.firstItem),children:["Daily Cost:",r.jsx("br",{}),r.jsx(a.Typography,{component:"span",variant:"caption",className:n.unit,children:"$"}),r.jsx(a.Typography,{"data-testid":"".concat("costsActivity","_dailyCost"),component:"span",variant:"h6",className:n.value,children:Number.isFinite(i)?i.formatNumeral("0,0.00"):"N/A"})]}),r.jsxs(a.Typography,{variant:"body2",className:n.item,children:["Cumulative Cost:",r.jsx("br",{}),r.jsx(a.Typography,{component:"span",variant:"caption",className:n.unit,children:"$"}),r.jsx(a.Typography,{"data-testid":"".concat("costsActivity","_cumulativeCost"),component:"span",variant:"h6",className:n.value,children:Number.isFinite(s)?s.formatNumeral("0,0.00"):"N/A"})]})]})};u.propTypes={feedItem:n.default.shape({context:n.default.shape({daily_cost:n.default.shape({data:n.default.shape({cost:n.default.number.isRequired,cumulative_cost:n.default.number.isRequired}).isRequired}).isRequired}).isRequired}).isRequired},module.exports=u;
//# sourceMappingURL=DrillingDailyCostFeedItem.js.map
