define("qui/controls/loader/Progress",["qui/controls/Control","css!qui/controls/loader/Progress.css"],function(t){"use strict";return new Class({Extends:t,Type:"qui/controls/loader/Progress",options:{color:"#d52349",styles:!1},initialize:function(t){this.parent(t),this.$Bar=null,this.$BarFX=null,this.$interval=!1},create:function(){var t=this.getAttribute("color");return this.$Elm=this.parent(),this.$Elm.addClass("qui-progress"),this.$Bar=new Element("div",{"class":"qui-progress-bar",styles:{background:t,boxShadow:"0 0 10px "+t+", 0 0 5px "+t}}).inject(this.$Elm),this.$BarFX=moofx(this.$Bar),this.reset(),this.getAttribute("styles")&&this.$Bar.setStyles(this.getAttribute("styles")),this.$Elm},reset:function(){this.stopIncrement(),this.$BarFX.style("width",0)},set:function(t){var s=this.$Elm.getSize().x,i=(s/100*t).round();this.$BarFX.animate({width:i})},increment:function(t){this.reset(),this.$BarFX.animate({width:"100%"},{duration:t,equation:"linear"})},stopIncrement:function(){this.$BarFX.style("width",this.$BarFX.compute("width"))}})});
//# sourceMappingURL=Progress.js.map