text: Module.ComponentWrapper("SearchZipCode",function(a){a.fn.init=function(){this.addEventListener()},a.fn.addEventListener=function(){this.addEvent("focusout","search")},a.fn.isValidZipCode=function(a){var b=/^[0-9]{2}[0-9]{3}[0-9]{3}$/;return b.test(a.replace(/[^0-9]/g,""))},a.fn._onFocusoutSearch=function(){var a=this.elements.zipCode.val();this.isValidZipCode(a)&&jQuery.ajax({url:"http://api.postmon.com.br/v1/cep/"+a}).then(this._onThenAPI.bind(this))},a.fn._onThenAPI=function(a){this.elements.bairro.val(a.bairro||""),this.elements.cidade.val(a.cidade||""),this.elements.logradouro.val(a.logradouro||""),this.elements.siglauf.val(a.estado||""),this.elements.uf.val(a.estado_info.nome||"")}}),Module.factory.create($("body"));