!function(){function e(e,n,t,a,i,o,s,c){this.$onInit=function(){s.get(i.getEndpoint()+"/api/player-rating/template").then((e=>{const{activeTemplate:n}=e.data;this.hasOrganisationAccess=a.$scNeedAnyPermissions(["company-organization:58ef6e011270d16a5e259e4a:*"])||a.$scIsOrganizationOfType("agency-organization")||a.$scIsOrganizationOfType("team-organization")&&a.$scHasAccountPermissions("player-rating")||n&&n.playerCanRate&&o.getActiveAccount().isPlayer})),this.nextScheduledMaintenance=c.getNextScheduledMaintenance()},this.isScheduledMaintenanceBannerVisible=function(){return c.isScheduledMaintenanceBannerVisible},this.tabs=t.getTabs(),this.isSearchVisible=function(){return!n.includes("root.calendar")},this.goHome=function(){t.goHome()},this.goBack=function(){t.goBack()},this.newTab=function(){t.newForegroundTabWithHome()},this.closeTab=function(e,n){t.closeTab(n),e.preventDefault(),e.stopPropagation()}}e.$inject=["$scope","$state","Tabs","$rootScope","SCConfiguration","UserService","$http","ScheduledMaintenance"],angular.module("app.layout").controller("HeaderController",e)}(),function(){"use strict";function e(e,n,t){this.isOnPlatformPage=function(){return n.includes("root.platform")},this.isOnHomePage=function(){return n.includes(e.getDefaultStateForModule("countries"))},this.isInTaggingMode=function(){return e.isInTaggingMode},this.hasInboxUnread=function(){return t.hasInboxUnread}}e.$inject=["$rootScope","$state","CommunicationService"],angular.module("app.layout").controller("LayoutController",e)}(),function(){"use strict";function e(e,n){return{restrict:"A",require:"^mdTabs",link:function(t,a,i,o){function s(){var n=e.is(c().state),t=angular.equals(e.params,c().params),i=o.getTabElementIndex(a);n&&t&&o.selectedIndex!==i&&o.select(i)}function c(){return t.$eval(i.scHeaderTab)}o.selectSubscribers=o.selectSubscribers||[],o.selectSubscribers.push((function(e){o.getTabElementIndex(a)===e&&n.setActive(c())})),s(),t.$on("$stateChangeSuccess",s),t.$on("$mdTabs:modified",s)}}}e.$inject=["$state","Tabs"],angular.module("app.layout").directive("scHeaderTab",e)}();
//# sourceMappingURL=maps/sources.1730197449737.js.map
