{"version":3,"file":"Video_webm_mp4.CBb89rdc.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/Bh8NyIBMfEx22jIuJOmU/az8jyCuGrZ0XlCESlswp/Video_webm_mp4.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";export function VideoHero(){const videoRef=useRef(null);const[videoSrc,setVideoSrc]=useState(\"\");useEffect(()=>{const isMobile=window.matchMedia(\"(max-width: 768px)\").matches;if(isMobile){setVideoSrc(\"https://framerusercontent.com/assets/qjzWC71qo9p4SjcGu25RQPS9Aa4.webm\");}else{setVideoSrc(\"https://framerusercontent.com/assets/8qg6rsR3tg2dQWAJxWFRJpBOTfQ.webm\");}},[]);useEffect(()=>{const video=videoRef.current;if(video){video.play().catch(()=>{});}},[videoSrc]);return /*#__PURE__*/_jsxs(\"video\",{ref:videoRef,autoPlay:true,loop:true,muted:true,playsInline:true,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:\"var(--radius, 0px)\"},children:[videoSrc&&/*#__PURE__*/_jsx(\"source\",{src:videoSrc,type:\"video/webm\"}),/*#__PURE__*/_jsx(\"source\",{src:\"https://framerusercontent.com/assets/bOXPUAt5gxEBlUOn4uPidxp5Mos.mp4\",type:\"video/mp4\"}),\"Your browser does not support the video tag.\"]});}\nexport const __FramerMetadata__ = {\"exports\":{\"VideoHero\":{\"type\":\"reactComponent\",\"name\":\"VideoHero\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video_webm_mp4.map"],"mappings":"0NAAsG,SAAgB,GAAW,CAAC,IAAM,EAASA,EAAO,MAAW,CAAC,EAAS,EAAY,CAACC,EAAS,IAAsX,OAAlX,MAAc,CAAC,IAAM,EAAS,EAAO,WAAW,sBAAsB,QAAqB,EAAV,EAAsB,wEAA2F,wEAA2E,EAAC,EAAE,EAAE,MAAc,CAAC,IAAM,EAAM,EAAS,QAAW,GAAO,EAAM,OAAO,UAAU,CAAE,EAAI,EAAC,CAAC,EAAS,EAAsB,EAAM,QAAQ,CAAC,IAAI,EAAS,SAAS,GAAK,KAAK,GAAK,MAAM,GAAK,YAAY,GAAK,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,aAAa,qBAAqB,CAAC,SAAS,CAAC,GAAuB,EAAK,SAAS,CAAC,IAAI,EAAS,KAAK,aAAa,EAAe,EAAK,SAAS,CAAC,IAAI,uEAAuE,KAAK,YAAY,EAAE,+CAA+C,CAAC,CAAG"}