jQuery((function(e){const i=e("#tribe-additional-field-update"),t=i.find("span.update-text"),n=t.find("a");let o=tribe_additional_fields.update_check;function d(){i.fadeOut()}function a(e){!0===e.continue?(o=e.check,c()):void 0===e.continue||(i.removeClass("notice-info").addClass("notice-success"),t.html(tribe_additional_fields.complete_msg),setTimeout(d,4e3))}function s(){i.html("<p>"+tribe_additional_fields.failure_msg+"</p>"),i.removeClass("notice-info").addClass("notice-error")}function c(){t.html(tribe_additional_fields.in_progress_msg),i.removeClass("notice-warning").addClass("notice-info");const n={action:"additional_fields_update",do_additional_fields_update:o};e.post(ajaxurl,n,a,"json").fail(s)}n.click((function(e){return e.stopImmediatePropagation(),c(),!1}))})),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.eventsAdditionalFieldsUpdate={};