/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../core/Evented.js";import{makeHandle as i}from"../../core/handleUtils.js";import{EsriPromiseMixin as r}from"../../core/Promise.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";let n=class extends(r(t)){constructor(){super(...arguments),this.parent=null,this._userInteractive=!1,this._interactiveViewModelCount=0}get interactive(){return this._interactiveViewModelCount>0||this._userInteractive}set interactive(e){this._userInteractive=e}get updating(){return!1}get visible(){return(this.parent?.visible&&!this.parent.suspended)??!0}set visible(e){this._overrideIfSome("visible",e)}forceInteractive(){return this._interactiveViewModelCount++,i(()=>this._interactiveViewModelCount--)}};e([o({constructOnly:!0})],n.prototype,"parent",void 0),e([o({constructOnly:!0})],n.prototype,"view",void 0),e([o({type:Boolean})],n.prototype,"interactive",null),e([o()],n.prototype,"_userInteractive",void 0),e([o({readOnly:!0})],n.prototype,"updating",null),e([o()],n.prototype,"visible",null),e([o()],n.prototype,"_interactiveViewModelCount",void 0),n=e([s("esri.views.analysis.AnalysisView")],n);export{n as default};
