{"version":3,"file":"NativeButtonKeyboard.R_92zkQo.mjs","names":["__esmMin","c","J","init_jsx_runtime","init_npm_react_18_3_1","withSpaceActivation","rest","props","Component","style","onKeyDown","event","onTap","init_NativeButtonKeyboard"],"sources":["https:/framerusercontent.com/modules/CtUgyPMrjE312mZk2jSa/CqeezFXeEySfECsxXnFJ/NativeButtonKeyboard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/** Preserve the native canvas reset action and add its missing Space activation. */export function withSpaceActivation(Component){return /*#__PURE__*/forwardRef(function SpaceActivation(props,ref){const{style,onKeyDown,onTap,...rest}=props;return /*#__PURE__*/_jsx(Component,{...rest,ref:ref,style:{...style},onTap:onTap,onKeyDown:event=>{onKeyDown?.(event);if(!event.defaultPrevented&&event.key===\" \"&&!event.repeat&&typeof onTap===\"function\"){event.preventDefault();onTap(event,{point:{x:0,y:0}});}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSpaceActivation\":{\"type\":\"reactHoc\",\"name\":\"withSpaceActivation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NativeButtonKeyboard.map"],"mappings":"A,kHAA6J,SAAgBK,EAAoB,EAAU,CAAC,MAAoB,gBAAW,SAAyB,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,QAAM,GAAGC,GAAMC,EAAM,MAAoB,gBAAKC,EAAU,CAAC,GAAGF,EAAS,MAAI,MAAM,CAAC,GAAGG,CAAK,EAAQ,QAAM,UAAU,GAAO,CAACC,IAAYC,CAAK,EAAK,CAACA,EAAM,kBAAkBA,EAAM,MAAM,KAAK,CAACA,EAAM,QAAQ,OAAOC,GAAQ,aAAYD,EAAM,eAAe,EAAEC,EAAMD,EAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAG,CAAC,CAAC,CAAE,CAAC,CAAE,C"}