/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{watch as t,syncAndInitial as s}from"../../core/reactiveUtils.js";import{subclass as i}from"../../core/accessorSupport/decorators.js";import{InteractiveToolBase as r}from"./InteractiveToolBase.js";let a=class extends r{constructor(e){super(e)}initialize(){this.addHandles(t(()=>this.analysisViewData.visible,e=>this.visible=e,s))}deactivate(){this.onDeactivate(),this.created||this.analysis.clear()}resetCreated(){this._set("created",!1)}};a=e([i("esri.views.interactive.AnalysisToolBase")],a);export{a as AnalysisToolBase};
