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