{"version":3,"file":"Video_Lightbox_Smooth.CBbFNHaI.mjs","names":["useState","useRef","isEmbed","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/x6H2JOwPQYt5w3oppFmN/Lfg5jPnaYxDsYMzvHOCW/Video_Lightbox_Smooth.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useCallback,useRef,useLayoutEffect,useMemo}from\"react\";import{createPortal}from\"react-dom\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// --- Helper functions for parsing Embed URLs ---\nfunction getYouTubeId(url){if(!url)return null;const regExp=/^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|&v=)([^#&?]*).*/;const match=url.match(regExp);return match&&match[2].length===11?match[2]:null;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n */export default function VideoLightbox(props){const{videoUrl,videoFile,srcUrl,srcFile,youtubeUrl,poster,loop,controls,objectFit,backgroundColor,borderRadius,startTime,backdropColor,lightboxMaxWidth,lightboxMaxHeight,zIndex,transition,lockScroll,triggerText,triggerVariant,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[isOpen,setIsOpen]=useState(false);const[isAnimatingOut,setIsAnimatingOut]=useState(false);// Bounds tracking for flawless FLIP animation\nconst[bounds,setBounds]=useState({top:0,left:0,width:0,height:0});const[targetBounds,setTargetBounds]=useState({top:0,left:0,width:0,height:0});const inlineRef=useRef(null);const videoContainerRef=useRef(null);const mediaRef=useRef(null);const[isReady,setIsReady]=useState(false);const[aspectRatio,setAspectRatio]=useState(16/9);const effectiveVideoUrl=videoUrl||youtubeUrl||srcUrl||\"\";const effectiveVideoFile=videoFile||srcFile||\"\";const isYouTubeUrl=typeof effectiveVideoUrl===\"string\"&&(effectiveVideoUrl.includes(\"youtube.com\")||effectiveVideoUrl.includes(\"youtu.be\"));const hasMediaSource=Boolean(isYouTubeUrl||effectiveVideoFile||effectiveVideoUrl);const resolvedSourceType=isYouTubeUrl?\"YouTube\":\"HTML5\";// 1. Create a single, permanent Media Element (Video or IFrame)\nuseEffect(()=>{if(typeof document===\"undefined\")return;const isEmbed=isYouTubeUrl;let el;if(isEmbed){el=document.createElement(\"iframe\");el.setAttribute(\"frameBorder\",\"0\");el.setAttribute(\"allow\",\"autoplay; fullscreen; picture-in-picture\");// Disable interactions while in grid to allow clicking the lightbox wrapper\nel.style.pointerEvents=\"none\";}else{el=document.createElement(\"video\");el.playsInline=true;}mediaRef.current=el;setIsReady(true);return()=>{if(!isEmbed&&el){const v=el;v.pause();v.removeAttribute(\"src\");v.load();}// FIX: Safely remove the element from the DOM to prevent stacking\n// ghost elements when changing sourceType on the canvas\nif(el&&el.parentElement){el.parentElement.removeChild(el);}mediaRef.current=null;setIsReady(false);};},[isYouTubeUrl]);// 2. Fetch Automatic Thumbnails for YouTube\nconst[fetchedThumbnail,setFetchedThumbnail]=useState(\"\");useEffect(()=>{let isMounted=true;const fetchThumbnails=async()=>{if(isYouTubeUrl){const id=getYouTubeId(effectiveVideoUrl);if(id&&isMounted){setFetchedThumbnail(`https://img.youtube.com/vi/${id}/maxresdefault.jpg`);}}else{if(isMounted)setFetchedThumbnail(\"\");}};if(!poster){fetchThumbnails();}else{setFetchedThumbnail(\"\");}return()=>{isMounted=false;};},[isYouTubeUrl,effectiveVideoUrl,poster]);// Fallback logic for preview image: Custom Poster -> Auto-Fetched Thumbnail -> None\nconst activePoster=poster||fetchedThumbnail;// 3. Sync Framer Props to the Media Element\nuseEffect(()=>{const el=mediaRef.current;if(!el)return;const isEmbed=isYouTubeUrl;if(isEmbed){const iframe=el;let embedUrl=\"\";const playParam=isOpen?1:0;const muteParam=0;const loopParam=loop?1:0;const controlsParam=1;const id=getYouTubeId(effectiveVideoUrl);if(id){embedUrl=`https://www.youtube.com/embed/${id}?autoplay=${playParam}&mute=${muteParam}&modestbranding=1&rel=0&controls=${controlsParam}&playsinline=1&loop=${loopParam}&playlist=${id}`;}if(iframe.src!==embedUrl)iframe.src=embedUrl;iframe.style.pointerEvents=isOpen?\"auto\":\"none\";}else{const v=el;const activeSrc=effectiveVideoFile||effectiveVideoUrl;if(v.src!==activeSrc)v.src=activeSrc;v.muted=false;v.loop=loop;v.controls=isOpen?controls:false;if(activePoster)v.poster=activePoster;else v.removeAttribute(\"poster\");if(isOpen){v.play().catch(()=>{});}else{v.pause();}v.style.objectFit=objectFit;}el.style.width=\"100%\";el.style.height=\"100%\";el.style.display=\"block\";el.style.backgroundColor=\"transparent\";el.style.outline=\"none\";el.style.opacity=isOpen?\"1\":\"0\";},[isReady,isYouTubeUrl,effectiveVideoUrl,effectiveVideoFile,loop,activePoster,objectFit,isOpen,controls]);// 4. Start Time & Aspect Ratio Setup (HTML5 Video Only)\nconst hasSetStartTime=useRef(false);useEffect(()=>{hasSetStartTime.current=false;},[effectiveVideoUrl,effectiveVideoFile,resolvedSourceType]);useEffect(()=>{const v=mediaRef.current;if(!v||isYouTubeUrl)return;const applyMetadata=()=>{if(v.videoWidth&&v.videoHeight){setAspectRatio(v.videoWidth/v.videoHeight);}if(!hasSetStartTime.current&&startTime>0&&v.duration>0){v.currentTime=startTime/100*v.duration;hasSetStartTime.current=true;}};v.addEventListener(\"loadedmetadata\",applyMetadata);if(v.readyState>=1)applyMetadata();return()=>v.removeEventListener(\"loadedmetadata\",applyMetadata);},[isReady,startTime,isYouTubeUrl]);// 5. Target Bounds Math\nconst getTargetBounds=useCallback(()=>{const v=mediaRef.current;// Fallback to default 16/9 for iframes since videoWidth is undefined\nconst vidAspect=v&&v.videoWidth&&v.videoHeight?v.videoWidth/v.videoHeight:aspectRatio;const maxW=window.innerWidth*lightboxMaxWidth/100;const maxH=window.innerHeight*lightboxMaxHeight/100;let targetW=maxW;let targetH=maxW/vidAspect;if(targetH>maxH){targetH=maxH;targetW=maxH*vidAspect;}return{top:(window.innerHeight-targetH)/2,left:(window.innerWidth-targetW)/2,width:targetW,height:targetH};},[lightboxMaxWidth,lightboxMaxHeight,aspectRatio]);// 6. Initial Mount to Inline Container\nuseLayoutEffect(()=>{if(!isOpen&&!isAnimatingOut&&isReady&&videoContainerRef.current&&mediaRef.current){if(mediaRef.current.parentElement!==videoContainerRef.current){videoContainerRef.current.appendChild(mediaRef.current);}}},[isReady,isOpen,isAnimatingOut]);// 7. Open / Close Handlers\nconst handleOpen=useCallback(()=>{if(isCanvas||!inlineRef.current)return;const rect=inlineRef.current.getBoundingClientRect();setBounds({top:rect.top,left:rect.left,width:rect.width,height:rect.height});setTargetBounds(getTargetBounds());if(mediaRef.current&&!isYouTubeUrl){mediaRef.current.controls=controls;}// Broadcast that a lightbox is opening\nwindow.dispatchEvent(new Event(\"lightbox-opened\"));setIsOpen(true);},[isCanvas,controls,getTargetBounds,isYouTubeUrl]);const handleClose=useCallback(()=>{if(!inlineRef.current)return;const rect=inlineRef.current.getBoundingClientRect();setBounds({top:rect.top,left:rect.left,width:rect.width,height:rect.height});if(mediaRef.current&&!isYouTubeUrl){mediaRef.current.controls=false;}// Broadcast that grid videos can resume\nwindow.dispatchEvent(new Event(\"lightbox-closed\"));setIsAnimatingOut(true);setIsOpen(false);},[isYouTubeUrl]);// 8. Responsive Resize while Open\nuseEffect(()=>{if(!isOpen)return;const handleResize=()=>setTargetBounds(getTargetBounds());window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[isOpen,getTargetBounds]);// 9. Escape Key & Scroll Lock\nuseEffect(()=>{if(isCanvas||!isOpen)return;const originalOverflow=document.body.style.overflow;if(lockScroll)document.body.style.overflow=\"hidden\";const handleKeyDown=e=>{if(e.key===\"Escape\")handleClose();};window.addEventListener(\"keydown\",handleKeyDown);document.addEventListener(\"keydown\",handleKeyDown);return()=>{if(lockScroll)document.body.style.overflow=originalOverflow;window.removeEventListener(\"keydown\",handleKeyDown);document.removeEventListener(\"keydown\",handleKeyDown);};},[isOpen,isCanvas,lockScroll,handleClose]);// 10. Portal Transport logic\nconst portalVideoRef=useCallback(node=>{if(node&&mediaRef.current){node.appendChild(mediaRef.current);}},[]);const handleExitComplete=()=>{setIsAnimatingOut(false);};const triggerElement=useMemo(()=>{const isWithText=triggerVariant===\"With text\";const wrapperRestBackground=\"rgba(228, 221, 214, 0.9)\";const wrapperHoverBackground=isWithText?\"var(--token-478765ca-608b-40c9-9fb0-fb63c8387554)\":\"transparent\";const playCircleRestBackground=\"rgb(255, 250, 244)\";const playCircleHoverBackground=isWithText?\"rgb(255, 250, 244)\":\"rgba(255, 250, 244, 0.7)\";return /*#__PURE__*/_jsxs(motion.button,{type:\"button\",\"aria-label\":\"Open video lightbox\",initial:\"rest\",animate:\"rest\",whileHover:\"hover\",variants:{rest:{backgroundColor:wrapperRestBackground},hover:{backgroundColor:wrapperHoverBackground}},transition:{type:\"spring\",duration:1,bounce:.2,delay:0},style:{height:50,minWidth:50,borderRadius:50,border:\"none\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:isWithText?10:0,padding:isWithText?\"0px 20px 0px 0px\":0,cursor:\"pointer\",appearance:\"none\",WebkitAppearance:\"none\",outline:\"none\",whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(motion.div,{variants:{rest:{backgroundColor:playCircleRestBackground},hover:{backgroundColor:playCircleHoverBackground}},style:{width:50,height:50,borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"svg\",{width:\"12.09\",height:\"14.42\",viewBox:\"0 0 12.09 14.42\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M0 0V14.42L12.09 7.21L0 0Z\",fill:\"rgb(151, 37, 23)\"})})}),isWithText&&/*#__PURE__*/_jsx(\"span\",{style:{minWidth:\"max-content\",color:\"rgb(151, 37, 23)\",fontSize:14,lineHeight:\"1.2em\",fontWeight:500,letterSpacing:\"-0.01em\"},children:triggerText||\"Př\\xedběh prodeje\"})]});},[triggerText,triggerVariant]);return /*#__PURE__*/_jsxs(\"div\",{ref:inlineRef,style:{...style,width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:isOpen||isAnimatingOut?\"transparent\":backgroundColor,borderRadius:borderRadius,overflow:\"hidden\",display:\"grid\",cursor:\"pointer\"},onClick:handleOpen,children:[(isOpen||isAnimatingOut)&&/*#__PURE__*/_jsx(\"div\",{style:{gridArea:\"1 / 1\",width:bounds.width||\"100%\",height:bounds.height||\"100%\",pointerEvents:\"none\"}}),activePoster&&!isOpen&&!isAnimatingOut&&/*#__PURE__*/_jsx(\"img\",{src:activePoster,alt:\"Video thumbnail\",onError:e=>{// Fallback for YouTube videos missing a maxresdefault image\nif(e.currentTarget.src.includes(\"maxresdefault.jpg\")){e.currentTarget.src=e.currentTarget.src.replace(\"maxresdefault.jpg\",\"mqdefault.jpg\"// OPRAVA: mqdefault (16:9) namísto hqdefault (4:3) odstraní vypálené černé pruhy\n);}},style:{gridArea:\"1 / 1\",position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",pointerEvents:\"none\",zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{ref:videoContainerRef,style:{gridArea:\"1 / 1\",width:\"100%\",height:\"100%\"}}),!hasMediaSource&&!isOpen&&/*#__PURE__*/_jsx(\"div\",{style:{gridArea:\"1 / 1\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#FFFFFF\",fontSize:14,fontWeight:500,textAlign:\"center\",padding:\"16px\",zIndex:2,pointerEvents:\"none\"},children:\"Video nebylo nalezeno.\"}),!isOpen&&!isAnimatingOut&&/*#__PURE__*/_jsx(\"div\",{style:{gridArea:\"1 / 1\",position:\"absolute\",inset:0,//position: \"relative\",\nzIndex:2,//width: \"100%\",\n//height: \"100%\",\ndisplay:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{onClick:e=>{e.stopPropagation();handleOpen();},style:{pointerEvents:\"auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:triggerElement})})]}),!isCanvas&&typeof document!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(AnimatePresence,{onExitComplete:handleExitComplete,children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{initial:{backgroundColor:\"rgba(0, 0, 0, 0)\"},animate:{backgroundColor:backdropColor},exit:{backgroundColor:\"rgba(0, 0, 0, 0)\"},transition:transition,onClick:e=>{e.stopPropagation();handleClose();},style:{position:\"fixed\",inset:0,zIndex:zIndex,pointerEvents:\"auto\"},children:[/*#__PURE__*/_jsx(motion.button,{type:\"button\",\"aria-label\":\"Zavř\\xedt video\",onClick:e=>{e.stopPropagation();handleClose();},whileHover:{scale:1.08,opacity:.82},whileTap:{scale:.94},transition:{duration:.14},style:{position:\"fixed\",top:Math.max(12,targetBounds.top-50),left:targetBounds.left+targetBounds.width-22,width:44,height:44,border:\"none\",background:\"transparent\",color:\"#FFFFFF\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",zIndex:zIndex+2,padding:0,outline:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6L18 18M18 6L6 18\",stroke:\"currentColor\",strokeWidth:\"2.25\",strokeLinecap:\"round\"})})}),/*#__PURE__*/_jsx(motion.div,{ref:portalVideoRef,onClick:e=>e.stopPropagation(),initial:{top:bounds.top,left:bounds.left,width:bounds.width,height:bounds.height,borderRadius:borderRadius},animate:{top:targetBounds.top,left:targetBounds.left,width:targetBounds.width,height:targetBounds.height,borderRadius:borderRadius},exit:{top:bounds.top,left:bounds.left,width:bounds.width,height:bounds.height,borderRadius:borderRadius},transition:transition,style:{position:\"absolute\",backgroundColor:backgroundColor,overflow:\"hidden\",willChange:\"transform, width, height, top, left\"},children:!hasMediaSource&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#FFFFFF\",fontSize:16,fontWeight:600,textAlign:\"center\",padding:\"20px\"},children:\"Video nebylo nalezeno.\"})})]})}),document.body)]});}VideoLightbox.defaultProps={videoUrl:\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",videoFile:\"\",borderRadius:0,backgroundColor:\"#000000\",startTime:0,loop:true,objectFit:\"cover\",controls:true,backdropColor:\"rgba(0, 0, 0, 0.85)\",lightboxMaxWidth:90,lightboxMaxHeight:90,zIndex:99,lockScroll:true,triggerText:\"Př\\xedběh prodeje\",triggerVariant:\"With text\",transition:{type:\"spring\",stiffness:420,damping:46,mass:.65,restSpeed:.5,restDelta:.5}};addPropertyControls(VideoLightbox,{videoUrl:{type:ControlType.String,title:\"Video URL\",defaultValue:\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"},videoFile:{type:ControlType.File,title:\"Upload Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\",\"m4v\"]},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"},poster:{type:ControlType.Image,title:\"Custom Image\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},startTime:{type:ControlType.Number,title:\"Start Time\",defaultValue:0,min:0,max:100,unit:\"%\",displayStepper:true},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},objectFit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"fill\",\"contain\",\"scale-down\",\"none\"],optionTitles:[\"Cover\",\"Fill\",\"Contain\",\"Scale Down\",\"None\"],defaultValue:\"cover\"},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},transition:{type:ControlType.Transition,title:\"Transition\"},backdropColor:{type:ControlType.Color,title:\"Lightbox BG\",defaultValue:\"rgba(0, 0, 0, 0.85)\"},lightboxMaxWidth:{type:ControlType.Number,title:\"Max Width (vw)\",defaultValue:90,min:10,max:100,displayStepper:true},lightboxMaxHeight:{type:ControlType.Number,title:\"Max Height (vh)\",defaultValue:90,min:10,max:100,displayStepper:true},zIndex:{type:ControlType.Number,title:\"Z-Index\",defaultValue:99,min:0,max:999999,displayStepper:false},lockScroll:{type:ControlType.Boolean,title:\"Lock Scroll\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Explore [more components](https://dub.sh/daniyal-framer)\\nMade by [Daniyal](https://dub.sh/daniyal-threads)\"},triggerText:{type:ControlType.String,title:\"Trigger Text\",defaultValue:\"Př\\xedběh prodeje\",hidden:props=>props.triggerVariant===\"Basic\"},triggerVariant:{type:ControlType.Enum,title:\"Variant\",defaultValue:\"With text\",options:[\"With text\",\"Basic\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoLightbox\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"300\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video_Lightbox_Smooth.map"],"mappings":"mTACA,SAAS,EAAa,EAAI,CAAC,GAAG,CAAC,EAAI,OAAO,KAAiF,IAAM,EAAM,EAAI,MAAM,8DAAM,EAAE,OAAO,GAAO,EAAM,EAAE,CAAC,SAAS,GAAG,EAAM,GAAG,IAAK,CAKvM,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,YAAU,SAAO,UAAQ,aAAW,SAAO,OAAK,WAAS,YAAU,kBAAgB,eAAa,YAAU,iBAAc,mBAAiB,oBAAkB,SAAO,aAAW,aAAW,cAAY,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