PageSourceSearch

https://igualdadanimal.org/app/plugins/gutenberg-blocks/build/bloc…/view.js?ver=b34c2aa8bd54fae4b6ec

js igualdadanimal.org collected 2026-10-02 06:12:53 UTC 2,624 bytes, 1 lines download raw bytes

1(()=>{"use strict";async function o(o){const t=o.getAttribute("data-block-config");if(!t)return void console.error("Block configuration not found");let e;try{e=JSON.parse(t)}catch(o){return void console.error("Error parsing block configuration:",o)}const n=o.querySelector(".loading-spinner"),r=o.querySelector(".wp-block-animalequality-recommended-posts__posts");if(r)try{const o=await async function(o){const t=function(){try{const o=localStorage.getItem("ae_visited_urls");return o?JSON.parse(o):[]}catch(o){return console.error("Error reading visited URLs from localStorage:",o),[]}}();try{const e={postTypes:o.postTypes,onlyShowPopularPosts:o.onlyShowPopularPosts,taxonomyPrimary:o.taxonomyPrimary,taxonomySecondary:o.taxonomySecondary,taxonomyPrimaryAmount:o.taxonomyPrimaryAmount,taxonomySecondaryAmount:o.taxonomySecondaryAmount,amount:o.amount,visitedUrls:t,showThumb:o.showThumb,showDate:o.showDate,useModifiedDate:o.useModifiedDate,showExcerpt:o.showExcerpt};o.postId&&(e.postId=o.postId);const n=await fetch("/wp-json/ae-gutenberg-blocks/v1/recommended-posts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}catch(o){throw console.error("Error fetching recommended posts:",o),o}}(e);n&&(n.style.display="none"),function(o,t,e){if(!o.posts||0===o.posts.length)return void(e.innerHTML="<p>No recommended posts found.</p>");const n=o.posts.map(o=>function(o,t){const e=t.showThumb&&o.thumbnail;let n=`<div class="${["wp-block-animalequality-recommended-posts__post",e?"wp-block-animalequality-recommended-posts__post--with-thumb":""].filter(Boolean).join(" ")}">`;return e&&(n+=`\n      <a href="${o.permalink}" class="wp-block-animalequality-recommended-posts__post__thumbnail">\n        ${o.thumbnail}\n      </a>\n    `),n+='<div class="wp-block-animalequality-recommended-posts__post__info">',n+=`<a href="${o.permalink}">${o.title}</a>`,t.showDate&&o.date&&(n+=`\n      <div class="wp-block-animalequality-recommended-posts__post__info__date">\n        ${o.date}\n      </div>\n    `),t.showExcerpt&&o.excerpt&&(n+=`\n      <div class="wp-block-animalequality-recommended-posts__post__info__excerpt">\n        ${o.excerpt}\n      </div>\n    `),n+="</div></div>",n}(o,t)).join("");e.innerHTML=n}(o,e,r)}catch(o){n&&(n.style.display="none")}else console.error("Recommended posts container not found")}function t(){document.querySelectorAll(".wp-block-animalequality-recommended-posts").forEach(t=>{o(t)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()})();

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.