!function(o){o.fn.dnxte_image_accordion=function(){var t=o(this),e=t.find(".dnxte_image_accordion_wrapper").data("accordion-type"),a=t.find(".dnxte_image_accordion_wrapper").data("expand-last-item");let n=t.find(".dnxte_image_accordion_item");var i=t.find("[data-active-on-load=1]");let d=t.find("[data-accordion-expand=defaults]");i.parents(".dnxte_image_accordion_item").addClass("dnxte-active"),"on_hover"===e&&(n.mouseenter(function(){n.removeClass("dnxte-active"),o(this).addClass("dnxte-active")}),"off"===a)&&n.mouseleave(function(){n.removeClass("dnxte-active"),d.parents(".dnxte_image_accordion_item").addClass("dnxte-active")}),"on_click"===e&&(t.addClass("dnxte_clickable"),n.click(function(t){o(this).hasClass("dnxte-active")||(n.removeClass("dnxte-active"),o(this).addClass("dnxte-active"))}))},o(document).ready(function(n){const t=n(".dnxte-msnary-grid");var e=n(".dnxte-msnary-filter-items li:first-child");const a=e.attr("data-filter");e.addClass("active"),t.length&&(t.each(function(){var t=n(this).data()["gutter"];n(this).isotope({itemSelector:".dnxte-msnary-item",percentPosition:!0,stagger:0,filter:a,horizontalOrder:!0,masonry:{columnWidth:".grid-sizer",gutter:parseInt(t,10)}})}),t.imagesLoaded().progress(function(){t.isotope("layout")}),n(window).scroll(()=>{t.isotope("layout")})),n(".dnxte-msnary-filter-items li:first-child").addClass("active"),n(".dnxte-msnary-filter-items li").on("click",function(t){var e="."+n(this).parent().parent().parent().parent().parent().attr("class").split(" ").join("."),a=(n(e+" .dnxte-msnary-filter-items li").removeClass("active"),n(this).addClass("active"),n(this).attr("data-filter"));n(e+" .dnxte-msnary-grid").isotope({filter:a})});e=n(".image-link");const i=t.length&&t.data();e.length&&"none"!==i.lightbox&&e.each(function(){var t="."+n(this).parent().parent().parent().parent().parent().parent().attr("class").split(" ").join(".");n(t+" .image-link").magnificPopup({removalDelay:500,type:"image",gallery:{enabled:!0,navigateByImgClick:!0,tCounter:"%curr% of %total%"},disableOn:function(){return i.lightbox},image:{markup:'<div class="mfp-figure dnxte-msnary-mfp-config"><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")+t.el.attr("data-caption")}},zoom:{enabled:i.lightbox,duration:500,opener:function(t){return t.find("img")}}})}),n(".dnxte-magnifier img").each(function(){var t=n(this).data();n(this).magnify({speed:+t.speed,limitBounds:"on"===t.boundary})}),n(document).ready(function(){n(".dnxte_image_accordion").each(function(){n(this).dnxte_image_accordion()})})}),jQuery(function(a){a(".dnxte-toggle-btn .dnxte-input").each(function(){var t=a(this).parents(".dnxte-content-toggle").find(".dnxte-content-toggle-back"),e=a(this).parents(".dnxte-content-toggle").find(".dnxte-content-toggle-front");(this.checked?(e.hide(),t):(t.hide(),e)).show(),a(this).on("change",function(){(this.checked?(e.hide(),t):(t.hide(),e)).show()})})}),o(".tab-container").each(function(){var t=o(this).find(".dnxte_tab_menu").data()["tabEffect"],e=o(this).find(".dnxte_tab_a[data-activeOnLoad='on']");const a=`dnxt-hover-ad-${t}--active`,n=((0<e.length?(e.first().addClass("dnxte_active_a"),o(this).find(".dnxte_tab_content[data-id='"+e.first().attr("data-id")+"']")):(o(this).find(".dnxte_tab_a:first").addClass("dnxte_active_a "+a),o(this).find(".dnxte_tab_content:first"))).addClass("dnxte_tab_content_active"),o(this));o(this).find(".dnxte_tab_a").click(function(t){t.preventDefault(),n.find(".dnxte_tab_content").removeClass("dnxte_tab_content_active"),n.find(".dnxte_tab_content[data-id='"+o(this).attr("data-id")+"']").addClass("dnxte_tab_content_active"),n.find(".dnxte_tab_a").removeClass("dnxte_active_a "+a),o(this).addClass("dnxte_active_a "+a)})}),o(document).ready(function(){const t=o(".dnxte-msnary-grid");t.length&&t.imagesLoaded().done(function(){t?.isotope("layout")})})}(jQuery);