{"version":3,"file":"EscFecha.CtyGLJrK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JXPtndt6Vu322emmbQct/DsHVAa2ndDmce0MFS7vV/EscFecha.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * @framerDisableUnlink\n */export function withEscapeKeyClick(Component){return props=>{useEffect(()=>{const handleEscape=e=>{if(e.key===\"Escape\"){// Prevent focus by temporarily removing the element from tab order\nconst activeElement=document.activeElement;if(activeElement){activeElement.blur();}props.onTap?.();}};window.addEventListener(\"keydown\",handleEscape);return()=>window.removeEventListener(\"keydown\",handleEscape);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEscapeKeyClick\":{\"type\":\"reactHoc\",\"name\":\"withEscapeKeyClick\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EscFecha.map"],"mappings":"gIAEG,SAAgB,EAAmB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAa,GAAG,CAAC,GAAG,EAAE,MAAM,SAAS,CAC1H,IAAM,EAAc,SAAS,cAAiB,GAAe,EAAc,MAAM,CAAE,EAAM,SAAS,GAAoD,OAAhD,EAAO,iBAAiB,UAAU,EAAa,KAAW,EAAO,oBAAoB,UAAU,EAAa,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,uBAH5N,IAA6B"}