"use strict";var e=require("moment"),o=require("@material-ui/core"),t=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(e),i=o.makeStyles({popup:{color:"#fff",fontFamily:"Roboto"},wellColor:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},wellNameWrapper:{marginBottom:"8px"},wellName:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",lineHeight:"16px",letterSpacing:"0.4px",color:"#FFFFFF"},popupInfo:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"11px",lineHeight:"16px",letterSpacing:"0.4px",color:"#BDBDBD"},popupFormation:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD"}});module.exports=function(){return function(e){var o=e.well,l=e.color,r=i();return t.jsxs("div",{className:r.popup,children:[t.jsx("div",{className:r.wellNameWrapper,children:t.jsx("span",{className:r.wellName,children:o.name})}),t.jsxs("div",{className:r.popupInfo,children:["Well Depth:",Number.isFinite(o.rigReleaseDate)?"".concat(Math.floor(o.totalDepth)," ft"):"N/A"]}),t.jsxs("div",{className:r.popupInfo,children:["Release Date:",Number.isFinite(o.rigReleaseDate)?a.default.unix(o.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),t.jsxs("div",{className:r.popupFormation,children:[t.jsx("div",{className:r.wellColor,style:{backgroundColor:l}}),o.formation]})]})}};
