"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("classnames"),l=require("moment"),t=require("@material-ui/icons/Info"),s=require("@material-ui/icons/Block"),i=require("./WellTooltip.module.css.js"),a=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),r=o(l),c=o(t),m=o(s);exports.WellTooltip=function(){return function(e){var l=e.isViewOnly,t=e.well,s=e.color,o=e.isOffsetWell,u=e.isSubjectWell,f=e.offset,d=e.isClickable;return a.jsxs("div",{className:i.wellTooltip,style:{marginLeft:null==f?void 0:f[0],marginTop:null==f?void 0:f[1]},children:[a.jsx("span",{className:n.default(i.commonItem,i.wellName),children:t.name}),a.jsxs("div",{className:i.tooltipItem,children:["Depth: ",Number.isFinite(t.totalDepth)?Math.floor(t.totalDepth).toFixed(2):"N/A",Number.isFinite(t.totalDepth)&&a.jsx("span",{className:i.unit,children:" ft"})]}),a.jsxs("div",{className:n.default(i.commonItem,i.tooltipItem),children:["Release Date: ",Number.isFinite(t.rigReleaseDate)?r.default.unix(t.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),a.jsxs("div",{className:n.default(i.commonItem,i.formationItem),children:["Target Formation:",a.jsx("div",{className:i.formation,style:{backgroundColor:s}}),t.formation]}),!l&&!u&&d&&a.jsxs("div",{className:n.default(i.commonItem,i.info),children:[o?a.jsx(m.default,{className:i.blockIcon}):a.jsx(c.default,{className:i.infoIcon}),o?a.jsx("span",{className:i.infoLabel,children:"Click to deselect Offset Well"}):a.jsx("span",{className:i.infoLabel,children:"Click to select Offset Well"})]})]})}};
//# sourceMappingURL=WellTooltip.js.map
