define(["Marionette"],function(a){return a.LayoutView.extend({initialize:function(a){this.lessonsModel=a.lessonsModel,this.settingsModel=a.settingsModel,this.lesson=this.lessonsModel.getLessonJSON(),this.lang=window.dictionary.getActiveLearningLanguage(),_.bindAll(this,"template")},template:function(){var a=null,b=null,c=null,d=null,e=null,f=null;return this.lesson.text.Q&&(a=this.lesson.text.Q,this.lesson.text.A&&(b=this.lesson.text.A)),this.lesson.text.W&&(e=this.lesson.text.W),this.lesson.text.polish_W&&"pl"===this.lang?f=this.lesson.text.polish_W:this.lesson.text.chinese_W&&"zh"===this.lang&&(f=this.lesson.text.chinese_W),this.lesson.text.polish_A&&"pl"===this.lang?(c=this.lesson.text.polish_Q,this.lesson.text.polish_A&&(d=this.lesson.text.polish_A)):this.lesson.text.chinese_Q&&"zh"===this.lang&&(c=this.lesson.text.chinese_Q,this.lesson.text.chinese_A&&(d=this.lesson.text.chinese_A)),window.Tmpl.textLesson({word:e,wordTranslate:f,header1:a,header2:b,hint1:c,hint2:d,isBiggerText:"zh"===this.lang})},events:{"click .action":"triggerHandler"},triggerHandler:function(a){componentUtils.stopEvent(a),this.trigger("request:"+a.currentTarget.dataset.action,a.currentTarget.dataset.id)}})});