/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o}from"tslib";import e from"../../core/Accessor.js";import{deprecateUnnecessaryViewModel as t}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{property as s,subclass as i}from"../../core/accessorSupport/decorators.js";let n=class extends e{constructor(o){super(o),this.view=null,o?.suppressDeprecationWarning||t(r.getLogger(this),"Zoom","arcgis-zoom",{version:"5.0"})}normalizeCtorArgs(o){const{suppressDeprecationWarning:e,...t}=o??{};return t}destroy(){this.view=null}get canZoomIn(){return!!this.view?.canZoomIn}get canZoomOut(){return!!this.view?.canZoomOut}get state(){return this.view?.ready?"ready":"disabled"}zoomIn(){this.view?.zoomIn()}zoomOut(){this.view?.zoomOut()}};o([s()],n.prototype,"canZoomIn",null),o([s()],n.prototype,"canZoomOut",null),o([s({readOnly:!0})],n.prototype,"state",null),o([s()],n.prototype,"view",void 0),n=o([i("esri.widgets.Zoom.ZoomViewModel")],n);const m=n;export{m as default};
