{"version":3,"file":"PauseOnClick.LupfEXZt.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"sources":["https:/framerusercontent.com/modules/nf8ocB7rxGzlWotnVXHS/iGnQj7f4YeB9K4qUk4v8/PauseOnClick.js"],"sourcesContent":["// ✅ WORKING DOTLOTTIE OVERRIDE FOR FRAMER\n// This version fixes playback by directly observing the <dotlottie-player>\n// It toggles play/pause on tap, and shows a fading play icon overlay\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useLayoutEffect,useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";export function dotLottiePlayPause(){const wrapperRef=useRef(null);const[isPaused,setIsPaused]=useState(false);const[isReady,setIsReady]=useState(false);useLayoutEffect(()=>{const interval=setInterval(()=>{const player=wrapperRef.current?.querySelector(\"dotlottie-player\");if(player&&typeof player.play===\"function\"){clearInterval(interval);player.loop=true;player.autoplay=false;player.play();setIsReady(true);}},100);return()=>clearInterval(interval);},[]);const handleToggle=()=>{const player=wrapperRef.current?.querySelector(\"dotlottie-player\");if(!player||!isReady)return;if(isPaused){player.play();}else{player.pause();}setIsPaused(!isPaused);};return{ref:wrapperRef,onTap:handleToggle,children:/*#__PURE__*/_jsx(AnimatePresence,{children:isPaused&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:.72},exit:{opacity:0},style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",fontSize:40,color:\"#ffffff\",pointerEvents:\"none\",zIndex:10},children:\"▶️\"})})};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withdotLottiePlayPause(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...dotLottiePlayPause(props)});};}withdotLottiePlayPause.displayName=\"dotLottiePlayPause\";\nexport const __FramerMetadata__ = {\"exports\":{\"dotLottiePlayPause\":{\"type\":\"override\",\"name\":\"dotLottiePlayPause\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withdotLottiePlayPause\":{\"type\":\"reactHoc\",\"name\":\"withdotLottiePlayPause\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PauseOnClick.map"],"mappings":"8WAGgJ,SAAgB,GAAoB,CAAC,IAAM,EAAW,EAAO,KAAK,CAAM,CAAC,EAAS,EAAY,CAAC,GAAS,EAAM,CAAM,CAAC,EAAQ,EAAW,CAAC,GAAS,EAAM,CAAC,EAAgB,IAAI,CAAC,IAAM,EAAS,YAAY,IAAI,CAAC,IAAM,EAAO,EAAW,SAAS,cAAc,mBAAmB,CAAC,AAAG,UAAe,EAAO,MAAO,aAAY,cAAc,EAAS,CAAC,EAAO,MAAK,EAAK,EAAO,UAAS,EAAM,EAAO,MAAM,CAAC,GAAW,EAAK,CAAG,EAAC,IAAI,CAAC,MAAM,IAAI,cAAc,EAAS,AAAE,EAAC,CAAE,EAAC,CAAC,IAAM,EAAa,IAAI,CAAC,IAAM,EAAO,EAAW,SAAS,cAAc,mBAAmB,CAAC,CAAI,IAAS,IAAkB,EAAU,EAAO,MAAM,CAAO,EAAO,OAAO,CAAE,GAAa,EAAS,CAAE,EAAC,MAAM,CAAC,IAAI,EAAW,MAAM,EAAa,SAAsB,EAAK,EAAgB,CAAC,SAAS,GAAuB,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAE,EAAC,QAAQ,CAAC,QAAQ,GAAI,EAAC,KAAK,CAAC,QAAQ,CAAE,EAAC,MAAM,CAAC,SAAS,WAAW,IAAI,MAAM,KAAK,MAAM,UAAU,wBAAwB,SAAS,GAAG,MAAM,UAAU,cAAc,OAAO,OAAO,EAAG,EAAC,SAAS,IAAK,EAAC,AAAC,EAAC,AAAC,CAAE,CAAmJ,SAAgB,EAAuB,EAAE,CAAC,MAAO,CAAA,IAAQ,EAA+BA,EAAwC,CAAQ,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAmB,EAAM,AAAC,EAAC,CAAI,cAAA,AAA78C,GAA2C,IAAmD,IAAkD,CAA+iC,GAAmF,CAA2L,EAAuB,YAAY"}