{"version":3,"file":"FormGuard.C-IXUXOn.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,aAAa,GAAe,EAAM,gBAAgB,CAAC,EAAM,iBAAiB,CAAC,MAAM,uDAAuD,GAAI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,gBAAgB,EAAoB,CAAC,uBAA7b"}