import{useEffect as n}from"react";var e=function(e,t){n((function(){var n=function(){"none"!==t.current&&e()};return document.addEventListener("mouseup",n),function(){document.removeEventListener("mouseup",n)}}),[e,t])},t=function(e,t,r){n((function(){e||(t.setCenter(null),r.centerRef.current=null,t.setRadiusMiles(null),r.radiusMilesRef.current=null,r.dragModeRef.current="none",r.dragOffsetRef.current=null,t.setIsDragging(!1),t.setIsHoveringEdge(!1),t.setIsHoveringInside(!1))}),[e,t,r])},r=function(e,t,r,u,c){n((function(){"placing-center"===e&&(t(null),u.current=null,r(null),c.current=null)}),[e,t,r,u,c])},u=function(e,t){n((function(){t.current=e}),[e,t])};export{e as useGlobalRadiusMouseUp,t as useResetOnInactive,r as useSyncPlacingCenter,u as useSyncRadiusMilesRef};
//# sourceMappingURL=useRadiusDrawingEffects.js.map
