(()=>{function a(e,t,r,o,n){n=n?e[n]:e;return r&&n?n&&(-1!==n.toLowerCase().indexOf(t.toLowerCase())||-1!==o.getString(n).toLowerCase().indexOf(t.toLowerCase())):n&&-1!==n.toLowerCase().indexOf(t.toLowerCase())}angular.module("c8y.ui").filter("filterByFields",["$filter","gettextCatalog",function(n,i){return function(e,t,r,o){return n("filter")(e,function(e){return r.length?_.some(r,_.partial(a,e,t,o,i)):a(e,t,o,i)})}}])})();