"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("classnames"),r=require("./BoxSelectionOverlay.module.css.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(l);exports.BoxSelectionOverlay=function(l){var a=l.startPoint,n=l.endPoint,s=l.wellsCount,u=l.isSatellite,o=void 0!==u&&u,c=t.useMemo((function(){return a&&n?{left:Math.min(a.x,n.x),top:Math.min(a.y,n.y),width:Math.abs(n.x-a.x),height:Math.abs(n.y-a.y)}:null}),[a,n]);if(!c)return null;var d=1===s?"1 well":"".concat(s," wells");return e.jsx("div",{className:i.default(r.boxOverlay,o&&r.satellite),style:c,children:s>0&&e.jsx("div",{className:i.default(r.countBadge,o&&r.satellite),children:d})})};
//# sourceMappingURL=BoxSelectionOverlay.js.map
