PageSourceSearch

https://loisjeanstore.com/cdn/shop/t/80/assets/slideshow.js?v=157473998950220046331787220707

js loisjeanstore.com collected 2026-09-28 05:37:42 UTC 10,487 bytes, 2 lines download raw bytes

1if(!customElements.get("slide-show")){class SlideShow extends HTMLElement{constructor(){super()}connectedCallback(){const slideshow=this;let slideshow_slides=Array.from(slideshow.querySelectorAll(".carousel__slide")),autoplay=slideshow.dataset.autoplay=="false"?!1:parseInt(slideshow.dataset.autoplay,10),align=slideshow.dataset.align=="center"?"center":"left",fade=slideshow.dataset.fade=="true",pageDots=slideshow.dataset.dots=="true",prev_buttons=slideshow.querySelectorAll(".flickity-prev"),next_buttons=slideshow.querySelectorAll(".flickity-next"),header=document.querySelector("theme-header"),custom_dots=slideshow.querySelector(".flickity-dots"),autoplay_progress=slideshow.querySelector(".slideshow--autoplay-progress"),progress_bar=slideshow.parentNode.querySelector(".flickity-progress--bar:not(.slideshow--autoplay-progress)"),animations=[],rightToLeft=document.dir==="rtl",animations_enabled=document.body.classList.contains("animations-true")&&typeof gsap<"u",selectedIndex=0,args={wrapAround:!0,cellAlign:align,pageDots,contain:!0,fade,autoPlay:autoplay,rightToLeft,prevNextButtons:!1,cellSelector:".carousel__slide",on:{}};this.paused=!1,custom_dots&&(args.pageDots=!1,args.pauseAutoPlayOnHover=!1),slideshow.dataset.adapt=="true"&&(args.adaptiveHeight=!0),slideshow.classList.contains("customer-reviews--carousel")&&(args.wrapAround=!0,args.resize=!0),(slideshow.classList.contains("collection-grid__carousel")||slideshow.classList.contains("product-images-quick-view"))&&(args.wrapAround=!1),slideshow.classList.contains("main-slideshow")&&(animations_enabled&&slideshow.prepareAnimations(slideshow,animations),args.on={staticClick:function(){this.unpausePlayer()},ready:function(){let flkty2=this;if(header?.classList.contains("transparent--true")){let i=slideshow.dataset.sectionIndex;if(Shopify.designMode&&(i=[...slideshow.closest(".shopify-section").parentNode.children].indexOf(slideshow.closest(".shopify-section"))+1),i==1&&slideshow.classList.contains("section-spacing--disable-top")&&slideshow.classList.add("slideshow--top"),i==1&&slideshow.classList.contains("change-header--true")){let color_text=getComputedStyle(this.selectedElement).getPropertyValue("--color-text");header.style.setProperty("--color-header-transparent-text",color_text)}}animations_enabled&&slideshow.animateSlides(0,slideshow,animations),document.fonts.ready.then(function(){flkty2.resize()});let video_container=flkty2.cells[0].element.querySelector(".slideshow__slide-video-bg");if(video_container&&(video_container.querySelector("iframe")?video_container.querySelector("iframe").onload=function(){slideshow.videoPlay(video_container)}:video_container.querySelector("video")&&(video_container.querySelector("video").onloadstart=function(){slideshow.videoPlay(video_container)})),custom_dots){let dots=custom_dots.querySelectorAll("li");dots.forEach((dot,i)=>{dot.addEventListener("click",e=>{flkty2.select(i)})}),dots[this.selectedIndex].classList.add("is-selected")}},change:function(index){let flkty2=this,previousIndex=fizzyUIUtils.modulo(flkty2.selectedIndex-1,flkty2.slides.length);animations_enabled&&(slideshow.animateReverse(previousIndex,slideshow,animations),slideshow.animateSlides(index,slideshow,animations));let color_text=getComputedStyle(this.selectedElement).getPropertyValue("--color-text"),color_text_rgb=getComputedStyle(this.selectedElement).getPropertyValue("--color-text-rgb");if(animations_enabled&&(slideshow.style.setProperty("--color-text",color_text),slideshow.style.setProperty("--color-text-rgb",color_text_rgb)),header.classList.contains("transparent--true")){let i=slideshow.dataset.sectionIndex;Shopify.designMode&&(i=[...slideshow.closest(".shopify-section").parentNode.children].indexOf(slideshow.closest(".shopify-section"))+1),i==1&&slideshow.classList.contains("change-header--true")&&header.style.setProperty("--color-header-transparent-text",color_text)}autoplay&&flkty2.player.state!=="paused"&&(flkty2.stopPlayer(),flkty2.playPlayer());let video_container_prev=flkty2.cells[previousIndex].element.querySelector(".slideshow__slide-video-bg");video_container_prev&&slideshow.videoPause(video_container_prev);let video_container=flkty2.cells[index].element.querySelector(".slideshow__slide-video-bg");if(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)),custom_dots){let dots=custom_dots.querySelectorAll("li");
1dots.forEach((dot,i)=>{dot.classList.remove("is-selected")}),dots[this.selectedIndex].classList.add("is-selected")}}},(slideshow.classList.contains("desktop-height-image")||slideshow.classList.contains("mobile-height-image"))&&(args.adaptiveHeight=!0)),slideshow.classList.contains("testimonials--carousel")&&(args.on={ready:function(){let flkty2=this;if(custom_dots){let dots=custom_dots.querySelectorAll("li");dots.forEach((dot,i)=>{dot.addEventListener("click",e=>{flkty2.select(i)})}),dots[this.selectedIndex].classList.add("is-selected")}autoplay&&autoplay_progress&&slideshow.setupAutoplayProgress(slideshow,autoplay_progress)},change:function(index){if(custom_dots){let dots=custom_dots.querySelectorAll("li");dots.forEach((dot,i)=>{dot.classList.remove("is-selected")}),dots[this.selectedIndex].classList.add("is-selected")}autoplay&&autoplay_progress&&(slideshow.autoPlayProgressTL.progress(0),flkty.player.state!=="paused"&&slideshow.autoPlayProgressTL.play())}}),slideshow.classList.contains("products")&&(args.wrapAround=!1,args.on.ready=function(){let flickity=this;next_buttons.length&&window.addEventListener("resize.center_arrows",function(){slideshow.centerArrows(flickity,slideshow,prev_buttons[0],next_buttons[0])}),window.dispatchEvent(new Event("resize.center_arrows"))}),progress_bar&&(args.wrapAround=!1,args.on.scroll=function(progress){progress=Math.max(0,Math.min(1,progress)),progress_bar.style.width=progress*100+"%"});const flkty=new Flickity(slideshow,args);selectedIndex=flkty.selectedIndex,slideshow.dataset.initiated=!0,prev_buttons&&(prev_buttons.forEach(function(prev_button){prev_button.addEventListener("click",event=>{document.dir==="rtl"?flkty.next():flkty.previous()}),prev_button.addEventListener("keyup",event=>{document.dir==="rtl"?flkty.next():flkty.previous()})}),next_buttons.forEach(function(next_button){next_button.addEventListener("click",event=>{document.dir==="rtl"?flkty.previous():flkty.next()}),next_button.addEventListener("keyup",event=>{document.dir==="rtl"?flkty.previous():flkty.next()})})),Shopify.designMode&&slideshow.addEventListener("shopify:block:select",event=>{let index=slideshow_slides.indexOf(event.target);flkty.select(index)}),this.addEventListener("change",this.reInit.bind(this))}reInit(){this.reloadCells()}setupAutoplayProgress(slideshow,autoplay_progress){slideshow.autoPlayProgressTL=gsap.timeline({inherit:!1}),slideshow.autoPlayProgressTL.fromTo(autoplay_progress,{scaleX:0},{duration:parseInt(slideshow.dataset.autoplay,10)/1e3,scaleX:1,ease:"linear"}),slideshow.addEventListener("mouseenter",function(){slideshow.autoPlayProgressTL.pause().progress(0)}),slideshow.addEventListener("mouseleave",function(){slideshow.autoPlayProgressTL.play()})}videoPause(video_container){setTimeout(()=>{video_container.querySelector("video").pause()},10)}videoPlay(video_container){setTimeout(()=>{video_container.querySelector("video").play()},10)}prepareAnimations(slideshow,animations){if(!slideshow.dataset.animationsReady){let splittext=new SplitText(slideshow.querySelectorAll(".slideshow__slide-heading, p:not(.subheading)"),{type:"lines",linesClass:"line-child"}),mask=new SplitText(slideshow.querySelectorAll(".slideshow__slide-heading, p:not(.subheading)"),{type:"lines",linesClass:"line-parent"});slideshow.querySelectorAll(".slideshow__slide").forEach((item,i)=>{let tl=gsap.timeline({paused:!0}),button_offset=0;if(animations[i]=tl,slideshow.dataset.transition=="swipe"&&tl.to(item,{duration:.7,clipPath:"polygon(100% 0, 0 0, 0 100%, 100% 100%)"},"start"),slideshow.dataset.transition=="zoom"&&tl.to(item.querySelectorAll(".slideshow__slide-bg, .slideshow__slide-video-bg"),{duration:1.5,scale:1},"start"),item.querySelector(".subheading")&&(tl.fromTo(item.querySelector(".subheading"),{opacity:0},{duration:.5,opacity:1},0),button_offset+=.5),item.querySelector(".slideshow__slide-heading")){let h1_duration=1+(item.querySelectorAll(".slideshow__slide-heading .line-child").length-1)*.1;tl.set(item.querySelectorAll(".slideshow__slide-heading"),{opacity:1},0).from(item.querySelectorAll(".slideshow__slide-heading .line-child"),{duration:h1_duration,yPercent:120,stagger:.1},0),button_offset+=h1_duration}if(item.querySelector("p.split-text")){let p_duration=1+(item.querySelectorAll("p.split-text .line-child").length-1)*.05;tl.set(item.querySelectorAll("p.split-text"),{opacity:1},0).from(item.querySelectorAll("p:not(.subheading) .line-child"),{duration:p_duration,yPercent:"120",stagger:.1},0),button_offset+=p_duration}item.querySelectorAll(".button, .text-button")&&tl.fromTo(item.querySelectorAll(".button, .text-button"),{autoAlpha:0},{duration:.5,stagger:.1,autoAlpha:1},button_offset*.2),item.dataset.timeline=tl}),slideshow.dataset.animationsReady=!0}}animateSlides(i,slideshow,animations){let flkty=Flickity.data(slideshow);document.fonts.ready.then(function(){animations[i].restart()})}animateReverse(i,slideshow,animations){animations[i].reverse()}centerArrows(flickity,slideshow,prev_button,next_button){let first_cell=flickity.cells[0],max_height=0,image_height=0;if(first_cell.element.querySelector(".product-featured-image")?image_height=first_cell.element.querySelector(".product-featured-image").clientHeight:first_cell.element.querySelector(".gallery--item")&&(image_height=flickity.cells[1].element.querySelector(".product-featured-image").clientHeight),image_height>
10&&(flickity.cells.forEach((item,i)=>{item.size.height>max_height&&(max_height=item.size.height)}),max_height>image_height)){let difference=(max_height-image_height)/-2;prev_button.style.transform="translateY("+difference+"px)",next_button.style.transform="translateY("+difference+"px)"}}}customElements.define("slide-show",SlideShow)}
2//# sourceMappingURL=/s/files/1/0982/0602/4019/t/6/assets/slideshow.js.map?v=1769022149

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.