function Controller(){function e(e,a){r.matchDetailPlayerRatings.add(r.UI.create("Label",{text:"   "+s.data.teams.home.name,classes:["header","bold"]})),_.each(e,function(e){r.matchDetailPlayerRatings.add(Alloy.createController("matchDetailPlayerRatingsHeader",{name:e.name,photo:e.image,rating:e.rating,description:e.description}).getView())}),_.defer(function(){r.matchDetailPlayerRatings.add(r.UI.create("Label",{text:"   "+s.data.teams.away.name,classes:["header","bold"]})),_.each(a,function(e){r.matchDetailPlayerRatings.add(Alloy.createController("matchDetailPlayerRatingsHeader",{name:e.name,photo:e.image,rating:e.rating,description:e.description}).getView())})})}function a(e,a){var t=[];return _.each(e,function(e){t.push(_.extend(e,_.find(a,function(a){return a.playerId===e.playerId})))}),t}function t(t){function r(t){n.i("Player Rating Details"+t);var r=a(t.playerRatings.home,s.data.teams.home.crew),l=a(t.playerRatings.away,s.data.teams.away.crew);_.defer(function(){e(r,l)})}function l(){}var c=i.signUrl(Alloy.CFG.feedUrls.playerRatings.replace("{{id}}",t));o.getData({getUrl:c},r,l)}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchDetailPlayerRatings",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var r=this,l={};r.__views.matchDetailPlayerRatings=Ti.UI.createScrollView({layout:"vertical",backgroundColor:Alloy.CFG.colors.lightGrey,id:"matchDetailPlayerRatings"}),r.__views.matchDetailPlayerRatings&&r.addTopLevelView(r.__views.matchDetailPlayerRatings),l.destroy=function(){},_.extend(r,r.__views);var n=require("helpers"),i=require("feedSigner"),o=require("netConnect"),s=arguments[0]||{};t(s.id),_.extend(r,l)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;