jQuery(function(e){if(e("body").hasClass("et-fb"),e(".dsm_image_carousel").length){var t=".dsm_image_carousel_container";e(t).each(function(t,a){s=!0===e(this).data("lightbox-gallery")?{enabled:!0,navigateByImgClick:!1,preload:[0,1],tCounter:""}:{enabled:!1},i=!0===e(this).data("lightbox-caption")?{titleSrc:function(e){var t=""!==e.el.find("img").attr("data-dsm-image-description")?"<small>"+e.el.find("img").attr("data-dsm-image-description")+"</small>":"";return e.el.find("img").attr("title")+t}}:{titleSrc:function(e){}};var s,i,l=e(this);!0===e(this).data("show-lightbox")&&($show_lightbox_popup={type:"image",delegate:"a.dsm_image_carousel_lightbox",removalDelay:500,gallery:s,image:i,mainClass:"mfp-fade",zoom:{enabled:!0,duration:500,opener:function(e){return e.find("img")}},preload:[0,1]},l.magnificPopup($show_lightbox_popup),!0===e(this).data("lightbox-gallery")&&l.on("click",".dsm_image_carousel_item.swiper-slide-duplicate a.dsm_image_carousel_lightbox",function(t){t.preventDefault();var a=e(this);l.find(".dsm_image_carousel_item:not(.swiper-slide-duplicate) a.dsm_image_carousel_lightbox").each(function(t){e(this).attr("href")===a.attr("href")&&l.magnificPopup("open",t)})}))}),e(t).each(function(t,a){var s=!0===e(this).data("infinite-scrolling")?0:parseInt(e(this).data("autoplay-speed"),10),i=new Swiper(this,{observer:!0,observeParents:!0,observeSlideChildren:!0,effect:e(this).data("effect"),coverflowEffect:{slideShadows:e(this).data("slider-effect-shadows"),rotate:e(this).data("slider-effect-coverflow-rotate"),depth:e(this).data("slider-effect-coverflow-depth")},flipEffect:{rotate:30,slideShadows:e(this).data("slider-effect-shadows")},cubeEffect:{slideShadows:e(this).data("slider-effect-shadows"),shadow:e(this).data("slider-effect-shadows"),shadowOffset:20,shadowScale:.94},slidesPerColumn:e(this).data("slide-row"),slidesPerColumnFill:"row",centeredSlides:e(this).data("centered-slides"),speed:parseInt(e(this).data("speed"),10),loop:e(this).data("loop"),pagination:{el:e(this).siblings(".swiper-pagination")[0],type:"bullets",clickable:!0},navigation:{nextEl:e(this).siblings(".swiper-button-next")[0],prevEl:e(this).siblings(".swiper-button-prev")[0]},autoplay:{enabled:e(this).data("autoplay"),delay:s,disableOnInteraction:!1},grabCursor:!1!==e(this).data("touch-move")&&e(this).data("grab"),preloadImages:!1,lazy:{loadPrevNext:!0},allowTouchMove:e(this).data("touch-move"),breakpoints:{981:{slidesPerView:"cube"===e(this).data("effect")||"flip"===e(this).data("effect")?1:parseInt(e(this).data("slide-to-show"),10),slidesPerGroup:parseInt(e(this).data("slide-to-scroll"),10),spaceBetween:parseInt(e(this).data("space-between"),10)},768:{slidesPerView:"cube"===e(this).data("effect")||"flip"===e(this).data("effect")?1:parseInt(e(this).data("slide-to-show-tablet"),10),slidesPerGroup:parseInt(e(this).data("slide-to-scroll-tablet"),10),spaceBetween:parseInt(e(this).data("space-between-tablet"),10)},480:{slidesPerView:"cube"===e(this).data("effect")||"flip"===e(this).data("effect")?1:parseInt(e(this).data("slide-to-show-phone"),10),slidesPerGroup:parseInt(e(this).data("slide-to-scroll-phone"),10),spaceBetween:parseInt(e(this).data("space-between-phone"),10)},320:{slidesPerView:"cube"===e(this).data("effect")||"flip"===e(this).data("effect")?1:parseInt(e(this).data("slide-to-show-phone"),10),slidesPerGroup:parseInt(e(this).data("slide-to-scroll-phone"),10),spaceBetween:parseInt(e(this).data("space-between-phone"),10)}}});!0===e(this).data("pause-on-hover")&&(e(this).on("mouseenter",function(e){i.autoplay.stop()}),e(this).on("mouseleave",function(e){i.autoplay.start()})),e(this).closest(".et_pb_tabs").length&&e(".et_pb_tabs a").on("click",function(){i.slideTo(i.realIndex,0)})})}});