1import{t as f,e as v,b as g,u,r as y,n as m,_ as E}from"./index-DS8uTh6M.js";import{i as b}from"./intersection-watcher-DADyd6E-.js";import{d as w}from"./delay-offset-CTJE-YpR.js";import{s as N}from"./shouldAnimate-CeW36j6E.js";import"./media-queries-CokWIw5y.js";const _={dots:".navigation-dot"},x=(t,e={})=>{const s=f(_.dots,t),i=[];s.forEach(o=>{i.push(v(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())}}},B={content:".quote__item-inner > *"},D=t=>{w(t,[B.content])},h={slider:"[data-slider]",slide:"[data-slide]",logoNavButton:"[logo-nav-button]"};y("quote",{onLoad(){const t=m(h.slider,this.container),e=f(h.slide,this.container);if(N(this.container)&&(e.forEach(l=>D(l)),this.observer=b(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-D7Xzm6bc.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=x(this.container,{onSelect:n=>{this.swiper.slideToLoop(n)}}):s==="logos"&&(this.logoNavButtons=f(h.logoNavButton,this.container),u(this.logoNavButtons[0],"active"),this.logoNavButtons.forEach(n=>{this.events.push(v(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.