PageSourceSearch

https://www.invia.cz/assets/invia2020/js/8165.9edf305e6dacd73c08bb.chunk.js

js invia.cz collected 2026-09-24 09:55:46 UTC 4,410 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkinvia2020=globalThis.webpackChunkinvia2020||[]).push([[8165],{28165(t,e,o){o.r(e),o.d(e,{default:()=>C});var n=o(87387),s=o.n(n),i=o(95455),l=o(47662),c=o(77335),r=o(78315),d=o(27384),a=o(9271);const h="is-active",u="is-opened",m="has-overflow",g="menu-anchor-bottom-is-visible",f="b-navigation-bar",p="m-anchor__menu",v="is-visible",b="u-hide",y="hp-header";let w=[],L=[],E=null;const S=20,T=300;let B=0;const $=()=>window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,k=(t,e)=>{const o=(0,r.F1)(),n=o+window.innerHeight,s=document.getElementById("hp-header")?document.getElementById("hp-header"):document.getElementById("header"),i=s?s.offsetHeight:0,l=(0,c.$_)("mdUp")?0:i,a=JSON.parse(e);if(!a)return;const h=a.elements.reduce(((t,e)=>{const n=document.querySelector(e.selector);if(n){const s=n.getBoundingClientRect();t.push({show:e.show||!1,top:s.top+o,bottom:s.bottom+o-l-S})}return t}),[]).sort(((t,e)=>t.top-e.top));let m=!0;for(let t=0;t<h.length;t++){const e=h[t];if(!(e.top>o||o>e.bottom)){m=e.show;break}if(t+1<h.length&&h[t+1].top>n)break}t.classList.contains(u)||(m=!1),(0,d.RN)(t,v,m),(0,d.RN)(document.body,g,m)};class C extends i.xI{static targets=["scroll","link"];connect(){this.onFirstEyeballOfEveryPageLoad(),this.setScrollSpy(),k(this.element,this.data.get("data"))}onFirstEyeballOfEveryPageLoad(){if(window.location.hash){const t=(0,l.$X)(window.location.hash.replace("#",""))[0];null!==t&&(0,a.s)(t)}}setScrollSpy(){if(this.linkTargets.length>0){const t=()=>{w=[],L=[],this.linkTargets.map((t=>{const e=t.getAttribute("href").replace("#",""),o=(0,l.$X)(e)[0];o&&(o.classList.contains(b)||w.push(o),L.push(o))}))};t(),window.addEventListener("scroll",this.windowScroll(this.context));const e=e=>{e.forEach((e=>{"childList"===e.type&&t()}))};L.forEach((t=>{const o={childList:!0,subtree:!0},n=void 0;new MutationObserver(e).observe(t,o)}))}}scrollToItem(t){const e=this.element.querySelector(`.${h}`),o=e.previousElementSibling;let n=o?o.offsetWidth+S:this.linkTargets[0].offsetWidth;n=t?-(e.offsetWidth+S):n,this.scrollTarget.scrollBy?this.scrollTarget.scrollBy({left:n,top:0,behavior:"smooth"}):this.scrollTarget.scrollLeft+=n}windowScroll(t){const e=document.getElementById(y),o=t=>{if(E!==t.getAttribute("id")){E=t.getAttribute("id");const e=void 0;this.element.querySelectorAll(`.${h}`).forEach((t=>{t.classList.remove(h)}));const o=void 0;this.element.querySelectorAll(`[href="#${t.getAttribute("id")}"]`).forEach((t=>{const e=t.parentElement;e.classList.contains(b)||e.classList.add(h)})),w[0].getBoundingClientRect().top>B?this.scrollToItem(!0):this.scrollToItem(!1),B=w[0].getBoundingClientRect().top}},n=void 0;return()=>{if(w.length>0){let n=w[0];const s=n.getBoundingClientRect().top;if(w.some((t=>{if(this.getOffset(t)>$()+S)return!0;n=t})),s<-100){if(e){const o=e.offsetHeight;t.element.setAttribute("style",`top: ${o}px`)}t.element.classList.add(u),document.body.classList.add(m),o(n)}else t.element.classList.remove(u),document.body.classList.remove(m),t.element.removeAttribute("style"),o(n)}}}getOffset(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.getBoundingClientRect().top+(0,r.F1)();const n=document.querySelector(`.${f}`);if(n&&(0,c.$_)("mdDown")){const t=this.element.querySelector(`.${p}`),s=e?t.offsetHeight:0,i=void 0;o-=n.offsetHeight+s+S}else if(this.element&&(0,c.$_)("mdUp")){const t=void 0;o-=(e?this.element.offsetHeight:0)+S}return o}scroll(t){t.preventDefault();const e=t.currentTarget,o=e.getAttribute("href")?.replace("#","");if(!o)return;const n=(0,l.$X)(o)[0];if(!n)return;const s=this.getOffset(n,this.linkTargets.includes(e));(0,r.cc)(s,T)}toggle(){k(this.element,this.data.get("data"))}}},9271(t,e,o){o.d(e,{s:()=>i});var n=o(78315);const s=t=>{window.setTimeout((()=>{const e=t.getBoundingClientRect().top+(0,n.F1)();window.scrollTo({top:e,behavior:"smooth"})}),1e3)},i=t=>{const e=s.bind(null,t);document.hidden?document.addEventListener("visibilitychange",(function t(){document.hidden||("interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e),document.removeEventListener("visibilitychange",t))})):"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}}}]);
2//# sourceMappingURL=8165.9edf305e6dacd73c08bb.chunk.js.map

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.