{"version":3,"file":"KeyboardActivation.DWedckHP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/j0oDINRKVSGkzWmUMY7L/EkbcU21S655wrDMVKJap/KeyboardActivation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";// Keep Framer's existing canvas layout, localized labels and variant actions.\n// Pointer gestures remain native; activate the same action for keyboard users.\nexport function withKeyboardActivation(Component){return /*#__PURE__*/forwardRef(function KeyboardActivation(props,ref){const onKeyDown=event=>{props.onKeyDown?.(event);if(event.defaultPrevented||event.repeat)return;if(event.key!==\"Enter\"&&event.key!==\" \")return;const target=event.target;if(target.closest(\"a, input, textarea, select\"))return;if(typeof props.onTap!==\"function\")return;event.preventDefault();event.stopPropagation();props.onTap(event,{point:{x:0,y:0}});};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,onKeyDown:onKeyDown});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withKeyboardActivation\":{\"type\":\"reactHoc\",\"name\":\"withKeyboardActivation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KeyboardActivation.map"],"mappings":"kHAEA,SAAgB,EAAuB,EAAU,CAAC,OAAoB,EAAW,SAA4B,EAAM,EAAI,CAAC,IAAM,EAAU,GAAO,CAAC,EAAM,YAAY,CAAK,EAAK,IAAM,kBAAkB,EAAM,UAAiB,EAAM,MAAM,SAAS,EAAM,MAAM,KAAwB,EAAM,OAAiB,QAAQ,4BAA4B,GAAY,OAAO,EAAM,OAAQ,aAAkB,EAAM,eAAe,EAAE,EAAM,gBAAgB,EAAE,EAAM,MAAM,EAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,GAAE,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAc,WAAS,CAAC,CAAE,CAAC,CAAE,iBAF5f,IAA8B"}