import{jsx as t}from"react/jsx-runtime";import{startCase as s}from"lodash";import e from"classnames";import{TableCell as o,Tooltip as a}from"@material-ui/core";import{ColumnType as l,LEAVE_TOUCH_DELAY as i}from"../../../../constants.js";import{PAGE_NAME as r}from"../types.js";import m from"../../components/OffsetWellsTableRow/OffsetWellsTableRow.module.css.js";var d=function(d){var n,c,u=d.data,f=d.isSubjectWell,p=d.borderStyle,v=d.columnsMap,h=d.isMobile,b=d.statusOptionsMap;return t(o,{"data-testid":"".concat(r,"_dot"),className:e(m.bodyCell,p),style:{minWidth:(null===(n=v.get(l.status))||void 0===n?void 0:n.minWidth)||0,flex:(null===(c=v.get(l.status))||void 0===c?void 0:c.flex)||0},children:!f&&t(a,{title:s(u[l.status]),enterTouchDelay:h?0:void 0,leaveTouchDelay:h?i:void 0,children:t("div",{className:m.statusContainer,children:t("div",{"data-testid":"".concat(r,"_color"),className:m.status,style:{background:b.get(u[l.status])}})})})})};export{d as StatusCell};
//# sourceMappingURL=StatusCell.js.map
