"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useRadiusClickHandlers=function(n,t,r,a,l,u,i,c,s,o,d,p){return{handleMapClick:e.useCallback((function(e){if(n&&"placing-center"===t.phase){var r=e.lngLat,a={latitude:r.lat,longitude:r.lng};i(a),o.current=a,d.current="drawing",c(!0),s({phase:"drawing",center:a})}}),[n,t.phase,s,i,o,d,c]),handleMouseDown:e.useCallback((function(e){if(n&&"confirming"===t.phase&&r&&a)if(l)e.preventDefault(),d.current="resize",c(!0);else if(u){e.preventDefault();var i=e.lngLat;p.current={lat:i.lat-r.latitude,lng:i.lng-r.longitude},d.current="move",c(!0)}}),[n,t.phase,r,a,l,u,d,p,c])}};
//# sourceMappingURL=useRadiusClickHandlers.js.map
