jQuery(document).ready(function(r){r(".dnxte_thumbs_gallery_child").length&&(r(".dnxte_thumbs_gallery_child").addClass("swiper-slide"),r(".dnxte_thumbs_gallery_child .et_pb_module_inner").addClass("dnext-thumbs-gallery-item")),r(".dnext-thumbs-gallery-top").length&&r(".dnext-thumbs-gallery-top").each(function(e){var t="."+r(this).parent().parent().parent().attr("class").split(" ").join("."),n=r(t+" .dnext-thumbs-gallery-bottom").data(),s=n.breakpoints&&n.breakpoints.split("|");const a=new Swiper(t+" .dnext-thumbs-gallery-bottom",{direction:n.direction,speed:n.speed?parseInt(n.speed):400,spaceBetween:parseInt(n.spacing),grabCursor:"on"===n.grab,preventClicksPropagation:!0,autoplay:{enabled:1===n.autoplay,delay:n.delay?parseInt(n.delay):0,disableOnInteraction:!1},slidesPerView:s&&parseInt(s[0]),centeredSlides:"on"===n.center,loop:"on"===n.loop,breakpoints:{1024:{slidesPerView:s&&parseInt(s[0])},768:{slidesPerView:s&&parseInt(s[1])},479:{slidesPerView:s&&parseInt(s[2])},200:{slidesPerView:s&&parseInt(s[2])}},keyboard:{enabled:"on"===n.keyboard,onlyInViewport:!1},mousewheel:{enabled:"on"===n.mouse,invert:!0},observer:!0,observeParents:!0,observeSlideChildren:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});1===n.autoplay&&1===n.pauseonhover&&(r(this).on("mouseenter",function(){a.autoplay.stop()}),r(this).on("mouseleave",function(){a.autoplay.start()}));t=r(this).data(),s=t.breakpoints&&t.breakpoints.split("|");const i=new Swiper(this,{direction:t.direction,speed:t.speed?parseInt(t.speed):400,spaceBetween:parseInt(t.spacing),grabCursor:"on"===t.grab,preventClicksPropagation:!0,autoplay:{enabled:1===t.autoplay,delay:t.delay?parseInt(t.delay):0,disableOnInteraction:!1},slidesPerView:s&&parseInt(s[0]),centeredSlides:"on"===t.center,loop:"on"===t.loop,breakpoints:{1024:{slidesPerView:s&&parseInt(s[0])},768:{slidesPerView:s&&parseInt(s[1])},479:{slidesPerView:s&&parseInt(s[2])},200:{slidesPerView:s&&parseInt(s[2])}},pagination:{el:".swiper-pagination",dynamicBullets:"on"===t.paginationBullets,clickable:!0,type:t.paginationType},keyboard:{enabled:"on"===t.keyboard,onlyInViewport:!1},mousewheel:{enabled:"on"===t.mouse,invert:!0},navigation:{nextEl:r(this).siblings(".swiper-button-next")[0],prevEl:r(this).siblings(".swiper-button-prev")[0]},thumbs:{swiper:a},observer:!0,observeParents:!0,observeSlideChildren:!0});1===t.autoplay&&1===t.pauseonhover&&(r(this).on("mouseenter",function(){i.autoplay.stop()}),r(this).on("mouseleave",function(){i.autoplay.start()}))})});