1(function(){const animateLines=(lines,delay=0)=>{lines.forEach((line,i)=>{line.classList.add("animated"),Array.from(line.children).forEach(element=>{element.style.animationDelay=`${delay+i*.25}s`,setTimeout(()=>{line.style.overflow="visible"},delay*1e3+i*250+600)})})},headingAnimation=()=>{const slideshowTexts=document.querySelectorAll(".slideshow-slide__text--animation"),headings=document.querySelectorAll(".js-split-text"),splitHeadings=()=>{if(document.querySelectorAll(".js-split-text").length>0){const split=new SplitType(document.querySelectorAll(".js-split-text"));headings.forEach(heading=>{heading.classList.add("visible")})}},textObserver=new IntersectionObserver(entries=>{entries.forEach(entry=>{const lines=entry.target.querySelectorAll(".js-split-text .line");if(entry.isIntersecting){let speed=Number(entry.target.closest(".slideshow").dataset.speed),speedFade=speed;lines&&(speedFade=speed*1e3+lines.length*250+100,animateLines(lines,speed)),setTimeout(()=>{entry.target.querySelectorAll(".js-fade").forEach(item=>{item.classList.add("visible")})},speedFade+100)}else lines.forEach((line,i)=>{line.classList.remove("animated"),line.style.overflow="hidden"}),entry.target.querySelectorAll(".js-fade").forEach(item=>{item.classList.remove("visible")})})},{rootMargin:"0px 0px 0px 0px"}),resizeObserver=new ResizeObserver(entries=>{entries.forEach(entry=>{const lines=entry.target.querySelectorAll(".js-split-text .line");lines&&(splitHeadings(lines),animateLines(lines)),slideshowTexts.forEach(text=>{textObserver.observe(text)})})});splitHeadings(),slideshowTexts.forEach(text=>{textObserver.observe(text),resizeObserver.observe(text)})},slideshow=()=>{$(".slideshow-section").each(function(){let zIndex;if($(this).hasClass("slider_started"))return"";$(this).addClass("slider_started");const id=$(this).attr("id"),box=$(this).find(".slideshow"),autoplay=box.data("autoplay"),stopAutoplay=box.data("stop-autoplay"),delay=box.data("delay")*1e3,speed=box.data("speed")*1e3,effect=box.data("effect")=="custom"?"fade":box.data("effect");let autoplayParm;autoplay?autoplayParm={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1,waitForTransition:!0}}:autoplayParm={};let swiperParms={parallax:box.data("parallax"),effect,virtualTranslate:effect=="custom",watchSlidesProgress:!0,speed,loop:!1,centeredSlides:!1,autoHeight:!1,calculateHeight:!1,keyboard:!0,fadeEffect:{crossFade:!0},creativeEffect:{prev:{shadow:!1,translate:[0,0,-400]},next:{translate:["100%",0,0]}},coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!1},navigation:{nextEl:`#${id} .swiper-button-next`,prevEl:`#${id} .swiper-button-prev`},pagination:{el:`#${id} .swiper-pagination`,clickable:"true",type:"bullets"},...autoplayParm,on:{init:function(){if(box.data("effect")=="custom"){const firstSlide=this.slides[0];firstSlide.classList.contains("swiper-slide-active")&&firstSlide.classList.add("no-animation")}}}};zIndex=$(this).find(".slideshow-swiper__slide").length;const swiper=new Swiper(`#${id} .slideshow__swiper`,swiperParms),swiperContainer=swiper.el.querySelector(".swiper-wrapper");box.data("effect")=="custom"&&autoplay&&stopAutoplay&&(swiperContainer.addEventListener("mouseenter",()=>{swiper.autoplay.stop()}),swiperContainer.addEventListener("mouseleave",()=>{swiper.autoplay.start()})),swiper.on("transitionStart",function(){box.data("effect")=="custom"&&(zIndex=zIndex+1,this.slides[this.activeIndex].style.setProperty("z-index",`${zIndex}`))}),swiper.on("transitionEnd",function(){this.slides.forEach((slide,i)=>{if(i!=this.activeIndex){const headingSlide=slide.querySelector(".js-split-text");headingSlide&&headingSlide.querySelectorAll(".line").forEach(line=>{line.classList.remove("animated"),line.style.overflow="hidden"}),slide.querySelectorAll(".js-fade").forEach(item=>{item.classList.remove("visible")})}})}),swiper.on("beforeTransitionStart",function(){colorScheme(this)}),swiper.on("slideChange",function(){box.css("--bullet-duration",`${delay+speed}ms`),colorScheme(this),box.data("effect")=="custom"&&(this.slides[0].classList.remove("no-animation"),this.params.autoplay.waitForTransition==!0&&(this.params.autoplay.delay=delay+speed,this.params.autoplay.waitForTransition=!1,this.autoplay.stop(),this.autoplay.start()))});function colorScheme(context){const parent=box.find(".js-slideshow-bottom"),activeIndex=context.activeIndex,activeSlide=context.slides[activeIndex],changeItems=[parent[0]],colorScheme2=$(activeSlide).find(".slideshow-slide").data("c
1olor-scheme");changeItems.forEach(item=>{if(!item)return"";const classes=item.classList;for(let className of classes)/color-background-\d+$/.test(className)&&item.classList.remove(className);item.classList.add(colorScheme2)});const buttonStyle=$(activeSlide).find(".slideshow-slide").data("button-style");buttonStyle&&parent&&parent[0].setAttribute("data-style",buttonStyle)}new ResizeObserver(entries=>{entries.forEach(entry=>{const containerEl=entry.target.querySelector(".container");if(containerEl){const style=window.getComputedStyle(containerEl),paddingLeft=parseFloat(style.paddingLeft),paddingRight=parseFloat(style.paddingRight),widthSlide=entry.contentRect.width-paddingLeft-paddingRight;entry.target.style.setProperty("--width-slide",`${widthSlide}px`)}})}).observe($(this)[0])})};document.addEventListener("DOMContentLoaded",function(){slideshow(),headingAnimation(),document.addEventListener("shopify:section:load",function(){slideshow(),headingAnimation()})})})(); 2//# sourceMappingURL=/cdn/shop/t/53/assets/slideshow.js.map?v=78673335648950984981789963320
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.