{"version":3,"file":"SlideshowKeyboardControl.CqAJs8Hg.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/muO4Lk3MsL1BMr11G1lp/cUPKNr3Kxh5vimPdAO7V/SlideshowKeyboardControl.js"],"sourcesContent":["// SlideshowKeyboardControl.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function KeyboardSlideshow(){useEffect(()=>{const handleKey=e=>{// quick debug log — check the browser console when previewing\nconsole.log(\"Slideshow keyboard: key pressed ->\",e.key);// attempt to find common next/prev buttons and click them\nconst nextBtn=document.querySelector(\"[data-framer-slideshow-next]\")||document.querySelector(\".framer-slideshow__next\")||document.querySelector('button[aria-label=\"Next\"]')||document.querySelector('[aria-label=\"Next slide\"]');const prevBtn=document.querySelector(\"[data-framer-slideshow-prev]\")||document.querySelector(\".framer-slideshow__prev\")||document.querySelector('button[aria-label=\"Previous\"]')||document.querySelector('[aria-label=\"Previous slide\"]');if(e.key===\"ArrowRight\"){if(nextBtn){nextBtn.dispatchEvent(new MouseEvent(\"click\",{bubbles:true}));console.log(\"Slideshow keyboard: clicked next\");}else{console.warn(\"Slideshow keyboard: next button not found\");}}else if(e.key===\"ArrowLeft\"){if(prevBtn){prevBtn.dispatchEvent(new MouseEvent(\"click\",{bubbles:true}));console.log(\"Slideshow keyboard: clicked prev\");}else{console.warn(\"Slideshow keyboard: prev button not found\");}}};window.addEventListener(\"keydown\",handleKey);return()=>window.removeEventListener(\"keydown\",handleKey);},[]);// Overrides must return something — empty object is fine here\nreturn{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withKeyboardSlideshow(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...KeyboardSlideshow(props)});};}withKeyboardSlideshow.displayName=\"KeyboardSlideshow\";\nexport const __FramerMetadata__ = {\"exports\":{\"KeyboardSlideshow\":{\"type\":\"override\",\"name\":\"KeyboardSlideshow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withKeyboardSlideshow\":{\"type\":\"reactHoc\",\"name\":\"withKeyboardSlideshow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SlideshowKeyboardControl.map"],"mappings":"wLACwE,SAAgB,GAAmB,CAG3G,OAH4G,MAAc,CAAC,IAAM,EAAU,GAAG,CAC9I,QAAQ,IAAI,qCAAqC,EAAE,IAAI,CACvD,IAAM,EAAQ,SAAS,cAAc,+BAA+B,EAAE,SAAS,cAAc,0BAA0B,EAAE,SAAS,cAAc,4BAA4B,EAAE,SAAS,cAAc,4BAA4B,CAAO,EAAQ,SAAS,cAAc,+BAA+B,EAAE,SAAS,cAAc,0BAA0B,EAAE,SAAS,cAAc,gCAAgC,EAAE,SAAS,cAAc,gCAAgC,CAAI,EAAE,MAAM,aAAiB,GAAS,EAAQ,cAAc,IAAI,WAAW,QAAQ,CAAC,QAAQ,GAAK,CAAC,CAAC,CAAC,QAAQ,IAAI,mCAAmC,EAAO,QAAQ,KAAK,4CAA4C,CAAW,EAAE,MAAM,cAAgB,GAAS,EAAQ,cAAc,IAAI,WAAW,QAAQ,CAAC,QAAQ,GAAK,CAAC,CAAC,CAAC,QAAQ,IAAI,mCAAmC,EAAO,QAAQ,KAAK,4CAA4C,GAAkD,OAA7C,EAAO,iBAAiB,UAAU,EAAU,KAAW,EAAO,oBAAoB,UAAU,EAAU,EAAG,EAAE,CAAC,CACl+B,EAAE,CAAqJ,SAAgB,EAAsB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAkB,EAAM,CAAC,CAAC,uBAHvS,IAA6B,IAGqF,CAAyL,EAAsB,YAAY"}