"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("react/jsx-runtime"),l=require("classnames"),a=require("moment"),r=require("@material-ui/core"),s=require("../../../../constants.js"),i=require("../types.js"),u=require("../../components/OffsetWellsTableRow/OffsetWellsTableRow.module.css.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),c=n(l),d=n(a);exports.LastActiveCell=function(e){var l,a,n=e.data,m=e.borderStyle,f=e.columnsMap,v=e.lastCellColumn;return t.jsx(r.TableCell,{"data-testid":"".concat(i.PAGE_NAME,"_lastActive"),className:c.default(u.bodyCell,m,o.default({},u.lastCell,"lastActive"===v)),style:{minWidth:(null===(l=f.get(s.ColumnType.lastActive))||void 0===l?void 0:l.minWidth)||0,flex:(null===(a=f.get(s.ColumnType.lastActive))||void 0===a?void 0:a.flex)||0},children:t.jsx(r.Typography,{variant:"body2",className:u.cellData,children:n[s.ColumnType.lastActive]&&Number.isFinite(n[s.ColumnType.lastActive])?d.default.unix(n[s.ColumnType.lastActive]).format("MM/DD/YYYY"):"—"})})};
//# sourceMappingURL=LastActiveCell.js.map
