function Controller(){function e(e){i.isNum(e)&&(t.starsInner.width=Math.round(16*e))}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchDetailPlayerRatingsHeader",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var t=this,a={};t.__views.matchDetailPlayerRatingsHeader=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.default},width:Ti.UI.FILL,height:Ti.UI.SIZE,top:1,backgroundColor:Alloy.CFG.colors.white,verticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,text:"",id:"matchDetailPlayerRatingsHeader"}),t.__views.matchDetailPlayerRatingsHeader&&t.addTopLevelView(t.__views.matchDetailPlayerRatingsHeader),t.__views.photo=Ti.UI.createImageView({width:45,height:45,top:0,left:0,id:"photo"}),t.__views.matchDetailPlayerRatingsHeader.add(t.__views.photo),t.__views.ratingStars=Ti.UI.createView({width:80,height:16,backgroundImage:"/images/iconStarInactive.png",backgroundRepeat:!0,right:8,top:25,id:"ratingStars"}),t.__views.matchDetailPlayerRatingsHeader.add(t.__views.ratingStars),t.__views.starsInner=Ti.UI.createView({width:0,height:16,backgroundImage:"/images/iconStarActive.png",backgroundRepeat:!0,left:0,id:"starsInner"}),t.__views.ratingStars.add(t.__views.starsInner),t.__views.desc=Ti.UI.createLabel({font:{fontSize:14,fontFamily:Alloy.CFG.fonts.default},height:Ti.UI.SIZE,top:55,left:12,right:12,id:"desc"}),t.__views.matchDetailPlayerRatingsHeader.add(t.__views.desc),a.destroy=function(){},_.extend(t,t.__views);var i=require("helpers"),r=arguments[0]||{};t.matchDetailPlayerRatingsHeader.text="\n              "+r.name,t.photo.image=r.photo,r.description.length>0?t.desc.text=r.description+"\n\n":t.matchDetailPlayerRatingsHeader.remove(t.desc),e(r.rating),_.extend(t,a)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;