!function(s){s(document).ready(function(){function t(e,a,r){var t=s(e+" .swiper-wrapper");const{lightbox:i,orderclass:n}=t.data();var l=s(""+e).find(""+a);0<t.length&&"on"===i?t.each(function(){var t=`.${s(this).parent().parent().parent().parent().attr("class").split(" ").join(".")} ${e} .swiper-wrapper`;s(t).magnificPopup({removalDelay:500,delegate:"a"+a,type:"image",gallery:{enabled:!0,navigateByImgClick:!0,tCounter:"%curr% of %total%"},image:{markup:`<div class="mfp-figure dnxte-${r}-mfp-config ${n}">`+'<div class="mfp-close"></div><div class="mfp-img"></div><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>',titleSrc:function(t){return t.el.attr("data-title")}},zoom:{enabled:!0,duration:500,opener:function(t){return t.find("img")}}})}):"thumbs-gallery"===r?l.each(function(){s(this).removeAttr("href")}):"coverflow"===r&&l.each(function(){var t=s(this).data()["link"],t=t.split(",");t[0]&&s(this).css({"pointer-events":"none",cursor:"default"}),Array.isArray(t)&&0<t.length&&s(this).attr({href:t[0]||"#",target:t[1]})})}0<s(".dnext-thumbs-gallery-top").length&&s(".dnext-thumbs-gallery-top").closest(".dnxte_thumbs_gallery_parent").each(function(){t("."+s(this).attr("class").split(" ").join(".")+" .dnext-thumbs-gallery-top",".dnext-thumbs-gallery-top-image-link","thumbs-gallery")}),0<s(".dnxte-coverflowslider-active").length&&t("."+s(this).attr("class").split(" ").join(".")+" .dnxte-coverflowslider-active",".dnxte-coverflow-image-link","coverflow")})}(jQuery);