(t=>{"function"==typeof define&&define.amd?define("buddypress",t):t()})(function(){jQuery(function(i){var t=i.trim(i("#buddypress form#whats-new-form p.activity-greeting").text()),t=(jQuery("#whats-new-textarea textarea").attr("placeholder",t),i("#c27-bp-listings-wrapper")),e=t.find(".c27-bp-listings-grid"),n=t.find(".listings-loading"),a=t.find(".c27-bp-listings-pagination"),s=t.data("authid"),d=0;function o(){e.hide(),a.hide(),n.show(),i.ajax({url:CASE27.ajax_url+"?action=get_listings_by_author&security="+CASE27.ajax_nonce,type:"POST",dataType:"json",data:{auth_id:s,page:d,per_page:9},success:function(t){e.html(t.html),a.html(t.pagination),n.hide(),e.fadeIn(150),a.fadeIn(150),setTimeout(function(){void 0!==i(".c27-bp-listings-grid").data("isotope")&&i(".c27-bp-listings-grid").isotope("destroy"),t.found_posts&&i(".c27-bp-listings-grid").isotope({itemSelector:".grid-item"}),MyListing.BackgroundCarousel()},10)}})}a.on("click","a",function(t){t.preventDefault(),d=parseInt(i(this).data("page"),10)-1,o()}),o()})});
