(()=>{function t(n,e,i,o,a){var l=this;function s(){l.loading=!0,i.list().then(c,t).finally(function(){delete l.loading})}function t(t){403===t.status?a.info(n("You need this role to access simulators: Simulator Admin.")):a.danger(e.getString(t.data.message),t.data)}function c(t){l.simulators=t}function r(t){return function(n){Object.defineProperty(n,"_changing",{writable:!0,value:!0}),i[t](n).then(function(t){_.assign(n,t)}).finally(function(){n._changing=void 0})}}_.assign(l,{$onInit:function(){o.setListTitle(),s()},onSimulatorAdded:function(t){i.save(t).then(s)},icons:o.icons,edit:o.edit,remove:function(t){i.removeAfterConfirmation(t).then(s)},pause:r("pause"),run:r("run"),clone:function(t){return o.cloneDialog(t).then(i.clone).then(s)},load:s})}t.$inject=["gettext","gettextCatalog","c8ySimulators","c8ySimulatorsUi","c8yAlert"],angular.module("c8y.simulators").component("c8ySimulatorsList",{templateUrl:":::PLUGIN_PATH:::/list/list.html",controller:t,controllerAs:"vm"})})();