PageSourceSearch

https://jornalcana.com.br/wp-content/cache/publishers-theme/plugin…cripts-bundle-global-484b4545.js?ver=3.3.12

js jornalcana.com.br collected 2026-10-02 06:23:40 UTC 11,715 bytes, 20 lines download raw bytes

1/**
2 * Publishers Plugins Scripts Bundle - global
3 * Auto-generated - Do not edit
4 */
5
6/* === breaking-news === */
7document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector(".breaking-news[data-api]");t&&fetch(t.dataset.api).then(function(t){return t.json()}).then(function(n){var e=n.posts;if(e&&e.length){var a=t.querySelector(".breaking-news-list");e.forEach(function(t){var n=t.url,e=t.hat,i=t.title,c=document.createElement("li");c.className="breaking-news-item d-flex align-items-center justify-content-start",c.innerHTML='<a href="'.concat(n,'" class="d-flex align-items-center justify-content-start gap-2 m-0 p-0 text-decoration-none">\n\t\t\t\t\t<span class="fs-3 line-fixed fw-black" style="white-space:nowrap; color: var(--bnews-hat);">').concat(e,'</span>\n\t\t\t\t\t<span class="fs-3 line-fixed fw-normal" style="white-space:nowrap; color: var(--bnews-text);">').concat(i,"</span>\n\t\t\t\t</a>"),a.appendChild(c)}),Array.from(a.children).forEach(function(t){a.appendChild(t.cloneNode(!0))}),requestAnimationFrame(function(){var t=a.scrollWidth/2;a.style.animationDuration="".concat(t/60,"s"),a.style.opacity="1",a.classList.add("is-running")})}else t.hidden=!0}).catch(function(){t.hidden=!0})});
8
9/* === custom-blocks === */
10(()=>{var e={476:()=>{document.addEventListener("DOMContentLoaded",function(){var e,o,t,n,s=(n=null==(t=document.querySelector("#publishers-addon-custom-blocks-js"))||null===(o=t.getAttribute("src"))||void 0===o?void 0:o.match(/[?&]ver=([^&]+)/))?n[1]:Date.now(),r=function(e){var o;if(null!=e&&null!==(o=e.list)&&void 0!==o&&o.length){var t=document.createElement("script");t.id="addon-custom-blocks-render",t.src="/wp-content/plugins/seox-publishers-addon-custom-blocks/assets/dist/js/public/render.js?ver="+s,t.defer=!0,t.onload=function(){var o,t;return null===(o=(t=window).__customBlocksRender)||void 0===o?void 0:o.call(t,e)};var n="/wp-content/plugins/seox-publishers-addon-custom-blocks/assets/dist/css/style-main.css?ver="+s,r=document.getElementById("addon-custom-blocks-style-css");r&&r.href===location.origin+n||(r&&r.remove(),(r=document.createElement("link")).id="addon-custom-blocks-style-css",r.rel="stylesheet",r.type="text/css",r.media="all",r.href=n,document.head.appendChild(r)),document.body.appendChild(t)}else console.warn("[Seox] Addon Custom Blocks: Nenhum custom block encontrado")},c=null===(e=window.publishersAddonCustomBlocks)||void 0===e?void 0:e.data;c?r(c):fetch("/wp-json/customblocks/post/json").then(function(e){return e.json()}).then(function(e){return r(e)}).catch(function(e){return console.error("Erro carregando custom blocks:",e)})})}},o={};function t(n){var s=o[n];if(void 0!==s)return s.exports;var r=o[n]={exports:{}};return e[n](r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";t(476)})()})();
11
12/* === ga4-custom-blocks === */
13(()=>{"use strict";var t=["templateName","limit","days","category","heading_title","heading_cta_text","heading_cta_url","heading_type","custom_class","toggleOnHeading","toggleOnCategoryFilter","toggleOnExcerpt","showTabToday","showTabWeek","showTabMonth","showTabYear"],e={templateName:"template"},n=function(){if("undefined"!=typeof window&&void 0!==window.location&&"string"==typeof window.location.search&&window.location.search.includes("ga4debug=1")){for(var t,e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];(t=console).warn.apply(t,["[ga4-most-read]"].concat(n))}},a=function(t,e,a,o){var r=document.createElement("div");r.innerHTML=e;var i=r.firstElementChild;if(i){if(i.classList.add("ga4-most-read-hydrated"),a&&a.version&&(i.dataset.ga4Version=a.version),i.dataset.ga4HydratedAt=String(Date.now()),t.replaceWith(i),"function"==typeof o)try{o(i)}catch(t){n("initMostReadTabs failed",t)}}else t.style.display="none"},o=function(o,r){if(!o.dataset.ga4Hydrated){var i=function(t){var e=t.querySelector("script.ga4-most-read-config");if(!e)return null;try{return JSON.parse(e.textContent||"{}")}catch(t){return n("invalid config JSON",t),null}}(o);if(i&&i.endpoint){o.dataset.ga4Hydrated="pending";var s=function(t){return"ga4mr:".concat(t.version||"0",":").concat(function(t){for(var e=JSON.stringify({attributes:t.attributes||{},post_id:t.post_id||0}),n=0,a=0;a<e.length;a+=1)n=(31*n+e.charCodeAt(a))%2147483647;return Math.abs(n).toString(36)}(t))}(i),c=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;var a=JSON.parse(e);return a&&"string"==typeof a.html?"number"!=typeof a.savedAt||Date.now()-a.savedAt>6e5?(window.sessionStorage.removeItem(t),null):a.html:null}catch(t){return n("session read failed",t),null}}(s);if(c)a(o,c,i,r);else{var d=function(n){var a=new URLSearchParams,o=n.attributes||{};t.forEach((function(t){if(t in o){var n=o[t];if(null!=n&&""!==n){var r=e[t]||t;"boolean"==typeof n?a.set(r,n?"1":"0"):a.set(r,String(n))}}})),n.post_id&&a.set("post_id",String(n.post_id));var r=n.endpoint.includes("?")?"&":"?";return"".concat(n.endpoint).concat(r).concat(a.toString())}(i);(function(t){var e=new AbortController,n=window.setTimeout((function(){return e.abort()}),5e3);return fetch(t,{method:"GET",credentials:"same-origin",headers:{Accept:"application/json"},signal:e.signal}).then((function(t){if(!t.ok)throw new Error("HTTP ".concat(t.status));return t.json()})).then((function(t){if(!t||"string"!=typeof t.html)throw new Error("invalid payload");return t.html})).finally((function(){window.clearTimeout(n)}))})(d).then((function(t){!function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify({html:e,savedAt:Date.now()}))}catch(t){n("session write failed",t)}}(s,t),a(o,t,i,r)})).catch((function(t){n("hydration failed",t),o.style.display="none"}))}}else o.style.display="none"}},r=["day","week","month","year"],i=".most-read-posts-small-tabs-button, .last-day, .last-week, .last-month, .last-year",s=function(t){if(t&&"1"!==t.dataset.ga4MostReadBound){var e=Array.from(t.querySelectorAll('[class*="most-read-day"], [class*="most-read-week"], [class*="most-read-month"], [class*="most-read-year"]')),n=Array.from(t.querySelectorAll(i));if(e.length||n.length){var a=function(a){e.forEach((function(t){return t.classList.add("d-none")}
13)),n.forEach((function(t){t.classList.remove("active","btn-primary"),t.classList.add("btn-outline-primary")}));var o=t.querySelector(".most-read-".concat(a));o&&o.classList.remove("d-none");var r=t.querySelector(".last-".concat(a));r&&(r.classList.add("active","btn-primary"),r.classList.remove("btn-outline-primary"))};t.addEventListener("click",(function(e){var n=e.target.closest(i);if(n&&t.contains(n)){var o=n.dataset.period||r.find((function(t){return n.classList.contains("last-".concat(t))}));o&&a(o)}})),t.addEventListener("keydown",(function(t){var e=t.target.closest(i);if(e&&("Enter"===t.key||" "===t.key)){t.preventDefault();var n=e.dataset.period||r.find((function(t){return e.classList.contains("last-".concat(t))}));n&&a(n)}}));var o,s=function(t){return r.find((function(e){return t.classList.contains("most-read-".concat(e))}))},c=e.find((function(t){return t.classList.contains("active")})),d=n.find((function(t){return t.classList.contains("active")})),l=c&&s(c)||d&&((o=d).dataset.period||r.find((function(t){return o.classList.contains("last-".concat(t))})))||e[0]&&s(e[0])||null;t.dataset.ga4MostReadBound="1",l&&a(l)}}};document.addEventListener("DOMContentLoaded",(function(){(function(t,e){var n=t||document,a=Array.from(n.querySelectorAll('[data-ga4-most-read-shell="1"]'));if(a.length)if("function"==typeof window.IntersectionObserver){var r=new window.IntersectionObserver((function(t,n){t.forEach((function(t){t.isIntersecting&&(n.unobserve(t.target),o(t.target,e))}))}),{rootMargin:"200px"});a.forEach((function(t){var n,a;n=t.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,n.top<a&&n.bottom>0?o(t,e):r.observe(t)}))}else a.forEach((function(t){return o(t,e)}))})(document,s),document.querySelectorAll(".most-read-posts-dynamic, .section-most-read-posts").forEach((function(t){return s(t)}))}))})();
14
15/* === lgpd === */
16(()=>{var e={831:()=>{document.addEventListener("DOMContentLoaded",(function(){if(!document.cookie.includes("seox-lgpd-cookies=true")){var e=document.getElementById("consent-box-lgpd"),t=document.getElementById("consent-box-accept-btn");e&&t&&(e.style.visibility="visible",e.style.position="fixed",requestAnimationFrame((function(){e.classList.add("active")})),t.onclick=function(){var t=new Date;t.setTime(t.getTime()+15552e6),document.cookie="seox-lgpd-cookies=true; expires=".concat(t.toUTCString(),"; path=/"),e.classList.remove("active"),e.style.visibility="hidden",e.style.position="absolute"})}}))}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";o(831)})()})();
17
18/* === navbars === */
19(()=>{var t={509:()=>{function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var e=function(e){var r,n=document.querySelector("#".concat(e," .menu-links")),o=document.querySelector("#".concat(e," ul")),a=document.querySelectorAll("#".concat(e," ul > li"));if(n&&o&&0!==a.length){var u,i,c=document.querySelector("#".concat(e," .menu-control-prev")),l=document.querySelector("#".concat(e," .menu-control-next")),f=null!=(u=getComputedStyle(o).getPropertyValue("column-gap").match(/^(\d+)/g))&&u[0]?parseFloat(u[0]):0,s=(r=a,function(e){if(Array.isArray(e))return t(e)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(e,r){if(e){if("string"==typeof e)return t(e,r);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)?t(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){return t.offsetWidth+f})),d=s.reduce((function(t,e){return t+e}),0),m=n.offsetWidth,y=d-m,p=0,v=function(t){if("left"===t){var e=function(){for(var t=0,e=s.length-1;e>=0;e--){var r=s[e];if(!(t+r<m))return Math.min(r,Math.abs(p));t+=r}return 0}();p=p>=0?-(y+2*f):p+e}if("right"===t){var r=function(){for(var t=0,e=Math.abs(p),r=0;r<s.length;r++){var n=s[r];if(!(t+n<m))return Math.min(n,y-e)+25+f;t+=n}return 0}();p=p<=-y?0:p-r}o.style.transform="translateX(".concat(p,"px)")};i=d<=m,c&&(c.style.display=i?"none":"flex"),l&&(l.style.display=i?"none":"flex"),c&&c.addEventListener("click",(function(){requestAnimationFrame((function(){return v("left")}))}),{passive:!0}),l&&l.addEventListener("click",(function(){requestAnimationFrame((function(){return v("right")}))}),{passive:!0})}};window.addonNavbarsCreateSlider=e,e("featuredMenu")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";r(509)})()})();
20

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.