{"version":3,"file":"VideoMute.Go6-RgFi.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/gfINI5vyzivb9bXidzEr/Txt7m6xKVbEtF9zoVYNt/VideoMute.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function muteVideo(props){useEffect(()=>{const muteAllVideos=()=>{const videos=document.querySelectorAll(\"video\");videos.forEach(video=>{if(!video.muted||!video.hasAttribute(\"muted\")){video.muted=true;video.setAttribute(\"muted\",\"\");video.defaultMuted=true;}});};// Initial mute\nmuteAllVideos();// Set up observer for DOM changes (but throttle it)\nlet observerTimeout;const observer=new MutationObserver(()=>{clearTimeout(observerTimeout);observerTimeout=setTimeout(muteAllVideos,100);});observer.observe(document.body,{childList:true,subtree:true,attributes:false});// Cleanup\nreturn()=>{clearTimeout(observerTimeout);observer.disconnect();};},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withmuteVideo(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...muteVideo(props)});};}withmuteVideo.displayName=\"muteVideo\";\nexport const __FramerMetadata__ = {\"exports\":{\"muteVideo\":{\"type\":\"override\",\"name\":\"muteVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withmuteVideo\":{\"type\":\"reactHoc\",\"name\":\"withmuteVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoMute.map"],"mappings":"0KAAwE,SAAgB,EAAU,EAAM,CAGjC,OAHkC,MAAc,CAAC,IAAM,MAAkB,CAAc,SAAS,iBAAiB,QAAQ,CAAQ,QAAQ,GAAO,EAAI,CAAC,EAAM,OAAO,CAAC,EAAM,aAAa,QAAQ,IAAE,EAAM,MAAM,GAAK,EAAM,aAAa,QAAQ,GAAG,CAAC,EAAM,aAAa,KAAQ,EAClV,GAAe,CACf,IAAI,EAAsB,EAAS,IAAI,qBAAqB,CAAC,aAAa,EAAgB,CAAC,EAAgB,WAAW,EAAc,IAAI,EAAG,CAC3I,OAD4I,EAAS,QAAQ,SAAS,KAAK,CAAC,UAAU,GAAK,QAAQ,GAAK,WAAW,GAAM,CAAC,KAChN,CAAC,aAAa,EAAgB,CAAC,EAAS,YAAY,GAAK,EAAE,CAAC,CAAO,EAAE,CAAqJ,SAAgB,EAAc,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,EAAM,CAAC,CAAC,mBAH9V,IAA6B,IAG4J,CAAyK,EAAc,YAAY"}