define(["ember","mm","numberpb"],function(a,b){return a.Component.extend({classNames:["unrc"],classNameBindings:["bg"],layoutName:"upload-progress-item",status:"processing",initialize:function(){var a=this.get("model");this.set("np",this.$().NumberProgressBar({current:a.percent,style:"percentage",duration:1e3}))}.on("didInsertElement"),process:function(){this.get("np").reach(this.get("model.percent"))}.observes("model.percent"),bg:function(){return!!this.get("model.focused")}.property("model.focused"),icon:function(){return"video"===this.get("model.category")?"/assets/css/theme/images/maxsp.png":"/assets/css/theme/images/pictures.png"}.property(),stoppable:function(){var a=this.get("model"),b=this.get("status");return"upload"===a.on&&"processing"===b}.property("status"),resumeable:function(){var a=this.get("model"),b=this.get("status");return"upload"===a.on&&"stopped"===b}.property("status"),actions:{toggleStatus:function(a){this.set("status",a);var c={stopped:"pause",processing:"resume"};b.post({name:this.get("model.name")},{module:"fileManager",action:c[a]})}}})});