define(["Marionette"],function(a){return a.ItemView.extend({className:"handMenu",initialize:function(a){this.lessonsModel=a.lessonsModel,this.settingsModel=a.settingsModel,_.bindAll(this,"template")},template:function(){return window.Tmpl.menuHandMenu({settings:this.settingsModel.deepToJSON(),lesson:this.lessonsModel.getLessonJSON(),showAudioPlayStop:this.lessonsModel.isCurrentLessonAudio()||this.settingsModel.isModeAudioplay()?!0:!1})},events:{"click .action":"triggerHandler"},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)}})});