main.b3d487bc665090d1efe0.js 23.1 KB
(window.webpackJsonp=window.webpackJsonp||[]).push([["b71d"],{"1nFJ":function(t,n){angular.module("fr.fixedHeader",[]).directive("frFixedHeader",["$window",function(t){return{restrict:"A",link:function(n,e){var a=angular.element(t),o=$(".sidebar"),i=0,r=0,c=!1;$(".up-anchor").click(function(){$("html, body").animate({scrollTop:0},100)}),a.on("scroll",function(t){r=a.scrollTop(),i<r&&r-i>5||r<10?c&&(o.removeClass("mini-visible"),c=!1):!c&&i-r>10&&r>e.offset().top&&(o.addClass("mini-visible"),c=!0),i=r})}}}])},BABk:function(t,n,e){"use strict";e.r(n);e("ls82");var a=e("TnM4"),o=e.n(a);e("oqG6"),e("Army"),e("Wqh7"),e("s51g"),e("kz4j"),e("1nFJ"),e("QZJb"),e("BruS");angular.module("fr.infiniteScroll",["fr.infiniteScrollCtrl","infinite-scroll"]).directive("frInfiniteScroll",["$compile","infiniteScrollCtrl",function(t,n){return{restrict:"A",priority:1e3,terminal:!0,compile:function(e,a){return e.removeAttr("fr-infinite-scroll"),e.attr("infinite-scroll","infiniteScroll()"),e.attr("infinite-scroll-disabled","infiniteScrollDisabled"),function(e,a){n(e,a),t(a)(e)}}}}]);e("R7QU");angular.module("fr.searchCtrl",["fr.search"]).service("searchCtrl",["search",function(t){return function(n){var e=0,a=0;n.openSearch=function(){n.isSearchBarActive=!0,n.searchResult&&n.searchQuery.trim()&&(n.showSearchResult=!0)},n.closeSearch=function(){n.showSearchResult=!1},n.search=function(){if(n.searchQuery.trim()){var o=e++;t(n.searchQuery).then(function(t){a>o||(a=o,n.searchResult=t,n.showSearchResult=!0)})}else n.showSearchResult=!1},n.activateSearch=function(){n.isSearchBarActive=!0,setTimeout(function(){$(".search-field").focus()},0)}}}]);e("zWnA"),e("BHLf"),e("A+5J");angular.module("fr.litelay",[]).directive("frLitelay",function(){return{link:function(t,n,e){var a;t.$watch(e.frLitelay,function(t){t!==a&&(a=t,t?n.litelay({off:!1,spinner:!0}):n.litelay({off:!0}))})}}});e("ePHq"),e("MqjG"),e("USXK"),e("UyR6");var i=function(t,n){t.loginOrigin=window.location,t.fbLogin=function(){t.fbLoginError=null,FB.login(function(e){!function(e){var a=null;"connected"===e.status&&(a=e.authResponse.accessToken,n.post("/fblogin",{token:a}).then(function(n){"authorized"===n.data?window.location="/":"not_found"===n.data?window.location="/signup/?fbtoken="+a:t.fbLoginError=n.data}))}(e)},{scope:"public_profile,email"})}};i.$inject=["$scope","$http"];var r=i;function c(t){$(t.menuEl).each(function(){var n=!0,e=$(this).data("menu"),a=t.contentEl+'[data-menu="'+e+'"]',o=t.menuEl+'[data-menu="'+e+'"]';function i(t){0!==$(t.target).closest(o).length&&27!==t.keyCode||r()}function r(){$(a).off("click touchend"),$("html").off("click touchend keyup",i),$(a).css({opacity:0}),setTimeout(function(){$(a).css({display:"none"})},0),$(o).removeClass("is-active"),$("html").removeClass("is-"+e+"-open"),n=!0}void 0!==e&&$(o).on("click",function(t){n?($("html").on("click touchend keyup",i),$(a).on("click touchend",function(t){t.stopPropagation()}),$(".js-close-dropdown",a).one("click",r),$(a).show(),setTimeout(function(){$(a).css({opacity:1})},0),$(o).addClass("is-active"),$("html").addClass("is-"+e+"-open"),n=!1):r()})})}window._=o.a,"function"!=typeof window.Promise&&(window.Promise=angular.injector(["ng"]).get("$q")),$.ajaxSetup({beforeSend:function(t,n){"GET"===n.type||this.crossDomain||t.setRequestHeader("X-XSRF-TOKEN",$.cookie("XSRF-TOKEN"))}}),$.expr[":"].econtains=function(t,n,e){return(t.textContent||t.innerText||$(t).text()||"").toLowerCase()===e[3].toLowerCase()},o.a.templateSettings={interpolate:/\{\{(.+?)\}\}/g,evaluate:/\<\@(.+?)\@\>/gim},$(document).ready(function(){c({menuEl:".bar-nav li",contentEl:".dropdown-nav"}),c({menuEl:".main-nav li",contentEl:".dropdown-nav"})}),jQuery.QueryString=function(t){if(""==t)return{};for(var n={},e=0;e<t.length;++e){var a=t[e].split("=");2==a.length&&(n[a[0]]=decodeURIComponent(a[1].replace(/\+/g," ")))}return n}(window.location.search.substr(1).split("&")),$(document).ready(function(){$.cookie("author")&&$("#commenter input[name='author']").val($.cookie("author").replace(/\+/," ")),$.cookie("email")&&$("#commenter input[name='email']").val($.cookie("email")),$.cookie("teamname")&&$("#commenter input[name='teamname']").val($.cookie("teamname").replace(/\+/g," "))}),angular.module("ui.filters",[]).filter("unique",function(){return function(t,n){if(!1===n)return t;if((n||angular.isUndefined(n))&&angular.isArray(t)){var e=[],a=function(t){return angular.isObject(t)&&angular.isString(n)?t[n]:t};angular.forEach(t,function(t){for(var n=!1,o=0;o<e.length;o++)if(angular.equals(a(e[o]),a(t))){n=!0;break}n||e.push(t)}),t=e}return t}}),angular.module("footyroom",["ui.filters","mediaEmbedder","fr.hasError","fr.serverErrors","fr.ladda","fr.fixedHeader","fr.infiniteScroll","fr.searchCtrl","fr.clickOut","ui.bootstrap","fr.litelay","dragScroll","scrollTo","fr.dateFormat","fr.frEasyTimeAgo"]).controller("LoginController",r),angular.module("footyroom").filter("formation",function(){return function(t){return(t=o.a.without(t,0)).join("-")}}),angular.module("footyroom").filter("reverse",function(){return function(t){return t.slice().reverse()}}),angular.module("footyroom").filter("teamNameAbbr",function(){return function(t){return t.slice(0,3)}}),angular.module("footyroom").controller("AppCtrl",["$scope","$rootScope","searchCtrl","$uibModal",function(t,n,e,a){n.data={},n.data.stage=window.DataStore.stage||{},n.data.match=window.DataStore.match||{},n.data.stages=window.DataStore.stages||{},n.data.seasons=window.DataStore.seasons||{},n.data.tables=window.DataStore.tables||{},n.season=window.DataStore.season,n.stages={},n.ds=window.DataStore,t.changeSeason=function(){t.season.id?window.location=window.location.pathname+"?stageId="+t.season.id:window.location=window.location.pathname},t.changeStage=function(){t.currentStage.id?window.location=window.location.pathname+"?stage="+t.currentStage.id:window.location=window.location.pathname},function(t){function e(t){return o()(t).each(function(n,e){t[e]=function(t,n){return"startDate"===t||"endDate"===t?new Date(n):"enetStageId"===t?parseInt(n):n}(e,n)}),t||{}}o.a.each(t,function(t,a){n.stages[t.id]=t,t.meta=e(t.meta)}),o.a.each(t,function(t,e){var a=o.a.where(n.data.tables,{enetStageId:t.meta.enetStageId});a.length&&(t.standings=a,t.haveTables=!0);var i=n.stages[t.parent];i&&(t.haveTables&&(i.childrenHaveTables=!0,function t(e){var a=n.stages[e.parent];a&&(e.childrenHaveTables&&(a.childrenHaveTables=!0),t(a))}(i)),"group"===t.type&&(i.childrenAreGroups=!0),i.children||(i.children=[]),i.children.push(t),function t(e){var a=n.stages[e.parent],o=!1;a&&((a.meta.startDate>e.meta.startDate||!a.meta.startDate)&&(o=!0,a.meta.startDate=e.meta.startDate),(a.meta.endDate<e.meta.endDate||!a.meta.endDate)&&(o=!0,a.meta.endDate=e.meta.endDate),o&&t(a))}(t))}),o.a.each([].reverse(),function(n){t.splice(n,1)})}(t.data.stages),window.DataStore.currentStage&&(n.currentStage="season"===window.DataStore.currentStage.type?window.DataStore.currentStage:t.stages[window.DataStore.currentStage.id]),n.not=function(t){return function(n){return!t(n)}},n.incidentIdToName=function(t){switch(t){case"a":return"Assist";case"g":case"eg":return"Goal";case"og":case"eog":return"Own Goal";case"p":case"ep":case"ps":return"Penalty";case"pm":case"psm":case"epm":return"Penalty Miss";case"y":return"Yellow Card";case"y2":return"Second Yellow";case"r":return"Red Card";case"si":return"Sub In";case"so":return"Sub Out";default:return t}},t.hideSidebar=function(){t.isShowSidebar&&(t.isShowSidebar=!1,$("html").toggleClass("is-sidebar-open"))},t.toggleSidebar=function(){t.isShowSidebar=!t.isShowSidebar,$("html").toggleClass("is-sidebar-open"),event.stopPropagation()},t.fbShare=function(t){window.FB&&(window.FB.ui({method:"share",href:window.location.href}),t.preventDefault())},n.openBanModal=function(t){a.open({template:'<ban-wizard user-id="'.concat(t,'" dismiss="$dismiss()"></ban-wizard>')})},e(t)}]),angular.module("footyroom").controller("UserBarController",["$scope","$element",function(t,n){var e=this;e.isUserBarOpen=!1,e.open=function(){e.isUserBarOpen=!0},e.close=function(){e.isUserBarOpen=!1}}]),o.a.mixin({path:function(t,n){var e=t;return o.a.each(n.split("."),function(t){e=e[t]}),e}}),angular.module("footyroom").factory("cookie",function(){return $.cookie}),angular.module("footyroom").service("geoip",["$http",function(t){return{get:function(n){return t.get("https://freegeoip.app/json/"+(n||"")).then(function(t){return t.data})}}}]),angular.module("footyroom").directive("dropdownToggle",["$document",function(t){return{link:function(n,e,a){function o(){e.parent().removeClass("open")}e.bind("click",function(n){n.stopPropagation(),t.one("click",o),e.parent().toggleClass("open")}),e.parent().find("form").on("click",function(t){t.stopPropagation()})}}}]);var s=e("0ljh"),l=e.n(s);angular.module("footyroom").factory("livescores",["$filter","$rootScope",function(t,n){var e,a,o,i,r,c,s,u,d,m,f=0,p=0;return{connect:function(){e||((e=io(window.SITEURL,{path:"/livescores/socket.io/ws"})).on("full-data",g),e.on("match-report",v),e.on("update",w));return e},subMatch:function(t,n,a){o=n,i=a,c=t,e.emit("subscribe-match",{matchId:t})},subDay:function(n,o,i,c){a=i,r=c,m=n,d=o,e.emit("subscribe-day",{date:t("date")(n,"yyyy-MM-dd"),timezone:d})}};function h(t){_(t).each(function(t){void 0===t.incidents&&(t.incidents=[]),void 0===t.lineup&&(t.lineup=[])})}function g(t){u=t,f=t.version,h(u.matchesById),a(u),n.$apply()}function v(t){c===t.match.matchId&&(s=t.match,p=t.version,o&&o(s),n.$broadcast("formation-update"),n.$apply())}function w(a){a.matches?function(a){a.version!==f+1?e.emit("subscribe-day",{date:t("date")(m,"yyyy-MM-dd"),timezone:d}):f++;var o=u.matchesById.length;l.a.apply(u.matchesById,a.matches),u.matchesById.length!=o&&h(u.matchesById);r&&r(u,a),n.$apply()}(a):s&&function(t){"undefined"!==t.version&&t.version!==p+1?e.emit("subscribe-match",{matchId:s.matchId}):p++;l.a.apply(s,t.patches),i&&i(s,t.patches),n.$broadcast("formation-update"),n.$apply()}(a)}}]),angular.module("footyroom").component("topMatches",{controller:["livescores","$rootScope",function(t,n){var e=this;function a(t){e.matchesById=t.matchesById,i()}function o(t){l.a.apply(e.matchesById,t.patches),i()}function i(){e.matches=_.sortBy(e.matchesById,function(t){return t.datetime}),e.show=e.matches.length>0,n.$apply()}e.$onInit=function(){var n=t.connect();n.on("top-matches",a),n.on("top-matches-patches",o),n.on("connect",function(){n.emit("subscribe-top")})}}],templateUrl:"/views/ng/topMatches/topMatches.html?3"});var u=e("a1yh"),d=e.n(u);e("mxFJ"),e("QlAx"),e("opNK");angular.module("footyroom").requires.push("fr.matchViewHelper","fr.formations"),angular.module("footyroom").directive("frLsMatch",[function(){return{restrict:"A",scope:!0,template:d.a,controller:["$scope","$element","matchViewHelper","$rootScope",function(t,n,e,a){var o;t.incidentIdToName=a.incidentIdToName,e.setScore(t.match),o=e.startMinutesJob(t.match),t.$watchCollection("match.incidents",function(n,a){n!==a&&e.setMainIncidents(t.match)}),e.setMainIncidents(t.match),t.$on("$destroy",function(){e.stopMinutesJob(o)}),t.onClick=function(){t.openedMatch===t.match?t.openedMatch=null:t.openedMatch=t.match},t.clickMatchCenter=function(e){t.isMatchCenterOpen()&&(t.joinMatch(t.match.matchId),n.find("ls-join-match").litelay({spinner:!0}))},t.isMatchCenterOpen=function(){return new Date(t.match.datetime)-new Date<=18e5},t.$watch("match._subscribed",function(e,a){!0===e?(t.incidents=t.match.incidents,n.find("ls-join-match").litelay({off:!0}),setTimeout(function(){$("body").scrollTo(n,400,{offset:-65})},10)):t.incidents=t.mainIncidents})}]}}]);e("oDci")},BHLf:function(t,n){angular.module("fr.frEasyTimeAgo",[]).directive("frEasyTimeAgo",[function(){return{template:function(t,n){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return function(t){if(isNaN(Date.parse(t)))return t;var n=new Date(t),a=new Date,o=Math.ceil((a.getTime()-n.getTime())/6e4),i=Math.round(o/60);n.setHours(0,0,0,0),a.setHours(0,0,0,0);var r=Math.floor((a.getTime()-n.getTime())/864e5);return 0===r&&i<1&&o>0?"".concat(o," minute").concat(o>1?"s":""," ago"):0===r&&i<24&&o>0?"".concat(i," hour").concat(i>1?"s":""," ago"):r<4&&o>0?"".concat(r," day").concat(r>1?"s":""," ago"):n.getDate()+" "+e[n.getMonth()]+", "+n.getFullYear()}(n.date)}}}])},MqjG:function(t,n){angular.module("dragScroll",[]).directive("dragScroll",function(){return{restrict:"A",link:function(t,n){var e,a=0,o=0,i=!1;function r(t){i=!1,e=Date.now(),window.requestAnimationFrame&&window.requestAnimationFrame(c)}function c(){var t=Date.now()-e,a=o*Math.exp(-t/250);n.scrollLeft+=a,(a>1||a<-1)&&window.requestAnimationFrame(c)}(n=n[0]).addEventListener("mousemove",function(t){!0===i&&(n.scrollLeft+=o=a-(a=t.pageX))}),n.addEventListener("mousedown",function(t){i=!0,a=t.pageX,o=0,t.preventDefault()}),n.addEventListener("mouseup",r),n.addEventListener("mouseleave",r),n.addEventListener("click",function(t){o&&t.preventDefault()})}}})},QZJb:function(t,n){angular.module("fr.infiniteScrollCtrl",[]).service("infiniteScrollCtrl",["$window","$http","$compile",function(t,n,e){return function(a,o){try{a.currentPage=parseInt(t.location.href.match(/\/page\/(\d+)/)[1],10)}catch(t){a.currentPage=1}a.loadMoreEnabled=!0,a.infiniteScrollDisabled=!0,a.pagesScrolled=0,a.enableInfiniteScroll=function(){a.infiniteScrollDisabled=!1},a.infiniteScroll=function(){a.infiniteScrollDisabled=!0,a.postsLoading=!0,a.infiniteScrollError=null,n.get(DataStore.postsEndpointUrl+"?page="+(a.currentPage+1)+(DataStore.currentStage?"&stageTree="+DataStore.currentStage.tree:"")+(DataStore.legendary?"&legendary=1":"")+(DataStore.search?"&q="+encodeURIComponent(DataStore.search):"")).then(function(n){a.currentPage++,a.pagesScrolled++,o.append(e(n.data)(a)),a.pagesScrolled<15?(a.infiniteScrollDisabled=!1,a.loadMoreEnabled=!1):(a.loadMoreEnabled=!0,a.pagesScrolled=0),a.postsLoading=!1,ga("send","event","InfiniteScroll","Loaded",t.location.href,a.currentPage)}).catch(function(t){a.postsLoading=!1,404===t.status&&(a.loadMoreEnabled=!1),429===t.status&&(a.infiniteScrollError=t.data.errors[0])})}}}])},R7QU:function(t,n){angular.module("fr.search",[]).service("search",["$http",function(t){return function(n){return t.post("/search.json?q="+encodeURIComponent(n)).then(function(t){return t.data}).catch(function(t){return t.data})}}])},USXK:function(t,n){angular.module("scrollTo",[]).directive("scrollTo",function(){return{scope:{scrollTo:"="},link:function(t,n){setTimeout(function(){$(n).scrollTo('[scroll-point="'+t.scrollTo+'"]',{offset:-120})},0)}}})},UyR6:function(t,n){angular.module("fr.dateFormat",[]).service("dateFormat",["$filter",function(t){return function(n,e){$(n).find("[data-datetime]").each(function(){$(this).text(t("date")($(this).attr("data-datetime"),$(this).attr("data-datetime-format"),e))})}}])},Wqh7:function(t,n){angular.module("fr.hasError",[]).directive("frHasError",["$compile",function(t){return{restrict:"A",priority:1e3,terminal:!0,compile:function(n,e){n.removeAttr("fr-has-error");var a=void 0!==e.onDirty?"$dirty":"$touched",o=e.frHasError.substr(0,e.frHasError.lastIndexOf("."));return n.attr("ng-class","{ 'has-error': "+e.frHasError+".$invalid && ("+e.frHasError+"."+a+" || "+o+".$submitted ) }"),{post:function(n,e){t(e)(n)}}}}}])},a1yh:function(t,n){t.exports='<div class="ls-match" ng-class="{ subscribed: match._subscribed }" ng-if="!match.del">\n\t<div class="ls-match-strip unselectable" ng-click="onClick()" ng-class="match.statusType">\n\t\t<span class="status" ng-switch on="match.statusType">\n\t\t\t<span ng-switch-when="notstarted">\n\t\t\t\t<span ng-bind="match.time || match.datetime | date:\'HH:mm\'" ng-if="match.status === \'Sched\'"></span>\n\t\t\t\t<span ng-if="match.status === \'Post\'">Post.</span>\n\t\t\t</span>\n\n\t\t\t<span ng-switch-when="inprogress">\n\t\t\t\t<span ng-if="match.timerStart" ng-bind="match.minute"></span>\n\t\t\t\t<span ng-if="!match.timerStart" ng-bind="match.status"></span>\n\t\t\t</span>\n\n\t\t\t<span ng-switch-when="finished" ng-bind="match.status"></span>\n\n\t\t\t<span ng-switch-when="cancelled">Canceled</span>\n\t\t\t<span ng-switch-when="interrupted">Abandoned</span>\n\t\t\t<span ng-switch-default> - </span>\n\t\t</span>\n\t\t\n\t\t<span class="home-team">\n\t\t\t<span ng-class="{winner: match.homeAggrWin}">{{ match.homeTeam.name }}</span><span ng-if="match.homeAggrWin" class="winner-star">*</span>\n\t\t\t<span ng-if="match.homeRedCards > 0" class="red-card">{{ match.homeRedCards }}</span>\n\t\t</span>\n\t\t\n\t\t<span class="score" ng-switch on="match.statusType"\n\t\t\tng-class="{\'with-pens\': match.homeScorePEN || match.awayScorePEN || match.status === \'Pen\' || match.status === \'APEN\'}">\n\n\t\t\t<span ng-switch-when="notstarted">vs</span>\n\t\t\t<span ng-switch-default>\n\t\t\t\t<div class="normal-score">\n\t\t\t\t\t{{ match.homeScore }} : {{ match.awayScore }}\n\t\t\t\t</div>\n\t\t\t\t<div ng-if="(match.homeScorePEN || match.awayScorePEN || match.status === \'Pen\' || match.status === \'APEN\')" class="penalty-score">\n\t\t\t\t\t<span ng-bind="match.homeScorePEN || 0"></span> <span class="icon-penalty"></span> <span ng-bind="match.awayScorePEN || 0"></span>\n\t\t\t\t</div>\n\t\t\t</span>\n\n\t\t</span>\n\n\t\t<span class="away-team">\n\t\t\t<span ng-if="match.awayAggrWin" class="winner-star">*</span><span ng-class="{winner: match.awayAggrWin}">{{ match.awayTeam.name }}</span>\n\t\t\t<span ng-if="match.awayRedCards > 0" class="red-card">{{ match.awayRedCards }}</span>\n\t\t</span>\n\t\t<span class="icons">\n\t\t\t<span class="group hinted" ng-if="stagesById[match.stageId].type == \'group\'">{{ stagesById[match.stageId].groupName }}\n\t\t\t\t<span class="hint-top" data-hint="Group {{ stagesById[match.stageId].groupName }}"></span>\n\t\t\t</span>\n\t\t\t<a ng-href="/matches/{{ match.matchId }}/-/review" target="_blank" class="icn-play" ng-if="match.hasMedia || match.posts.review.status == \'publish\'" stop-event=\'click\'></a>\n\t\t\t<a ng-href="/matches/{{ match.matchId }}/-/preview" target="_blank" class="icn-file" ng-if="match.posts.preview.status == \'publish\'" stop-event=\'click\'></a>\n\t\t</span>\n\t</div>\n\t\n\t<div class="ls-match-extra" ng-if="match === openedMatch">\n\n\t\t<div ng-if="match.lineupsConfirmed && match.status == \'notstarted\'"><span class="icn-jersey"></span>Lineups Confirmed</div>\n\n\t\t<div ng-if="match.mainIncidents.length > 0" class="ls-incidents-list">\n\t\t\t<div ng-repeat="incident in match.mainIncidents" class="ls-incident">\n\t\t\t\t<div class="home">\n\t\t\t\t\t<span ng-if="incident.side == \'home\'" ng-class="">{{ incident.player.name }} \n\t\t\t\t\t\t<span ng-class="[\'icon-\' + incident.code.id, \'hinted\']">\n\t\t\t\t\t\t\t<span class="hint-top" data-hint="{{ incidentIdToName(incident.code.id) }}"></span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="time">{{ incident.elapsed }}</div>\n\t\t\t\t<div class="away">\n\t\t\t\t\t<span ng-if="incident.side == \'away\'">{{ incident.player.name }} \n\t\t\t\t\t\t<span ng-class="[\'icon-\' + incident.code.id, \'hinted\']">\n\t\t\t\t\t\t\t<span class="hint-top" data-hint="{{ incidentIdToName(incident.code.id) }}"></span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div ng-if="match._subscribed">\n\n\t\t\t<div class="ls-no-stats-msg" ng-if="match.lineup == undefined || match.lineup.length < 22">*This match has only basic coverage</div>\n\n\t\t\t<div class="ls-match-extra-formations" ng-if="match.lineup.length >= 22">\n\t\t\t\t<div formations match="match" lineup="match.lineup" incidents="match.incidents" is-probable="!match.lineupsConfirmed && maCtrl.match.statusType === \'notstarted\'"></div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="ls-match-footer">\n\t\t\t<a class="btn btn-primary" ng-href="/matches/{{ match.matchId }}/-/review" target="_blank"><span class="icn-play"></span> Match Center</a>\n\t\t\t<a class="btn btn-primary" ng-href="/matches/{{ match.matchId }}/-/preview" target="_blank" ng-if="match.posts.preview.status == \'publish\'"><span class="icn-file"></span> Preview</a>\n\t\t\t<span class="btn-with-desc ls-quick-stats-button">\n\t\t\t\t<button class="btn btn-primary" ng-if="isMatchCenterOpen()" ng-class="{ selected: match._subscribed }" ng-click="clickMatchCenter($event)">\n\t\t\t\t\t<span class="icn-jersey"></span> Quick Stats\n\t\t\t\t</button>\n\t\t\t</span>\n\t\t</div>\n\t</div>\n</div>\n'},ePHq:function(t,n){angular.module("mediaEmbedder",[]).service("mediaEmbedder",[function(){function t(t,n){if(/^<script /i.test(t))return function(t,n){var e=document.createElement("script");angular.forEach($(t)[0].attributes,function(t){e.setAttribute(t.name,t.value)}),angular.element(n).html(""),angular.element(n).append(e)}(t,n);angular.element(n).html(t),window.FB&&FB.XFBML.parse(angular.element(n)[0]),window.instgrm&&instgrm.Embeds.process()}return{embed:function(n,e){switch(n.payloadType){case"html":t(n.payload,e);break;case"image":!function(t,n){angular.element(n).html('<img src="'+t+'">')}(n.payload,e);break;default:console.error("mediaEmbedder: "+n.payloadType+" type is not configured.")}}}}])},kz4j:function(t,n){angular.module("fr.ladda",[]).directive("frLadda",[function(){return{restrict:"A",link:function(t,n,e){var a;t.$watch(e.frLadda,function(t){1==t?(a=angular.element('<span class="spinner"></span>'),n.append(a),n.attr("disabled","disabled")):a&&(a.remove(),n.removeAttr("disabled"))})}}}])},oDci:function(t,n){function e(t){t?($("html").addClass("no-spoilers"),document.title=document.title.replace(/ [0-9]+ \- [0-9]+ /g," vs ").replace(/ \[PEN: [0-9]+\-[0-9]+\]/g,"")):$("html").removeClass("no-spoilers")}angular.module("footyroom").controller("NoSpoilersController",["$scope","noSpoilers",function(t,n){var e=this;e.change=function(){n.set(e.isEnabled)},e.isEnabled=n.get(),t.$on("noSpoilers",function(t,n){e.isEnabled=n})}]),angular.module("footyroom").service("noSpoilers",["$rootScope","$http","$window",function(t,n,a){var o=DataStore.noSpoilers;return this.set=function(a){e(o=a),DataStore.isGuest?i():DataStore.isGuest||n.post("/profile/settings/no-spoilers",{enabled:o});t.$broadcast("noSpoilers",o)},this.get=function(){return o},DataStore.isGuest&&i(),this;function i(){a.localStorage&&a.localStorage.noSpoilers!==o&&a.localStorage.setItem("noSpoilers",JSON.stringify(o))}}]),function(){if(DataStore.isGuest&&!DataStore.noSpoilers)try{DataStore.noSpoilers=!!window.localStorage&&JSON.parse(window.localStorage.noSpoilers||!1)}catch(t){DataStore.noSpoilers=!1}e(DataStore.noSpoilers)}()},s51g:function(t,n){angular.module("fr.serverErrors",[]).directive("frServerErrors",["$compile",function(t){return{restrict:"A",require:"?ngModel",link:function(t,n,e,a){var o=e.frServerErrors.split(",");n.on("change",function(){angular.forEach(o,function(n){t.$apply(function(){a.$setValidity(n,!0)})})})}}}])},xeH2:function(t,n){t.exports=jQuery},zWnA:function(t,n){angular.module("fr.clickOut",[]).directive("frClickOut",["$document","$parse",function(t,n){function e(n,e){for(var a=angular.element(t[0].querySelectorAll(e)),o=a.length,i=0;i<o;++i)if(a[i].contains(n))return!0;return!1}return{restrict:"A",link:function(a,o,i){var r=n(i.frClickOut)(a),c=i.frClickOutFilter,s=i.frClickOutInclude;function l(t){(function(t,n,a,o){return!(!o||!e(n.target,o))||!(t[0].contains(n.target)||a&&e(n.target,a))||void 0})(o,t,c,s)&&(r(t),a.$apply())}t.bind("click",l),a.$on("$destroy",function(){t.off("click",l)})}}}])}},[["BABk","d41d","970b","c5ee","148c","decc","ef19","1ae7"]]]);