// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper dojo/i18n!../nls/common dojo/i18n!./Home/nls/Home ../core/accessorSupport/decorators ./Widget ./Home/HomeViewModel ./support/widget".split(" "),function(n,p,k,b,l,f,d,m,g,e){return function(h){function a(c){c=h.call(this,c)||this;c.goToOverride=null;c.iconClass="esri-icon-home";c.label=f.widgetLabel;c.view=null;c.viewModel=new g;c.viewpoint=null;return c}k(a,h);a.prototype.cancelGo=function(){return null};
a.prototype.go=function(){return null};a.prototype.render=function(){var c,a,b=this.get("viewModel.state"),d=(c={},c["esri-disabled"]="disabled"===b,c);c=(a={},a["esri-icon-loading-indicator"]="going-home"===b,a["esri-rotating"]="going-home"===b,a);a="going-home"===b?l.cancel:f.title;return e.tsx("div",{bind:this,class:this.classes("esri-home esri-widget--button esri-widget",d),role:"button",tabIndex:0,onclick:this._go,onkeydown:this._go,"aria-label":a,title:a},e.tsx("span",{"aria-hidden":"true",
class:this.classes("esri-icon esri-icon-home",c)}),e.tsx("span",{class:"esri-icon-font-fallback-text"},f.button))};a.prototype._go=function(){var a=this.viewModel;"going-home"===a.state?a.cancelGo():a.go()};b([d.aliasOf("viewModel.goToOverride")],a.prototype,"goToOverride",void 0);b([d.property()],a.prototype,"iconClass",void 0);b([d.property()],a.prototype,"label",void 0);b([d.aliasOf("viewModel.view"),e.renderable()],a.prototype,"view",void 0);b([d.property({type:g}),e.renderable("viewModel.state"),
e.vmEvent("go")],a.prototype,"viewModel",void 0);b([d.aliasOf("viewModel.viewpoint")],a.prototype,"viewpoint",void 0);b([d.aliasOf("viewModel.cancelGo")],a.prototype,"cancelGo",null);b([d.aliasOf("viewModel.go")],a.prototype,"go",null);b([e.accessibleHandler()],a.prototype,"_go",null);return a=b([d.subclass("esri.widgets.Home")],a)}(d.declared(m))});