define(["Marionette"],function(a){return a.ItemView.extend({initialize:function(a){this.lessonsModel=a.lessonsModel,this.settingsModel=a.settingsModel,this.arrayModelsLessonToSet=a.arrayModelsLessonToSet,_.bindAll(this,"handleHammer","template")},template:function(){return window.Tmpl.lessonsSettings({allModels:this.lessonsModel.getAllModels(),arrayModelsLessonToSet:this.arrayModelsLessonToSet,hitMe:this.settingsModel.getHitMe(),showSelectd:window.myConfigApp.display.selectAll.show})},ui:{row:".row"},events:{"click .action":"triggerHandler"},onRender:function(){this.ui.row.hammer({velocity:.35}).bind("swipeleft swiperight",this.handleHammer)},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)},handleHammer:function(a){switch(componentUtils.stopEvent(a),a.type){case"swipeleft":this.trigger("request:left");break;case"swiperight":this.trigger("request:right")}}})});