(e=>{function n(e,r){e.find(".minimog-tabs").each(function(){var e=r(this),n={};e.children(".minimog-tabs__content").children(".tab-content.active").each(function(){r(this).children().children(".tm-swiper").each(function(){var e=r(this);e.MinimogSwiper(),e.hasClass("group-style-10")&&setTimeout(function(){e.find(".swiper")[0].swiper.update()},200)})}),e.hasClass("minimog-tabs--nav-type-dropdown")&&(n.navType="dropdown"),e.MinimogTabPanel(n)}),r(document.body).on("MinimogTabChange",function(e,n,t){var a,i,o,d;t.hasClass("ajax-loaded")||(a=t,n=(n=n).find(".tab-content-placeholder"),i=a.find(".tm-tab-product-element"),o=a.data("layout"),d=a.data("query"),n&&("grid"===o?i:i.find(".swiper-wrapper")).html(n.html()),d.action="get_product_tabs",r.ajax({url:$minimog.ajaxurl,type:"GET",data:d,dataType:"json",cache:!0,success:function(e){var n,e=e.data;e.found?"grid"===o?i.children(".minimog-grid").empty().html(e.template):(i.find(".swiper-wrapper").html(e.template),i.MinimogSwiper()):(i.remove(),(n=document.createElement("div")).classList.add("minimog-grid-response-messages"),n.innerHTML=e.template,a.children(".tab-content-wrapper").append(n))}}),t.addClass("ajax-loaded"))})}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tm-product-tabs.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/tm-carousel-product-tabs.default",n)})})(jQuery);