!function(i){"function"==typeof define&&define.amd?define("buddypress",i):i()}(function(){"use strict";jQuery(function(t){var i=t("#c27-bp-listings-wrapper"),n=i.find(".c27-bp-listings-grid"),e=i.find(".listings-loading"),a=i.find(".c27-bp-listings-pagination"),o=i.data("authid"),s=0;function d(){n.hide(),a.hide(),e.show(),t.ajax({url:CASE27.ajax_url+"?action=get_listings_by_author&security="+CASE27.ajax_nonce,type:"POST",dataType:"json",data:{auth_id:o,page:s,per_page:9},success:function(i){n.html(i.html),a.html(i.pagination),e.hide(),n.fadeIn(150),a.fadeIn(150),setTimeout(function(){void 0!==t(".c27-bp-listings-grid").data("isotope")&&t(".c27-bp-listings-grid").isotope("destroy"),i.found_posts&&t(".c27-bp-listings-grid").isotope({itemSelector:".grid-item"}),t(".lf-background-carousel").owlCarousel({margin:20,items:1,loop:!0}),t('[data-toggle="tooltip"]').tooltip({trigger:"hover"})},10)}})}a.on("click","a",function(i){i.preventDefault(),s=parseInt(t(this).data("page"),10)-1,d()}),d()})});
