!function(t){function a(a,i){t(a).owlCarousel({loop:!1,nav:!0,dots:!1,items:12/i,navClass:["owl-carousel-left","owl-carousel-right"],navText:['<i class="fa fa-angle-left fa-fw"></i>','<i class="fa fa-angle-right fa-fw"></i>'],responsive:{0:{items:1},600:{items:2},1e3:{items:12/i}}})}function i(i,s){var o=i.attr("href"),n="#learnpress-course-tab-content-"+s;t(n).find(".ajax-overlay").addClass("loading");var r=t(n).find(".dynamic-cat-post-list").attr("data-coursePrice"),e=t(n).find(".dynamic-cat-post-list").attr("data-courseCategory"),c=t(n).find(".dynamic-cat-post-list").attr("data-postsColumn"),l=t(n).find(".dynamic-cat-post-list").attr("data-activeCarousel"),d=t(n).find(".dynamic-cat-post-list").attr("data-showCourseDescription"),p=t(n).find(".dynamic-cat-post-list").attr("data-descriptionWordCount"),u=t(n).find(".dynamic-cat-post-list").attr("data-lpCourseStyle"),f=t(n).find(".dynamic-cat-post-list").attr("data-lpEnrollIcon"),m=t(n).find(".dynamic-cat-post-list").attr("data-lpDurationIcon"),v=t(n).find(".dynamic-cat-post-list").attr("data-lpcourseAuthor"),y=t(n).find(".dynamic-cat-post-list").attr("data-lpcourseRating"),C=t(n).find(".dynamic-cat-post-list").attr("data-lpcourseEnroll"),g=t(n).find(".dynamic-cat-post-list").attr("data-lpcourseDuration");return t.ajax({url:o,type:"post",data:{coursePrice:r,courseCategory:e,postsColumn:c,activeCarousel:l,showCourseDescription:d,descriptionWordCount:p,lpCourseStyle:u,lpEnrollIcon:f,lpDurationIcon:m,lpcourseAuthor:v,lpcourseRating:y,lpcourseEnroll:C,lpcourseDuration:g},beforeSend:function(){t(n).find(".dynamic-layout .dynamic-cat-post-list").append('<div class="ajax-content"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></div>')},success:function(i){setTimeout(function(){t(n).find(".dynamic-cat-post-list").remove(),t(n).find(".dynamic-layout").append(i),a(t(n).find(".lp-dynamic-course-active"),c)},500)},error:function(t){console.log(t)}}),!1}t(".learnpress-course-tab-wrapper .learnpress-course-tab-cat-wrapper .multiple-cat a.cat-item").on("click",function(a){var s=t(this).parent().attr("id"),o="#learnpress-course-tab-content-"+s;a.preventDefault(),t(o).find("div#learnpress-course-tab .learnpress-course-tab-cat-wrapper .multiple-cat a.cat-item").removeClass("active"),t(this).addClass("active"),i(t(this),s)})}(jQuery);