/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/reactiveUtils","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","./InteractiveToolBase"],(function(e,s,t,o,a,i,r,c,n,l){"use strict";e.AnalysisToolBase=function(e){function t(s){return e.call(this,s)||this}s._inheritsLoose(t,e);var a=t.prototype;return a.initialize=function(){this.own(o.watch((()=>this.analysisViewData.visible),(e=>this.visible=e),o.syncAndInitial))},a.deactivate=function(){this.onDeactivate(),this.created||this.analysis.clear()},a.resetCreated=function(){this._set("created",!1)},t}(l.InteractiveToolBase),t.__decorate([a.property({constructOnly:!0})],e.AnalysisToolBase.prototype,"analysis",void 0),t.__decorate([a.property()],e.AnalysisToolBase.prototype,"analysisViewData",void 0),e.AnalysisToolBase=t.__decorate([n.subclass("esri.views.interactive.AnalysisToolBase")],e.AnalysisToolBase),Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
