import e from"@babel/runtime/helpers/defineProperty";import{jsx as l,Fragment as t}from"react/jsx-runtime";import{get as o}from"lodash";import r from"classnames";import{TableCell as i}from"@material-ui/core";import{MetricCell as m}from"../../components/MetricCell/MetricCell.js";import{PAGE_NAME as s}from"../types.js";import a from"../../components/OffsetWellsTableRow/OffsetWellsTableRow.module.css.js";var n=function(n){var d=n.data,c=n.metricsKeys,f=n.metricsMap,p=n.borderStyle,u=n.columnsMap,v=n.lastCellColumn,h=n.loadingWellIds;return l(t,{children:c.map((function(t,n){var y,b,g=f.get(t),C=g?o(d,g.key):void 0;return l(i,{"data-testid":"".concat(s,"_").concat(t),className:r(a.bodyCell,p,e({},a.lastCell,"lastMetric"===v&&n===c.length-1)),style:{minWidth:(null===(y=u.get(t))||void 0===y?void 0:y.minWidth)||0,flex:(null===(b=u.get(t))||void 0===b?void 0:b.flex)||0},children:l(m,{value:C,wellId:d.id,loadingWellIds:h,metric:g})},t)}))})};export{n as MetricsCells};
//# sourceMappingURL=MetricsCells.js.map
