1jQuery(document).ready(function(){let countryField=jQuery('form').find(jQuery('[id*=country]'))[0];let stateField=jQuery('form').find(jQuery('[id*=state]'))[0];let cityField=jQuery('form').find(jQuery('[id*=city]'))[0];if(countryField!=undefined){if(countryField.type=="select-one"){iws_gff_fetch_countries(countryField)}else if(countryField.type=="text"){jQuery(countryField).keyup(function(){var input=jQuery(countryField).val();if(!(input.length<1)){iws_gff_fetch_countries(countryField,input)}else{iws_remove_country_list()}})}} 2if(stateField!=undefined){if(stateField.type=="text"){jQuery(stateField).keyup(function(){var input=jQuery(stateField).val();if(!(input.length<1)){iws_gff_fetch_states(stateField,selectedCountryId,input)}else{iws_remove_state_list()}})}else if(stateField.type=="select-one"){stateField.innerHTML="<option disabled selected>Select "+iwsGeoLabels.country+" First</option>"}} 3if(cityField!=undefined){if(cityField.type=="text"){jQuery(cityField).keyup(function(){var input=jQuery(cityField).val();if(!(input.length<1)){iws_gff_fetch_cities(cityField,selectedStateId,input)}else{iws_remove_city_list()}})}else if(cityField.type=="select-one"){cityField.innerHTML="<option disabled selected>Select "+iwsGeoLabels.state+" First</option>"}} 4function iws_remove_country_list(){jQuery('#iws_country_list').remove();jQuery('#iws-sure-is-country').remove()} 5function iws_remove_state_list(){jQuery('#iws_state_list').remove();jQuery('#iws-sure-is-state').remove()} 6function iws_remove_city_list(){jQuery('#iws_city_list').remove();jQuery('#iws-sure-is-city').remove()} 7function iws_event_on_countries_list(){if(countryField.type=="select-one"){jQuery('#'+countryField.id).change(function(){selectedCountryId=jQuery(this).find(':selected').data('id');if(stateField!=undefined&&stateField.type=="select-one"){iws_gff_fetch_states(stateField,selectedCountryId);if(cityField!=undefined&&cityField.type=="select-one"){cityField.innerHTML="<option class='iws_city' vlaue='none' data-id='0' selected disabled>Select "+iwsGeoLabels.state+" first</option>"}}})}else if(countryField.type=="text"){jQuery('.iws_country').click(function(){var input=jQuery(this).text();selectedCountryId=jQuery(this).data('id');countryField.value=input;iws_remove_country_list();if(stateField!=undefined&&stateField.type=="select-one"){iws_gff_fetch_states(stateField,selectedCountryId);if(cityField!=undefined&&cityField.type=="select-one"){cityField.innerHTML="<option class='iws_city' vlaue='none' data-id='0' selected disabled>Select "+iwsGeoLabels.state+" first</option>"}} 8iws_remove_country_list()})}} 9function iws_init_event_on_states(){if(stateField.type=="select-one"){jQuery('#'+stateField.id).change(function(){selectedStateId=jQuery(this).find(':selected').data('id');if(cityField!=undefined&&cityField.type=="select-one"){iws_gff_fetch_cities(cityField,selectedStateId)}})}else if(stateField.type=="text"){jQuery('.iws_state').click(function(){var input=jQuery(this).text();selectedStateId=jQuery(this).data('id');stateField.value=input;iws_remove_state_list();if(cityField!=undefined&&cityField.type=="select-one"){iws_gff_fetch_cities(cityField,selectedStateId)} 10iws_remove_state_list()})}} 11function iws_init_event_on_cities(){if(cityField.type=="text"){jQuery('.iws_city').click(function(){var input=jQuery(this).text();selectedCityId=jQuery(this).data('id');cityField.value=input;iws_remove_city_list()})}} 12function iws_gff_fetch_countries(countryField,input=''){if(countryField.type!="select-one"&&countryField.type!="text"){return} 13var data=new FormData();data.append('action','iws_gff_fetch_countries');data.append('fetch_for',countryField.type);if(input!=''){data.append('country_name',input)} 14jQuery.ajax({url:ajaxUrl,type:'post',data:data,contentType:!1,processData:!1,success:function(responce){responce=JSON.parse(responce);if(countryField.type=='select-one'){countryField.innerHTML=responce.html}else if(countryField.type=='text'){iws_remove_country_list();jQuery(responce.html).insertAfter(countryField)} 15iws_event_on_countries_list()},error:function(responce,msg){countryField.innerHTML='<option>'+msg+': '+responce.status+' "Try reloading the page!"</option>'}})} 16function iws_gff_fetch_states(stateField,country_id,state_name=''){if(stateField.type!="select-one"&&stateField.type!="text"){return} 17if(country_id==''){country_id=selectedCountryId} 18var data=new FormData();data.append('action','iws_gff_fetch_states');data.append('country_id',country_id);data.append('fetch_for',stateField.type);if(state_name!=''){data.append('state_name',state_name)} 19jQuery.ajax({url:ajaxUrl,type:'post',data:data,contentType:!1,processData:!1,success:function(responce){responce=JSON.parse(responce);if(stateField.type=='select-one'){stateField.innerHTML=responce.html;if(responce.status==404){stateField.disabled=!0;if(cityField!=undefined){if(cityField.type=='select-one'){cityField.innerHTML="<option class='iws_city' vlaue='none' data-id='0' selected disabled>No "+iwsGeoLabels.city+" Found</option>";cityField.disabled=!0}else if(cityField.type=='text'){cityField.innerHTML="<p class='iws_city' data-id='0'>No "+iwsGeoLabels.city+" Found</p>";cityField.disabled=!0}}}else{stateField.disabled=!1;if(cityField!=undefined){cityField.disabled=!1}}}else if(stateField.type=='text'){iws_remove_state_list();jQuery(responce.html).insertAfter(stateField);if(responce.status==404){if(cityField!=undefined){if(cityField.type=='select-one'){cityField.innerHTML="<option class='iws_city' vlaue='none' data-id='0' selected disabled>No "+iwsGeoLabels.city+" Found</option>";cityField.disabled=!0}else if(cityField.type=='text'){cityField.innerHTML="<p class='iws_city' data-id='0'>No "+iwsGeoLabels.city+" Found</p>";cityField.disabled=!0}}}else{stateField.disabled=!1;if(cityField!=undefined){cityField.disabled=!1}}} 20iws_init_event_on_states()},error:function(responce,msg){stateField.innerHTML='<option>'+msg+': '+responce.status+' "Try reloading the page!"</option>'}})} 21function iws_gff_fetch_cities(cityField,state_id,city_name=''){if(cityField.type!="select-one"&&cityField.type!="text"){return} 22if(state_id==''){state_id=selectedStateId} 23var data=new FormData();data.append('action','iws_gff_fetch_cities');data.append('state_id',state_id);data.append('fetch_for',cityField.type);if(city_name!=''){data.append('city_name',city_name)} 24jQuery.ajax({url:ajaxUrl,type:'post',data:data,contentType:!1,processData:!1,success:function(responce){responce=JSON.parse(responce);if(cityField.type=='select-one'){cityField.innerHTML=responce.html}else if(cityField.type=='text'){iws_remove_city_list();jQuery(responce.html).insertAfter(cityField)} 25iws_init_event_on_cities()},error:function(responce,msg){cityField.innerHTML='<option>'+msg+': '+responce.status+' "Try reloading the page!"</option>'}})}})
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.