/*
	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","dijit.ProgressBar"],["require","dojo.fx"],["require","dojo.number"],["require","dijit._Widget"],["require","dijit._Templated"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit.ProgressBar"]){_4._hasResource["dijit.ProgressBar"]=true;_4.provide("dijit.ProgressBar");_4.require("dojo.fx");_4.require("dojo.number");_4.require("dijit._Widget");_4.require("dijit._Templated");_4.declare("dijit.ProgressBar",[_5._Widget,_5._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:false,label:"",name:"",templateString:_4.cache("dijit","templates/ProgressBar.html","<div class=\"dijitProgressBar dijitProgressBarEmpty\" role=\"progressbar\"\r\n\t><div  dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\r\n\t\t><div class=\"dijitProgressBarTile\" role=\"presentation\"></div\r\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\r\n\t></div\r\n\t><div dojoAttachPoint=\"labelNode\" class=\"dijitProgressBarLabel\" id=\"${id}_label\"></div\r\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\" alt=\"\"\r\n/></div>\r\n"),_indeterminateHighContrastImagePath:_4.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);if(!("value" in this.params)){this.value=this.indeterminate?Infinity:this.progress;}},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update();},update:function(_7){_4.mixin(this,_7||{});var _8=this.internalProgress,ap=this.domNode;var _9=1;if(this.indeterminate){_5.removeWaiState(ap,"valuenow");_5.removeWaiState(ap,"valuemin");_5.removeWaiState(ap,"valuemax");}else{if(String(this.progress).indexOf("%")!=-1){_9=Math.min(parseFloat(this.progress)/100,1);this.progress=_9*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_9=this.progress/this.maximum;}_5.setWaiState(ap,"describedby",this.labelNode.id);_5.setWaiState(ap,"valuenow",this.progress);_5.setWaiState(ap,"valuemin",0);_5.setWaiState(ap,"valuemax",this.maximum);}this.labelNode.innerHTML=this.report(_9);_4.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);_8.style.width=(_9*100)+"%";this.onChange();},_setValueAttr:function(v){this._set("value",v);if(v==Infinity){this.update({indeterminate:true});}else{this.update({indeterminate:false,progress:v});}},_setLabelAttr:function(_a){this._set("label",_a);this.update();},_setIndeterminateAttr:function(_b){this.indeterminate=_b;this.update();},report:function(_c){return this.label?this.label:(this.indeterminate?"&nbsp;":_4.number.format(_c,{type:"percent",places:this.places,locale:this.lang}));},onChange:function(){}});}}};});