import{useCallback as e}from"react";var n=function(n,t,r,a,i,l,u,c,o,f,g,p){return{handleMapClick:e((function(e){if(n&&"placing-center"===t.phase){var r=e.lngLat,a={latitude:r.lat,longitude:r.lng};u(a),f.current=a,g.current="drawing",c(!0),o({phase:"drawing",center:a})}}),[n,t.phase,o,u,f,g,c]),handleMouseDown:e((function(e){if(n&&"confirming"===t.phase&&r&&a)if(i)e.preventDefault(),g.current="resize",c(!0);else if(l){e.preventDefault();var u=e.lngLat;p.current={lat:u.lat-r.latitude,lng:u.lng-r.longitude},g.current="move",c(!0)}}),[n,t.phase,r,a,i,l,g,p,c])}};export{n as useRadiusClickHandlers};
//# sourceMappingURL=useRadiusClickHandlers.js.map
