jQuery(function ($) { if ($("body").hasClass("et-fb"), $(".dsm_image_carousel").length) { var a = ".dsm_image_carousel_container"; $(a).each(function (e, f) { var b, c, a = JSON.parse($(this).attr("data-params")); b = "true" === a[0].lightbox_gallery ? { enabled: !0, navigateByImgClick: !1, preload: [0, 1], tCounter: "" } : { enabled: !1 }, c = "true" === a[0].lightbox_caption ? { titleSrc: function (a) { var b = "" !== a.el.find("img").attr("data-dsm-image-description") ? "" + a.el.find("img").attr("data-dsm-image-description") + "" : ""; return a.el.find("img").attr("title") + b } } : { titleSrc: function (a) { } }; var d = $(this); !0 === a[0].show_lightbox && ($show_lightbox_popup = { type: "image", removalDelay: 500, gallery: b, image: c, mainClass: "mfp-fade", zoom: { enabled: !0, duration: 500, opener: function (a) { return a.find("img") } } }, d.find(".dsm_image_carousel_item").children("a").magnificPopup($show_lightbox_popup), !0 === a[0].lightbox_gallery && d.on("click", ".dsm_image_carousel_item.swiper-slide-duplicate a.dsm_image_carousel_lightbox", function (a) { a.preventDefault(); var b = $(this); d.find(".dsm_image_carousel_item:not(.swiper-slide-duplicate) a.dsm_image_carousel_lightbox").each(function (a) { $(this).attr("href") === b.attr("href") && d.magnificPopup("open", a) }) })) }), $(a).each(function (c, d) { var a = JSON.parse($(this).attr("data-params")), b = "true" === a[0].infinite_scrolling ? 0 : parseInt(a[0].autoplay_speed, 10), e = new Swiper(this, { observer: !0, observeParents: !0, observeSlideChildren: !0, effect: a[0].effect, coverflowEffect: { slideShadows: a[0].slider_effect_shadows, rotate: a[0].slider_effect_coverflow_rotate, depth: a[0].slider_effect_coverflow_depth }, flipEffect: { rotate: 30, slideShadows: a[0].slider_effect_shadows }, cubeEffect: { slideShadows: a[0].slider_effect_shadows, shadow: a[0].slider_effect_shadows, shadowOffset: 20, shadowScale: .94 }, slidesPerColumn: a[0].slide_row, slidesPerColumnFill: "row", centeredSlides: a[0].centered_slides, speed: parseInt(a[0].speed, 10), loop: a[0].loop, pagination: { el: $(this).siblings(".swiper-pagination")[0], type: "bullets", clickable: !0 }, navigation: { nextEl: $(this).siblings(".swiper-button-next")[0], prevEl: $(this).siblings(".swiper-button-prev")[0] }, autoplay: { enabled: a[0].autoplay, delay: b, disableOnInteraction: !1 }, grabCursor: !1 !== a[0].touch_move && a[0].grab, preloadImages: !1, lazy: { loadPrevNext: !0 }, allowTouchMove: a[0].touch_move, breakpoints: { 981: { slidesPerView: "cube" === a[0].effect || "flip" === a[0].effect ? 1 : parseInt(a[0].slide_to_show, 10), slidesPerGroup: parseInt(a[0].slide_to_scroll, 10), spaceBetween: parseInt(a[0].space_between, 10) }, 768: { slidesPerView: "cube" === a[0].effect || "flip" === a[0].effect ? 1 : parseInt(a[0].slide_to_show_tablet, 10), slidesPerGroup: parseInt(a[0].slide_to_scroll_tablet, 10), spaceBetween: parseInt(a[0].space_between_tablet, 10) }, 480: { slidesPerView: "cube" === a[0].effect || "flip" === a[0].effect ? 1 : parseInt(a[0].slide_to_show_phone, 10), slidesPerGroup: parseInt(a[0].slide_to_scroll_phone, 10), spaceBetween: parseInt(a[0].space_between_phone, 10) }, 320: { slidesPerView: "cube" === a[0].effect || "flip" === a[0].effect ? 1 : parseInt(a[0].slide_to_show_phone, 10), slidesPerGroup: parseInt(a[0].slide_to_scroll_phone, 10), spaceBetween: parseInt(a[0].space_between_phone, 10) } } }); !0 === a[0].pause_on_hover && ($(this).on("mouseenter", function (a) { e.autoplay.stop() }), $(this).on("mouseleave", function (a) { e.autoplay.start() })), $(this).closest(".et_pb_tabs").length && $(".et_pb_tabs a").on("click", function () { e.slideTo(e.realIndex, 0) }) }) } })