/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.form.BusyButton"],["require","dijit.form.Button"],["requireLocalization","dijit","loading",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw","ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.form.BusyButton"]){_4._hasResource["dojox.form.BusyButton"]=true;_4.provide("dojox.form.BusyButton");_4.require("dijit.form.Button");_4.declare("dojox.form._BusyButtonMixin",null,{isBusy:false,busyLabel:"",timeout:null,useIcon:true,postMixInProperties:function(){this.inherited(arguments);if(!this.busyLabel){this.busyLabel=_4.i18n.getLocalization("dijit","loading",this.lang).loadingState;}},postCreate:function(){this.inherited(arguments);this._label=this.containerNode.innerHTML;this._initTimeout=this.timeout;if(this.isBusy){this.makeBusy();}},makeBusy:function(){this.isBusy=true;this.set("disabled",true);this.setLabel(this.busyLabel,this.timeout);},cancel:function(){this.set("disabled",false);this.isBusy=false;this.setLabel(this._label);if(this._timeout){clearTimeout(this._timeout);}this.timeout=this._initTimeout;},resetTimeout:function(_7){if(this._timeout){clearTimeout(this._timeout);}if(_7){this._timeout=setTimeout(_4.hitch(this,function(){this.cancel();}),_7);}else{if(_7==undefined||_7===0){this.cancel();}}},setLabel:function(_8,_9){this.label=_8;while(this.containerNode.firstChild){this.containerNode.removeChild(this.containerNode.firstChild);}this.containerNode.innerHTML=this.label;if(this.showLabel==false&&!(_4.attr(this.domNode,"title"))){this.titleNode.title=_4.trim(this.containerNode.innerText||this.containerNode.textContent||"");}if(_9){this.resetTimeout(_9);}else{this.timeout=null;}if(this.useIcon&&this.isBusy){var _a=new Image();_a.src=this._blankGif;_4.attr(_a,"id",this.id+"_icon");_4.addClass(_a,"dojoxBusyButtonIcon");this.containerNode.appendChild(_a);}},_clicked:function(e){if(!this.isBusy){this.makeBusy();}}});_4.declare("dojox.form.BusyButton",[_5.form.Button,_6.form._BusyButtonMixin],{});_4.declare("dojox.form.BusyComboButton",[_5.form.ComboButton,_6.form._BusyButtonMixin],{});_4.declare("dojox.form.BusyDropDownButton",[_5.form.DropDownButton,_6.form._BusyButtonMixin],{});}}};});