PageSourceSearch

https://www.greatlakesipm.com/dist/scripts/legacy/requirejs/autocomplete.js

js greatlakesipm.com collected 2026-09-25 23:56:07 UTC 2,922 bytes, 1 lines download raw bytes

1jQuery((function($){"suburb"!=metro_zone_field&&$("#suburb").length&&$("#country").length&&$(document).on("keyup","#suburb",(function(){var lastShippingXhr,cacheShipping={},element_parent=$(this).data("parent"),elementId=$(this).attr("id");$("#"+element_parent+" #"+elementId).autocomplete({source:function(request,response){var country=$("#"+element_parent+" #country").val(),state="";$("#"+element_parent+" #state").length&&(state=$("#"+element_parent+" #state").val()),state in cacheShipping?response(cacheShipping[state]):lastShippingXhr=$.getJSON(base_url+"ajax/get_suburbs/"+country+"/"+state+"/",request,(function(data,status,xhr){cacheShipping[state]=data,xhr===lastShippingXhr&&response(data)}))},minLength:3,select:function(event,ui){$("#"+element_parent+" #zip").val(ui.item.postcode),ui.item.state&&$("#"+element_parent+" #state").length&&$("#"+element_parent+" #state").val(ui.item.state)}})})),auto_complete_city&&$(document).on("keyup","#city",(function(){var lastBillinsXhr,cacheBilling={},element_parent=$(this).data("parent");$("#"+element_parent+" #city").autocomplete({source:function(request,response){var country=$("#"+element_parent+" #country").val(),state="",search=$("#"+element_parent+" #city").val();if($("#"+element_parent+" #state").length&&(state=$("#"+element_parent+" #state").val()),state in cacheBilling)response(cacheBilling[state]);else{var parameters={country:country,state:state,search:search};lastBillinsXhr=$.ajax({dataType:"json",type:"POST",url:base_url+"ajax/get_cities",data:parameters,success:function(data,status,xhr){cacheBilling[state]=data,xhr===lastBillinsXhr&&response(data)}})}},minLength:3,change:function(event,ui){},select:function(event,ui){"magento"==theme&&void 0!==ui.item.postcode&&($("#"+element_parent+" #zip").length&&$("#"+element_parent+" #zip").val(ui.item.postcode),ui.item.state&&$("#"+element_parent+" #state").length&&$("#"+element_parent+" #state").val(ui.item.state))}})})),auto_complete_metro&&$("#"+metro_zone_field).length&&$("#"+metro_zone_field).length&&$(document).on("keyup","#"+metro_zone_field,(function(){var lastBillinsXhr,cacheShipping={},element_parent=$(this).data("parent"),elementId=$(this).attr("id");$("#"+element_parent+" #"+elementId).autocomplete({source:function(request,response){var country=$("#"+element_parent+" #country").val(),state="",search=$("#"+element_parent+metro_zone_field).val();$("#"+element_parent+" #state").length&&(state=$("#"+element_parent+" #state").val());var city="";if($("#"+element_parent+" #city").length&&(city=$("#"+element_parent+" #city").val()),city in cacheShipping)response(cacheShipping[city]);else{var parameters={country:country,state:state,city:city,search:search};lastBillinsXhr=$.ajax({dataType:"json",type:"POST",url:base_url+"ajax/get_metro_data",data:parameters,success:function(data,status,xhr){cacheShipping[city]=data,xhr===lastBillinsXhr&&response(data)}})}},minLength:3})}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.