jQuery(function(e){e(".dsm_card_carousel").length&&e(".dsm_card_carousel_wrapper").each(function(){e(".dsm_card_carousel_child").each(function(){0===e(this).find(".et_pb_module_inner").children().length&&e(this).find(".et_pb_module_inner").parent().remove()}),e(document).on("click",".dsm-card-lightbox-trigger",function(t){var s,o,i;t.preventDefault(),e(this).hasClass("dsm-card-image-lightbox")?(s=e(this).parent().attr("data-mfp-src"),o="image",i=""):(s=e(this).parent().attr("data-mfp-src"),o="iframe",i="dsm-video-popup-wrap "),e(this).hasClass("et_pb_button")&&(s=e(this).attr("href")),e.magnificPopup.open({delegate:"a",items:{src:s},type:o,iframe:{markup:'<div class="mfp-iframe-scaler dsm-video-popup"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},youtu_be:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},dailymotion:{index:"dailymotion.com",id:function(e){var t=e.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==t?void 0!==t[4]?t[4]:t[2]:null},src:"https://www.dailymotion.com/embed/video/%id%"}},srcAction:"iframe_src"},removalDelay:500,mainClass:i+"mfp-fade"})});var t=JSON.parse(e(this).attr("data-params")),s=new Swiper(this,{resizeObserver:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,direction:t[0].direction,effect:t[0].effect,coverflowEffect:{slideShadows:t[0].slider_effect_shadows,rotate:t[0].slider_effect_coverflow_rotate,depth:t[0].slider_effect_coverflow_depth},flipEffect:{rotate:30,slideShadows:t[0].slider_effect_shadows},cubeEffect:{slideShadows:t[0].slider_effect_shadows,shadow:t[0].slider_effect_shadows,shadowOffset:20,shadowScale:.94},centeredSlides:t[0].centered_slides,speed:parseInt(t[0].speed,10),loop:t[0].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]},mousewheel:t[0].mousewheel,autoplay:{enabled:!1,delay:parseInt(t[0].autoplay_speed,10),disableOnInteraction:!1},grabCursor:!1!==t[0].touch_move&&t[0].grab,preloadImages:!1,lazy:{loadPrevNext:!0},allowTouchMove:t[0].touch_move,a11y:{enabled:!1,slideRole:"group"},breakpoints:{981:{slidesPerView:"cube"===t[0].effect||"flip"===t[0].effect?1:parseInt(t[0].slide_to_show,10),slidesPerGroup:parseInt(t[0].slide_to_scroll,10),spaceBetween:parseInt(t[0].space_between,10),slidesPerColumn:t[0].slide_row,slidesPerColumnFill:"row",autoHeight:t[0].auto_height},768:{slidesPerView:"cube"===t[0].effect||"flip"===t[0].effect?1:parseInt(t[0].slide_to_show_tablet,10),slidesPerGroup:parseInt(t[0].slide_to_scroll_tablet,10),spaceBetween:parseInt(t[0].space_between_tablet,10),slidesPerColumn:t[0].slide_row_tablet,slidesPerColumnFill:"row",autoHeight:t[0].equal_height_tablet},480:{slidesPerView:"cube"===t[0].effect||"flip"===t[0].effect?1:parseInt(t[0].slide_to_show_phone,10),slidesPerGroup:parseInt(t[0].slide_to_scroll_phone,10),spaceBetween:parseInt(t[0].space_between_phone,10),slidesPerColumn:t[0].slide_row_phone,slidesPerColumnFill:"row",autoHeight:t[0].equal_height_phone},320:{slidesPerView:"cube"===t[0].effect||"flip"===t[0].effect?1:parseInt(t[0].slide_to_show_phone,10),slidesPerGroup:parseInt(t[0].slide_to_scroll_phone,10),spaceBetween:parseInt(t[0].space_between_phone,10),slidesPerColumn:t[0].slide_row_phone,slidesPerColumnFill:"row",autoHeight:t[0].equal_height_phone}}});!0===t[0].pause_on_hover&&(e(this).on("mouseenter",function(e){s.autoplay.stop()}),e(this).on("mouseleave",function(e){s.autoplay.start()})),e(this).closest(".et_pb_tabs").length&&e(".et_pb_tabs a").on("click",function(){s.slideTo(s.realIndex,0)}),e(this).closest(".dsm_advanced_tabs").length&&e(".dsm-tab").on("click",function(){s.slideTo(s.realIndex,0)}),!0===t[0].autoplay&&("undefined"==typeof Waypoint?s.autoplay.start():new Waypoint({element:e(this),handler:function(e){s.autoplay.start(),this.destroy()},offset:t[0].autoplay_viewport})),s.on("slideChange",function(){e(s.slides).each(function(t,s){e(this).hasClass("et_clickable")&&"undefined"!=typeof et_link_options_data&&!0<et_link_options_data.length&&e(et_link_options_data).each(function(t,s){if(s.class&&s.url&&s.target){var o="."+s.class,i=s.url,l=s.target;e(o).unbind().click(function(){window.open(i,l)})}})})}),e(window).on("resize",function(){null!==s&&(s.updateSize(),s.update())})})});