1import{S as z}from"./swiper-core-adpF8Liz.js";import{N as I}from"./navigation-D89OsVYg.js";import"./create-element-if-not-defined-4TT1mIoU.js";function E({swiper:e,extendParams:d,on:g}){d({grid:{rows:1,fill:"column"}});let n,m,S,p;const M=()=>{let t=e.params.spaceBetween;return typeof t=="string"&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*e.size:typeof t=="string"&&(t=parseFloat(t)),t},C=t=>{const{slidesPerView:i}=e.params,{rows:l,fill:a}=e.params.grid,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:t.length;S=Math.floor(o/l),Math.floor(o/l)===o/l?n=o:n=Math.ceil(o/l)*l,i!=="auto"&&a==="row"&&(n=Math.max(n,Math.floor(i)*l)),m=n/l},x=()=>{e.slides&&e.slides.forEach(t=>{t.swiperSlideGridSet&&(t.style.height="",t.style[e.getDirectionLabel("margin-top")]="")})},b=(t,i,l)=>{const{slidesPerGroup:a}=e.params,o=M(),{rows:s,fill:h}=e.params.grid,u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:l.length;let f,c,r;if(h==="row"&&a>1){const v=Math.floor(t/(a*s)),w=t-s*a*v,y=v===0?a:Math.min(Math.ceil((u-v*s*a)/s),a);r=Math.floor(w/y),c=w-r*y+v*a,f=c+r*n/s,i.style.order=f}else h==="column"?(c=Math.floor(t/s),r=t-c*s,(c>S||c===S&&r===s-1)&&(r+=1,r>=s&&(r=0,c+=1))):(r=Math.floor(t/m),c=t-r*m);i.row=r,i.column=c,i.style.height=`calc((100% - ${(s-1)*o}px) / ${s})`,i.style[e.getDirectionLabel("margin-top")]=r!==0?o&&`${o}px`:"",i.swiperSlideGridSet=!0},L=(t,i)=>{const{centeredSlides:l,roundLengths:a}=e.params,o=M(),{rows:s}=e.params.grid;if(e.virtualSize=(t+o)*n,e.virtualSize=Math.ceil(e.virtualSize/s)-o,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+o}px`),l){const h=[];for(let u=0;u<i.length;u+=1){let f=i[u];a&&(f=Math.floor(f)),i[u]<e.virtualSize+i[0]&&h.push(f)}i.splice(0,i.length),i.push(...h)}},B=()=>{p=e.params.grid&&e.params.grid.rows>1},$=()=>{const{params:t,el:i}=e,l=t.grid&&t.grid.rows>1;p&&!l?(i.classList.remove(`${t.containerModifierClass}grid`,`${t.containerModifierClass}grid-column`),S=1,e.emitContainerClasses()):!p&&l&&(i.classList.add(`${t.containerModifierClass}grid`),t.grid.fill==="column"&&i.classList.add(`${t.containerModifierClass}grid-column`),e.emitContainerClasses()),p=l};g("init",B),g("update",$),e.grid={initSlides:C,unsetSlides:x,updateSlide:b,updateWrapperSize:L}}class V{constructor(){this.sections=document.querySelectorAll(".customer-stories-overview"),this.init()}initSwiper(d){const g=d.querySelector(".swiper"),n=d.querySelector(".slider-navigation_next"),m=d.querySelector(".slider-navigation_prev");g&&new z(g,{modules:[E,I],slidesPerView:1,grid:{rows:1,fill:"row"},spaceBetween:0,navigation:{nextEl:n,prevEl:m,disabledClass:"slider-navigation_disabled",lockClass:"slider-navigation_locked"},breakpoints:{768:{spaceBetween:20,slidesPerView:3,grid:{rows:3,fill:"row"}},1280:{spaceBetween:40,slidesPerView:3,grid:{rows:3,fill:"row"}}}})}init(){this.sections.length&&this.sections.forEach(d=>{this.initSwiper(d)})}}export{V as default};
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.