function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchDetailTeamForm",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,t={};e.__views.team=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.bold},width:136,height:44,top:6,textAlign:"left",verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,text:"",id:"team"}),e.__views.team&&e.addTopLevelView(e.__views.team),e.__views.icon0=Ti.UI.createView({width:24,height:24,bottom:0,left:0,id:"icon0"}),e.__views.team.add(e.__views.icon0),e.__views.icon1=Ti.UI.createView({width:24,height:24,bottom:0,left:28,id:"icon1"}),e.__views.team.add(e.__views.icon1),e.__views.icon2=Ti.UI.createView({width:24,height:24,bottom:0,left:56,id:"icon2"}),e.__views.team.add(e.__views.icon2),e.__views.icon3=Ti.UI.createView({width:24,height:24,bottom:0,left:84,id:"icon3"}),e.__views.team.add(e.__views.icon3),e.__views.icon4=Ti.UI.createView({width:24,height:24,bottom:0,left:112,id:"icon4"}),e.__views.team.add(e.__views.icon4),t.destroy=function(){},_.extend(e,e.__views),require("helpers");var i=arguments[0]||{};e.team.text=i.team,"right"===i.align?e.team.right=12:e.team.left=12,_.each(i.results,function(t,i){switch(t){case"win":e.addClass(e.getView("icon"+i),"iconWin");break;case"loss":e.addClass(e.getView("icon"+i),"iconLoss");break;case"draw":e.addClass(e.getView("icon"+i),"iconDraw")}}),_.extend(e,t)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;