{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/NzDEWuBFjBzTrYIzHrJm/s57aq0NW7nMyYbX7GyQn/Video_Component.js"],
  "sourcesContent": ["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useInView}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Video_Component(props){const{videoURL,muted,controls,autoPause}=props;const containerRef=useRef(null);const videoRef=useRef(null);const isInView=useInView(containerRef,{amount:1})// 50% visibility\n;useEffect(()=>{if(videoRef.current){if(isInView){videoRef.current.play();}else if(autoPause){videoRef.current.pause();}}},[isInView]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoURL,muted:muted,controls:controls,loop:true,playsInline:true,style:{width:\"100%\",height:\"100%\"}})});}addPropertyControls(Video_Component,{videoURL:{title:\"Video URL\",type:ControlType.String,defaultValue:\"https://www.w3schools.com/html/mov_bbb.mp4\"},muted:{title:\"Muted\",type:ControlType.Boolean,defaultValue:true},controls:{title:\"Controls\",type:ControlType.Boolean,defaultValue:true},autoPause:{title:\"Pause when out of view\",type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Video_Component\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video_Component.map"],
  "mappings": "4EAIkB,SAARA,EAAiCC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,MAAAC,EAAM,SAAAC,EAAS,UAAAC,CAAS,EAAEJ,EAAYK,EAAaC,EAAO,IAAI,EAAQC,EAASD,EAAO,IAAI,EAAQE,EAASC,EAAUJ,EAAa,CAAC,OAAO,CAAC,CAAC,EAC5M,OAAAK,EAAU,IAAI,CAAIH,EAAS,UAAYC,EAAUD,EAAS,QAAQ,KAAK,EAAWH,GAAWG,EAAS,QAAQ,MAAM,EAAI,EAAE,CAACC,CAAQ,CAAC,EAAsBG,EAAK,MAAM,CAAC,IAAIN,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,SAAsBM,EAAK,QAAQ,CAAC,IAAIJ,EAAS,IAAIN,EAAS,MAAMC,EAAM,SAASC,EAAS,KAAK,GAAK,YAAY,GAAK,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAACS,EAAoBb,EAAgB,CAAC,SAAS,CAAC,MAAM,YAAY,KAAKc,EAAY,OAAO,aAAa,4CAA4C,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,SAAS,CAAC,MAAM,WAAW,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,UAAU,CAAC,MAAM,yBAAyB,KAAKA,EAAY,QAAQ,aAAa,EAAI,CAAC,CAAC",
  "names": ["Video_Component", "props", "videoURL", "muted", "controls", "autoPause", "containerRef", "pe", "videoRef", "isInView", "useInView", "ue", "p", "addPropertyControls", "ControlType"]
}
