//>>built
define("dojox/mobile/ProgressIndicator","dojo/_base/config dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dijit/_Contained dijit/_WidgetBase ./_css3 dojo/has!dojo-bidi?dojox/mobile/bidi/ProgressIndicator".split(" "),function(v,h,w,k,f,l,n,p,q,r,t,u){var b=h("dojox.mobile.ProgressIndicator",[r,q],{interval:100,size:40,removeOnStop:!0,startSpinning:!1,center:!0,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=
[];this._bars=[]},buildRendering:function(){this.inherited(arguments);this.center&&k.add(this.domNode,"mblProgressIndicatorCenter");this.containerNode=f.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=f.create("div",null,this.containerNode);for(var a=0;12>a;a++){var c=f.create("div",{className:"mblProg mblProg"+a},this.spinnerNode);this._bars.push(c)}this.scale(this.size);this.startSpinning&&this.start()},scale:function(a){var c=a/40;n.set(this.containerNode,t.add({},{transform:"scale("+
c+")",transformOrigin:"0 0"}));l.setMarginBox(this.domNode,{w:a,h:a});l.setMarginBox(this.containerNode,{w:a/c,h:a/c})},start:function(){if(this.imageNode){var a=this.imageNode;a.style.margin=Math.round((this.containerNode.offsetHeight-a.offsetHeight)/2)+"px "+Math.round((this.containerNode.offsetWidth-a.offsetWidth)/2)+"px"}else{var c=0,g=this;this.timer=setInterval(function(){c--;c=0>c?11:c;for(var m=g.colors,d=0;12>d;d++){var e=(c+d)%12;m[e]?g._bars[d].style.backgroundColor=m[e]:k.replace(g._bars[d],
"mblProg"+e+"Color","mblProg"+(11===e?0:e+1)+"Color")}},this.interval)}},stop:function(){this.timer&&clearInterval(this.timer);this.timer=null;this.removeOnStop&&this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode)},setImage:function(a){a?(this.imageNode=f.create("img",{src:a},this.containerNode),this.spinnerNode.style.display="none"):(this.imageNode&&(this.containerNode.removeChild(this.imageNode),this.imageNode=null),this.spinnerNode.style.display="")},destroy:function(){this.inherited(arguments);
this===b._instance&&(b._instance=null)}});b=p("dojo-bidi")?h("dojox.mobile.ProgressIndicator",[b,u]):b;b._instance=null;b.getInstance=function(a){b._instance||(b._instance=new b(a));return b._instance};return b});