(()=>{var t,e;tribe.tickets.resendTickets={},t=jQuery,(e=tribe.tickets.resendTickets).selectors={resendButton:".re-send-ticket-action"},e.data=Attendees.resend_ticket||{},e.clickedButton=null,e.resendHandler=function(){e.clickedButton=t(this),e.clickedButton.prop("disabled",!0),e.clickedButton.text(e.data.progress_label);const d={action:"event-tickets-plus-resend-tickets",attendee_id:e.clickedButton.attr("data-attendee-id"),provider:e.clickedButton.attr("data-provider"),order_id:e.clickedButton.attr("data-order-id"),order_status:e.clickedButton.attr("data-order-status"),post_id:e.clickedButton.attr("data-post-id"),nonce:e.data.nonce};t.post(Attendees.ajaxurl,d,e.responseHandler,"json")},e.responseHandler=function(t){e.clickedButton instanceof jQuery&&(t.success?(e.clickedButton.text(e.data.success_label),e.clickedButton.addClass("button-disabled")):(e.clickedButton.text(e.data.default_label),e.clickedButton.prop("disabled",!1)),alert(t.data.message))},e.ready=function(){t(e.selectors.resendButton).on("click",e.resendHandler)},t(e.ready),window.ticketsPlus=window.ticketsPlus||{},window.ticketsPlus.resendTickets={}})();