{"version":3,"file":"VideoPlayer.BLqgNHCT.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/KynCa0V2oZpE6niOSSfa/neQnBRrNPIolTC1oJMNd/VideoPlayer.js"],"sourcesContent":["// Video player with play button, title, and description\n// Hover to preview (muted), click play button to start full playback with text disappearing\n// ... existing code ...\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VideoPlayer(props){const{videoFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",borderRadius,playOnHover=false}=props;const videoRef=useRef(null);const handleMouseEnter=()=>{if(playOnHover&&videoRef.current){videoRef.current.play();}};const handleMouseLeave=()=>{if(playOnHover&&videoRef.current){videoRef.current.pause();videoRef.current.currentTime=0;}};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:borderRadius},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,children:/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoFile,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:borderRadius},autoPlay:!playOnHover,loop:true,muted:true,playsInline:true})});}addPropertyControls(VideoPlayer,{videoFile:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},playOnHover:{type:ControlType.Boolean,title:\"Play on Hover\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPlayer.map"],"mappings":"qKAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,uEAAuE,eAAa,cAAY,IAAO,EAAY,EAASA,EAAO,IAAI,EAAoN,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAsB,cAAY,EAAE,iBAA1T,CAAI,GAAa,EAAS,SAAS,EAAS,QAAQ,KAAK,CAAG,EAA4R,iBAA/P,CAAI,GAAa,EAAS,UAAS,EAAS,QAAQ,MAAM,EAAE,EAAS,QAAQ,YAAY,EAAG,EAAiM,SAAsB,EAAK,QAAQ,CAAC,IAAI,EAAS,IAAI,EAAU,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAqB,cAAY,EAAE,SAAS,CAAC,EAAY,KAAK,GAAK,MAAM,GAAK,YAAY,EAAI,CAAC,CAAC,CAAC,CAAE,iBAH5vB,IAA0B,IAAoD,EAG+qB,EAAoB,EAAY,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,iBAAiB,CAAC,MAAM,OAAO,KAAK,CAAC,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,IAAI,EAAE,YAAY,CAAC,KAAK,EAAY,QAAQ,MAAM,gBAAgB,aAAa,GAAM,aAAa,KAAK,cAAc,KAAK,CAAC,CAAC"}