(()=>{function n(n,e,o,t){var i=this;function r(n){i.backendVersion=n.value}function a(n){i.uiVersion=n}function c(n){return n.show&&(n=>!n._children.length||_.some(n._children,"show"))(n)}function s(n){i.app=n,i.appName=n.name}_.assign(i,{$onInit:function(){o.currentAppCached().then(s),i.hidePowered=t.appOption("hide_powered"),i.rootNode={children:i.rootNodes},e.getBackendVersion().then(r),e.getUIVersion().then(a)},showNavigator:function(){return _.some(i.rootNodes(),c)},showNode:c})}n.$inject=["$scope","c8ySystem","c8yApplication","c8yBase"],angular.module("c8y.ui").component("c8yUiNavigator",{templateUrl:":::PLUGIN_PATH:::/ui/navigation/navigator.html",controllerAs:"vm",controller:n,bindings:{navOpen:"=",navHiddenOnStartup:"=",rootNodes:"="}})})();