(()=>{function e(n,t,i,c){var e=this;_.assign(e,{$onInit:function(){e.searchFunctionList=_(n.list()).forEach(function(e){i.configureVisibility(e,"hide",!0)})},isVisible:function(){return _.reject(e.searchFunctionList,"hide").length},search:function(e,i){e?n.search(e,i):t.warning(c("Type something to execute a search."))},onToggle:function(){e.isOpen&&$(".header-bar input[type=search]").focus()},isOpen:!1})}e.$inject=["c8ySearch","c8yAlert","c8yUiUtil","gettext"],angular.module("c8y.ui").component("c8yUiSearch",{templateUrl:":::PLUGIN_PATH:::/ui/forms/search.html",controllerAs:"vm",controller:e})})();