define(["Marionette"],function(a){return a.ItemView.extend({initialize:function(a){this.showAudio=a.showAudio,this.isModeAudioplay=a.isModeAudioplay,this.isAudioStoped=a.isAudioStoped,this.currentLesson=a.currentLesson,this.lessonsLength=a.lessonsLength,this.currentAudioPosition=a.currentAudioPosition,this.currentAudioLength=a.currentAudioLength,this.currentWaitPosition=a.currentWaitPosition,this.currentWaitLength=a.currentWaitLength,this.progressMore=a.progressMore,this.category=a.category,_.bindAll(this,"template")},template:function(){var a=Math.round(100*(this.currentLesson+1)/this.lessonsLength),b=Math.round(100*this.currentAudioPosition/this.currentAudioLength),c=Math.round(100*this.currentWaitPosition/this.currentWaitLength);return c=_.isNaN(c)?0:c,a=_.isNaN(a)?0:a,b=_.isNaN(b)?0:b,window.Tmpl.progressShowcase({currentLesson:this.currentLesson+1,lessonsLength:this.lessonsLength,currentLessonProgress:a,currentAudioProgress:b,currentWaitProgress:c,showAudio:this.showAudio,category:this.category,isModeAudioplay:this.isModeAudioplay,isAudioStoped:this.isAudioStoped,progressMore:this.progressMore})},ui:{actions:".action"},events:{"click .action":"triggerHandler"},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)}})});