PageSourceSearch

https://www.report.cz/build/assets/ajax-DXTmivKR.js

js report.cz collected 2026-10-02 12:40:31 UTC 2,952 bytes, 1 lines download raw bytes

1import{l as f}from"./config-BQJYj0Ss.js";function j(e,t){e.innerHTML=t}function A(e,t){e.outerHTML=t}function S(e,t){e.insertAdjacentHTML("beforeend",t)}function k(){const e=document.getElementById("load-more-button");e&&(e.hasAttribute("data-has-click-listener")||(e.addEventListener("click",function(t){M(e.getAttribute("data-ajax-action"),e.getAttribute("data-ajax-method"),null,q,()=>{})}),e.setAttribute("data-has-click-listener","true")))}function E(){const e='[data-recaptcha="input"]',t=`form:has(${e})`,n={root:null,threshold:.15};function a(){const o=document.querySelector(".grecaptcha-badge");if(!o)return;const c=[...document.querySelectorAll(t)].some(r=>r.dataset.visible);o.style.visibility=c?"visible":"hidden",o.style.opacity=c?"1":"0"}function l(o){const c=o.querySelector(e);if(!c||c.dataset.recaptchaInit)return;const r=c.dataset.recaptchaAction;if(!r)return;const d=f().recaptcha.siteKey||null;if(!d)return;const p=(m,g,v)=>{typeof grecaptcha>"u"||(m.dataset.recaptchaInit="1",grecaptcha.ready(()=>{grecaptcha.execute(v,{action:g}).then(y=>m.value=y)}))};p(c,r,d),setInterval(()=>p(c,r,d),15e4)}const i=new IntersectionObserver((o,c)=>{o.forEach(r=>{r.intersectionRatio>=c.thresholds[0]?(r.target.dataset.visible="1",l(r.target)):delete r.target.dataset.visible,a()})},n),u=new MutationObserver(()=>{document.querySelector(".grecaptcha-badge")&&(u.disconnect(),a(),document.querySelectorAll(t).forEach(c=>i.observe(c)))});function s(){if(document.head.querySelector('[data-script="recaptcha"]'))return;const c=f().recaptcha.siteKey||null;if(!c)return;const r=document.createElement("script");r.src=`https://www.google.com/recaptcha/api.js?render=${c}&badge=bottomleft`,r.dataset.script="recaptcha",document.head.append(r)}const h=new IntersectionObserver((o,c)=>{o.forEach(r=>{r.intersectionRatio>=c.thresholds[0]&&(h.disconnect(),s(),u.observe(document,{attributes:!0,childList:!0,characterData:!1,subtree:!0}))})},n);document.querySelectorAll(t).forEach(o=>h.observe(o))}function q(e){w(e),k(),E()}function w(e){Object.entries(e.snippets).forEach(([t,n])=>{const a=document.querySelector(t);if(!a){console.log("Element by selector "+t+" not found");return}switch(n.action){case"replace":A(a,n.html);break;case"replace-content":j(a,n.html);break;case"append-adjacent":S(a,n.html);break;default:console.log("Unknown action "+n.action);break}}),e.actions&&Object.entries(e.actions).forEach(([t,n])=>{switch(t){case"replace-attribute":let a=document.querySelector(n.selector);if(!a){console.log("ajax.js: Could not find element "+n.identifier);return}a.setAttribute(n.attributeName,n.attributeValue);break;default:console.log("ajax.js: Unimplemented action: "+t);break}})}function M(e,t,n,a,l){fetch(e,{method:t,body:n,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(i=>i.json()).then(i=>{a(i)}).catch(i=>{console.error(i);const s=f().formErrorMessage||null;s&&alert(s)}).finally(()=>{l()})}export{M as d,k as i,q as o,E as r};

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.