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