!function(a){function t(t,i){a(t).owlCarousel({loop:!1,nav:!0,dots:!1,items:12/i,navClass:["owl-carousel-left","owl-carousel-right"],navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1e3:{items:12/i}}})}function i(i,e){var s=i.attr("href"),n="#dynamic-category-content-"+e;a(n).find(".ajax-overlay").addClass("loading");var c=a(n).find(".dynamic-cat-post-list").attr("data-coursePrice"),o=a(n).find(".dynamic-cat-post-list").attr("data-courseDesc"),d=a(n).find(".dynamic-cat-post-list").attr("data-courseButton"),r=a(n).find(".dynamic-cat-post-list").attr("data-courseUser"),l=a(n).find(".dynamic-cat-post-list").attr("data-courseCategory"),u=a(n).find(".dynamic-cat-post-list").attr("data-showRating"),v=a(n).find(".dynamic-cat-post-list").attr("data-averageRating"),f=a(n).find(".dynamic-cat-post-list").attr("data-postsColumn"),m=a(n).find(".dynamic-cat-post-list").attr("data-activeCarousel");return a.ajax({url:s,type:"post",data:{coursePrice:c,courseDesc:o,courseButton:d,courseUser:r,courseCategory:l,showRating:u,averageRating:v,averageRating:v,postsColumn:f,activeCarousel:m},beforeSend:function(){a(n).find(".dynamic-layout .dynamic-cat-post-list").append('<div class="ajax-contents"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></div>')},success:function(i){setTimeout(function(){a(n).find(".dynamic-cat-post-list").remove(),a(n).find(".dynamic-layout").append(i),t(a(n).find(".lp-dynamic-course-active"),f)},500)},error:function(a){console.log(a)}}),!1}a(".learndash-dynamic-category-wrapper .multiple-cat a.cat-item").on("click",function(t){var e=a(this).parent().attr("id"),s="#dynamic-category-content-"+e;t.preventDefault(),a(s).find("div#dynamic-category .learndash-dynamic-category-wrapper .multiple-cat a.cat-item").removeClass("active"),a(this).addClass("active"),i(a(this),e)})}(jQuery);