(function(){u8.Base.ArraySearchProvider=function(t){$.extend(this,t);this._text=this.textProperty?u8._.attr(this.textProperty):u8._.id;this._key=this.keyProperty?u8._.attr(this.keyProperty):u8._.id};u8.Base.ArraySearchProvider.makeClass("ArraySearchProvider");$.extend(u8.Base.ArraySearchProvider.prototype,{search:function(t,e){var r=this.items||[];t=(t||"").toLowerCase();var i=[],s,a,o=r.length;for(a=0;a<o;a++){s=r[a];if(this._isMatch(s,t)||this.allItemsAsResult){i.push({key:this._key(s),text:(this._text(s)||"").toString()})}}e({items:i})},abort:function(){},canExecute:function(t){t(this,{canExecute:true})},_isMatch:function(t,e){return(this._text(t)||"").toString().toLowerCase().indexOf(e)>=0}})})();