PageSourceSearch

https://www.stiborka.cz/build/assets/form-9ARQW8Tv.js

js stiborka.cz collected 2026-10-10 01:01:11 UTC 3,015 bytes, 1 lines download raw bytes

1function S(e){e instanceof Node&&(e=[e]),e.forEach(t=>t.ariaBusy="true")}function A(e){e instanceof Node&&(e=[e]),e.forEach(t=>t.ariaBusy="false")}function L(){return navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function T(){return window.devicePixelRatio>1}function H(e,t){if(!t)return e;const r=document.createElement("a");return r.setAttribute("href",t),r.innerHTML=e.innerHTML,e.replaceChildren(r),e}function E(e,t){e.innerHTML=t}function q(e,t){e.outerHTML=t}function u(){try{const e=document.querySelector("[data-app-config]");return JSON.parse(e.innerHTML)}catch{return{}}}function x(){const e='[data-recaptcha="input"]',t=`form:has(${e})`,r={root:null,threshold:.15};function i(){const o=document.querySelector(".grecaptcha-badge");if(!o)return;const c=[...document.querySelectorAll(t)].some(n=>n.dataset.visible);o.style.visibility=c?"visible":"hidden",o.style.opacity=c?"1":"0"}function a(o){const c=o.querySelector(e);if(!c||c.dataset.recaptchaInit)return;const n=c.dataset.recaptchaAction;if(!n)return;const s=u().recaptcha.siteKey||null;if(!s)return;const h=(p,m,v)=>{typeof grecaptcha>"u"||(p.dataset.recaptchaInit="1",grecaptcha.ready(()=>{grecaptcha.execute(v,{action:m}).then(y=>p.value=y)}))};h(c,n,s),setInterval(()=>h(c,n,s),15e4)}const g=new IntersectionObserver((o,c)=>{o.forEach(n=>{n.intersectionRatio>=c.thresholds[0]?(n.target.dataset.visible="1",a(n.target)):delete n.target.dataset.visible,i()})},r),l=new MutationObserver(()=>{document.querySelector(".grecaptcha-badge")&&(l.disconnect(),i(),document.querySelectorAll(t).forEach(c=>g.observe(c)))});function b(){if(document.head.querySelector('[data-script="recaptcha"]'))return;const c=u().recaptcha.siteKey||null;if(!c)return;const n=document.createElement("script");n.src=`https://www.google.com/recaptcha/api.js?render=${c}&badge=bottomleft`,n.dataset.script="recaptcha",document.head.append(n)}const f=new IntersectionObserver((o,c)=>{o.forEach(n=>{n.intersectionRatio>=c.thresholds[0]&&(f.disconnect(),b(),l.observe(document,{attributes:!0,childList:!0,characterData:!1,subtree:!0}))})},r);document.querySelectorAll(t).forEach(o=>f.observe(o))}function M(e){w(e),x()}function w(e){Object.entries(e.snippets).forEach(([t,r])=>{const i=document.querySelector(t);if(i)switch(r.action){case"replace":q(i,r.html);break;case"replace-content":E(i,r.html);break}})}function I(e){if(e.target.getAttribute("data-ajax-form")||e.target.getAttribute("data-ajax-ignore"))return;const t=e.target;S(e.target),fetch(t.getAttribute("action"),{method:t.getAttribute("method"),body:new FormData(t),headers:{"X-Requested-With":"XMLHttpRequest"}}).then(r=>r.json()).then(r=>{M(r)}).catch(r=>{console.error(r);const a=u().formErrorMessage||null;a&&alert(a)}).finally(()=>{A(e.target),t.querySelectorAll("input, textarea, select, button").forEach(r=>r.removeAttribute("disabled"))}),t.querySelectorAll("input, textarea, select, button").forEach(r=>r.setAttribute("disabled","")),e.preventDefault()}export{I as a,L as b,T as i,H as l,x 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.