PageSourceSearch

https://grovegallery.com/cdn/shop/t/23/assets/slideshow.js?v=27135609139961190391787151937

js grovegallery.com collected 2026-10-02 11:01:10 UTC 6,780 bytes, 2 lines download raw bytes

1if(!customElements.get("slide-show")){class SlideShow extends HTMLElement{constructor(){super();const slideshow=this,dataset=slideshow.dataset;let dots=dataset.dots==="true",slideshow_slides=Array.from(slideshow.querySelectorAll(".carousel__slide")),autoplay=dataset.autoplay=="false"?!1:parseInt(dataset.autoplay,10),align=dataset.align=="center"?"center":"left",fade=dataset.fade=="true",custom_dots=slideshow.querySelector(".flickity-page-dots"),animations=[],rightToLeft=document.dir==="rtl",animations_enabled=document.body.classList.contains("animations-true")&&typeof gsap<"u";if(slideshow_slides.length<1)return;const args={wrapAround:!0,cellAlign:align,pageDots:dots,contain:!0,fade,autoPlay:autoplay,rightToLeft,prevNextButtons:!1,cellSelector:".carousel__slide",on:{}};if(slideshow_slides.length<1)return;if(slideshow.classList.contains("image-with-text-slideshow--image")){const image_slideshow_slides=slideshow.querySelectorAll(".image-with-text-slideshow--image-media");args.draggable=!1,image_slideshow_slides.length&&image_slideshow_slides[0].classList.contains("desktop-height-auto")&&(args.adaptiveHeight=!0)}slideshow.classList.contains("image-with-text-slideshow--content")&&(args.draggable=!1,args.asNavFor=slideshow.parentNode.querySelector(".image-with-text-slideshow--image")),(slideshow.classList.contains("image-with-text-slideshow--content")||slideshow.classList.contains("testimonials__carousel"))&&(args.adaptiveHeight=!0),slideshow.classList.contains("custom-dots")&&(animations_enabled&&slideshow.classList.contains("main-slideshow")&&this.prepareAnimations(slideshow,animations),args.pauseAutoPlayOnHover=!1,args.on={staticClick:function(){this.unpausePlayer()},ready:function(){let flkty2=this;if(animations_enabled&&slideshow.classList.contains("main-slideshow")&&(slideshow.animateSlides(0,animations),gsap.set(slideshow.querySelectorAll(".inline-badge,.subheading,.split-text,.button"),{visibility:"visible"})),custom_dots){let dots2=custom_dots.querySelectorAll("li");dots2.forEach((dot,i)=>{dot.addEventListener("click",()=>flkty2.select(i))}),dots2[this.selectedIndex].classList.add("is-selected")}document.fonts.ready.then(function(){flkty2.resize()});const video_container=flkty2.cells[0].element.querySelector(".slideshow__slide-video-bg");if(video_container){const iframe=video_container.querySelector("iframe"),video=video_container.querySelector("video");iframe?iframe.onload=()=>slideshow.videoPlay(video_container):video&&(video.onloadstart=()=>slideshow.videoPlay(video_container))}},change:function(index){flkty.cells[0].element.classList.remove("is-initial-selected");let previousIndex=fizzyUIUtils.modulo(this.selectedIndex-1,this.slides.length);animations_enabled&&slideshow.classList.contains("main-slideshow")&&(setTimeout(()=>{slideshow.animateReverse(previousIndex,animations)},700),slideshow.animateSlides(index,animations));const selectedElement=this.selectedElement,color_text=getComputedStyle(selectedElement).getPropertyValue("--color-body"),color_text_rgb=getComputedStyle(selectedElement).getPropertyValue("--color-body-rgb");if(slideshow.style.setProperty("--color-body",color_text),slideshow.style.setProperty("--color-body-rgb",color_text_rgb),custom_dots){let dots2=custom_dots.querySelectorAll("li");dots2.forEach((dot,i)=>{dot.classList.remove("is-selected")}),dots2[this.selectedIndex].classList.add("is-selected")}autoplay&&(this.stopPlayer(),this.playPlayer());let video_container_prev=flkty.cells[previousIndex].element.querySelector(".slideshow__slide-video-bg");video_container_prev&&slideshow.videoPause(video_container_prev);let video_container=flkty.cells[index].element.querySelector(".slideshow__slide-video-bg");video_container&&(video_container.querySelector("iframe")?video_container.querySelector("iframe").classList.contains("lazyload")?(video_container.querySelector("iframe").addEventListener("lazybeforeunveil",slideshow.videoPlay(video_container)),lazySizes.loader.checkElems()):slideshow.videoPlay(video_container):video_container.querySelector("video")&&slideshow.videoPlay(video_container))}}),slideshow.classList.contains("main-slideshow")&&(slideshow.classList.contains("desktop-height-image")||slideshow.classList.contains("mobile-height-image"))&&(args.adaptiveHeight=!0);const flkty=new Flickity(slideshow,args);dataset.initiated=!0,Shopify.designMode&&slideshow.addEventListener("shopify:block:select",event=>
1{const index=slideshowSlides.indexOf(event.target);flkty.select(index)})}videoPause(video_container){setTimeout(()=>{if(video_container.dataset.provider==="hosted")video_container.querySelector("video").pause();else{const iframe=video_container.querySelector("iframe"),message=iframe.dataset.provider==="youtube"?{event:"command",func:"pauseVideo",args:""}:{method:"pause"};iframe.contentWindow.postMessage(JSON.stringify(message),"*")}},10)}videoPlay(video_container){setTimeout(()=>{if(video_container.dataset.provider==="hosted")video_container.querySelector("video").play();else{const iframe=video_container.querySelector("iframe"),message=iframe.dataset.provider==="youtube"?{event:"command",func:"playVideo",args:""}:{method:"play"};iframe.contentWindow.postMessage(JSON.stringify(message),"*")}},10)}prepareAnimations(slideshow,animations){slideshow.dataset.animationsReady||(new SplitText(slideshow.querySelectorAll(".split-text"),{type:"lines",linesClass:"line-child"}),new SplitText(slideshow.querySelectorAll(".split-text"),{type:"lines",linesClass:"line-parent"}),slideshow.querySelectorAll(".slideshow__slide").forEach((item,i)=>{let tl=gsap.timeline({paused:!0});animations[i]=tl,slideshow.dataset.transition=="swipe"&&tl.fromTo(item,{clipPath:"polygon(0 0, 0 0, 0 100%, 0 100%)"},{duration:.7,clipPath:"polygon(0 0, 100% 0, 100% 100%, 0 100%)"},"start"),tl.to(item.querySelector(".slideshow__slide-bg"),{duration:1,scale:1},"start"),tl.fromTo(item.querySelector(".inline-badge"),{opacity:0},{duration:.25,opacity:1},">-=0.5"),tl.fromTo(item.querySelector(".subheading"),{opacity:0},{duration:.25,opacity:1},">-=0.3"),tl.from(item.querySelectorAll(".slideshow__slide-content--heading .line-child"),{duration:.75,yPercent:120,stagger:.1,rotation:"2deg"},">-=0.3"),tl.from(item.querySelectorAll("p:not(.subheading) .line-child"),{duration:.5,yPercent:120,stagger:.02,rotation:"2deg"},">-=0.3"),tl.fromTo(item.querySelectorAll(".button"),{yPercent:120,rotation:"2deg"},{duration:.5,yPercent:0,rotation:0,stagger:.1},">-=0.3"),item.dataset.timeline=tl}),slideshow.dataset.animationsReady=!0)}animateSlides(i,animations){animations[i].timeScale(1).restart()}animateReverse(i,animations){animations[i].timeScale(4).reverse()}}customElements.define("slide-show",SlideShow)}
2//# sourceMappingURL=/cdn/shop/t/23/assets/slideshow.js.map?v=27135609139961190391787151937

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.