1fc_SwiperSlider_CustomData();function fc_SwiperSlider_CustomData(){var sliderSelector=".swiper-container",dataDefault={},eachSlider=document.querySelectorAll(sliderSelector);[].forEach.call(eachSlider,function(slider,index,arr){var data=slider.getAttribute("data-slide")||{};if(data){var dataOptions=JSON.parse(data);slider.options=Object.assign({},dataDefault,dataOptions);var swiper=new Swiper(slider,slider.options)}})}function fc_PlayMusic(){const buttons=document.querySelectorAll(".unmute-btn");document.querySelectorAll(".video-custom-wrapper").forEach(wrapper=>{const video=wrapper.querySelector("video");video&&(video.muted=!0,video.play().catch(err=>{console.warn("Autoplay failed:",err)}))}),buttons.forEach(button=>{button.addEventListener("click",()=>{const video=button.closest(".video-custom-wrapper")?.querySelector("video");video&&(video.muted=!video.muted,video.paused&&video.play().catch(()=>{}),button.classList.toggle("is-playing-sound",!video.muted))})})}document.addEventListener("DOMContentLoaded",fc_PlayMusic),setTimeout(function(){fc_ChangeVariable()},500);function fc_ChangeVariable(){const colorSwatches=document.querySelectorAll(".html_color_names");colorSwatches.forEach(swatch=>{const hoverImage=swatch.getAttribute("data-image-hover");if(hoverImage){const img=new Image;img.src=hoverImage}}),colorSwatches.forEach(swatch=>{const card=swatch.closest(".product-variable");if(!card)return;const mainImageContainer=card.querySelector(".card-img-top");if(!mainImageContainer)return;const firstImage=mainImageContainer.querySelector("img");if(!firstImage)return;const originalSrc=firstImage.dataset.src||firstImage.src;swatch.addEventListener("mouseenter",()=>{const hoverImage=swatch.getAttribute("data-image-hover");hoverImage&&hoverImage!==originalSrc&&(firstImage.src=hoverImage,firstImage.dataset.src=hoverImage,firstImage.classList.add("loaded"),firstImage.removeAttribute("srcset"))}),swatch.addEventListener("mouseleave",()=>{firstImage.src=originalSrc,firstImage.dataset.src=originalSrc,firstImage.classList.add("loaded"),firstImage.removeAttribute("srcset")})})}function fc_LazyLoad(){const lazyImages=document.querySelectorAll(".lazyload:not(.loaded)"),observer=new IntersectionObserver((entries,obs)=>{entries.forEach(entry=>{if(entry.isIntersecting){const img=entry.target;img.src=img.dataset.src,img.onload=()=>img.classList.add("loaded"),obs.unobserve(img)}})});lazyImages.forEach(img=>observer.observe(img))}document.addEventListener("DOMContentLoaded",()=>{fc_LazyLoad()}),fc_ThumbSwiper();function fc_ThumbSwiper(){var sliderSelector=".swiper-container-pd-thumb",dataDefault={},eachSlider=document.querySelectorAll(sliderSelector);[].forEach.call(eachSlider,function(slider,index,arr){var data=slider.getAttribute("data-slide")||{},pd_sync_id=slider.getAttribute("data-swiper-v");if(data){var dataOptions=JSON.parse(data),thumbsOptions=dataOptions.thumb,thumbsInit;if(thumbsOptions){var thumbImages=slider.querySelectorAll("img"),slides="";thumbImages.forEach(function(img){slides+=` 2<div class='swiper-slide'> 3<img class='img-fluid' src=`.concat(img.src+"&width=246",` alt='image' loading='lazy'/> 4</div> 5`)});var thumbs=document.createElement("div");if(thumbs.setAttribute("class","swiper js-thumb"),thumbs.innerHTML="<div class='swiper-wrapper'>".concat(slides,"</div>"),thumbs.insertAdjacentHTML("beforeend",'<div class="cs-navigation"><div class="cs-swiper-button cs-swiper-button-prev"><span></span></div><div class="cs-swiper-button cs-swiper-button-next"><span></span></div></div>'),thumbsOptions.parent){var parent=document.querySelector(thumbsOptions.parent);parent.parentNode.appendChild(thumbs)}else slider.parentNode.appendChild(thumbs);thumbsOptions.options=Object.assign({navigation:{nextEl:thumbs.querySelector(".cs-swiper-button-next"),prevEl:thumbs.querySelector(".cs-swiper-button-prev")}},thumbs,thumbsOptions),thumbsInit=new window.Swiper(thumbs,thumbsOptions.options),slider.options=Object.assign({thumbs:{swiper:thumbsInit}},dataDefault,dataOptions);var swiper=new Swiper(slider,slider.options)}else{slider.options=Object.assign({},dataDefault,dataOptions);var swiper=new Swiper(slider,slider.options)}const syncIdIndex=window.localStorage.getItem(`pd_sync_${pd_sync_id}`);syncIdIndex!=null&&swiper.slideTo(syncIdIndex,0);var height=document.querySelector(".style-vertical .swiper-horizontal");height&&(thumbs.style.height=height.offsetHeight+"px")}})}fc_Parallax();function fc_Parallax(){jarallax(document.querySelectorAll(".jarallax"),{imgSize:"object-fit"})}fc_Compare();function fc_Compare(){const viewers=document.querySelectorAll(".image-compare"),options={smoothingAmou
5nt:100,hoverStart:!0};viewers.forEach(element=>{let view=new ImageCompare(element).mount()})}document.addEventListener("mousemove",fc_ParrallaxImages);function fc_ParrallaxImages(e){for(var movedX=e.clientX*-.3/8,movedY=e.clientY*-.3/8,elements=document.getElementsByClassName("js-parallaxed"),i2=0;i2<elements.length;i2++)elements[i2].style.transform="translate("+movedX+"px,"+movedY+"px)"}fc_Details_toggle();function fc_Details_toggle(){document.addEventListener("click",function(event){const detailsElement=event.target.closest(".details-toggle details");detailsElement&&handleClickOnDetails.call(detailsElement)})}function handleClickOnDetails(){document.querySelectorAll(".details-toggle details[open]").forEach(function(item){this!==item&&item.removeAttribute("open")})}fc_Hotspots();function fc_Hotspots(){document.addEventListener("DOMContentLoaded",function(){const items=document.querySelectorAll(".item-hotspots");items.forEach(item=>{const btn=item.querySelector(".btn-icon-plus"),content=item.querySelector(".content-hotspots"),closeModalBtn=content.querySelector(".btn-close-modal");btn.addEventListener("click",function(e){e.stopPropagation(),items.forEach(otherItem=>{otherItem!==item&&otherItem.classList.remove("active")}),item.classList.toggle("active")?document.body.classList.add("active-overlay"):Array.from(items).some(item2=>item2.classList.contains("active"))||document.body.classList.remove("active-overlay")}),content.addEventListener("click",function(e){e.stopPropagation()}),closeModalBtn&&closeModalBtn.addEventListener("click",function(e){e.stopPropagation(),item.classList.remove("active"),document.body.classList.remove("active-overlay")})}),document.addEventListener("click",function(){items.forEach(item=>{item.classList.remove("active")}),document.body.classList.remove("active-overlay")})})}fc_Dropdown();function fc_Dropdown(){document.addEventListener("click",function(event){const allDropdowns=document.querySelectorAll(".custom-dropdown"),dropdownButtons=document.querySelectorAll(".dropdown-button");if(event.target.classList.contains("dropdown-button")){const index=[...dropdownButtons].indexOf(event.target),dropdown=allDropdowns[index];allDropdowns.forEach(d=>{d!==dropdown&&d.classList.remove("active")}),dropdown.classList.toggle("active")}if(event.target.classList.contains("js-close-custom")){const index=[...document.querySelectorAll(".js-close-custom")].indexOf(event.target);allDropdowns[index].classList.remove("active"),event.stopPropagation()}else!event.target.closest(".custom-dropdown")&&!event.target.closest(".dropdown-button")&&allDropdowns.forEach(dropdown=>{dropdown.classList.remove("active")})})}Shopify.designMode&&(document.addEventListener("shopify:section:load",()=>{fc_SwiperSlider_CustomData(),fc_Details_toggle(),fc_Dropdown(),fc_Hotspots(),fc_Parallax(),fc_LazyLoad(),fc_Compare()}),document.addEventListener("shopify:section:select",()=>{fc_SwiperSlider_CustomData()}),document.addEventListener("shopify:section:deselect",()=>{}),document.addEventListener("shopify:block:select",()=>{}),document.addEventListener("shopify:block:deselect",()=>{}),document.addEventListener("shopify:inspector:activate",()=>{}),document.addEventListener("shopify:inspector:deactivate",()=>{}));var closebtns=document.getElementsByClassName("js-close"),i;for(i=0;i<closebtns.length;i++)closebtns[i].addEventListener("click",function(){this.parentElement.style.display="none"}); 6//# sourceMappingURL=/cdn/shop/t/38/assets/custom.js.map?v=64204267171822300601775443728
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.