!function(r){r.each(["frontend/element_ready/wd_products_tabs.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.productsTabs()})}),woodmartThemeModule.productsTabs=function(){var s=!1,n=(r(".wd-products-tabs").each(function(){var e=r(this),a=e.find(".wd-tab-content-wrapper"),d=[];a.find(".owl-carousel").length<1&&(d[0]={html:a.html()}),e.find(".products-tabs-title li").on("click",function(e){e.preventDefault();var t=r(this),e=t.data("atts"),o=t.index();s||t.hasClass("wd-active")||(s=!0,n(e,o,a,t,d,function(e){e.html&&woodmartThemeModule.removeDuplicatedStylesFromHTML(e.html,function(e){a.html(e),a.removeClass("loading").parent().removeClass("element-loading"),t.removeClass("loading"),woodmartThemeModule.$document.trigger("wdProductsTabsLoaded"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}))}),setTimeout(function(){e.addClass("wd-inited")},200)}),function(e,t,o,a,d,n){if(a.parent().find(".wd-active").removeClass("wd-active"),a.addClass("wd-active"),d[t])return o.addClass("loading"),void setTimeout(function(){s=!1,n(d[t]),o.removeClass("loading")},300);o.addClass("loading").parent().addClass("element-loading"),a.addClass("loading"),r.ajax({url:woodmart_settings.ajaxurl,data:{atts:e,action:"woodmart_get_products_tab_shortcode"},dataType:"json",method:"POST",success:function(e){s=!1,d[t]=e,n(e)},error:function(){console.log("ajax error")},complete:function(){s=!1}})})},r(document).ready(function(){woodmartThemeModule.productsTabs()})}(jQuery);