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