/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{makeHandle as e}from"../../../../core/handleUtils.js";import{hasFeatureExpressionInfo as n}from"../../../../support/elevationInfoUtils.js";function o(e,n){return t(e?.data.coordinateHelper.hasZ(),n)}function t(e,o){return!!e&&"on-the-ground"!==o.mode&&!n(o)}function r(n,o){let t=null;const r=n.events.on("grab-changed",e=>{null!=t&&(t.remove(),t=null),"start"===e.action?(t=n.disableDisplay(),o&&o(e)):o&&o(e)});return e(()=>{t?.remove(),r.remove()})}export{o as canMoveZOperations,r as disableDisplayOnGrab};
