(()=>{function t(n){var s=this;_.assign(s,{$onChanges:function(){s.instancesStatus=n.getInstanceCounts(_.get(s.statusFragment,"details")),s.status=_.get(s.statusFragment,"status")},instancesStatus:{},getStatusIcon:function(t){return _.find(n.status.values(),{value:t}).icon},isOpen:!1,openItem:function(){s.isOpen=!s.isOpen},showDetails:function(){var t=_.get(s,"statusFragment.instances");return _.some(t,function(t){return 0<t.restarts})}})}t.$inject=["c8yApplication"],angular.module("c8y.appStatus").component("c8yAppInstances",{bindings:{statusFragment:"<"},templateUrl:":::PLUGIN_PATH:::/app-instances/app-instances.html",controller:t,controllerAs:"vm"})})();