/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";let r=class extends e{get canZoomIn(){const t=this.view?.ready;if(!t)return!1;const e=this.view?.constraints?.effectiveMaxScale;return 0===e||this._scale>e}get canZoomOut(){const{view:t}=this,e=t?.ready;if(!e)return!1;const o=t.constraints?.effectiveMinScale;return 0===o||this._scale<o}get _scale(){const t=this.view?.animation?.target;return(t&&"then"in t?void 0:t?.scale)??this.view?.scale??0}};t([o({readOnly:!0})],r.prototype,"canZoomIn",null),t([o({readOnly:!0})],r.prototype,"canZoomOut",null),t([o()],r.prototype,"view",void 0),t([o()],r.prototype,"_scale",null),r=t([s("esri.widgets.Zoom.ZoomConditions2D")],r);const n=r;export{n as default};
