{"version":3,"file":"FormGuard.BdsZTM9p.mjs","names":[],"sources":["https:/framerusercontent.com/modules/eqVi9OHB9qtfzOAWF9Jp/FtP2fGc8TQ9WYE8Oe2G4/FormGuard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withRecaptchaGuard(Component){return props=>{const handleSubmitCapture=event=>{const token=typeof window!==\"undefined\"&&window.grecaptcha&&typeof window.grecaptcha.getResponse===\"function\"?window.grecaptcha.getResponse():\"\";if(!token){event.preventDefault();event.stopPropagation();alert(\"Please confirm you're not a robot before submitting.\");}};return /*#__PURE__*/_jsx(Component,{...props,onSubmitCapture:handleSubmitCapture});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRecaptchaGuard\":{\"type\":\"reactHoc\",\"name\":\"withRecaptchaGuard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormGuard.map"],"mappings":"kHAA2C,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAoB,GAAO,CAAoB,IAAS,QAAa,EAAO,YAAY,OAAO,EAAO,WAAW,aAAc,YAAW,EAAO,WAAW,YAAY,IAAgB,EAAM,eAAe,EAAE,EAAM,gBAAgB,EAAE,MAAM,sDAAsD,EAAG,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,gBAAgB,CAAmB,CAAC,CAAE,CAAE,qBAAjc"}