/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as o}from"tslib";import t from"../../core/Accessor.js";import{property as e,subclass as r}from"../../core/accessorSupport/decorators.js";let s=class extends t{constructor(o){super(o),this.view=null}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([e()],s.prototype,"canZoomIn",null),o([e()],s.prototype,"canZoomOut",null),o([e({readOnly:!0})],s.prototype,"state",null),o([e()],s.prototype,"view",void 0),s=o([r("esri.widgets.Zoom.ZoomViewModel")],s);const i=s;export{i as default};
