1import{Slideshow}from"@archetype-themes/scripts/modules/slideshow";import{HTMLSectionElement}from"@archetype-themes/scripts/helpers/section";class Testimonials extends HTMLSectionElement{connectedCallback(){super.connectedCallback(),this.defaults={adaptiveHeight:!0,avoidReflow:!0,pageDots:!0,prevNextButtons:!1},this.timeout,this.slideshow=this.querySelector(`#Testimonials-${this.sectionId}`),this.namespace=`.testimonial-${this.sectionId}`,this.slideshow&&(document.dispatchEvent(new CustomEvent("testimonials:loaded",{detail:{sectionId:this.sectionId}})),this.init())}init(){this.slideshow.dataset.count<=3&&(this.defaults.wrapAround=!1),this.flickity=new Slideshow(this.slideshow,this.defaults),this.slideshow.dataset.count>2&&(this.timeout=setTimeout(function(){this.flickity.goToSlide(1)}.bind(this),1e3))}disconnectedCallback(){super.disconnectedCallback(),this.flickity&&typeof this.flickity.destroy=="function"&&this.flickity.destroy()}onSectionDeselect(){this.flickity&&typeof this.flickity.play=="function"&&this.flickity.play()}onBlockSelect({detail:{blockId}}){const slide=this.slideshow.querySelector(`.testimonials-slide--${blockId}`),index=parseInt(slide.dataset.index);clearTimeout(this.timeout),this.flickity&&typeof this.flickity.pause=="function"&&(this.flickity.goToSlide(index),this.flickity.pause())}onBlockDeselect(){this.flickity&&typeof this.flickity.play=="function"&&this.flickity.play()}}customElements.define("testimonials-component",Testimonials); 2//# sourceMappingURL=/cdn/shop/t/185/assets/section-testimonials.js.map?v=99252732340278527291728421716
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.