jQuery(function(a){a(".dina-table-loadmore").click(function(){var t=a(this);append=a(this).parent().find(".dina-products-table-tbody"),max_page=a(this).data("max-page"),current=a(this).data("current"),data={action:"loadmore",current:a(this).data("current"),vars:a(this).data("vars"),table:a(this).data("table")},a.ajax({url:dina_table_loadmore_params.ajaxurl,data:data,type:"POST",beforeSend:function(a){t.find(".fal").removeClass("fa-shopping-bag").addClass("fa-spinner-third fa-spin")},success:function(e){e?(t.find(".fal").removeClass("fa-spinner-third fa-spin").addClass("fa-shopping-bag"),append.append(e),current++,t.data("current",current),current==max_page&&t.remove(),a(document.body).trigger("post-load")):t.remove()}})})});