// All material copyright ESRI, All Rights Reserved, unless otherwise specified.// See https://js.arcgis.com/4.6/esri/copyright.txt for details.//>>builtdefine("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/accessorSupport/decorators ./support/widget ./Widget ./Zoom/IconButton ./Zoom/ZoomViewModel dojo/i18n!./Zoom/nls/Zoom".split(" "),function(m,n,k,b,c,d,l,e,f,g){returnfunction(h){functiona(a){a=h.call(this)||this;a.view=null;a.viewModel=newf;returna}k(a,h);a.prototype.postInitialize=function(){this._zoomInButton=newe({action:this.zoomIn,iconClass:"esri-icon-plus",title:g.zoomIn});this._zoomOutButton=newe({action:this.zoomOut,iconClass:"esri-icon-minus",title:g.zoomOut})};Object.defineProperty(a.prototype,"layout",{set:function(a){"horizontal"!==a&&(a="vertical");this._set("layout",a)},enumerable:!0,configurable:!0});a.prototype.render=function(){vara=this.viewModel,c=(b={},b["esri-zoom--horizontal"]="horizontal"===this.layout,b);this._zoomInButton.enabled="ready"===a.state&&a.canZoomIn;this._zoomOutButton.enabled="ready"===a.state&&a.canZoomOut;returnd.tsx("div",{class:"esri-zoom esri-widget",classes:c},this._zoomInButton.render(),this._zoomOutButton.render());varb};a.prototype.zoomIn=function(){};a.prototype.zoomOut=function(){};b([c.property({value:"vertical"}),d.renderable()],a.prototype,"layout",null);b([c.aliasOf("viewModel.view"),d.renderable()],a.prototype,"view",void0);b([c.property({type:f}),d.renderable(["viewModel.canZoomIn","viewModel.canZoomOut","viewModel.state"])],a.prototype,"viewModel",void0);b([c.aliasOf("viewModel.zoomIn")],a.prototype,"zoomIn",null);b([c.aliasOf("viewModel.zoomOut")],a.prototype,"zoomOut",null);returna=b([c.subclass("esri.widgets.Zoom")],a)}(c.declared(l))});