define(["Marionette","config/Config"],function(a,b){return a.ItemView.extend({className:"maxDiv",initialize:function(a){this.lessonsModel=a.lessonsModel,_.bindAll(this,"template")},template:function(){return window.Tmpl.tabSettings({lengthCards:this.lessonsModel.getCountAllLessonsCards(),settingsActive:b.constants.tab.currentActiveTab===b.constants.tab.settingsTab?!0:!1,lessonsActive:b.constants.tab.currentActiveTab===b.constants.tab.lessonTab?!0:!1})},events:{"click .action":"triggerHandler"},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)}})});