{"version":3,"file":"NativeButtonKeyboard.C57FF8RN.mjs","names":["__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","c","J","init_jsx_runtime","window","withSpaceActivation","rest","props","Component","style","onKeyDown","event","onTap","withPaginationKeyboard","init_NativeButtonKeyboard"],"sources":["https:/framerusercontent.com/modules/FmKo7z7AOQFUxlYG3BDe/DTCbv7iJmzyDOEkQvPvt/NativeButtonKeyboard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/** Keep the native canvas buttons and their variants; add Space activation to its existing Tap action. */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}});}}});});}/** Preserve Framer's native Load More handler and add Space on its own output. */export function withPaginationKeyboard(Component){return /*#__PURE__*/forwardRef(function PaginationKeyboard(props,ref){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"contents\"},onKeyDownCapture:event=>{if(!event.defaultPrevented&&event.key===\" \"&&!event.repeat&&event.target instanceof HTMLButtonElement){event.preventDefault();event.target.dispatchEvent(new window.KeyboardEvent(\"keydown\",{key:\"Enter\",code:\"Enter\",keyCode:13,bubbles:true}));event.target.dispatchEvent(new window.KeyboardEvent(\"keyup\",{key:\"Enter\",code:\"Enter\",keyCode:13,bubbles:true}));}},children:/*#__PURE__*/_jsx(Component,{...props,ref:ref})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSpaceActivation\":{\"type\":\"reactHoc\",\"name\":\"withSpaceActivation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPaginationKeyboard\":{\"type\":\"reactHoc\",\"name\":\"withPaginationKeyboard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NativeButtonKeyboard.map"],"mappings":"A,gIAAmL,SAAgBO,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,CAAmF,SAAgBE,EAAuB,EAAU,CAAC,MAAoB,gBAAW,SAA4B,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,UAAU,EAAE,iBAAiB,GAAO,CAAI,CAACF,EAAM,kBAAkBA,EAAM,MAAM,KAAK,CAACA,EAAM,QAAQA,EAAM,kBAAkB,oBAAmBA,EAAM,eAAe,EAAEA,EAAM,OAAO,cAAc,IAAIP,EAAO,cAAc,UAAU,CAAC,IAAI,QAAQ,KAAK,QAAQ,QAAQ,GAAG,QAAQ,EAAI,CAAC,CAAC,EAAEO,EAAM,OAAO,cAAc,IAAIP,EAAO,cAAc,QAAQ,CAAC,IAAI,QAAQ,KAAK,QAAQ,QAAQ,GAAG,QAAQ,EAAI,CAAC,CAAC,EAAG,EAAE,SAAsB,gBAAKI,EAAU,CAAC,GAAGD,EAAU,KAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C"}