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