PageSourceSearch

https://guiadoinvestidor.com.br/wp-content/plugins/seox-publishers…/assets/js/dist/public/main.js?ver=2.0.4

js guiadoinvestidor.com.br collected 2026-10-02 08:17:13 UTC 5,266 bytes, 1 lines download raw bytes

1(()=>{"use strict";function e(){document.querySelectorAll(".newsletter-recaptcha").forEach((function(e){"undefined"!=typeof grecaptcha&&grecaptcha.ready((function(){grecaptcha.execute(e.getAttribute("data-site-key")).then((function(t){e.value=t}))}))}))}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,r,n){return(r=function(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(){var r=!1,o=function(t){if(!r){r=!0;var n=document.createElement("script");n.src="https://www.google.com/recaptcha/api.js?render="+t+"&ver=1.0",n.async=!0,n.defer=!0,document.body.appendChild(n),n.onload=function(){e()}}},a=function(){var r=document.querySelectorAll(".section-newsletter");r.length>0&&r.forEach((function(r){var a="",i=r.querySelector(".newsletter-recaptcha"),u=r.querySelectorAll("input");i&&(a=i.getAttribute("data-site-key"),u.forEach((function(e){e.addEventListener("focus",(function(){return o(a)})),e.addEventListener("input",(function(){return o(a)}))}))),r.hasAttribute("data-initialized")||(r.setAttribute("data-initialized","true"),function(r){var o=!1,a=!1,i=r.querySelector(".newsletter-form");if(i){var u=i.querySelector(".newsletter-form-check"),c=i.querySelector(".newsletter-form-email"),s=i.querySelector(".newsletter-form-name"),l=i.querySelector(".newsletter-form-origin"),d=i.querySelector(".newsletter-form-submit"),f="undefined"!=typeof httpExtraFields?httpExtraFields:{},y=i.querySelector(".newsletter-thankyou-redirect"),v=r.querySelectorAll(".newsletter-form-mensagem"),m=r.querySelectorAll(".newsletter-form-error-mensagem");i.addEventListener("submit",(function(t){var r;if(t.preventDefault(),o=!0,a=!0,!b())return!1;l&&(l.value=window.location.href);var i={},u=null!==(r=t.target.getAttribute("data-submit-type"))&&void 0!==r?r:"default";if("default"===u)i.type=t.target.method,i.url=t.target.action,i.data=jQuery(t.target).serialize(),f.body&&Object.keys(f.body).length>0&&(i.data+="&"+jQuery.param(f.body)),i.dataType="json",i.contentType="application/json; charset=utf-8";else{if("rest-api"!==u)return h("Cadastro não realizado"),!1;i.type=t.target.method,i.url=t.target.action,i.data=JSON.stringify(function(e){var t=jQuery(e).serializeArray();if(1===parseInt(jQuery(e).attr("data-disable-json")))return t;var r={};return jQuery.each(t,(function(){r[this.name]=this.value||""})),n(n({},r),f.body)}(t.target)),i.contentType="application/json"}d.setAttribute("loading",""),function(t){var r=n(n({},t.headers),f.header);jQuery.ajax(n(n({},t),{},{headers:r,error:function(t){var r;200!==t.status||""!==t.responseText?(h(p(null===(r=t.responseJSON)||void 0===r?void 0:r.message,"Cadastro não realizado")),d.removeAttribute("loading"),e()):null!=y&&y.value?window.location.href=y.value:v.forEach((function(e){e.classList.remove("d-none")}))},success:function(t){"success"===t.result||!0===t.is_valid||t.message&&"Created"===t.message.result?null!=y&&y.value?window.location.href=y.value:v.forEach((function(e){d.removeAttribute("loading"),e.classList.remove("d-none")})):(h("Cadastro não realizado"),d.removeAttribute("loading"),e())}}))}(i)})),u.addEventListener("change",b),c.addEventListener("input",b),s.addEventListener("input",b);var p=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Cadastro não realizado";return null==e||"object"===t(e)?r:String(e)}}function b(){return!(!o||(s.value.length<3?(h("Preencha o seu nome",s),1):(g(s),e=c.value,/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)?(g(c),u.checked?(g(u),0):(h("Aceite os termos de uso",u),1)):(h("Preencha o seu e-mail",c),1))));var e}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.forEach((function(r){r.classList.remove("d-none"),r.innerHTML=e,t&&t.classList.add("is-invalid")})),a&&i.dispatchEvent(new CustomEvent("publisher-newsletter-error",{detail:{error:e,field:t,form:i}})),a=!1}function g(e){m.forEach((function(t){return t.classList.add("d-none"),e.classList.remove("is-invalid"),t.innerHTML="",!1}))}}(r))}))};a(),new MutationObserver((function(){a()})).observe(document.body,{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){a()})):a()})();

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.