1/*! For license information please see main.min.js.LICENSE.txt */ 2!function(){"use strict";function e(e){document.querySelector("body.debug-enable")&&console.log("[popup-maker] "+e)}function t(e){return e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)}function a(t,a,o,i){var n=t.getAttribute("data-popup-site")+"/wp-admin/admin-ajax.php",r=new URLSearchParams;if(r.set("action","save_popup_data"),r.set("views",a),r.set("click",o),r.set("post_id",i),o&&navigator.sendBeacon){var d=navigator.sendBeacon(n,r);if(e("beacon click enviado: "+d),d)return}fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString(),keepalive:!0,credentials:"same-origin"}).then((function(e){return e.text()})).then((function(t){e(t)})).catch((function(t){e("erro no tracking: "+t)}))}function o(){var o=document.getElementById("nucleo-popup");if(o){var i=o.getAttribute("data-popup-id"),n=Number(o.getAttribute("data-popup-tipo")),r=o.getAttribute("data-popup-fim"),d=Number(o.getAttribute("data-popup-cookie")),c=new Date,p=new Date(c);p.setDate(p.getDate()+1);var u=t(c),l=t(p);if(e("Salvo: "+localStorage.getItem("popup_"+i)),e("Fim: "+r),e("Agora: "+u),e("Daqui a 1 dia: "+l),!(u>r)){var s=localStorage.getItem("popup_"+i);if(s<=u||1!==d){var m=document.createElement("div");m.className="modal-shadow";var g=document.createElement("div");g.className="popup-container";var b=document.createElement("a"),v=o.getAttribute("data-popup-link"),f=o.getAttribute("data-popup-target");if(v&&b.setAttribute("href",v),f&&b.setAttribute("target",f),b.className="popup-link",1===n){var h=document.createElement("img");h.setAttribute("src",o.getAttribute("data-popup-imagem")),b.appendChild(h)}else if(2===n){var A=o.getAttribute("data-popup-video");if(A){var w=document.createElement("iframe");w.className="youtube-video",w.setAttribute("width","100%"),w.setAttribute("height","auto"),w.setAttribute("src","https://www.youtube.com/embed/"+A+"?autoplay=1&enablejsapi=1&version=3&playerapiid=ytplayer"),w.setAttribute("title","Popup Video"),w.setAttribute("frameborder","0"),w.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),w.setAttribute("allowfullscreen",""),g.appendChild(w)}}var y=document.createElement("button");y.className="close",y.setAttribute("title","Fechar"),g.appendChild(y),g.appendChild(b),m.appendChild(g),o.appendChild(m),o.classList.remove("d-none"),document.body.classList.add("overflow-hidden"),a(o,1,0,i),b.addEventListener("click",(function(){a(o,0,1,i)})),y.addEventListener("click",(function(){E()})),m.addEventListener("click",(function(e){e.target instanceof HTMLImageElement||E()}))}else e("Popup já exibido hoje. Próxima data de exibição: "+s)}}function E(){document.body.classList.remove("overflow-hidden"),o.classList.add("d-none"),o.remove(),localStorage.setItem("popup_"+i,l),e("Popup fechado! Próxima data de exibição salva no localStorage: "+localStorage.getItem("popup_"+i))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()}();
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.