import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"react";import"geolib";import"lodash/isEqual";import"lodash/throttle";import"../../../../../../utils/index.js";import"../constants.js";import"../../../../../../utils/convert.js";import"@turf/circle";import"@turf/bbox";import"@mapbox/tilebelt";import"@babel/runtime/helpers/toConsumableArray";import"mapbox-gl";import"./utils/well-markers-utils.js";import{useTooltip as o}from"./useTooltip.js";import{useTooltipAnchor as t}from"./useTooltipAnchor.js";import"../../../../stores/selection-tool-store/SelectionToolStoreContext.js";import"../../../../stores/selection-tool-store/SelectionToolStoreProvider.js";import"zustand";import{useElementSize as e}from"./useElementSize.js";import"../../../../stores/viewport-store/ViewportStoreContext.js";import"../../../../stores/filter-store/FilterStoreContext.js";import"../../../../stores/picker-props-store/PickerPropsStoreContext.js";import"../../../../stores/viewport-store/ViewportStoreProvider.js";import"../../../../stores/view-store/ViewStoreContext.js";import"../../../../constants.js";var r=function(r){var i,s,l=r.mapRef,p=r.isViewOnly,m=r.isClickable,n=o(),u=n.hoveredWell,h=n.hoveredCluster,a=n.showTooltip,c=n.showClusterTooltip,d=n.hideTooltip,b=e(),j=b.ref,f=b.width,v=b.height,w=t({mapRef:l,coords:null!==(i=null==u?void 0:u.coords)&&void 0!==i?i:null,isSubjectWell:null!==(s=null==u?void 0:u.isSubjectWell)&&void 0!==s&&s,isViewOnly:p,isClickable:m,hintsWidth:f,hintsHeight:v});return{hoveredWell:u,hoveredCluster:h,showTooltip:a,showClusterTooltip:c,hideTooltip:d,hintsRef:j,tooltipAnchor:w.anchor,tooltipOffset:w.offset}};export{r as useMapTooltipState};
//# sourceMappingURL=useMapTooltipState.js.map
