define(["ember"],function(a){return a.View.extend({classNames:["textfirst","text"],attributeBindings:["title"],layout:a.Handlebars.compile("{{#if view.text}}{{view.text}}{{else}}{{view.caption}}{{/if}}"),title:function(){return"text"==this.get("model.type")?"empty"==this.get("model.mode")?"":"请在右侧面板【内容属性】中输入内容":(this.get("model.properties.TopicYear")?this.get("model.properties.TopicYear")+"年":"")+(this.get("model.properties.TopicMonth")?this.get("model.properties.TopicMonth")+"月":"")+"主题："+this.get("model.properties.Title")}.property("model.type"),caption:function(){return"text"==this.get("model.type")?"empty"==this.get("model.mode")?"":"请在右侧面板【内容属性】中输入内容":"文本主题："+this.get("model.properties.Title")}.property("model.type"),text:function(){var b=this.get("model.data.resource.Text")||this.get("model.data.resource");return b?new a.Handlebars.SafeString(b.replace(/\n/g,"<br/>")):""}.property("model.data.resource")})});