PageSourceSearch

https://www.gannikus-shop.com/cdn/shop/t/27/compiled_assets/scripts.js?v=59913721173844507851779176723

js gannikus-shop.com collected 2026-10-09 22:40:19 UTC 9,762 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.footer)try{class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector("ul")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.elements.button.addEventListener("focusout",this.closeSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0)}onContainerKeyUp(event){event.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event){event.preventDefault(),this.elements.input.value=event.currentTarget.dataset.value,this.querySelector("form")?.submit()}openSelector(){this.elements.button.focus(),this.elements.panel.toggleAttribute("hidden"),this.elements.button.setAttribute("aria-expanded",(this.elements.button.getAttribute("aria-expanded")==="false").toString())}closeSelector(event){const shouldClose=event.relatedTarget&&event.relatedTarget.nodeName==="BUTTON";(event.relatedTarget===null||shouldClose)&&this.hidePanel()}}customElements.define("localization-form",LocalizationForm)}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".shopify-section-header"),this.headerWrapper=document.querySelector(".header-wrapper"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always",this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.searchOverlay=document.querySelector(".search-modal__overlay"),this.searchOverlay&&this.searchOverlay.addEventListener("click",function(){document.querySelector("details-modal").close()}),this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(this.headerIsAlwaysSticky&&scrollTop>this.header.offsetHeight+50&&this.header.classList.add("shopify-section-header-sticky"),this.headerIsAlwaysSticky&&scrollTop<this.header.offsetHeight/2&&this.header.classList.remove("shopify-section-header-sticky"),scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this));this.currentScrollTop=scrollTop}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure(),this.closeSearchModal())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky||this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-cart-footer"])try{class CartNote extends HTMLElement{constructor(){super(),this.addEventListener("change",debounce(event=>{const body=JSON.stringify({note:event.target.value});fetch(`${routes.cart_update_url}`,{...fetchConfig(),body})},300))}}customElements.define("cart-note",CartNote)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){this.querySelectorAll(`[data-media-id]:not([data-media-id="${this.openedBy.getAttribute("data-media-id")}"])`).forEach(element=>{element.classList.remove("active")});const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);activeMedia.classList.add("active"),activeMedia.scrollIntoView(),activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMedia.querySelector("template")?.content?.querySelector(".js-youtube")&&activeMedia.loadContent()}}class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations--single");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML)}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-modal",ProductModal),customElements.define("product-recommendations--single",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__["product-recommendations"])try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML)}).catch(e=>{console.error(e)}).finally(()=>{if(document.querySelector(".steps-section")){ScrollTrigger.getAll().forEach(el=>el.kill());const setStepsParallaxOpt=elem=>{elem.setAttribute("data-parallax-property-value","-40"),elem.setAttribute("data-parallax-steps","0, 40"),elem.setAttribute("data-parallax-property","translateY")},removeStepsParallaxOpt=elem=>{elem.removeAttribute("data-parallax-property-value"),elem.removeAttribute("data-parallax-steps"),elem.removeAttribute("data-parallax-property"),elem.removeAttribute("style")},calcDurationScroll=elem=>{switch(elem.length){case 1:return"bottom bottom";case 2:return"+=80%";case 3:return"+=140%";case 4:return"+=180%";case 5:return"+=200%"}},initStepsParallax=()=>{document.querySelectorAll(".steps-section").forEach(elem=>{elem.querySelectorAll(".steps__scroll-parallax").forEach(elem2=>{window.matchMedia("(min-width: 990px)").matches?(elem2.classList.add("js-parallax"),setStepsParallaxOpt(elem2)):(elem2.classList.remove("js-parallax"),removeStepsParallaxOpt(elem2))})})},initStepsAnim=()=>{document.querySelectorAll(".steps").forEach(elem=>{ScrollTrigger.matchMedia({"(min-width: 990px)":function(){const slides=elem.querySelectorAll(".steps__slide-item--desktop");let parallax=elem.querySelector(".steps__scroll"),progress=[];slides.forEach((elem2,index)=>{progress.push(1/slides.length*index-1/slides.length/2)}),progress.push(1);const removeActiveClass=()=>{slides.forEach(elem2=>{elem2.classList.remove("active")})};
1let st=ScrollTrigger.create({trigger:elem,start:"top top",end:calcDurationScroll(slides),invalidateOnRefresh:!0,animation:parallax?gsap.fromTo(parallax,{y:0},{y:-(parallax.scrollHeight-elem.clientHeight+310)}):!1,pin:!0,scrub:.5,onRefresh:self=>{for(let i=0;i<=slides.length;i++)self.progress>progress[i]&&self.progress<progress[i+1]&&(removeActiveClass(),slides[0].classList.remove("active"),slides[i].classList.add("active"),slides[i].classList.remove("prev"))},onUpdate:self=>{for(let i=0;i<=slides.length;i++)if(self.progress>progress[i]&&self.progress<progress[i+1]&&!slides[i].classList.contains("active")){removeActiveClass(),slides[i].classList.add("active"),slides[i].classList.remove("prev");for(let el of slides){if(el.classList.contains("active"))break;el.classList.add("prev")}}}})},"(max-width: 989px)":function(){elem.querySelector(".steps__scroll")!==null&&(elem.querySelector(".steps__scroll").style.transform="translate3d(0, 0, 0)",ScrollTrigger.getAll().forEach(el=>el.kill()))}})})};setTimeout(()=>{initStepsAnim(),initStepsParallax()},300)}}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/27/compiled_assets/scripts.js.map?v=59913721173844507851779176723

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.