(()=>{"use strict";const e=function(e,s,i=!1,t="Desktop",r=[],o={}){const l=e.querySelector(".swiper-pagination"),n=e.querySelector(".swiper-button-next"),p=e.querySelector(".swiper-button-prev"),{direction:d,speed:a,delay:u,loop:c,autoplay:w,pauseOnMouseEnter:P,allowTouchMove:f,effect:S}=s,g=(e,i,t,r)=>{for(let r=i;r>=0;r--){const i=s?.[`${e}${t[r]?.slug}`]?.size;if(void 0!==i)return i}return r},k={};let G=[];if(r&&r.length){const e=r.find(e=>"WideScreen"===e.slug);G=r.filter(e=>"WideScreen"!==e.slug),G.forEach((e,s,i)=>{const t=i[s+1]?.value??"0";k[t]={slidesPerView:g("slidesPerView",s,G,1),slidesPerGroup:g("slidesPerGroup",s,G,1),spaceBetween:g("spaceBetween",s,G,10),slidesPerGroupSkip:Number(0)}}),e&&(k[e.value]={slidesPerView:s?.slidesPerViewWideScreen?.size??s?.slidesPerViewDesktop?.size??1,slidesPerGroup:s?.slidesPerGroupWideScreen?.size??s?.slidesPerGroupDesktop?.size??1,spaceBetween:s?.spaceBetweenWideScreen?.size??s?.spaceBetweenDesktop?.size??10,slidesPerGroupSkip:Number(0)})}let b={direction:d||"horizontal",loop:c||!1,speed:a||1e3,autoplay:w&&{pauseOnMouseEnter:P||!1,delay:u||3e3},allowTouchMove:f||!0,draggable:!0,effect:S||"slide",focusableElements:'a, button, input, textarea, select, details, [tabindex="0"]',pagination:{el:l,clickable:!0},navigation:{nextEl:n,prevEl:p},slidesPerGroupSkip:Number(0),...o};if(i){const{gkitResponsiveValue:e}=window.GkitHelpers;b={...b,slidesPerView:e(s,"slidesPerView",t)?.size||1,slidesPerGroup:e(s,"slidesPerGroup",t)?.size||1,spaceBetween:e(s,"spaceBetween",t)?.size||10},b.allowTouchMove=!1}else{const e=G.length-1;e>=0&&(b.slidesPerView=g("slidesPerView",e,G,1),b.slidesPerGroup=g("slidesPerGroup",e,G,1),b.spaceBetween=g("spaceBetween",e,G,10)),b.breakpoints=k}return new Swiper(e,b)};document.addEventListener("DOMContentLoaded",()=>{const s=document.querySelectorAll(".gkit-testimonial-slider");if(void 0!==window?.Swiper&&s.length>0)for(let i of s){const s=JSON.parse(i.dataset.settings);e(i,s,!1,"",window.breakpoints)}})})();