{"version":3,"file":"VideoOverlay.CAMlXIZS.mjs","names":["useRef","useCallback","useState","useMemo","React.useState","React.useRef","_Fragment","__esmMin","ne","init_npm_react_18_3_1","pe","ee","_e","de","init_jsx_runtime","Ha","init_npm_react_dom_18_3_1","c","p","ce","isMotionValue","useInView","init_framer_motion_DhsWWWsN","useIsInCurrentNavigationTarget","addPropertyControls","ControlType","init_framer_DKgW_P28","RenderTarget","defaultEvents","useOnExit","borderRadiusControl","useIsOnCanvas","useIsBrowserSafari","useRenderTarget","init_OIjZRBmWDcIE2B6qgG1j","useRadius","useOnEnter","getProps","rest","props","Video","newProps","VideoMemo","usePlaybackControls","isInCurrentNavigationTarget","requestingPlay","isPlayingRef","setProgress","videoRef","newProgress","rawProgress","isAlreadySet","video","useAutoplayBehavior","initialPlayingProp","playingProp","hasPlayingPropChanged","setHasPlayingPropChanged","behavesAsGif","muted","loop","playsinline","controls","autoplay","capitalizeFirstLetter","value","titleCase","ObjectFitType","SrcType","defaultVideo","objectFitOptions","init_Video","\"Fill\"","\"Contain\"","\"Cover\"","\"None\"","\"ScaleDown\"","\"Video\"","\"Url\"","startTimeProp","isSafari","wasPausedOnLeave","wasEndedOnLeave","isOnCanvas","renderTarget","isStaticRenderer","borderRadius","autoplayBehavior","isInViewport","isCloseToViewport","startTime","play","pause","poster","posterEnabled","isMountedAndReadyForProgressChanges","rawProgressValue","progress","srcFile","srcUrl","src","srcType","volume","onSeeked","onPause","onPlay","onEnd","isPlaying","onClick","VideoOverlay","isOpen","setIsOpen","btnHover","setBtnHover","iframeRef","isEmbed","videoUrl","isYouTube","isVimeo","getEmbedUrl","youtubeMatch","url","vimeoMatch","pauseVideo","handleOverlayClick","handleCloseClick","handleVideoContainerClick","handleWatchButtonClick","iconSize","buttonIconSize","iconColor","buttonColor","hasCustomIcon","buttonIcon","fontStyle","buttonFont","IconComponent","outClass","inClass","l","containerWidth","maxWidth","effectStyles","effect","showButton","buttonUrl","buttonSpacing","buttonLabel","init_VideoOverlay"],"sources":["https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/7qT0r3So12155VV5Jq5x/Video.js","https:/framerusercontent.com/modules/oQeF4znAkso5oO1aIKWa/Cz2xZd4AcPgETnWhhbcY/VideoOverlay.js"],"sourcesContent":["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","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import*as React from\"react\";import{createPortal}from\"react-dom\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VideoOverlay(props){const{videoUrl,effect,containerWidth,maxWidth,buttonLabel,buttonUrl,buttonSpacing,showButton,buttonFont,buttonColor,buttonIcon,buttonIconSize}=props;const[isOpen,setIsOpen]=React.useState(false);const[btnHover,setBtnHover]=React.useState(\"idle\");// Refs to reach the media elements\nconst videoRef=React.useRef(null);const iframeRef=React.useRef(null);const isEmbed=videoUrl.includes(\"youtube.com\")||videoUrl.includes(\"youtu.be\")||videoUrl.includes(\"vimeo.com\");const isYouTube=videoUrl.includes(\"youtube.com\")||videoUrl.includes(\"youtu.be\");const isVimeo=videoUrl.includes(\"vimeo.com\");const getEmbedUrl=url=>{const youtubeMatch=url.match(/(?:youtube\\.com\\/(?:watch\\?v=|embed\\/|v\\/)|youtu\\.be\\/)([^?&/]+)/);const vimeoMatch=url.match(/(?:vimeo\\.com\\/|player\\.vimeo\\.com\\/video\\/)(\\d+)/);if(youtubeMatch){// enablejsapi=1 is required for postMessage control\nreturn`https://www.youtube.com/embed/${youtubeMatch[1]}?autoplay=1&controls=1&enablejsapi=1`;}else if(vimeoMatch){return`https://player.vimeo.com/video/${vimeoMatch[1]}?autoplay=1&controls=1`;}return url;};const pauseVideo=()=>{if(isEmbed&&iframeRef.current){if(isYouTube){// YouTube IFrame API postMessage\niframeRef.current.contentWindow.postMessage(JSON.stringify({event:\"command\",func:\"pauseVideo\",args:[]}),\"*\");}else if(isVimeo){// Vimeo player postMessage\niframeRef.current.contentWindow.postMessage(JSON.stringify({method:\"pause\"}),\"*\");}}else if(videoRef.current){videoRef.current.pause();}};const handleOverlayClick=e=>{e.stopPropagation();setIsOpen(false);};const handleCloseClick=e=>{e.stopPropagation();setIsOpen(false);};const handleVideoContainerClick=e=>{e.stopPropagation();};const handleWatchButtonClick=e=>{// Stop propagation so the overlay doesn't close\ne.stopPropagation();pauseVideo();// Let the href navigate normally (default not prevented)\n};const iconSize=buttonIconSize||16;const iconColor=buttonColor||\"#ffffff\";const hasCustomIcon=buttonIcon&&typeof buttonIcon===\"string\";const fontStyle=buttonFont||{};const DefaultArrow=({className})=>/*#__PURE__*/_jsx(\"svg\",{className:className,width:iconSize,height:iconSize,viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3 13L13 3M13 3H5M13 3V11\",stroke:iconColor,strokeWidth:\"1.75\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const CustomIcon=({className})=>/*#__PURE__*/_jsx(\"img\",{className:className,src:buttonIcon,width:iconSize,height:iconSize,style:{objectFit:\"contain\",display:\"block\"}});const IconComponent=hasCustomIcon?CustomIcon:DefaultArrow;const outClass=btnHover===\"in\"?\"icon-exit\":btnHover===\"out\"?\"icon-return\":\"icon-rest\";const inClass=btnHover===\"in\"?\"icon-enter\":btnHover===\"out\"?\"icon-leave\":\"icon-waiting\";return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        .close-button {\n            position: absolute;\n            top: -48px;\n            right: 0;\n            background: rgba(28, 28, 28, 0.6);\n            backdrop-filter: blur(8px);\n            cursor: pointer;\n            width: 40px;\n            height: 40px;\n            border: 1px solid #767676;\n            border-radius: 50px;\n            display: flex;\n            justify-content: center;\n            align-items: center;\n        }\n\n        .video-container {\n            position: relative;\n            width: ${containerWidth}%;\n            max-width: ${maxWidth}px;\n        }\n\n        .video-wrapper {\n            position: relative;\n            width: 100%;\n            padding-bottom: 56.25%;\n            height: 0;\n        }\n\n        .video-wrapper iframe,\n        .video-wrapper video {\n            position: absolute;\n            top: 0;\n            left: 0;\n            width: 100%;\n            height: 100%;\n            border-radius: 8px;\n            border: none;\n        }\n\n        .overlay {\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100vw;\n            height: 100vh;\n            background-color: rgba(0, 0, 0, 0.8);\n            display: flex;\n            justify-content: center;\n            align-items: center;\n            z-index: 1000;\n        }\n\n        .arrow-icon-wrapper {\n            position: relative;\n            width: ${iconSize}px;\n            height: ${iconSize}px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            overflow: hidden;\n            flex-shrink: 0;\n        }\n\n        .arrow-icon-wrapper > * {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n        }\n\n        .icon-rest   { transform: translate(-50%, -50%); opacity: 1; animation: none; }\n        .icon-exit   { animation: arrowOut 0.25s ease forwards; }\n        .icon-return { animation: arrowReturn 0.25s ease forwards; }\n\n        .icon-waiting { transform: translate(-150%, 50%); opacity: 0; animation: none; }\n        .icon-enter   { animation: arrowIn 0.25s ease forwards; }\n        .icon-leave   { animation: arrowLeave 0.25s ease forwards; }\n\n        @keyframes arrowOut {\n            from { transform: translate(-50%, -50%); opacity: 1; }\n            to   { transform: translate(50%, -150%); opacity: 0; }\n        }\n        @keyframes arrowIn {\n            from { transform: translate(-150%, 50%); opacity: 0; }\n            to   { transform: translate(-50%, -50%); opacity: 1; }\n        }\n        @keyframes arrowLeave {\n            from { transform: translate(-50%, -50%); opacity: 1; }\n            to   { transform: translate(50%, -150%); opacity: 0; }\n        }\n        @keyframes arrowReturn {\n            from { transform: translate(-150%, 50%); opacity: 0; }\n            to   { transform: translate(-50%, -50%); opacity: 1; }\n        }\n\n        .watch-button-row {\n            display: flex;\n            justify-content: center;\n            align-items: center;\n        }\n\n        @media (min-width: 768px) {\n            .close-button {\n                top: -56px;\n                width: 48px;\n                height: 48px;\n            }\n        }\n        `}),/*#__PURE__*/_jsx(\"button\",{style:{width:\"100%\",height:\"100%\",cursor:\"pointer\",background:\"transparent\",border:\"none\",padding:0,outline:\"none\"},onClick:()=>setIsOpen(true),children:isOpen&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{className:\"overlay\",style:{animation:effectStyles[effect]||\"none\"},onClick:handleOverlayClick,children:/*#__PURE__*/_jsxs(\"div\",{className:\"video-container\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"close-button\",onClick:handleCloseClick,children:/*#__PURE__*/_jsx(\"svg\",{width:\"15\",height:\"14\",viewBox:\"0 0 15 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M14.1476 0.868337L13.3274 0L7.17537 6.12945L1.02338 0L0.203125 0.868337L6.35512 6.99779L0.203125 13.1272L1.02338 13.9445L7.17537 7.81505L13.3274 13.9445L14.1476 13.1272L8.04695 6.99779L14.1476 0.868337Z\",fill:\"white\"})})}),/*#__PURE__*/_jsx(\"div\",{className:\"video-wrapper\",onClick:handleVideoContainerClick,children:isEmbed?/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:getEmbedUrl(videoUrl),allow:\"autoplay; fullscreen\",allowFullScreen:true}):/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoUrl,controls:true,autoPlay:true})}),showButton&&buttonUrl&&/*#__PURE__*/_jsx(\"div\",{className:\"watch-button-row\",style:{marginTop:buttonSpacing},onClick:handleVideoContainerClick,children:/*#__PURE__*/_jsxs(\"a\",{href:buttonUrl,target:\"_blank\",rel:\"noopener noreferrer\",onMouseEnter:()=>setBtnHover(\"in\"),onMouseLeave:()=>setBtnHover(\"out\"),onClick:handleWatchButtonClick,style:{...fontStyle,display:\"inline-flex\",alignItems:\"center\",gap:\"8px\",background:\"transparent\",color:iconColor,padding:\"12px 4px\",border:\"none\",cursor:\"pointer\",textDecoration:\"none\",whiteSpace:\"nowrap\"},children:[buttonLabel,/*#__PURE__*/_jsxs(\"span\",{className:\"arrow-icon-wrapper\",children:[/*#__PURE__*/_jsx(IconComponent,{className:outClass}),/*#__PURE__*/_jsx(IconComponent,{className:inClass})]})]})})]})}),document.body)})]});}const effectStyles={\"Fade In\":\"fadeIn 0.3s ease-in-out\",\"Slide from Top\":\"slideFromTop 0.3s ease-in-out\",\"Slide from Bottom\":\"slideFromBottom 0.3s ease-in-out\",\"Scale In\":\"scaleIn 0.3s ease-in-out\"};addPropertyControls(VideoOverlay,{videoUrl:{type:ControlType.String,title:\"Video URL\",defaultValue:\"https://www.w3schools.com/html/mov_bbb.mp4\"},containerWidth:{type:ControlType.Number,title:\"Width (%)\",defaultValue:90,min:10,max:100,step:1},maxWidth:{type:ControlType.Number,defaultValue:1200,min:200,max:2e3,step:5},effect:{type:ControlType.Enum,title:\"Effect\",options:[\"None\",\"Fade In\",\"Slide from Top\",\"Slide from Bottom\",\"Scale In\"],defaultValue:\"Fade In\"},showButton:{type:ControlType.Boolean,title:\"Show Button\",defaultValue:true},buttonLabel:{type:ControlType.String,title:\"Label\",defaultValue:\"Watch on YouTube\",hidden:props=>!props.showButton},buttonUrl:{type:ControlType.String,title:\"Button URL\",defaultValue:\"https://www.youtube.com\",hidden:props=>!props.showButton},buttonSpacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:20,min:0,max:80,step:1,unit:\"px\",hidden:props=>!props.showButton},buttonColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ffffff\",hidden:props=>!props.showButton},buttonFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",hidden:props=>!props.showButton},buttonIcon:{type:ControlType.Image,title:\"Icon (SVG/PNG)\",hidden:props=>!props.showButton},buttonIconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:16,min:8,max:64,step:1,unit:\"px\",hidden:props=>!props.showButton}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoOverlay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoOverlay.map"],"mappings":"A,uZAEA,SAASqC,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,UAAQ,WAAS,cAAY,aAAW,KAAG,YAAS,GAAGC,GAAMC,EAAM,OAAOD,CAAK,CAQxH,SAAgBE,EAAM,EAAM,CAAC,IAAMC,EAASJ,EAASE,CAAK,EAAE,MAAoB,gBAAKG,EAAU,CAAC,GAAGD,CAAQ,CAAC,CAAE,CAAC,SAASE,EAAoB,EAAS,CAAC,IAAMC,EAA4BrB,EAA+B,EAAQsB,EAAe7C,EAAO,EAAK,EAAQ8C,EAAa9C,EAAO,EAAK,EAAQ+C,EAAY9C,EAAY,GAAa,CAAC,GAAG,CAAC+C,EAAS,QAAQ,OAAO,IAAMC,GAAaC,IAAc,EAAE,KAAKA,GAAaF,EAAS,QAAQ,SAAeG,EAAa,KAAK,IAAIH,EAAS,QAAQ,YAAYC,CAAW,EAAE,GAAMD,EAAS,QAAQ,SAAS,GAAG,CAACG,IAAc,EAAS,QAAQ,YAAYF,EAAa,EAAE,CAAC,CAAC,EAEha,MAAM,CAAC,KAFsahD,MAAgB,CAAC,IAAMmD,EAAMJ,EAAS,QAAYI,IAAa,EAAM,QAA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