{"version":3,"file":"EscFecha.rYwb0C-R.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,KAAK,EAAG,EAAM,QAAQ,CAAE,CAAC,EAAkD,OAAhD,EAAO,iBAAiB,UAAU,CAAY,MAAY,EAAO,oBAAoB,UAAU,CAAY,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,qBAHhO,IAA6B"}