!function(a){"use strict";function e(a,d){a.find(".minimog-tabs").each(function(){var t=d(this),a={};t.children(".minimog-tabs__content").children(".tab-content").each(function(){var e=d(this);e.find(".tm-tab-product-element").each(function(){var a=d(this);a.hasClass("minimog-grid-wrapper")?(a.MinimogGridLayout(),a.on("MinimogGridLayoutResized",function(){t.MinimogTabPanel("updateLayout")})):a.hasClass("tm-swiper")&&(a.MinimogSwiper(),e.hasClass("active"))&&a.hasClass("group-style-10")&&setTimeout(function(){a.find(".swiper-container")[0].swiper.update()},200)})}),t.hasClass("minimog-tabs--nav-type-dropdown")&&(a.navType="dropdown"),t.MinimogTabPanel(a)}),d(document.body).on("MinimogTabChange",function(a,e,t){var n,i,o,r;t.hasClass("ajax-loaded")||(n=e,o=(i=t).find(".tm-tab-product-element"),r=i.data("layout"),(e=i.data("query")).action="get_product_tabs",d.ajax({url:$minimog.ajaxurl,type:"GET",data:e,dataType:"json",cache:!0,success:function(a){var e,t,a=a.data;a.found?("grid"===r?(o.children(".minimog-grid").children().not(".grid-sizer").remove(),o.MinimogGridLayout("update",d(a.template))):((e=o.children(".swiper-inner").children(".swiper-container")[0].swiper).removeAllSlides(),e.appendSlide(a.template),e.update(),0<(t=o.find(".ll-image")).length&&t.laziestloader({},function(){d(this).unwrap(".minimog-lazy-image")}).trigger("laziestloader"),(t=i.attr("data-slider-autoplay"))&&""!==t&&(e.params.autoplay.enabled=!0,e.params.autoplay.delay=parseInt(t),e.params.autoplay.disableOnInteraction=!1,e.autoplay.start())),i.find(".loop-product-variation-selector").each(function(){d(this).find(".term-link").first().trigger("click")})):(o.remove(),i.find(".minimog-grid-response-messages").html(a.template)),n.MinimogTabPanel("updateLayout")}}),t.addClass("ajax-loaded"))})}a(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tm-product-tabs.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/tm-carousel-product-tabs.default",e)})}(jQuery);