/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import r from"../../../core/Accessor.js";import{property as e,subclass as i}from"../../../core/accessorSupport/decorators.js";const o=160;let s=class extends r{constructor(){super(...arguments),this._timer=void 0}get stationary(){return!this._timer}flip(){this._timestamp=performance.now(),null==this._timer&&(this._timer=setInterval(()=>{performance.now()-this._timestamp>=o&&this.clear()},o))}clear(){this._timer&&(clearInterval(this._timer),this._timer=void 0)}};t([e()],s.prototype,"_timer",void 0),t([e()],s.prototype,"stationary",null),s=t([i("esri.views.2d.support.StationaryManager")],s);export{s as StationaryManager};
