{"version":3,"file":"Video.CvkSYf-R.mjs","names":["useState","useRef","_Fragment","useRef","useCallback","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/IukmxwaXlzVH8akMwQC8/3O5FLPtcUKNzLzULIiSC/LightboxPlayer.js","https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/7qT0r3So12155VV5Jq5x/Video.js"],"sourcesContent":["// YouTube video player with custom thumbnail and lightbox overlay\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Video Player with YouTube, Vimeo, and Upload Support\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 315\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerDisableUnlink\n */export default function LightboxPlayer(props){const{videoSourceSettings={videoSource:\"youtube\",youtubeUrl:\"https://www.youtube.com/watch?v=Sgxbx65IDeM&pp=ygUSc2FtcGxlIHZpZGVvIHNob3J0\",vimeoUrl:\"https://vimeo.com/347119375\",uploadedVideo:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",useCustomThumbnail:false,customThumbnail:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Custom thumbnail\"}},playButtonSettings={useCustomPlayButton:false,customPlayButtonImage:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Custom play button\"},playButtonPosition:\"center\",playButtonColor:\"#FF0000\",playButtonIconColor:\"#FFFFFF\",playButtonSize:80,playButtonOpacity:.9,playButtonBorderRadius:50},onHoverSettings={autoplay:\"off\",audio:\"on\",controls:\"on\",hoverEffect:\"none\"},overlayColor=\"rgba(0, 0, 0, 0.9)\",borderRadius=12}=props;const[isLightboxOpen,setIsLightboxOpen]=useState(false);const[videoId,setVideoId]=useState(\"\");const[vimeoId,setVimeoId]=useState(\"\");const[defaultThumbnail,setDefaultThumbnail]=useState(\"\");const[uploadedVideoThumbnail,setUploadedVideoThumbnail]=useState(\"\");const[isHovered,setIsHovered]=useState(false);const videoRef=useRef(null);// Extract video ID from YouTube URL\nuseEffect(()=>{if(videoSourceSettings.videoSource===\"youtube\"){const extractVideoId=url=>{const regex=/(?:youtube\\.com\\/(?:[^\\/]+\\/.+\\/|(?:v|e(?:mbed)?)\\/|.*[?&]v=)|youtu\\.be\\/)([^\"&?\\/\\s]{11})/;const match=url.match(regex);return match?match[1]:\"\";};const id=extractVideoId(videoSourceSettings.youtubeUrl);setVideoId(id);if(id){setDefaultThumbnail(`https://img.youtube.com/vi/${id}/maxresdefault.jpg`);}}},[videoSourceSettings.youtubeUrl,videoSourceSettings.videoSource]);// Extract video ID from Vimeo URL\nuseEffect(()=>{if(videoSourceSettings.videoSource===\"vimeo\"){const extractVimeoId=url=>{const regex=/(?:vimeo\\.com\\/)([0-9]+)/;const match=url.match(regex);return match?match[1]:\"\";};const id=extractVimeoId(videoSourceSettings.vimeoUrl);setVimeoId(id);if(id){// Vimeo thumbnail requires API call, using a placeholder for now\nsetDefaultThumbnail(`https://vumbnail.com/${id}.jpg`);}}},[videoSourceSettings.vimeoUrl,videoSourceSettings.videoSource]);// Generate thumbnail from uploaded video\nuseEffect(()=>{if(videoSourceSettings.videoSource===\"upload\"&&videoSourceSettings.uploadedVideo&&typeof window!==\"undefined\"){const generateThumbnail=()=>{const video=document.createElement(\"video\");video.crossOrigin=\"anonymous\";video.muted=true;video.onloadeddata=()=>{video.currentTime=.1// Seek to 0.1 seconds to get first frame\n;};video.onseeked=()=>{const canvas=document.createElement(\"canvas\");const ctx=canvas.getContext(\"2d\");if(ctx){canvas.width=video.videoWidth;canvas.height=video.videoHeight;ctx.drawImage(video,0,0,canvas.width,canvas.height);const thumbnailDataUrl=canvas.toDataURL(\"image/jpeg\",.8);setUploadedVideoThumbnail(thumbnailDataUrl);}};video.onerror=()=>{// Fallback to default thumbnail if video can't be loaded\nsetUploadedVideoThumbnail(\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\");};video.src=videoSourceSettings.uploadedVideo;video.load();};generateThumbnail();}},[videoSourceSettings.uploadedVideo,videoSourceSettings.videoSource]);// Handle hover autoplay for uploaded videos\nuseEffect(()=>{if(videoSourceSettings.videoSource===\"upload\"&&videoRef.current&&onHoverSettings.autoplay!==\"off\"){if(isHovered){videoRef.current.play().catch(()=>{// Handle autoplay restrictions\n});}else{videoRef.current.pause();videoRef.current.currentTime=0;}}},[isHovered,videoSourceSettings.videoSource,onHoverSettings.autoplay]);const openLightbox=()=>{startTransition(()=>setIsLightboxOpen(true));};const closeLightbox=()=>{startTransition(()=>setIsLightboxOpen(false));};// Close lightbox on escape key and manage body scroll\nuseEffect(()=>{if(typeof window===\"undefined\")return;const handleKeyDown=e=>{if(e.key===\"Escape\"){closeLightbox();}};if(isLightboxOpen){window.addEventListener(\"keydown\",handleKeyDown);// Block scroll when lightbox is open\ndocument.body.style.overflow=\"hidden\";}else{// Restore scroll when lightbox is closed\ndocument.body.style.overflow=\"\";}return()=>{window.removeEventListener(\"keydown\",handleKeyDown);// Restore scroll on cleanup\ndocument.body.style.overflow=\"\";};},[isLightboxOpen]);const getThumbnailSrc=()=>{if(videoSourceSettings.useCustomThumbnail){return videoSourceSettings.customThumbnail?.src||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\";}if(videoSourceSettings.videoSource===\"upload\"){return uploadedVideoThumbnail||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\";}return defaultThumbnail;};const thumbnailSrc=getThumbnailSrc();const thumbnailAlt=videoSourceSettings.useCustomThumbnail?videoSourceSettings.customThumbnail?.alt||`${videoSourceSettings.videoSource} video thumbnail`:`${videoSourceSettings.videoSource} video thumbnail`;const shouldShowVideo=isHovered&&onHoverSettings.autoplay!==\"off\";const handleMouseEnter=()=>{startTransition(()=>setIsHovered(true));};const handleMouseLeave=()=>{startTransition(()=>setIsHovered(false));};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius,overflow:\"hidden\",cursor:\"pointer\",backgroundColor:\"#000\"},onClick:openLightbox,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();openLightbox();}},tabIndex:0,role:\"button\",\"aria-label\":`Play ${videoSourceSettings.videoSource} video`,children:[!shouldShowVideo&&/*#__PURE__*/_jsx(\"img\",{src:thumbnailSrc,alt:thumbnailAlt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",transition:\"transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease\",...onHoverSettings.autoplay===\"off\"&&isHovered&&{...onHoverSettings.hoverEffect===\"scale\"&&{transform:\"scale(1.05)\"},...onHoverSettings.hoverEffect===\"fade\"&&{opacity:.8}}}}),shouldShowVideo&&videoSourceSettings.videoSource===\"upload\"&&/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoSourceSettings.uploadedVideo,muted:onHoverSettings.audio===\"off\",loop:onHoverSettings.autoplay===\"loop\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}),shouldShowVideo&&videoSourceSettings.videoSource===\"youtube\"&&videoId&&/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube.com/embed/${videoId}?autoplay=1&controls=${onHoverSettings.controls===\"on\"?\"1\":\"0\"}&showinfo=0&rel=0&loop=${onHoverSettings.autoplay===\"loop\"?\"1\":\"0\"}&mute=${onHoverSettings.audio===\"off\"?\"1\":\"0\"}${onHoverSettings.autoplay===\"loop\"?`&playlist=${videoId}`:\"\"}`,style:{width:\"100%\",height:\"100%\",border:\"none\",pointerEvents:\"none\"},allow:\"autoplay; encrypted-media\"}),shouldShowVideo&&videoSourceSettings.videoSource===\"vimeo\"&&vimeoId&&/*#__PURE__*/_jsx(\"iframe\",{src:`https://player.vimeo.com/video/${vimeoId}?autoplay=1&loop=${onHoverSettings.autoplay===\"loop\"?\"1\":\"0\"}&muted=${onHoverSettings.audio===\"off\"?\"1\":\"0\"}&background=${onHoverSettings.controls===\"off\"?\"1\":\"0\"}`,style:{width:\"100%\",height:\"100%\",border:\"none\",pointerEvents:\"none\"},allow:\"autoplay; encrypted-media\"}),(!isHovered||onHoverSettings.autoplay===\"off\")&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",...playButtonSettings.playButtonPosition===\"center\"&&{top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\"},...playButtonSettings.playButtonPosition===\"top-left\"&&{top:\"20px\",left:\"20px\"},...playButtonSettings.playButtonPosition===\"top-right\"&&{top:\"20px\",right:\"20px\"},...playButtonSettings.playButtonPosition===\"bottom-left\"&&{bottom:\"20px\",left:\"20px\"},...playButtonSettings.playButtonPosition===\"bottom-right\"&&{bottom:\"20px\",right:\"20px\"},width:playButtonSettings.playButtonSize,height:playButtonSettings.playButtonSize,borderRadius:\"50%\",backgroundColor:playButtonSettings.useCustomPlayButton?\"transparent\":playButtonSettings.playButtonColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:playButtonSettings.playButtonOpacity,transition:\"opacity 0.2s ease\"},children:playButtonSettings.useCustomPlayButton?/*#__PURE__*/_jsx(\"img\",{src:playButtonSettings.customPlayButtonImage?.src||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Play button\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",borderRadius:`${playButtonSettings.playButtonBorderRadius}%`}}):/*#__PURE__*/_jsx(\"svg\",{width:playButtonSettings.playButtonSize*.4,height:playButtonSettings.playButtonSize*.4,viewBox:\"0 0 24 24\",fill:playButtonSettings.playButtonIconColor,children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 5v14l11-7z\"})})})]}),/*#__PURE__*/_jsx(LightboxManager,{show:isLightboxOpen,videoSource:videoSourceSettings.videoSource,videoId:videoId,vimeoId:vimeoId,uploadedVideo:videoSourceSettings.uploadedVideo,overlayColor:overlayColor,onClose:closeLightbox,onHoverSettings:onHoverSettings})]});}// Component to manage lightbox rendering to document.body\nfunction LightboxManager({show,videoSource,videoId,vimeoId,uploadedVideo,overlayColor,onClose,onHoverSettings}){useEffect(()=>{if(!show||typeof window===\"undefined\")return;// Create lightbox element\nconst lightboxElement=document.createElement(\"div\");lightboxElement.id=\"framer-video-lightbox\";lightboxElement.style.cssText=`\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100vw;\n            height: 100vh;\n            background-color: ${overlayColor};\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            z-index: 2147483647;\n            padding: 20px;\n            pointer-events: auto;\n        `;// Create video container\nconst videoContainer=document.createElement(\"div\");videoContainer.style.cssText=`\n            position: relative;\n            width: 90%;\n            max-width: 900px;\n            aspect-ratio: 16/9;\n            background-color: #000;\n            border-radius: 8px;\n            overflow: hidden;\n        `;// Create video element based on source type\nlet videoElement;if(videoSource===\"youtube\"&&videoId){const iframe=document.createElement(\"iframe\");const autoplayParam=\"1\"// Always autoplay in lightbox\n;const loopParam=onHoverSettings.autoplay===\"loop\"?\"1\":\"0\";const muteParam=onHoverSettings.audio===\"off\"?\"1\":\"0\";iframe.src=`https://www.youtube.com/embed/${videoId}?autoplay=${autoplayParam}&controls=1&showinfo=0&rel=0&loop=${loopParam}&mute=${muteParam}${loopParam===\"1\"?`&playlist=${videoId}`:\"\"}`;iframe.style.cssText=`\n                width: 100%;\n                height: 100%;\n                border: none;\n            `;iframe.allow=\"autoplay; encrypted-media\";iframe.allowFullscreen=true;videoElement=iframe;}else if(videoSource===\"vimeo\"&&vimeoId){const iframe=document.createElement(\"iframe\");const autoplayParam=\"1\"// Always autoplay in lightbox\n;const loopParam=onHoverSettings.autoplay===\"loop\"?\"1\":\"0\";const muteParam=onHoverSettings.audio===\"off\"?\"1\":\"0\";iframe.src=`https://player.vimeo.com/video/${vimeoId}?autoplay=${autoplayParam}&controls=1&loop=${loopParam}&muted=${muteParam}`;iframe.style.cssText=`\n                width: 100%;\n                height: 100%;\n                border: none;\n            `;iframe.allow=\"autoplay; encrypted-media\";iframe.allowFullscreen=true;videoElement=iframe;}else if(videoSource===\"upload\"&&uploadedVideo){const video=document.createElement(\"video\");video.src=uploadedVideo;video.controls=true;video.autoplay=true// Always autoplay in lightbox\n;if(onHoverSettings.autoplay===\"loop\"){video.loop=true;}video.muted=onHoverSettings.audio===\"off\";video.style.cssText=`\n                width: 100%;\n                height: 100%;\n                object-fit: contain;\n            `;videoElement=video;}else{// Fallback for invalid video\nconst errorDiv=document.createElement(\"div\");errorDiv.style.cssText=`\n                width: 100%;\n                height: 100%;\n                display: flex;\n                align-items: center;\n                justify-content: center;\n                color: white;\n                font-size: 18px;\n                text-align: center;\n            `;errorDiv.textContent=\"Invalid video source\";videoElement=errorDiv;}// Create close button\nconst closeButton=document.createElement(\"button\");closeButton.innerHTML=`\n            <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n                <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n            </svg>\n        `;closeButton.style.cssText=`\n            position: fixed;\n            top: 20px;\n            right: 20px;\n            background: rgba(0, 0, 0, 0.7);\n            border: none;\n            color: #fff;\n            font-size: 24px;\n            cursor: pointer;\n            padding: 12px;\n            border-radius: 50%;\n            width: 48px;\n            height: 48px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            z-index: 2147483648;\n            transition: background-color 0.2s ease;\n        `;closeButton.setAttribute(\"aria-label\",\"Close video\");// Add hover effects\ncloseButton.addEventListener(\"mouseenter\",()=>{closeButton.style.backgroundColor=\"rgba(0, 0, 0, 0.9)\";});closeButton.addEventListener(\"mouseleave\",()=>{closeButton.style.backgroundColor=\"rgba(0, 0, 0, 0.7)\";});// Add click handlers\ncloseButton.addEventListener(\"click\",onClose);lightboxElement.addEventListener(\"click\",e=>{if(e.target===lightboxElement){onClose();}});// Assemble elements\nvideoContainer.appendChild(videoElement);lightboxElement.appendChild(videoContainer);lightboxElement.appendChild(closeButton);document.body.appendChild(lightboxElement);// Cleanup function\nreturn()=>{if(document.body.contains(lightboxElement)){document.body.removeChild(lightboxElement);}};},[show,videoSource,videoId,vimeoId,uploadedVideo,overlayColor,onClose,onHoverSettings]);return null;}addPropertyControls(LightboxPlayer,{videoSourceSettings:{type:ControlType.Object,title:\"Video Source\",controls:{videoSource:{type:ControlType.Enum,title:\"Source Type\",options:[\"youtube\",\"vimeo\",\"upload\"],optionTitles:[\"YouTube\",\"Vimeo\",\"Upload\"],defaultValue:\"youtube\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},youtubeUrl:{type:ControlType.String,title:\"YouTube URL\",defaultValue:\"https://www.youtube.com/watch?v=Sgxbx65IDeM&pp=ygUSc2FtcGxlIHZpZGVvIHNob3J0\",placeholder:\"Paste YouTube URL...\",hidden:({videoSource})=>videoSource!==\"youtube\"},vimeoUrl:{type:ControlType.String,title:\"Vimeo URL\",defaultValue:\"https://vimeo.com/347119375\",placeholder:\"Paste Vimeo URL...\",hidden:({videoSource})=>videoSource!==\"vimeo\"},uploadedVideo:{type:ControlType.File,title:\"Upload Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\",\"avi\"],hidden:({videoSource})=>videoSource!==\"upload\"},useCustomThumbnail:{type:ControlType.Boolean,title:\"Thumbnail\",defaultValue:false,enabledTitle:\"Custom\",disabledTitle:\"Auto\"},customThumbnail:{type:ControlType.ResponsiveImage,title:\"Thumbnail Image\",hidden:({useCustomThumbnail})=>!useCustomThumbnail}},defaultValue:{videoSource:\"youtube\",youtubeUrl:\"https://www.youtube.com/watch?v=Sgxbx65IDeM&pp=ygUSc2FtcGxlIHZpZGVvIHNob3J0\",vimeoUrl:\"https://vimeo.com/347119375\",uploadedVideo:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",useCustomThumbnail:false,customThumbnail:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Custom thumbnail\"}}},playButtonSettings:{type:ControlType.Object,title:\"Play Button\",controls:{useCustomPlayButton:{type:ControlType.Boolean,title:\"Play Button\",defaultValue:false,enabledTitle:\"Custom\",disabledTitle:\"Default\"},customPlayButtonImage:{type:ControlType.ResponsiveImage,title:\"Play Button Image\",hidden:({useCustomPlayButton})=>!useCustomPlayButton},playButtonPosition:{type:ControlType.Enum,title:\"Position\",options:[\"center\",\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"],optionTitles:[\"Center\",\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"center\"},playButtonColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FF0000\",hidden:({useCustomPlayButton})=>useCustomPlayButton},playButtonIconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\",hidden:({useCustomPlayButton})=>useCustomPlayButton},playButtonSize:{type:ControlType.Number,title:\"Size\",defaultValue:80,min:40,max:120,step:4,unit:\"px\"},playButtonOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.9,min:.1,max:1,step:.1},playButtonBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:50,min:0,max:100,step:1,unit:\"%\",hidden:({useCustomPlayButton})=>!useCustomPlayButton}},defaultValue:{useCustomPlayButton:false,customPlayButtonImage:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Custom play button\"},playButtonPosition:\"center\",playButtonColor:\"#FF0000\",playButtonIconColor:\"#FFFFFF\",playButtonSize:80,playButtonOpacity:.9,playButtonBorderRadius:50}},onHoverSettings:{type:ControlType.Object,title:\"On Hover\",controls:{autoplay:{type:ControlType.Enum,title:\"Autoplay\",options:[\"off\",\"on\",\"loop\"],optionTitles:[\"Off\",\"On\",\"Loop\"],defaultValue:\"off\",displaySegmentedControl:true},audio:{type:ControlType.Enum,title:\"Audio\",options:[\"on\",\"off\"],optionTitles:[\"On\",\"Off\"],defaultValue:\"on\",displaySegmentedControl:true,hidden:({autoplay})=>autoplay===\"off\"},controls:{type:ControlType.Enum,title:\"Controls\",options:[\"on\",\"off\"],optionTitles:[\"On\",\"Off\"],defaultValue:\"on\",displaySegmentedControl:true,hidden:({autoplay})=>autoplay===\"off\"},hoverEffect:{type:ControlType.Enum,title:\"Hover Effect\",options:[\"none\",\"fade\",\"scale\"],optionTitles:[\"None\",\"Fade\",\"Scale\"],defaultValue:\"none\",displaySegmentedControl:true,hidden:({autoplay})=>autoplay!==\"off\"}},defaultValue:{autoplay:\"off\",audio:\"on\",controls:\"on\",hoverEffect:\"none\"}},overlayColor:{type:ControlType.Color,title:\"Lightbox Background\",defaultValue:\"rgba(0, 0, 0, 0.9)\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:12,min:0,max:100,step:1,unit:\"%\",description:\"Created by [Arafat](https://fiverr.com/arafat_2925)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LightboxPlayer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"315\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"560\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LightboxPlayer.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsInCurrentNavigationTarget,RenderTarget}from\"framer\";import{isMotionValue,useInView}from\"framer-motion\";import{borderRadiusControl,defaultEvents,useIsBrowserSafari,useIsOnCanvas,useOnEnter,useOnExit,useRadius,useRenderTarget}from\"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\";// https://framer.com/m/framer/default-utils.js@^0.45.0\nimport{memo,useCallback,useEffect,useMemo,useRef,useState}from\"react\";var ObjectFitType;(function(ObjectFitType){ObjectFitType[\"Fill\"]=\"fill\";ObjectFitType[\"Contain\"]=\"contain\";ObjectFitType[\"Cover\"]=\"cover\";ObjectFitType[\"None\"]=\"none\";ObjectFitType[\"ScaleDown\"]=\"scale-down\";})(ObjectFitType||(ObjectFitType={}));var SrcType;(function(SrcType){SrcType[\"Video\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));const defaultVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";// Reduce renders\nfunction getProps(props){const{width,height,topLeft,topRight,bottomRight,bottomLeft,id,children,...rest}=props;return rest;}/**\n * VIDEO\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 112\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export function Video(props){const newProps=getProps(props);return /*#__PURE__*/_jsx(VideoMemo,{...newProps});}function usePlaybackControls(videoRef){const isInCurrentNavigationTarget=useIsInCurrentNavigationTarget();const requestingPlay=useRef(false);const isPlayingRef=useRef(false);const setProgress=useCallback(rawProgress=>{if(!videoRef.current)return;const newProgress=(rawProgress===1?.999:rawProgress)*videoRef.current.duration;const isAlreadySet=Math.abs(videoRef.current.currentTime-newProgress)<.1;if(videoRef.current.duration>0&&!isAlreadySet){videoRef.current.currentTime=newProgress;}},[]);const play=useCallback(()=>{const video=videoRef.current;if(!video)return;video.preload=\"auto\"// makes sure browsers don't throttle: https://html.spec.whatwg.org/multipage/media.html#:~:text=When%20the%20media%20resource%20is%20playing%2C%20hints%20to%20the%20user%20agent%20that%20bandwidth%20is%20to%20be%20considered%20scarce%2C%20e.g.%20suggesting%20throttling%20the%20download%20so%20that%20the%20media%20data%20is%20obtained%20at%20the%20slowest%20possible%20rate%20that%20still%20maintains%20consistent%20playback.\n;const isPlaying=video.currentTime>0&&video.onplaying&&!video.paused&&!video.ended&&video.readyState>=video.HAVE_CURRENT_DATA;if(!isPlaying&&video&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;isPlayingRef.current=true;video.play().catch(e=>{})// It's likely fine, swallow error\n.finally(()=>requestingPlay.current=false);}},[]);const pause=useCallback(()=>{if(!videoRef.current||requestingPlay.current)return;videoRef.current.pause();isPlayingRef.current=false;},[]);return{play,pause,setProgress,isPlaying:isPlayingRef};}function useAutoplayBehavior({playingProp,muted,loop,playsinline,controls}){const[initialPlayingProp]=useState(()=>playingProp);const[hasPlayingPropChanged,setHasPlayingPropChanged]=useState(false);if(playingProp!==initialPlayingProp&&!hasPlayingPropChanged){setHasPlayingPropChanged(true);}const behavesAsGif=// passing `playing === true` on mount indicates that the video should\n// autoplay, like a GIF\ninitialPlayingProp&&muted&&loop&&playsinline&&!controls&&// Some users of the <Video> component use it by wrapping it with\n// another smart component and adding their own controls on top. (The\n// controls use transitions to control the video: e.g., when clicking\n// the play button, the smart component will transition to a state with\n// <Video playing={true} />.) In this case, we don't want the video to\n// behave as a gif, as it will be weird if the video suddenly started\n// acting as such (and auto-pausing when leaving the viewport) as soon\n// as the site visitor mutes it and clicks “Play”.\n!hasPlayingPropChanged;let autoplay;if(behavesAsGif)autoplay=\"on-viewport\";else if(initialPlayingProp)autoplay=\"on-mount\";else autoplay=\"no-autoplay\";return autoplay;}const VideoMemo=/*#__PURE__*/memo(function VideoInner(props){const{// default props\nsrcType=\"URL\",srcUrl,srcFile=\"\",posterEnabled=false,controls=false,playing=true,loop=true,muted=true,playsinline=true,restartOnEnter=false,objectFit=\"cover\",backgroundColor=\"rgba(0,0,0,0)\",radius=0,volume=25,startTime:startTimeProp=0,poster,playing:playingProp,progress,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp}=props;const videoRef=useRef();const isSafari=useIsBrowserSafari();const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const renderTarget=useRenderTarget();const isStaticRenderer=isOnCanvas||renderTarget===RenderTarget.export;const borderRadius=useRadius(props);// Hard-coding `autoplayBehavior` and `isInViewport` when on canvas as a\n// tiny perf optimization. isStaticRenderer won’t change through the lifecycle of\n// the component, so using these hooks conditionally should be safe\nconst autoplayBehavior=isStaticRenderer?\"no-autoplay\":useAutoplayBehavior({playingProp,muted,loop,playsinline,controls});const isInViewport=isStaticRenderer?true:useInView(videoRef);const isCloseToViewport=isStaticRenderer?false:useInView(videoRef,{margin:\"10%\",once:true});// Video elements behave oddly at 100% duration\nconst startTime=startTimeProp===100?99.9:startTimeProp;const{play,pause,setProgress,isPlaying}=usePlaybackControls(videoRef);// Pause/play via props\nuseEffect(()=>{if(isStaticRenderer)return;if(autoplayBehavior===\"on-viewport\")return;if(playingProp)play();else pause();},[autoplayBehavior,playingProp]);// Pause/play via viewport\nuseEffect(()=>{if(isStaticRenderer)return;// this also explicitly retries playing for videos that play on-mount, which could fail if they're not muted for example\nif(isInViewport&&playingProp&&autoplayBehavior!==\"no-autoplay\")play();if(autoplayBehavior!==\"on-viewport\")return;pause();},[autoplayBehavior,isInViewport,playingProp]);useEffect(()=>{if(!isOnCanvas||poster||posterEnabled||startTime||!videoRef.current)return;// forces a poster to show up when the video is in an iframe; this is needed when `poster` changes\nvideoRef.current.currentTime=.01;},[posterEnabled,poster,startTime]);/**\n     * The Video component has some effects that sync the video element with props\n     * like `startTime`, `progress`, etc. React calls these effects whenever these\n     * props change. However, it also calls them on the first mount, and this is\n     * troublesome – if we’re doing SSR, and the user changed the video state before\n     * the video was hydrated, the initial `useEffect` call will reset the video\n     * state. To avoid this, we use this flag.\n     */const isMountedAndReadyForProgressChanges=useRef(false);// Allow scrubbling via progress prop\n// 1) Handle cases when the progress prop itself changes\nuseEffect(()=>{if(!isMountedAndReadyForProgressChanges.current){isMountedAndReadyForProgressChanges.current=true;return;}const rawProgressValue=isMotionValue(progress)?progress.get():(progress??0)*.01;setProgress(// When the progress value exists (e.g. <Video startTime={10}\n// progress={50} />), we respect the `progress` value over\n// `startTime`, even if `startTime` changes. That’s because\n// `startTime` == start == changing it shouldn’t affect the current\n// progress\n(rawProgressValue??0)||// Then why fall back to `startTime` when `progress` doesn’t exist,\n// you might ask? Now, that’s for\n// - canvas UX: we want the video progress to change when the user\n//   is scrobbling the “Start Time” in component settings.\n// - backwards compatibility: maybe some users *are* scrobbling\n//   using `startTime` instead of `progress`? We don’t know, and it\n//   always supported it, so let’s not break it\n(startTime??0)/100);},[startTime,srcFile,srcUrl,progress]);// 2) Handle cases when the motion value inside the progress prop changes\nuseEffect(()=>{if(!isMotionValue(progress))return;return progress.on(\"change\",value=>setProgress(value));},[progress]);// (Prototyping) Checking if we need to play on navigation enter\nuseOnEnter(()=>{if(wasPausedOnLeave.current===null)return;if(videoRef.current){// if (restartOnEnter) setProgress(0)\nif(!wasEndedOnLeave&&loop||!wasPausedOnLeave.current)play();}});// (Prototyping) Pausing & saving playing state on navigation exit\nuseOnExit(()=>{if(videoRef.current){wasEndedOnLeave.current=videoRef.current.ended;wasPausedOnLeave.current=videoRef.current.paused;pause();}});const src=useMemo(()=>{let fragment=\"\";// if (\n//     startTime > 0 &&\n//     videoRef.current &&\n//     !isNaN(videoRef.current.duration) &&\n//     !isStaticRenderer\n// ) {\n//     console.log(startTime, videoRef.current.duration)\n//     fragment = `#t=${startTime * videoRef.current.duration}`\n// }\nif(srcType===\"URL\")return srcUrl+fragment;if(srcType===\"Upload\")return srcFile+fragment;},[srcType,srcFile,srcUrl,startTime]);// Autoplay via JS to work in Safari\nuseEffect(()=>{if(isSafari&&videoRef.current&&autoplayBehavior===\"on-mount\"){setTimeout(()=>play(),50);}},[]);// Volume Control\nuseEffect(()=>{if(videoRef.current&&!muted)videoRef.current.volume=(volume??0)/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{const video=videoRef.current;if(!video)return;if(video.currentTime<.3&&startTime>0)setProgress((startTime??0)*.01);if(// when the component updates (e.g. only srcFile/url changes), and the video was already playing, keep playing\nisPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport)play();};return /*#__PURE__*/_jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>onSeeked?.(e),onPause:e=>onPause?.(e),onPlay:e=>onPlay?.(e),onEnded:e=>onEnd?.(e),autoPlay:isPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport,preload:isPlaying.current?\"auto\":isStaticRenderer&&!poster?\"metadata\":autoplayBehavior!==\"on-mount\"&&!isCloseToViewport?\"none\":// `autoplay` overrides this too\n\"metadata\",poster:posterEnabled&&!srcFile&&srcUrl===defaultVideo?\"https://framerusercontent.com/images/5ILRvlYXf72kHSVHqpa3snGzjU.jpg\":posterEnabled&&poster?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isStaticRenderer?true:muted,playsInline:playsinline,style:{cursor:!!onClick?\"pointer\":\"auto\",width:\"100%\",height:\"100%\",borderRadius,display:\"block\",objectFit:objectFit,backgroundColor:backgroundColor,objectPosition:\"50% 50%\"}});});Video.displayName=\"Video\";function capitalizeFirstLetter(value){return value.charAt(0).toUpperCase()+value.slice(1);}export function titleCase(value){const groups=value.match(/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\\d+/gu)||[];return groups.map(capitalizeFirstLetter).join(\" \");}const objectFitOptions=[\"cover\",\"fill\",\"contain\",\"scale-down\",\"none\"];addPropertyControls(Video,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"URL\",\"Upload\"]},srcUrl:{type:ControlType.String,title:\"URL\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",hidden(props){return props.srcType===\"Upload\";}},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"mp4\",\"webm\"],hidden(props){return props.srcType===\"URL\";}},playing:{type:ControlType.Boolean,title:\"Playing\",enabledTitle:\"Yes\",disabledTitle:\"No\"},...borderRadiusControl,posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\"},poster:{type:ControlType.Image,title:\"Image\",hidden:({posterEnabled})=>!posterEnabled,description:\"We recommend adding a poster. [Learn more](https://www.framer.com/help/articles/how-are-videos-optimized-in-framer/).\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\"},startTime:{title:\"Start Time\",type:ControlType.Number,min:0,max:100,step:.1,unit:\"%\"},loop:{type:ControlType.Boolean,title:\"Loop\",enabledTitle:\"Yes\",disabledTitle:\"No\"},objectFit:{type:ControlType.Enum,title:\"Fit\",options:objectFitOptions,optionTitles:objectFitOptions.map(titleCase)},// restartOnEnter: {\n//     type: ControlType.Boolean,\n//     title: \"On ReEnter\",\n//     enabledTitle: \"Restart\",\n//     disabledTitle: \"Resume\",\n// },\ncontrols:{type:ControlType.Boolean,title:\"Controls\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\"},volume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted,defaultValue:25},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"112\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map"],"mappings":"4ZAUG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,sBAAoB,CAAC,YAAY,UAAU,WAAW,8EAA8E,SAAS,8BAA8B,cAAc,uEAAuE,mBAAmB,GAAM,gBAAgB,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,CAAC,CAAC,qBAAmB,CAAC,oBAAoB,GAAM,sBAAsB,CAAC,IAAI,sEAAsE,IAAI,qBAAqB,CAAC,mBAAmB,SAAS,gBAAgB,UAAU,oBAAoB,UAAU,eAAe,GAAG,kBAAkB,GAAG,uBAAuB,GAAG,CAAC,kBAAgB,CAAC,SAAS,MAAM,MAAM,KAAK,SAAS,KAAK,YAAY,OAAO,CAAC,eAAa,qBAAqB,eAAa,IAAI,EAAW,CAAC,EAAe,GAAmBA,EAAS,GAAM,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAG,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAG,CAAM,CAAC,EAAiB,GAAqBA,EAAS,GAAG,CAAM,CAAC,EAAuB,GAA2BA,EAAS,GAAG,CAAM,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAO,EAASC,EAAO,KAAK,CACttC,MAAc,CAAC,GAAG,EAAoB,cAAc,UAAU,CAA6L,IAAM,GAA7K,GAAK,CAA0G,IAAM,EAAM,EAAI,MAA7G,6FAAyH,CAAC,OAAO,EAAM,EAAM,GAAG,KAA6B,EAAoB,WAAW,CAAC,EAAW,EAAG,CAAI,GAAI,EAAoB,8BAA8B,EAAG,oBAAoB,GAAK,CAAC,EAAoB,WAAW,EAAoB,YAAY,CAAC,CACxd,MAA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