{:uriI"file:///D:/Ruby215/lib/ruby/gems/2.1.0/gems/bootstrap3_autocomplete_input-0.1.3/lib/assets/javascripts/bootstrap3-autocomplete-input.min.js?type=application/javascript&pipeline=self&id=d92e169230326fd7d2548f90803286dcb35895cacab3aa1ef45c7fe0dad79bc0:ET:load_pathI"cD:/Ruby215/lib/ruby/gems/2.1.0/gems/bootstrap3_autocomplete_input-0.1.3/lib/assets/javascripts;T: filenameI"D:/Ruby215/lib/ruby/gems/2.1.0/gems/bootstrap3_autocomplete_input-0.1.3/lib/assets/javascripts/bootstrap3-autocomplete-input.min.js;T: nameI"&bootstrap3-autocomplete-input.min;T:logical_pathI".bootstrap3-autocomplete-input.min.self.js;T:content_typeI"application/javascript;T: sourceI"function autocomplete_get_hidden_field(t){var a=t.attr("data-field-id").replace(/(:|\.|\[|\])/g,"\\$1");return $("#"+a)}function autocomplete_query(t){t.typeahead({source:function(a,e){t=this.$element,rows=[];var o=t.attr("name");$.getJSON(t.attr("data-source-query"),{q:a},function(t){autocomplete_data_static[o]={map:[],values:[]},$.each(t,function(t,a){autocomplete_data_static[o].values.push(a[1]),autocomplete_data_static[o].map[a[1]]=a[0]}),e(autocomplete_data_static[o].values)})},updater:function(a){t=this.$element;var e=autocomplete_get_hidden_field(t);if(e){var o=t.attr("name");e.val(autocomplete_data_static[o].map[a])}return a},items:t.attr("data-items"),minLength:t.attr("data-min-length"),afterSelect:function(a){var e=t.attr("data-afterSelect")||"";if(""!=e){var o=window[e];"function"==typeof o&&o(a)}}}).on("change",function(){var t=$(this),a=t.typeahead("getActive"),e=autocomplete_get_hidden_field(t);e&&(a?a==t.val()||e&&e.val(""):e&&e.val(""))})}var autocomplete_data_static={};$(document).ready(function(){$('input[data-provide="typeahead"][data-source-array]').each(function(){obj=$(this);var t=JSON.parse(obj.attr("data-source-array").replace(/"/g,'"'));obj.typeahead({source:t,items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})}),$('input[data-provide="typeahead"][data-source]').each(function(){obj=$(this);var t=obj.attr("id");autocomplete_data_static[t]={map:[],values:[]},$.get(obj.attr("data-source"),function(a){$.each(a,function(a,e){autocomplete_data_static[t].values.push(e[1]),autocomplete_data_static[t].map[e[1]]=e[0]}),obj.typeahead({source:autocomplete_data_static[t].values,updater:function(a){return obj_id=$("#"+obj.attr("data-field-id")),obj_id&&obj_id.val(autocomplete_data_static[t].map[a]),a},items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})},"json")}),$('input[data-provide="typeahead"][data-source-query]').each(function(){autocomplete_query($(this))})}); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///D:/Ruby215/lib/ruby/gems/2.1.0/gems/bootstrap3_autocomplete_input-0.1.3/lib/assets/javascripts/bootstrap3-autocomplete-input.min.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%