{"version":3,"file":"Autoplay.DaompfDb.mjs","names":["React.useRef","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/oqLj8xOLDafT1CIQzH9k/HdNkjFxvwuEfwgTS8rF6/Autoplay.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function AutoplayWithUnmute(){const videoRef=React.useRef(null);React.useEffect(()=>{const video=videoRef.current;if(video){video.muted=true;video.play().catch(()=>{console.log(\"Autoplay blocked, waiting for user gesture.\");});}},[]);const handleUnmute=()=>{const video=videoRef.current;if(video){video.muted=false;video.play();}};return{ref:videoRef,loop:true,playsInline:true,onClick:handleUnmute};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withAutoplayWithUnmute(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AutoplayWithUnmute(props)});};}withAutoplayWithUnmute.displayName=\"AutoplayWithUnmute\";\nexport const __FramerMetadata__ = {\"exports\":{\"AutoplayWithUnmute\":{\"type\":\"override\",\"name\":\"AutoplayWithUnmute\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAutoplayWithUnmute\":{\"type\":\"reactHoc\",\"name\":\"withAutoplayWithUnmute\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Autoplay.map"],"mappings":"4KAAuE,SAAgB,GAAoB,CAAC,IAAM,EAASA,EAAa,KAAK,CAA4Q,OAA3Q,MAAoB,CAAC,IAAM,EAAM,EAAS,QAAW,IAAO,EAAM,MAAM,GAAK,EAAM,MAAM,CAAC,UAAU,CAAC,QAAQ,IAAI,8CAA8C,EAAG,GAAI,EAAE,CAAC,CAAwG,CAAC,IAAI,EAAS,KAAK,GAAK,YAAY,GAAK,YAAzH,CAAC,IAAM,EAAM,EAAS,QAAW,IAAO,EAAM,MAAM,GAAM,EAAM,MAAM,GAAwE,CAAqJ,SAAgB,EAAuB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAmB,EAAM,CAAC,CAAC,mBAA9vB,IAA4B,IAA2iB,CAA2L,EAAuB,YAAY"}