text: /*!  1.6.4 2018-06-28 16:42 */
  !function(a){var b=function(b){var c=parseInt(b.attr("data-campaign-benefactor-add")),d=a("#campaign_benefactor__"+c),e=b.data("extension");return d.show(),c+=1,a.ajax({type:"POST",data:{action:"charitable_add_benefactor",idx:c,extension:e},url:ajaxurl,xhrFields:{withCredentials:!0},success:function(d){a(d).insertBefore(b.parent()),CHARITABLE_ADMIN.SetupDatepicker(a("#campaign_benefactor__"+c+" .charitable-datepicker"))}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),b.attr("data-campaign-benefactor-add",c),!1},c=function(a){return a.parent().remove(),!1},d=function(b){var c=b.parents(".charitable-benefactor"),d={action:"charitable_delete_benefactor",benefactor_id:b.data("campaign-benefactor-delete"),nonce:b.data("nonce")};return a.ajax({type:"POST",data:d,dataType:"json",url:ajaxurl,xhrFields:{withCredentials:!0},success:function(a){a.deleted&&c.remove()}}).fail(function(a){window.console&&window.console.log&&(console.log("failure"),console.log(a))}),!1};a(document).ready(function(){a("body").on("click","[data-campaign-benefactor-delete]",function(){return d(a(this))}),a("[data-campaign-benefactor-add]").on("click",function(){return b(a(this))}),a("body").on("click",".charitable-benefactor-form-cancel",function(){return c(a(this))})})}(jQuery);