{"version":3,"file":"Video.DLANNPhr.mjs","names":["useState","useRef","useMemo","useState","startTransition","useRef","useCallback","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/3JM3SNikv1xLLEtu8M5r/HeIkAvqBQpDc63dFpKI3/FlowMarquee.js","https:/framerusercontent.com/modules/cQptfWGBAnSmyUExFkke/Qf9dHuugNMZSvd9jyOax/FlipCard.js","https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/IZ0vSV62Dv7ax4rBiGUk/Video.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,useMemo,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useAnimationFrame}from\"framer-motion\";/**\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 500\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FlowMarquee(props){const{cards=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Fashion 1\"}},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Fashion 2\"}},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Fashion 3\"}}],speed=1,gap=20,backgroundColor=\"#000000\",direction=\"left\",cardRadius=12}=props;const isStatic=useIsStaticRenderer();const[offset,setOffset]=useState(0);const containerRef=useRef(null);const[containerWidth,setContainerWidth]=useState(1e3);// 1. Handle Responsive Widths\nuseEffect(()=>{if(!containerRef.current)return;const observer=new ResizeObserver(entries=>{for(const entry of entries){setContainerWidth(entry.contentRect.width);}});observer.observe(containerRef.current);return()=>observer.disconnect();},[]);// 2. Calculate dynamic card width\nconst cardWidth=useMemo(()=>{if(containerWidth<600)return containerWidth-gap;if(containerWidth<1024)return containerWidth/2-gap;return containerWidth/3-gap;},[containerWidth,gap]);// Normalize cards\nconst normalizedCards=useMemo(()=>{if(!cards||cards.length===0)return[];return cards.map(card=>({...card,image:card.image||{src:\"\",alt:\"\"}}));},[cards]);// Duplicate cards for seamless loop\nconst duplicatedCards=useMemo(()=>{if(normalizedCards.length===0)return[];// We add extra duplicates to ensure coverage while scrolling backwards\nreturn[...normalizedCards,...normalizedCards,...normalizedCards,...normalizedCards];},[normalizedCards]);// Calculate total loop width\nconst loopWidth=useMemo(()=>{return normalizedCards.length*(cardWidth+gap);},[normalizedCards.length,cardWidth,gap]);// 3. Animation Loop (Updated for Direction)\nuseAnimationFrame((time,delta)=>{if(isStatic||loopWidth===0)return;startTransition(()=>{setOffset(prev=>{let newOffset;if(direction===\"left\"){// Moving Left: Increase offset\nnewOffset=prev+speed*(delta/16);// Reset if we've scrolled past the loop width\nreturn newOffset>=loopWidth?newOffset-loopWidth:newOffset;}else{// Moving Right: Decrease offset\nnewOffset=prev-speed*(delta/16);// Reset if we've scrolled past 0 (into negative)\nreturn newOffset<0?newOffset+loopWidth:newOffset;}});});});// Static Preview\nif(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{...containerStyle,backgroundColor},children:normalizedCards.slice(0,3).map((card,index)=>/*#__PURE__*/_jsx(\"div\",{style:{width:cardWidth,height:\"100%\",marginRight:gap,flexShrink:0,position:\"relative\",borderRadius:cardRadius,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:card.image.src,alt:card.image.alt,style:imageStyle})},index))});}return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...containerStyle,backgroundColor},children:duplicatedCards.map((card,index)=>{// Calculate position\nconst itemX=index*(cardWidth+gap)-offset;return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",width:cardWidth,height:\"100%\",left:itemX,top:0,overflow:\"hidden\",willChange:\"transform\",borderRadius:cardRadius},children:/*#__PURE__*/_jsx(\"img\",{src:card.image.src,alt:card.image.alt,style:imageStyle})},index);})});}// -- Styles --\nconst containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",overflow:\"hidden\",position:\"relative\"};const imageStyle={width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"};// -- Property Controls --\naddPropertyControls(FlowMarquee,{cards:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\"}},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\"}},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\"}}]},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1.5,min:0,max:10,step:.1},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:10,min:0,max:100},cardRadius:{// Added control for radius\ntype:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:200},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FlowMarquee\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"500\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FlowMarquee.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import React from\"react\";/**\n * Flip Card\n *\n * A card that flips to reveal content on the back side.\n * Supports image or video backgrounds on both sides with text overlay.\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FlipCardVideoInteraction(props){const{frontText=\"Front Side\",backText=\"Back Side\",frontMediaType=\"image\",backMediaType=\"image\",frontImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Front background\"},backImage={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Back background\"},frontVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",backVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",frontVideoSize=\"contain\",backVideoSize=\"contain\",frontImageFit=\"contain\",backImageFit=\"contain\",frontOverlayColor=\"rgba(0, 0, 0, 0)\",backOverlayColor=\"rgba(0, 0, 0, 0)\",frontTextColor=\"#FFFFFF\",backTextColor=\"#FFFFFF\",borderRadius=16,flipDirection=\"horizontal\",trigger=\"hover\",frontFont,backFont,size=1,frontHorizontalAlign=\"center\",frontVerticalAlign=\"center\",backHorizontalAlign=\"center\",backVerticalAlign=\"center\",bounce=false,bounceScale=1,easing=\"easeInOut\",duration=.6,style,autoFlip=false,autoFlipInterval=3,pauseOnHover=true,fitContent=false,bounceDuration=.8}=props;const[isFlipped,setIsFlipped]=useState(false);const[isPaused,setIsPaused]=useState(false);// Auto-flip effect based on time\nReact.useEffect(()=>{if(!autoFlip||pauseOnHover&&isPaused)return;const interval=setInterval(()=>{startTransition(()=>setIsFlipped(prev=>!prev));},autoFlipInterval*1e3);return()=>clearInterval(interval);},[autoFlip,autoFlipInterval,isPaused,pauseOnHover]);const handleFlip=()=>{if(!autoFlip){startTransition(()=>setIsFlipped(!isFlipped));}};const isHorizontal=flipDirection===\"horizontal\";const containerStyle={width:fitContent?\"auto\":\"100%\",height:fitContent?\"auto\":\"100%\",minWidth:fitContent?\"auto\":5,minHeight:fitContent?\"auto\":5,perspective:\"1000px\",cursor:trigger===\"click\"?\"pointer\":\"default\",transform:`scale(${size})`,...style};const cardInnerStyle={width:fitContent?\"auto\":\"100%\",height:fitContent?\"auto\":\"100%\",position:\"relative\",transformStyle:\"preserve-3d\"};const faceStyle={position:fitContent?\"relative\":\"absolute\",width:fitContent?\"auto\":\"100%\",height:fitContent?\"auto\":\"100%\",backfaceVisibility:\"hidden\",borderRadius:`${borderRadius}px`,overflow:\"hidden\"};const backFaceStyle={...faceStyle,transform:isHorizontal?\"rotateY(180deg)\":\"rotateX(180deg)\",...fitContent?{position:\"absolute\",inset:0}:{}};const getContentStyle=(horizontalAlign,verticalAlign)=>{const justifyContentMap={top:\"flex-start\",center:\"center\",bottom:\"flex-end\"};const alignItemsMap={left:\"flex-start\",center:\"center\",right:\"flex-end\"};return{position:\"absolute\",inset:0,display:\"flex\",flexDirection:\"column\",justifyContent:justifyContentMap[verticalAlign],alignItems:alignItemsMap[horizontalAlign],padding:\"clamp(16px, 5vw, 24px)\",textAlign:horizontalAlign};};const renderMedia=(type,image,video,videoSize,imageFit)=>{if(type===\"video\"){return /*#__PURE__*/_jsx(\"video\",{src:video,autoPlay:true,muted:true,loop:true,playsInline:true,style:{position:fitContent?\"relative\":\"absolute\",top:fitContent?\"auto\":0,left:fitContent?\"auto\":0,width:fitContent?\"auto\":\"100%\",height:fitContent?\"auto\":\"100%\",maxWidth:\"100%\",objectFit:videoSize}});}return /*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{position:fitContent?\"relative\":\"absolute\",top:fitContent?\"auto\":0,left:fitContent?\"auto\":0,width:fitContent?\"auto\":\"100%\",height:fitContent?\"auto\":\"100%\",maxWidth:\"100%\",objectFit:imageFit}});};const getEasingArray=()=>{switch(easing){case\"ease\":return[.25,.1,.25,1];case\"easeIn\":return[.42,0,1,1];case\"easeOut\":return[0,0,.58,1];case\"easeInOut\":return[.4,0,.2,1];case\"linear\":return[0,0,1,1];case\"circOut\":return[0,.55,.45,1];case\"backOut\":return[.34,1.56,.64,1];default:return[.4,0,.2,1];}};return /*#__PURE__*/_jsx(motion.div,{style:containerStyle,onClick:trigger===\"click\"&&!autoFlip?handleFlip:undefined,onHoverStart:trigger===\"hover\"&&!autoFlip?()=>startTransition(()=>setIsFlipped(true)):pauseOnHover&&autoFlip?()=>startTransition(()=>setIsPaused(true)):undefined,onHoverEnd:trigger===\"hover\"&&!autoFlip?()=>startTransition(()=>setIsFlipped(false)):pauseOnHover&&autoFlip?()=>startTransition(()=>setIsPaused(false)):undefined,whileHover:trigger===\"click\"?{scale:1.02}:undefined,whileTap:trigger===\"click\"?{scale:.98}:undefined,children:/*#__PURE__*/_jsxs(motion.div,{style:cardInnerStyle,animate:{rotateY:isHorizontal?isFlipped?180:0:0,rotateX:!isHorizontal?isFlipped?180:0:0},transition:bounce?{type:\"spring\",stiffness:120*bounceScale,damping:25,duration:bounceDuration}:{duration:duration,ease:getEasingArray()},children:[/*#__PURE__*/_jsxs(\"div\",{style:faceStyle,children:[renderMedia(frontMediaType,frontImage,frontVideo,frontVideoSize,frontImageFit),/*#__PURE__*/_jsx(\"div\",{style:{...getContentStyle(frontHorizontalAlign,frontVerticalAlign),backgroundColor:frontOverlayColor},children:/*#__PURE__*/_jsx(\"span\",{style:{...frontFont,color:frontTextColor},children:frontText})})]}),/*#__PURE__*/_jsxs(\"div\",{style:backFaceStyle,children:[renderMedia(backMediaType,backImage,backVideo,backVideoSize,backImageFit),/*#__PURE__*/_jsx(\"div\",{style:{...getContentStyle(backHorizontalAlign,backVerticalAlign),backgroundColor:backOverlayColor},children:/*#__PURE__*/_jsx(\"span\",{style:{...backFont,color:backTextColor},children:backText})})]})]})});}addPropertyControls(FlipCardVideoInteraction,{frontText:{type:ControlType.String,title:\"Front Text\",defaultValue:\"Front Side\",displayTextArea:true},backText:{type:ControlType.String,title:\"Back Text\",defaultValue:\"Back Side\",displayTextArea:true},frontMediaType:{type:ControlType.Enum,title:\"Front Media\",options:[\"image\",\"video\"],optionTitles:[\"Image\",\"Video\"],defaultValue:\"image\",displaySegmentedControl:true},backMediaType:{type:ControlType.Enum,title:\"Back Media\",options:[\"image\",\"video\"],optionTitles:[\"Image\",\"Video\"],defaultValue:\"image\",displaySegmentedControl:true},frontImage:{type:ControlType.ResponsiveImage,title:\"Front Image\",hidden:({frontMediaType})=>frontMediaType!==\"image\"},backImage:{type:ControlType.ResponsiveImage,title:\"Back Image\",hidden:({backMediaType})=>backMediaType!==\"image\"},frontVideo:{type:ControlType.File,title:\"Front Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"],hidden:({frontMediaType})=>frontMediaType!==\"video\"},frontVideoSize:{type:ControlType.Enum,title:\"Front Video Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"contain\",displaySegmentedControl:true,hidden:({frontMediaType})=>frontMediaType!==\"video\"},frontImageFit:{type:ControlType.Enum,title:\"Front Image Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"contain\",displaySegmentedControl:true,hidden:({frontMediaType})=>frontMediaType!==\"image\"},backVideo:{type:ControlType.File,title:\"Back Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"],hidden:({backMediaType})=>backMediaType!==\"video\"},backVideoSize:{type:ControlType.Enum,title:\"Back Video Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"contain\",displaySegmentedControl:true,hidden:({backMediaType})=>backMediaType!==\"video\"},backImageFit:{type:ControlType.Enum,title:\"Back Image Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"contain\",displaySegmentedControl:true,hidden:({backMediaType})=>backMediaType!==\"image\"},frontOverlayColor:{type:ControlType.Color,title:\"Front Overlay\",defaultValue:\"rgba(0, 0, 0, 0)\"},backOverlayColor:{type:ControlType.Color,title:\"Back Overlay\",defaultValue:\"rgba(0, 0, 0, 0)\"},frontTextColor:{type:ControlType.Color,title:\"Front Text Color\",defaultValue:\"#FFFFFF\"},backTextColor:{type:ControlType.Color,title:\"Back Text Color\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:16,min:0,max:50,unit:\"px\"},flipDirection:{type:ControlType.Enum,title:\"Flip Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],defaultValue:\"horizontal\",displaySegmentedControl:true},trigger:{type:ControlType.Enum,title:\"Trigger\",options:[\"hover\",\"click\"],optionTitles:[\"Hover\",\"Click\"],defaultValue:\"hover\",displaySegmentedControl:true},frontFont:{type:ControlType.Font,title:\"Front Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"24px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\",textAlign:\"center\"}},backFont:{type:ControlType.Font,title:\"Back Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\",textAlign:\"center\"}},size:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:.5,max:2,step:.1},frontHorizontalAlign:{type:ControlType.Enum,title:\"Front H Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true},frontVerticalAlign:{type:ControlType.Enum,title:\"Front V Align\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],defaultValue:\"center\",displaySegmentedControl:true},backHorizontalAlign:{type:ControlType.Enum,title:\"Back H Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true},backVerticalAlign:{type:ControlType.Enum,title:\"Back V Align\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],defaultValue:\"center\",displaySegmentedControl:true},bounce:{type:ControlType.Boolean,title:\"Bounce Effect\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},bounceScale:{type:ControlType.Number,title:\"Bounce Scale\",defaultValue:1,min:.1,max:3,step:.1,hidden:({bounce})=>!bounce},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"ease\",\"easeIn\",\"easeOut\",\"easeInOut\",\"linear\",\"circOut\",\"backOut\"],optionTitles:[\"Ease\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Linear\",\"Circ Out\",\"Back Out\"],defaultValue:\"easeInOut\",displaySegmentedControl:false,hidden:({bounce})=>bounce},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.6,min:.1,max:2,step:.1,unit:\"s\",hidden:({bounce})=>bounce},autoFlip:{type:ControlType.Boolean,title:\"Auto Flip\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},autoFlipInterval:{type:ControlType.Number,title:\"Flip Interval\",defaultValue:3,min:.5,max:10,step:.5,unit:\"s\",hidden:({autoFlip})=>!autoFlip},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on Hover\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:({autoFlip})=>!autoFlip},bounceDuration:{type:ControlType.Number,title:\"Bounce Duration\",defaultValue:.8,min:.2,max:3,step:.1,unit:\"s\",hidden:({bounce})=>!bounce}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FlipCardVideoInteraction\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FlipCard.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsInCurrentNavigationTarget}from\"framer\";import{isMotionValue,useInView}from\"framer-motion\";import{borderRadiusControl,defaultEvents,useIsBrowserSafari,useIsOnCanvas,useOnEnter,useOnExit,useRadius}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{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={}));// 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 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 isPlaying=videoRef.current.currentTime>0&&videoRef.current.onplaying&&!videoRef.current.paused&&!videoRef.current.ended&&videoRef.current.readyState>videoRef.current.HAVE_CURRENT_DATA;if(!isPlaying&&videoRef.current&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;videoRef.current.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();},[]);return{play,pause,setProgress};}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;}/**\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 */let isMountedAndReadyForProgressChanges=false;const VideoMemo=/*#__PURE__*/memo(function VideoInner(props){const{srcType,srcFile,srcUrl,playing:playingProp,muted,playsinline,controls,progress,objectFit,backgroundColor,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,poster,posterEnabled,startTime:startTimeProp,volume,loop}=props;const videoRef=useRef();const isSafari=useIsBrowserSafari();const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const borderRadius=useRadius(props);// Hard-coding `autoplayBehavior` and `isInViewport` when on canvas as a\n// tiny perf optimization. isOnCanvas won’t change through the lifecycle of\n// the component, so using these hooks conditionally should be safe\nconst autoplayBehavior=isOnCanvas?\"no-autoplay\":useAutoplayBehavior({playingProp,muted,loop,playsinline,controls});const isInViewport=isOnCanvas?true:useInView(videoRef);// Video elements behave oddly at 100% duration\nconst startTime=startTimeProp===100?99.9:startTimeProp;const{play,pause,setProgress}=usePlaybackControls(videoRef);// Pause/play via props\nuseEffect(()=>{if(isOnCanvas)return;if(playingProp)play();else pause();},[playingProp]);// Pause/play via viewport\nuseEffect(()=>{if(isOnCanvas)return;if(autoplayBehavior!==\"on-viewport\")return;if(isInViewport)play();else pause();},[autoplayBehavior,isInViewport]);// Allow scrubbling via progress prop\n// 1) Handle cases when the progress prop itself changes\nuseEffect(()=>{if(!isMountedAndReadyForProgressChanges){isMountedAndReadyForProgressChanges=true;return;}const rawProgressValue=isMotionValue(progress)?progress.get():(progress!==null&&progress!==void 0?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!==null&&rawProgressValue!==void 0?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!==null&&startTime!==void 0?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//     !isOnCanvas\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!==null&&volume!==void 0?volume:0)/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{if(!videoRef.current)return;if(videoRef.current.currentTime<.3)setProgress((startTime!==null&&startTime!==void 0?startTime:0)*.01);if(autoplayBehavior===\"on-mount\")play();};return /*#__PURE__*/_jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>onSeeked===null||onSeeked===void 0?void 0:onSeeked(e),onPause:e=>onPause===null||onPause===void 0?void 0:onPause(e),onPlay:e=>onPlay===null||onPlay===void 0?void 0:onPlay(e),onEnded:e=>onEnd===null||onEnd===void 0?void 0:onEnd(e),autoPlay:autoplayBehavior===\"on-mount\",poster:posterEnabled?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isOnCanvas?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\";Video.defaultProps={srcType:\"URL\",srcUrl:\"https://assets.mixkit.co/videos/preview/mixkit-shining-sun-in-the-sky-surrounded-by-moving-clouds-31793-small.mp4\",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:0};const groupsRegex=/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\\d+/gu;function capitalizeFirstLetter(value){return value.charAt(0).toUpperCase()+value.slice(1);}export function titleCase(value){const groups=value.match(groupsRegex)||[];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\",placeholder:\"../example.mp4\",hidden(props){return props.srcType===\"Upload\";},description:\"Hosted video file URL. For YouTube, use the YouTube component.\"},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\"},posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\"},poster:{type:ControlType.Image,title:\" \",hidden:({posterEnabled})=>!posterEnabled},backgroundColor:{type:ControlType.Color,title:\"Background\"},...borderRadiusControl,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\"},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\"},volume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"112\"}},\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map"],"mappings":"odAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,CAAC,MAAM,CAAC,IAAI,sEAAsE,IAAI,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,oEAAoE,IAAI,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,uEAAuE,IAAI,WAAW,CAAC,CAAC,EAAE,QAAM,EAAE,MAAI,GAAG,kBAAgB,UAAU,YAAU,OAAO,aAAW,IAAI,EAAY,EAAS,EAAoB,EAAO,CAAC,EAAO,GAAWA,EAAS,CAAC,EAAQ,EAAaC,EAAO,IAAI,EAAO,CAAC,EAAe,GAAmBD,EAAS,GAAG,EACnlB,MAAc,CAAC,GAAG,CAAC,EAAa,QAAQ,OAAO,IAAM,EAAS,IAAI,eAAe,GAAS,CAAC,IAAI,IAAM,KAAS,EAAS,EAAkB,EAAM,YAAY,KAAK,CAAG,CAAC,EAAyC,OAAvC,EAAS,QAAQ,EAAa,OAAO,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CA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