{"version":3,"file":"SimpleVideo.CwY3LGch.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/alIIbDj7jpIhhLGDYe5u/oUQxNTSEojXRdNk0fqY3/SimpleVideo.js"],"sourcesContent":["// Ultra simple and optimized video component that plays once (5s duration) and stops at the last frame\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SimpleVideo(props){const{videoFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",playbackSpeed=1}=props;const videoRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||!videoRef.current)return;const video=videoRef.current;video.playbackRate=playbackSpeed;video.play().catch(()=>{});},[playbackSpeed]);return /*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoFile,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",pointerEvents:\"none\"},playsInline:true,muted:true,preload:\"auto\"});}addPropertyControls(SimpleVideo,{videoFile:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},playbackSpeed:{type:ControlType.Number,title:\"Playback Speed\",defaultValue:1,min:.25,max:4,step:.25,displayStepper:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimpleVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SimpleVideo.map"],"mappings":"+LAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,uEAAuE,gBAAc,GAAG,EAAY,EAASA,EAAO,KAAK,CAAqL,OAApL,MAAc,CAAC,GAAU,IAAS,QAAa,CAAC,EAAS,QAAQ,OAAO,IAAM,EAAM,EAAS,QAAQ,EAAM,aAAa,EAAc,EAAM,MAAM,CAAC,UAAU,GAAG,EAAG,CAAC,EAAc,CAAC,CAAqB,EAAK,QAAQ,CAAC,IAAI,EAAS,IAAI,EAAU,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,QAAQ,cAAc,OAAO,CAAC,YAAY,GAAK,MAAM,GAAK,QAAQ,OAAO,CAAC,sBAHpgB,IAAoC,IAAoD,CAG8a,EAAoB,EAAY,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,iBAAiB,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,IAAI,eAAe,GAAM,CAAC,CAAC"}