PageSourceSearch

https://www.waykar.com/cdn/shop/t/49/compiled_assets/scripts.js?v=37247461895726756701777434013

js waykar.com collected 2026-10-04 21:49:17 UTC 5,616 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__["carousel-v2"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",function(){const sectionElement=document.querySelector(".banner_car.carousel"),sectionId=sectionElement?sectionElement.dataset.sectionId:null;if(!sectionId){console.error("Section ID not found.");return}const carousel=document.querySelector(`#carousel-${sectionId}`);if(!carousel){console.error("Carousel not found.");return}const captions=document.querySelectorAll(".carousel-caption-content"),firstCaption=captions[0];firstCaption&&(firstCaption.style.display="block",firstCaption.classList.add("active")),carousel.addEventListener("slide.bs.carousel",function(event){const newIndex=event.to;updateCaptions(newIndex)});function updateCaptions(activeIndex){captions.forEach(function(caption){caption.classList.contains("active")&&(caption.classList.remove("active"),caption.classList.add("fade-out"),caption.style.display="none",caption.classList.remove("fade-out"))});var activeCaption=carousel.querySelector(`.carousel-caption-content[data-slide-index="${activeIndex}"]`);activeCaption?(activeCaption.style.display="block",activeCaption.classList.add("active")):console.error(`Caption with data-slide-index="${activeIndex}" not found.`)}})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["custom-accordion-zoom"]&&!Shopify.designMode))try{document.querySelectorAll(".accordion-toggle").forEach(button=>{button.addEventListener("click",function(){const currentActive=document.querySelector(".accordion-item.active"),accordionItem=this.parentElement;currentActive&&currentActive!==accordionItem&&currentActive.classList.remove("active"),accordionItem.classList.toggle("active");const zoomImage=document.querySelector(".zoom-image");if(accordionItem.classList.contains("active")){const zoomLevel=this.getAttribute("data-zoom-level"),isMobile=window.innerWidth<=767,zoomX=isMobile?this.getAttribute("data-zoom-x-mobile"):this.getAttribute("data-zoom-x"),zoomY=isMobile?this.getAttribute("data-zoom-y-mobile"):this.getAttribute("data-zoom-y");zoomImage.style.transform=`scale(${zoomLevel}) translate(${zoomX-50}%, ${zoomY-50}%)`}else zoomImage.style.transform="scale(1) translate(0, 0)"})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["custom-image-expand"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",function(){const imageItems=document.querySelectorAll(".cards-with-image .image-item"),minWidth=window.matchMedia("(min-width: 993px)"),mediaQuery=window.matchMedia("(max-width: 992px)");minWidth.matches&&imageItems.forEach(item=>{item.addEventListener("mouseenter",function(){imageItems.forEach(i=>{i.style.flex=mediaQuery.matches?"0.7":"0.5"}),this.style.flex=mediaQuery.matches?"2":"3"}),item.addEventListener("mouseleave",function(){imageItems.forEach(i=>{i.style.flex="1"})})})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["find-manual"]&&!Shopify.designMode))try{document.getElementById("search-btn").addEventListener("click",function(){const modelCode=document.getElementById("model-code").value.trim(),resultsContainer=document.getElementById("search-results"),warrantyContainer=document.getElementById("warranty-terms");if(resultsContainer.innerHTML="",modelCode===""){resultsContainer.innerHTML="<p>Please enter a model code.</p>";return}fetch(`/search/suggest?q=variants.sku:${modelCode}&type=product&section_id=manual-search`).then(response=>response.text()).then(data=>{const newDocument=new DOMParser().parseFromString(data,"text/html"),newWarrantyTerms=newDocument.getElementById("warranty-terms");newWarrantyTerms&&warrantyContainer&&(warrantyContainer.innerHTML=newWarrantyTerms.innerHTML);const newResults=newDocument.getElementById("search-results");newResults?resultsContainer.innerHTML=newResults.innerHTML:resultsContainer.innerHTML="<p>No manuals found for the entered model code.</p>"}).catch(error=>{resultsContainer.innerHTML="<p>There was an error processing your request. Please try again later.</p>",console.error("Error fetching search results:",error)})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["grid-images-cards"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",function(){const modal=new bootstrap.Modal(document.getElementById("cardModal"));document.querySelectorAll(".card-link-full").forEach(link=>{link.addEventListener("click",function(event){const description=link.getAttribute("data-description"),title=link.getAttribute("data-title"),modalTitle=document.querySelector("#cardModal .modal-title"),modalBody=document.querySelector("#cardModal .modal-body");modalTitle.innerHTML=title,modalBody.innerHTML=description})})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__.timelinev2&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",function(){const carousel=document.querySelector("#carousel-{{ section.id }}"),captions=document.querySelectorAll(".carousel-caption-content");carousel.addEventListener("slide.bs.carousel",function(event){const activeIndex=event.to;captions.forEach(caption=>caption.style.display="none");const activeCaption=document.querySelector(`.carousel-caption-content[data-sli
1de-index="${activeIndex}"]`);activeCaption&&(activeCaption.style.display="block")})})}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/49/compiled_assets/scripts.js.map?v=37247461895726756701777434013

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.