function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchDetailLiveActionItem",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,t={};e.__views.matchDetailLiveActionItem=Ti.UI.createView({width:Ti.UI.FILL,height:Ti.UI.SIZE,top:1,backgroundColor:Alloy.CFG.colors.white,id:"matchDetailLiveActionItem"}),e.__views.matchDetailLiveActionItem&&e.addTopLevelView(e.__views.matchDetailLiveActionItem),e.__views.minute=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.bold},width:44,height:56,left:0,top:0,textAlign:"center",backgroundColor:Alloy.CFG.colors.lightGrey,id:"minute"}),e.__views.matchDetailLiveActionItem.add(e.__views.minute),e.__views.icon=Ti.UI.createView({width:18,height:18,left:50,top:8,id:"icon"}),e.__views.matchDetailLiveActionItem.add(e.__views.icon),e.__views.title=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.bold},height:Ti.UI.SIZE,top:6,bottom:8,left:72,right:8,id:"title"}),e.__views.matchDetailLiveActionItem.add(e.__views.title),e.__views.commentary=Ti.UI.createLabel({font:{fontSize:14,fontFamily:Alloy.CFG.fonts.default},top:28,left:50,right:8,id:"commentary"}),e.__views.matchDetailLiveActionItem.add(e.__views.commentary),t.destroy=function(){},_.extend(e,e.__views);var i=require("helpers");require("alloy/moment");var a=arguments[0]||{};if(e.minute.text=a.item.minute+"'",void 0!==a.item.text&&(e.commentary.text=a.item.text+"\n\n"),a.item.type)switch(a.item.type){case"goal":e.addClass(e.icon,"iconGoal"),e.title.text=L("Matchdetail_Goal")+": "+a.item.playerName;break;case"ownGoal":e.addClass(e.icon,"iconOwnGoal"),e.title.text=a.item.playerName;break;case"assist":break;case"penaltyGoal":e.addClass(e.icon,"iconPenaltyGoal"),e.title.text=a.item.playerName;break;case"yellowCard":case"2ndYellowCard":e.addClass(e.icon,"iconYellowCard"),e.title.text=a.item.playerName;break;case"redCard":e.addClass(e.icon,"iconRedCard"),e.title.text=a.item.playerName;break;case"substitutionOut":e.addClass(e.icon,"iconSubOff"),e.title.text=a.item.playerName;break;case"substitutionIn":e.addClass(e.icon,"iconSubOn"),e.title.text=a.item.playerName;break;default:i.e("invalid event type")}else e.matchDetailLiveActionItem.remove(e.icon),e.matchDetailLiveActionItem.remove(e.title),e.commentary.top=8;_.extend(e,t)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;