1import{t as v,e as f,a as g,u,r as y,n as m,_ as E}from"./index-Cn-q3e7r.js";import{i as w}from"./intersection-watcher-Bc9PMyTN.js";import{d as b}from"./delay-offset-BYAArl0V.js";import{s as N}from"./shouldAnimate-DivGpKBN.js";import"./media-queries-CokWIw5y.js";const _={content:".quote__item-inner > *"},x=t=>{b(t,[_.content])},B={dots:".navigation-dot"},D=(t,e={})=>{const s=v(B.dots,t),i=[];s.forEach(o=>{i.push(f(o,"click",a=>r(a)))});const r=o=>{if(o.preventDefault(),!o.target.classList.contains("is-selected")&&e.onSelect){const a=parseInt(o.target.dataset.index,10);e.onSelect(a)}};return{update:o=>{if(typeof o!="number"){console.debug("navigationDots#update: invalid index, ensure int is passed");return}const a="is-selected";s.forEach(n=>g(n,a)),u(s[o],a)},unload:()=>{i.forEach(o=>o())}}},h={slider:"[data-slider]",slide:"[data-slide]",logoNavButton:"[logo-nav-button]"};y("quote",{onLoad(){const t=m(h.slider,this.container),e=v(h.slide,this.container);if(N(this.container)&&(e.forEach(l=>x(l)),this.observer=w(this.container)),e.length<2)return e.length&&u(e[0],"swiper-slide-visible"),null;const s=t.dataset.paginationStyle,i=t.dataset.autoplayEnabled=="true",r=parseInt(t.dataset.autoplayDelay,10);this.events=[],E(async()=>{const{Swiper:l,Autoplay:c,Navigation:o,EffectFade:a}=await import("./swiper-BYGuTQ1t.js");return{Swiper:l,Autoplay:c,Navigation:o,EffectFade:a}},[],import.meta.url).then(({Swiper:l,Autoplay:c,Navigation:o,EffectFade:a})=>{this.swiper=new l(t,{modules:[o,c,a],grabCursor:!0,effect:"fade",fadeEffect:{crossFade:!0},loop:!0,autoplay:i?{delay:r,disableOnInteraction:!1,pauseOnMouseEnter:!0}:!1,navigation:{nextEl:".slider-nav-button-next",prevEl:".slider-nav-button-prev"}}),s==="dots"?this.dotNavigation=D(this.container,{onSelect:n=>{this.swiper.slideToLoop(n)}}):s==="logos"&&(this.logoNavButtons=v(h.logoNavButton,this.container),u(this.logoNavButtons[0],"active"),this.logoNavButtons.forEach(n=>{this.events.push(f(n,"click",d=>{const p=parseInt(d.currentTarget.dataset.index,10);this.swiper.slideToLoop(p)}))})),this.swiper.on("slideChange",()=>{const n=this.swiper.realIndex;if(s==="dots")this.dotNavigation.update(n);else if(s==="logos"){const d="active";this.logoNavButtons.forEach(p=>g(p,d)),u(this.logoNavButtons[n],d)}})})},onBlockSelect({target:t}){var s,i,r;const e=parseInt(t.dataset.index,10);(i=(s=this.swiper)==null?void 0:s.autoplay)==null||i.stop(),(r=this.swiper)==null||r.slideToLoop(e)},onBlockDeselect(){var t,e;(e=(t=this.swiper)==null?void 0:t.autoplay)==null||e.start()},onUnload(){var t,e,s;(t=this.swiper)==null||t.destroy(),(e=this.dotNavigation)==null||e.unload(),this.events.forEach(i=>i()),(s=this.observer)==null||s.destroy()}});
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.