(()=>{function e(t,n,c,s,r){var i=this;function o(){return n.list().then(e).then(function(e){i.jsonSchemaObjects=e})}function e(e){return _.filter(e,i.filters)}function a(e){i.selected=e}function l(){i.selected=void 0}_.assign(i,{$onInit:function(){o()},select:a,deselect:l,newJsonSchemaObject:function(){a(_.assign(n.getDefaults(),i.filters))},save:function(e){return n.save(e).then(l).then(o).then(_.partial(c.success,r("Property saved.")))},remove:function(e){return n.remove(e).then(l).then(o).then(_.partial(c.success,r("Property deleted.")))},getIcon:function(){var e=t.path(),e=_.find(s.getTabsByURL(e),{path:e});return _.get(e,"icon")},getName:function(){var e=t.path(),e=_.find(s.getTabsByURL(e),{path:e});return _.get(e,"name")}})}e.$inject=["$location","c8yJsonSchemas","c8yAlert","c8yTabs","gettext"],angular.module("c8y.propertiesLibrary").component("c8yJsonSchemaObjectsList",{bindings:{filters:"<"},templateUrl:":::PLUGIN_PATH:::/jsonSchemaObjectsList.html",controller:e,controllerAs:"vm"})})();