File "view.min.js"

Full Path: /home/pumpbmko/public_html/wp-content/plugins/gutenberg/build/block-library/blocks/form/view.min.js
File size: 786 bytes
MIME-type: text/plain
Charset: utf-8

document.querySelectorAll("form.wp-block-form").forEach((function(o){if(!o.action||!o.action.startsWith("mailto:"))return;const t=o=>{const t=new URLSearchParams(window.location.search);t.append("wp-form-result",o),window.location.search=t.toString()};o.addEventListener("submit",(async function(n){n.preventDefault();const e=Object.fromEntries(new FormData(o).entries());e.formAction=o.action,e._ajax_nonce=wpBlockFormSettings.nonce,e.action=wpBlockFormSettings.action,e._wp_http_referer=window.location.href,e.formAction=o.action;try{(await fetch(wpBlockFormSettings.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(e).toString()})).ok?t("success"):t("error")}catch(o){t("error")}}))}));
//# sourceMappingURL=view.min.js.map