!function(){"use strict";window.Shopify=window.Shopify||{},window.Shopify.recaptchaV3=window.Shopify.recaptchaV3||{siteKey:""},window.Shopify.recaptchaV3.hideBadge=function(){if(null===document.querySelector("p[data-spam-detection-disclaimer]"))return;const e=document.createElement("style");document.head.appendChild(e);e.sheet.insertRule(".grecaptcha-badge { visibility: hidden; }")},window.Shopify.recaptchaV3.initialize=function(){document.querySelectorAll('form[action^="/contact"], form[action^="/blogs"]').forEach((function(e){e.querySelectorAll('input[name="form_type"][value="contact"], input[name="form_type"][value="new_comment"]').length<1||e.setAttribute("onsubmit","window.Shopify.recaptchaV3.addToken(this); return false;")}))},window.Shopify.recaptchaV3.addToken=function(e){grecaptcha.execute(window.Shopify.recaptchaV3.siteKey,{action:"submit_form"}).then((function(t){if(!(e.querySelectorAll('input[name="form_type"][value="contact"], input[name="form_type"][value="new_comment"]').length<1)){var n=e.querySelector("input[name=recaptcha-v3-token]");n instanceof HTMLElement?n.setAttribute("value",t):((n=document.createElement("input")).setAttribute("name","recaptcha-v3-token"),n.setAttribute("type","hidden"),n.setAttribute("value",t),e.appendChild(n,e)),e.submit()}}))},window.storefrontContactFormsRecaptchaCallback=function(){window.Shopify.recaptchaV3.initialize(),window.Shopify.recaptchaV3.hideBadge()};const e=document.createElement("script");e.setAttribute("src","https://www.recaptcha.net/recaptcha/api.js?onload=storefrontContactFormsRecaptchaCallback&render="+window.Shopify.recaptchaV3.siteKey+"&hl=en"),document.body.appendChild(e)}();
//# sourceMappingURL=index.js.map