(()=>{var t;(t=jQuery)("#post").submit((function(a){var i={action:"validate_invoice",form_data:t("form#post").serialize()};if(t(this).data("valid"))return!0;t.post(ajaxurl,i,(a=>{a.success?t("#post").data("valid",!0).submit():(t("#title").css("border-color","red"),a.data.notice&&function(a){confirm(a.data.notice)&&t("#post").data("valid",!0).submit()}(a))})),a.preventDefault()}))})();