hunk.code_window:     this.StateManager = StateManager;
       this.Notifications = Notifications;
       this.LocalStorage = LocalStorage;
       this.SettingsService = SettingsService;
       this.ThemeManager = ThemeManager;
       this.logo = this.StateManager.getState().application.logo;
       this.logoutAsync = this.logoutAsync.bind(this);
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.file_path: app/portainer/views/logout/logoutController.js
hunk.type: replace
file: angular.module('portainer.app').controller('MainController', [
    '$scope',
    'LocalStorage',
    'StateManager',
    'EndpointProvider',
    'ThemeManager',
    function ($scope, LocalStorage, StateManager, EndpointProvider) {
      /**
       * Sidebar Toggle & Cookie Control
       */
      var mobileView = 992;
      $scope.getWidth = function () {
        return window.innerWidth;
      };
  
      $scope.applicationState = StateManager.getState();
      $scope.endpointState = EndpointProvider.endpoint();
  
      $scope.$watch($scope.getWidth, function (newValue) {
        if (newValue >= mobileView) {
          const toggleValue = LocalStorage.getToolbarToggle();
          $scope.toggle = typeof toggleValue === 'boolean' ? toggleValue : true;
        } else {
          $scope.toggle = false;
        }
      });
  
      $scope.toggleSidebar = function () {
        $scope.toggle = !$scope.toggle;
        LocalStorage.storeToolbarToggle($scope.toggle);
      };
  
      window.onresize = function () {
        $scope.$apply();
      };
    },
  ]);
  