import{jsxs as o,Fragment as t,jsx as e}from"react/jsx-runtime";import{Popup as l}from"@vis.gl/react-mapbox";import{TOOLTIP_DIMENSIONS as i}from"../../../../hooks/useTooltipAnchor.js";import{WellTooltip as s}from"../../../WellTooltip/WellTooltip.js";import{ClusterTooltip as r}from"../../../ClusterTooltip/ClusterTooltip.js";import c from"../../../../OffsetWellMap.module.css.js";var n=function(n){var u=n.hoveredWell,p=n.hoveredCluster,a=n.tooltipAnchor,d=n.tooltipOffset,f=n.isViewOnly,m=n.isClickable;return o(t,{children:[u&&e(l,{longitude:u.coords.longitude,latitude:u.coords.latitude,closeButton:!1,closeOnClick:!1,anchor:a,offset:d,maxWidth:"".concat(i.maxWidth,"px"),className:c.popup,children:e(s,{well:u.well,isOffsetWell:u.isOffsetWell,isSubjectWell:u.isSubjectWell,isViewOnly:f,isClickable:m})}),p&&p.selectedCount>0&&e(l,{longitude:p.coords.longitude,latitude:p.coords.latitude,closeButton:!1,closeOnClick:!1,anchor:"top",offset:[0,27],className:c.popup,children:e(r,{selectedCount:p.selectedCount,totalCount:p.totalCount})})]})};export{n as MapTooltipPopups};
//# sourceMappingURL=MapTooltipPopups.js.map
