import{jsx as e}from"react/jsx-runtime";import l from"classnames";import{TableCell as t,Tooltip as o,Typography as i}from"@material-ui/core";import{ColumnType as s}from"../../../../constants.js";import{ViewWellSectionsName as n}from"../../components/ViewWellSectionsName/ViewWellSectionsName.js";import{PAGE_NAME as r}from"../types.js";import c from"../../components/OffsetWellsTableRow/OffsetWellsTableRow.module.css.js";var a=function(a){var m,d,f=a.borderStyle,p=a.columnsMap,h=a.wellSectionData,u=a.getSectionColor;return e(t,{"data-testid":"".concat(r,"_wellSection"),className:l(c.bodyCell,c.lastCell,f),style:{minWidth:(null===(m=p.get(s.wellSection))||void 0===m?void 0:m.minWidth)||0,flex:(null===(d=p.get(s.wellSection))||void 0===d?void 0:d.flex)||0},children:h&&h.length>1?e(o,{classes:{tooltip:c.customTooltip},title:e(n,{wellSectionNames:h}),children:e("div",{className:c.sectionLength,children:h.length})}):e(o,{title:h||"",children:e(i,{variant:"body2",className:c.cellData,style:{color:h&&1===h.length&&u(h)||void 0},children:h})})})};export{a as WellSectionCell};
//# sourceMappingURL=WellSectionCell.js.map
