(()=>{function e(e,a,t,i){var r=[{label:t("Users"),icon:"c8y-user c8y-icon-duocolor",link:"#/users",relatedNavigatorNode:{name:"Users",parentName:"Accounts"}},{label:t("Roles"),icon:"c8y-users c8y-icon-duocolor",link:"#/roles",relatedNavigatorNode:{name:"Roles",parentName:"Accounts"}},{label:t("Applications"),icon:"c8y-atom c8y-icon-duocolor",link:"#/ecosystem/applications",relatedNavigatorNode:{name:"Applications",parentName:"Ecosystem"}},{label:t("Application settings"),icon:"c8y-tools c8y-icon-duocolor",link:"#/applicationsettings",relatedNavigatorNode:{name:"Application",parentName:"Settings"}},{label:t("Usage statistics"),icon:"c8y-usage-statistics c8y-icon-duocolor",link:"#/tenantStatistics",relatedNavigatorNode:{name:"Usage statistics",parentName:"Tenants"}}];function s(o){return function(e){var n=!o.name||_.get(e,"name")===o.name,e=!o.parentName||_.get(e,"_parent.name")===o.parentName||_.find(e.parents,function(e){return e.name===o.parentName});return n&&e}}_.assign(this,{$onInit:function(){_.forEach(r,function e(n){var o=a.findNode(s(n.relatedNavigatorNode));o&&(o=o.hidden,_.isUndefined(o)?i(function(){return e(n)},250):n.show=!o)})},quickLinks:r,quickLinkIsVisible:function(e){return _.find(r,{label:e}).show},sentenceToDisplay:function(){var e=_.find(r,{label:"Users"}).show,n=_.find(r,{label:"Roles"}).show,o=null;e&&n?o=t('Add or remove <a href="#/users">users</a> and <a href="#/roles">roles</a> and configure their permissions.'):e&&!n?o=t('Add or remove <a href="#/users">users</a> and configure their permissions.'):!e&&n&&(o=t('Add or remove <a href="#/roles">roles</a> and configure their permissions.'));return o}})}e.$inject=["c8yUiUtil","c8yNavigator","gettext","$timeout"],angular.module("c8y.homeAdministration").component("homeAdministration",{templateUrl:":::PLUGIN_PATH:::/home-administration.template.html",controllerAs:"vm",controller:e})})();