1jQuery(function($){const InfixsCorreiosAutomaticoAutofillAddress={init(){$(document.body).on("blur","#billing_postcode",this.autofill.bind(this,"billing"));$(document.body).on("blur","#shipping_postcode",this.autofill.bind(this,"shipping"))},autofill(field,event){const target=$(event.target);const postcode=target.val().replace(/\D/g,"");if(!postcode){return} 2$.ajax({url:woocommerce_params.ajax_url,type:"POST",data:{action:"infixs_correios_automatico_autofill_address",postcode:postcode,nonce:infxsCorreiosAutomatico.nonce,},success:(response)=>{if(!response.success){return} 3this.fillFields(field,response.data)},error:(error)=>{},complete:()=>{},})},fillFields(field,data){if(data.address){$("#"+field+"_address_1").val(data.address).trigger("change")} 4if(data.neighborhood){if($("#"+field+"_neighborhood").length){$("#"+field+"_neighborhood").val(data.neighborhood).trigger("change")}else{$("#"+field+"_address_2").val(data.neighborhood).trigger("change")}} 5$("#"+field+"_city").val(data.city).trigger("change");$("#"+field+"_state").val(data.state).trigger("change")},};InfixsCorreiosAutomaticoAutofillAddress.init()})
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.