angular.module("c8y.ui").directive("c8yAutocomplete",function(){return{restrict:"A",link:function(o,t,e){e=e.c8yAutocomplete;t.attr("autocomplete",e),"off"===e&&(t.attr("readonly","readonly"),t.on("focusin",function o(){t.removeAttr("readonly");t.off("focusin",o)}))}}});