function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&e.forEach((function(e){e.setAttribute("data-callback","handleSubmit2"),createStyles();var t=e.parentNode.querySelector("#enviar");t.disabled=!0,t.style.display="none"}))}function createStyles(){var e=document.head||document.getElementsByTagName("head")[0];if(e){var t=document.createElement("style"),n=".g-recaptcha{display: flex; align-items: center; justify-content: center;margin: 0.625rem auto}";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.innerText=n,e.appendChild(t)}}function initWoWJs(){document.querySelectorAll(".wow").length<1||(new WOW).init()}function initChatbot(){validateURL(location.pathname)&&getChatbotLib()}function validateURL(e){var t=!1;return["/lp-prospeccao-ontarget-decisor","/prospeccao-geracao-de-leads-b2b","/lp-prospeccao-bottom-up","/lp-due-diligence","/lp-sistema-de-compliance","/lp-gestao-de-riscos","/lp-background-check"].forEach((function(n){new RegExp(n).test(e)&&(t=!0)})),t}function getChatbotLib(){var e=document.createElement("script");e.type="text/javascript",e.async=1,e.src="https://go.botmaker.com/rest/webchat/p/NIF3UFAZ0Q/init.js",document.body.appendChild(e)}function initValidateCheck(){var e=document.querySelector("#check_conteudo"),t=document.querySelector("#recebe_conteudo");e&&t&&e.addEventListener("click",(function(){e.checked?t.value="Sim":t.value="Não"}));var n=document.querySelector("#check_evento"),i=document.querySelector("#recebe_evento");n&&i&&n.addEventListener("click",(function(){n.checked?i.value="Sim":i.value="Não"}))}function initValidadeCNPJ(){var e=document.getElementById("cnpj");e&&(e.addEventListener("input",(function(e){var t=e.target;t.value=function(e){if(!e)return"";var t=e;return t=(t=(t=(t=(t=t.replace(/\D/g,"")).replace(/^(\d{2})(\d)/,"$1.$2")).replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3")).replace(/\.(\d{3})(\d)/,".$1/$2")).replace(/(\d{4})(\d)/,"$1-$2")}(t.value)})),e.addEventListener("change",(function(e){var t=e.target,n=function(e){var t=e;if(""==t||14!=t.length)return!1;if("00000000000000"==t||"11111111111111"==t||"22222222222222"==t||"33333333333333"==t||"44444444444444"==t||"55555555555555"==t||"66666666666666"==t||"77777777777777"==t||"88888888888888"==t||"99999999999999"==t)return!1;for(var n=t.length-2,i=t.substring(0,n),r=t.substring(n),o=0,a=n-7,l=n;l>=1;l--)o+=i.charAt(n-l)*a--,a<2&&(a=9);var s=o%11<2?0:11-o%11;if(s!=r.charAt(0))return!1;n+=1,i=t.substring(0,n),o=0,a=n-7;for(var c=n;c>=1;c--)o+=i.charAt(n-c)*a--,a<2&&(a=9);return(s=o%11<2?0:11-o%11)==r.charAt(1)}(t.value.replace(/[^\d]+/g,""));n||(alert("CNPJ Inválido!"),t.value="",t.focus())})))}function initValidateEmail(){var e=document.querySelectorAll('input[type="email"]');e.length<1||e.forEach((function(e){e.getAttribute("maxlength")||e.setAttribute("maxlength","254"),handleInputEvent(e)}))}function handleInputEvent(e){var t=e.parentNode,n=t.querySelector(".text--error");e.addEventListener("input",(function(i){if(i.target.setCustomValidity(""),initCriptoEmail(),t&&t.classList.contains("invalid"))return t.classList.remove("invalid"),n&&(n.innerText=""),e}))}function laziloadImgs(){if(!(document.querySelectorAll(".lozad").length<1)){var e=document.createElement("script");e.type="text/javascript",e.src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js",document.body.appendChild(e),window.addEventListener("load",initLazyloading)}}function initLazyloading(){lozad().observe(),window.removeEventListener("load",initLazyloading)}function addMaxLegnthInputs(){var e=document.getElementById("conversion-form"),t=e.querySelectorAll("input");!e&&t.length<1||t.forEach((function(e){var t=e.getAttribute("type"),n=255;"text"!=t&&"email"!=t||("email"===t&&(n=254),e.maxLength=n)}))}function initPushToDataLayer(){userIdToDataLayer(),passSTLDataToDataLayer()}function userIdToDataLayer(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"submitForm",user_id:Cookies.get("_neouid")})}function passSTLDataToDataLayer(){window.dataLayer=window.dataLayer||[];var e={pagePath:window.location.pathname,userId:Cookies.get("_neouid"),formStatus:"Success",formName:"conversion-form",lastPosts:localStorage.getItem("post_details")||null};window.dataLayer.push({event:"form_stl",evt_category:"Envio_formulario",evt_action:"Materiais_Educativos",evt_label:e.pagePath,n_user_id:e.userId,n_status:e.formStatus,n_form_name:e.formName,last_posts:e.lastPosts})}function initValidatePhone(){var e=document.querySelectorAll('input[type="tel"]');e.length<1||(["change","input"].forEach((function(t){e.forEach((function(e){e.addEventListener(t,(function(e){var t;e.preventDefault(),e.target.setCustomValidity(""),t=e.currentTarget,setTimeout((function(){var e=function(e){var t=e.replace(/\D/g,"");return t=(t=t.replace(/^0/,"")).length>10?t.replace(/^(\d\d)(\d{5})(\d{4}).*/,"($1) $2-$3"):t.length>5?t.replace(/^(\d\d)(\d{4})(\d{0,4}).*/,"($1) $2-$3"):t.length>2?t.replace(/^(\d\d)(\d{0,5})/,"($1) $2"):t.replace(/^(\d*)/,"($1")}(t.value);e!=t.value&&(t.value=e)}),1)}))}))})),e.forEach((function(e){e.maxLength=50,e.addEventListener("blur",(function(e){var t=e.target;/^\(?(\d{2})\)?[- ]?(\d{5})[- ]?(\d{4})$/g.test(t.value)?t.setCustomValidity(""):t.setCustomValidity("Parece estar faltando alguma coisa. Por favor, verifique o número digitado e tente novamente.")}))})))}function initCriptoEmail(){var e,t=!!crypto&&!!crypto.subtle,n=document.getElementById("emailId"),i=document.getElementById("email")||document.querySelector('input[type="email"]');if(e=i.value,i&&e&&n&&t){var r=(new TextEncoder).encode(e.toLowerCase()+"neo_id");try{crypto.subtle.digest("SHA-256",r).then((function(e){var t=Array.from(new Uint8Array(e));t=t.map((function(e){return e.toString(16).padStart(2,"0")})).join(""),n.value=t;Cookies.set("_cynur",t,{expires:1/48,secure:!0,path:"/"})}))}catch(e){return console.log("error",e),""}}}function initUserId(){var e=document.getElementById("necessidade_foco");e||(e=createUserIdField()),e.value=takeUserId()}function createUserIdField(){var e=document.getElementById("conversion-form");if(e){var t=document.createElement("input");return t.type="hidden",t.id="necessidade_foco",t.name="necessidade_foco",e.appendChild(t),t}}function takeUserId(){var e="_neouid",t=Cookies.get(e);return t||(t=createUserId(e)),t}function createUserId(e){var t="neo_"+numberRandow(9)+"."+numberRandow(10);return Cookies.set(e,t,{expires:365,secure:!0,path:"/"}),t}function numberRandow(e){for(var t=[],n=0;n=0}function r(e,t){for(var n in t)if(null==e[n]){var i=t[n];e[n]=i}return e}function o(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],r=void 0;return null!=document.createEvent?(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,i):null!=document.createEventObject?(r=document.createEventObject()).eventType=e:r.eventName=e,r}function a(e,t,n){null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n}function l(e,t,n){null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u=function(){function e(e,t){for(var n=0;n=0){var t=e.target||e.srcElement;t.className=t.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(e,t,n,i,r){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),i&&this.vendorSet(e.style,{animationDelay:i}),r&&this.vendorSet(e.style,{animationIterationCount:r}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e}},{key:"vendorSet",value:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[""+n]=i;for(var r=0;r=r&&o>=n}},{key:"disabled",value:function(){return!this.config.mobile&&function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}(navigator.userAgent)}}]),e}();t.default=m,e.exports=t.default}));