{"version":3,"file":"HeroVideo.Dl-eNMSb.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/M6SPvWhJtFgZufuw4lhT/o11lx5oTSXP9KqDqvc7c/HeroVideo.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Hero background video. Poster renders first everywhere (LCP); the video mounts only at or above\n * videoMinWidth after hydration, so phones never download it. Updated 2026-09-18.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 813\n * @framerDisableUnlink\n */export default function HeroVideo(props){const src=props.src||\"https://framerusercontent.com/assets/6RccPzxctGIoe8cn6FTbquf0.mp4\";const poster=props.poster||\"https://framerusercontent.com/images/KNbmzeHM0LahMbSTYFtux8Pwk.jpg\";const minW=props.videoMinWidth||810;const[showVideo,setShowVideo]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(min-width: \"+minW+\"px)\");const update=()=>setShowVideo(mq.matches);update();mq.addEventListener(\"change\",update);return()=>mq.removeEventListener(\"change\",update);},[minW]);const fill={position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:\"#001420\",...props.style},children:[/*#__PURE__*/_jsx(\"img\",{src:poster,alt:\"\",style:fill}),showVideo&&/*#__PURE__*/_jsx(\"video\",{src:src,poster:poster,autoPlay:true,muted:true,loop:true,playsInline:true,preload:\"metadata\",style:fill})]});}addPropertyControls(HeroVideo,{src:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\"]},poster:{type:ControlType.Image,title:\"Poster\"},videoMinWidth:{type:ControlType.Number,title:\"Video from width\",defaultValue:810,min:0,max:1600,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroVideo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"813\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroVideo.map"],"mappings":"sMAQG,SAAwB,EAAU,EAAM,CAAC,IAAM,EAAI,EAAM,KAAK,oEAA0E,EAAO,EAAM,QAAQ,qEAA2E,EAAK,EAAM,eAAe,IAAS,CAAC,EAAU,GAAcA,EAAe,EAAK,EAAE,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAG,EAAO,WAAW,eAAe,EAAK,KAAK,EAAQ,MAAW,EAAa,EAAG,OAAO,EAAgD,OAA9C,EAAO,EAAE,EAAG,iBAAiB,SAAS,CAAM,MAAY,EAAG,oBAAoB,SAAS,CAAM,CAAE,EAAE,CAAC,CAAI,CAAC,EAAE,IAAM,EAAK,CAAC,SAAS,WAAW,MAAM,EAAE,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAW,UAAU,GAAG,EAAM,KAAK,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,IAAI,EAAO,IAAI,GAAG,MAAM,CAAI,CAAC,EAAE,GAAwB,EAAK,QAAQ,CAAK,MAAW,SAAO,SAAS,GAAK,MAAM,GAAK,KAAK,GAAK,YAAY,GAAK,QAAQ,WAAW,MAAM,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,qBARn9B,IAA4B,IAAoD,EAQo4B,EAAoB,EAAU,CAAC,IAAI,CAAC,KAAK,EAAY,KAAK,MAAM,QAAQ,iBAAiB,CAAC,MAAM,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,EAAE,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,mBAAmB,aAAa,IAAI,IAAI,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC"}