{"version":3,"file":"Video.DJ2AGhlT.mjs","names":["useRef","useState","useRef","useCallback","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/5al7X0wNtaoDRZccWNoK/tyLpwCeg78T6S7A7wpsn/CrossCompInteractions_Prod.js","https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/Sn64gjTwaJh0TFAuaV07/Video.js"],"sourcesContent":["function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType,addPropertyControls,RenderTarget}from\"framer\";import{useEffect,useRef,cloneElement,useState,useInsertionEffect}from\"react\";import{useInView}from\"framer-motion\";// ------------------------------------------------------------ //\n// PROPERTY CONTROLS\n// ------------------------------------------------------------ //\naddPropertyControls(CrossCompInteractions,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"trigger\",\"target\"],optionTitles:[\"Trigger\",\"Target\"],defaultValue:\"trigger\",displaySegmentedControl:true},//----------------------------- trigger ----------------------------- //\ninteractionId:{type:ControlType.String,title:\"ID\",defaultValue:\"interaction-1\",hidden:props=>props.mode===\"target\"},interaction:{type:ControlType.Enum,title:\"On\",options:[\"mouseEnter\",\"mouseLeave\",\"mouseDown\",\"click\",\"appear\"],optionTitles:[\"Mouse Enter\",\"Mouse Leave\",\"Click Start\",\"Click\",\"Appear\"],defaultValue:\"click\",hidden:props=>props.mode===\"target\"},offScreen:{type:ControlType.Enum,title:\"Off Screen\",options:[\"play\",\"pause\"],optionTitles:[\"Play\",\"Pause\"],defaultValue:\"pause\",displaySegmentedControl:true,hidden:props=>props.mode===\"target\"||props.interaction!==\"appear\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:10,step:.1,unit:\"s\",displayStepper:true,hidden:props=>props.mode===\"target\"},//----------------------------- target ----------------------------- //\nnativeComponent:{type:ControlType.ComponentInstance,title:\"Component\",hidden:props=>props.mode===\"trigger\"},componentWidth:{type:ControlType.Enum,title:\"Width\",options:[\"default\",\"fill\"],optionTitles:[\"Default\",\"Fill\"],defaultValue:\"default\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",hidden:props=>props.mode===\"trigger\"},componentHeight:{type:ControlType.Enum,title:\"Height\",options:[\"default\",\"fill\"],optionTitles:[\"Default\",\"Fill\"],defaultValue:\"default\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",hidden:props=>props.mode===\"trigger\"},interactionVariants:{type:ControlType.Array,title:\"Interactions\",control:{type:ControlType.Object,controls:{interactionId:{type:ControlType.String,title:\"ID\",defaultValue:\"interaction-1\"},repeat:{type:ControlType.Enum,title:\"Repeat\",options:[\"once\",\"cycle\"],optionTitles:[\"Once\",\"Cycle\"],defaultValue:\"once\",displaySegmentedControl:true},variant:{type:ControlType.String,title:\"Variant\",placeholder:\"Variant 2\",hidden:props=>props.repeat===\"cycle\",description:\"Exact name of the variant you want to switch to.\"}}},defaultValue:[{interactionId:\"interaction-1\",variant:\"\"}],hidden:props=>props.mode===\"trigger\"}});// ------------------------------------------------------------ //\n// DEFAULT PROPS\n// ------------------------------------------------------------ //\nCrossCompInteractions.defaultProps={mode:\"trigger\",// trigger\ninteraction:\"click\",interactionId:\"interaction-1\",offScreen:\"pause\",delay:0,// target\nnativeComponent:null,componentWidth:\"default\",componentHeight:\"default\",interactionVariants:[{interactionId:\"interaction-1\",variant:\"\",repeat:\"once\"}]};// ------------------------------------------------------------ //\n// MAIN COMPONENT\n// ------------------------------------------------------------ //\n/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n */export default function CrossCompInteractions(props){const isOnFramerCanvas=RenderTarget.hasRestrictions();const containerRef=useRef(null);const isInView=useInView(containerRef,{once:false,amount:\"some\"});const offScreenIsInView=props.offScreen===\"pause\"?isInView:true;// Use custom hooks\nuseTrigger({mode:props.mode,containerRef:containerRef,interactionId:props.interactionId,variant:\"\",interaction:props.interaction,isInView:offScreenIsInView,delay:props.delay});const clonedContent=useTarget(props.mode,props.nativeComponent,props.interactionVariants,props.componentWidth,props.componentHeight);return /*#__PURE__*/_jsx(\"div\",{id:`${props.interactionId}-${props.mode}`,ref:containerRef,style:{width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:props.componentWidth===\"default\"?\"fit-content\":\"100%\",height:props.componentHeight===\"default\"?\"fit-content\":\"100%\",display:\"flex\"},children:clonedContent})});}const useTrigger=props=>{useEffect(()=>{if(props.mode!==\"trigger\"||!props.containerRef.current)return;const subparent=props.containerRef.current.parentElement;const parent=subparent?.parentElement;if(!parent)return;// Handle \"appear\" interaction separately\nif(props.interaction===\"appear\"){if(props.isInView){setTimeout(()=>{InteractionManager.getInstance().trigger(props.interactionId,\"\");},props.delay*1e3)// Convert seconds to milliseconds\n;}return;}// Map Framer interaction types to DOM events\nconst eventMap={mouseEnter:\"mouseenter\",mouseLeave:\"mouseleave\",mouseDown:\"mousedown\",click:\"click\",appear:\"none\"};// Get the corresponding DOM event\nconst domEvent=eventMap[props.interaction];// Event handler function\nconst handleInteraction=()=>{setTimeout(()=>{InteractionManager.getInstance().trigger(props.interactionId,\"\");},props.delay*1e3)// Convert seconds to milliseconds\n;};// Add event listener only for non-appear interactions\nif(domEvent!==\"none\"){parent.addEventListener(domEvent,handleInteraction);// Cleanup function to remove event listener\nreturn()=>{parent.removeEventListener(domEvent,handleInteraction);};}},[props.mode,props.interactionId,props.interaction,props.isInView,props.containerRef,props.delay]);};const useTarget=(mode,nativeComponent,interactionVariants,componentWidth,componentHeight)=>{const[clonedContent,setClonedContent]=useState(nativeComponent);const cycleStateRef=useRef({});const lastUpdateTimeRef=useRef({});const isInitializedRef=useRef({});const DEBOUNCE_TIME=50// ms\n;// Pre-render width and height adjustment using useInsertionEffect\nuseInsertionEffect(()=>{if(mode!==\"target\"||!nativeComponent.length)return;const sizeAdjustedContent=nativeComponent.map(component=>{if(!isReactElement(component))return component;return /*#__PURE__*/cloneElement(component,{// @ts-expect-error this is Framer layer\nstyle:{// @ts-expect-error this is Framer layer\n...component.props.style,width:componentWidth===\"fill\"?\"100%\":component.props.width,height:componentHeight===\"fill\"?\"100%\":component.props.height}});});setClonedContent(sizeAdjustedContent);},[mode,nativeComponent,componentWidth,componentHeight]);// Clear interaction manager on mount in preview mode, but only once\nuseEffect(()=>{if(typeof window!==\"undefined\"&&window.location.href.includes(\"framercanvas.com\")){InteractionManager.clearPreviewOnce();}},[]);// Extract all available variants from the target component\nuseEffect(()=>{if(mode!==\"target\"||!nativeComponent.length)return;const findPropertyControls=element=>{if(!element)return null;if(element.type?.propertyControls?.variant?.options&&element.type?.propertyControls?.variant?.optionTitles){return element.type.propertyControls.variant;}if(element.props?.children){return findPropertyControls(element.props.children);}return null;};const variantControl=findPropertyControls(nativeComponent[0]);if(!variantControl){return;}const{options}=variantControl;// Get the default variant from the component props\nconst getDefaultVariant=component=>{if(!component)return undefined;if(component.props?.variant)return component.props.variant;if(component.props?.children)return getDefaultVariant(component.props.children);return undefined;};const defaultVariant=getDefaultVariant(nativeComponent[0]);// Initialize variant cycles for each interaction\nconst newVariantCycles={};interactionVariants.forEach(pair=>{if(pair.repeat===\"cycle\"){// Find the index of the default variant\nconst startIndex=defaultVariant?options.indexOf(defaultVariant):0;newVariantCycles[pair.interactionId]={currentIndex:startIndex>=0?startIndex:0,variants:options};}});cycleStateRef.current=newVariantCycles;// Apply initial variants for cycling interactions\n// First ensure we have size-adjusted content\nconst sizeAdjustedContent=nativeComponent.map(component=>{if(!isReactElement(component))return component;return /*#__PURE__*/cloneElement(component,{// @ts-expect-error this is Framer layer\nstyle:{// @ts-expect-error this is Framer layer\n...component.props.style,width:componentWidth===\"fill\"?\"100%\":component.props.width,height:componentHeight===\"fill\"?\"100%\":component.props.height}});});// Then apply cycling variants while preserving size adjustments and respecting default variant\nconst initialContent=sizeAdjustedContent.map(component=>{const cyclingPairs=interactionVariants.filter(pair=>pair.repeat===\"cycle\");if(cyclingPairs.length>0){// For cycling variants, keep the default variant\ncyclingPairs.forEach(pair=>{const cycle=newVariantCycles[pair.interactionId];if(cycle&&cycle.variants.length>0){isInitializedRef.current[pair.interactionId]=true;if(defaultVariant){// Keep the default variant\n// @ts-expect-error this is Framer layer\ncomponent=cloneWithVariant(component,defaultVariant,componentWidth,componentHeight);}}});}return component;});setClonedContent(initialContent);},[mode,nativeComponent,interactionVariants,componentWidth,componentHeight]);useEffect(()=>{if(mode!==\"target\")return;const handleVariantChange=interactionId=>{const now=Date.now();const lastUpdate=lastUpdateTimeRef.current[interactionId]||0;// Debounce check\nif(now-lastUpdate<DEBOUNCE_TIME){return;}lastUpdateTimeRef.current[interactionId]=now;// Find the matching variant pair for this interaction ID\nconst matchingPair=interactionVariants.find(pair=>pair.interactionId===interactionId);if(!matchingPair){return;}// Handle cycling if repeat is \"cycle\"\nif(matchingPair.repeat===\"cycle\"){const cycle=cycleStateRef.current[interactionId];if(!cycle||!cycle.variants||cycle.variants.length===0){return;}// Calculate next index\nconst nextIndex=(cycle.currentIndex+1)%cycle.variants.length;const nextVariant=cycle.variants[nextIndex];// First ensure we have size-adjusted content\nconst sizeAdjustedContent=nativeComponent.map(component=>{if(!isReactElement(component))return component;return /*#__PURE__*/cloneElement(component,{// @ts-expect-error this is Framer layer\nstyle:{// @ts-expect-error this is Framer layer\n...component.props.style,width:componentWidth===\"fill\"?\"100%\":component.props.width,height:componentHeight===\"fill\"?\"100%\":component.props.height}});});// Then apply the next variant while preserving size adjustments\nconst newContent=sizeAdjustedContent.map(component=>cloneWithVariant(component,nextVariant,componentWidth,componentHeight));setClonedContent(newContent);// Update the ref\ncycleStateRef.current={...cycleStateRef.current,[interactionId]:{...cycle,currentIndex:nextIndex}};}else{// First ensure we have size-adjusted content\nconst sizeAdjustedContent=nativeComponent.map(component=>{if(!isReactElement(component))return component;return /*#__PURE__*/cloneElement(component,{// @ts-expect-error this is Framer layer\nstyle:{// @ts-expect-error this is Framer layer\n...component.props.style,width:componentWidth===\"fill\"?\"100%\":component.props.width,height:componentHeight===\"fill\"?\"100%\":component.props.height}});});// Then apply the variant while preserving size adjustments\nconst newContent=sizeAdjustedContent.map(component=>cloneWithVariant(component,matchingPair.variant,componentWidth,componentHeight));setClonedContent(newContent);}};// Only set initial content if not already initialized and has cycling variants\nconst hasUninitializedCycles=interactionVariants.some(pair=>pair.repeat===\"cycle\"&&!isInitializedRef.current[pair.interactionId]);if(hasUninitializedCycles){// First apply size adjustments\nconst sizeAdjustedContent=nativeComponent.map(component=>{if(!isReactElement(component))return component;return /*#__PURE__*/cloneElement(component,{// @ts-expect-error this is Framer layer\nstyle:{// @ts-expect-error this is Framer layer\n...component.props.style,width:componentWidth===\"fill\"?\"100%\":component.props.width,height:componentHeight===\"fill\"?\"100%\":component.props.height}});});setClonedContent(sizeAdjustedContent);}// Get interaction manager instance\nconst interactionManager=InteractionManager.getInstance();// Store listeners for cleanup\nconst listeners={};// Register listeners for all interaction IDs\ninteractionVariants.forEach(pair=>{const listener=()=>handleVariantChange(pair.interactionId);listeners[pair.interactionId]=listener;interactionManager.addListener(pair.interactionId,listener);});// Cleanup listeners on unmount\nreturn()=>{Object.entries(listeners).forEach(([interactionId,listener])=>{interactionManager.removeListener(interactionId,listener);});};},[nativeComponent,mode,interactionVariants,componentWidth,componentHeight]);return clonedContent;};// ------------------------------------------------------------ //\n// HELPERS\n// ------------------------------------------------------------ //\n// Type guard to ensure we're working with a ReactElement\nconst isReactElement=el=>{return el&&typeof el===\"object\"&&\"props\"in el;};// Clone with variant function\nconst cloneWithVariant=(element,targetVariant,componentWidth,componentHeight)=>{// Early return for non-element nodes\nif(!isReactElement(element)){return element;}// Type guard for variant props\nconst hasVariantProp=props=>{return props&&typeof props===\"object\"&&\"variant\"in props;};// Type guard for children props\nconst hasChildrenProp=props=>{return props&&typeof props===\"object\"&&\"children\"in props;};// Check if this element has a variant prop\nif(hasVariantProp(element.props)){const newProps={...element.props,variant:targetVariant,style:{...element.props.style,width:componentWidth===\"fill\"?\"100%\":element.props.width,height:componentHeight===\"fill\"?\"100%\":element.props.height}};// Clone children recursively\nnewProps.children=element.props.children?cloneWithVariant(element.props.children,targetVariant,componentWidth,componentHeight):element.props.children;return /*#__PURE__*/cloneElement(element,newProps);}// If it has children, recursively clone them\nif(hasChildrenProp(element.props)){return /*#__PURE__*/cloneElement(element,{...element.props,style:{...element.props.style,width:componentWidth===\"fill\"?\"100%\":element.props.width,height:componentHeight===\"fill\"?\"100%\":element.props.height},children:cloneWithVariant(element.props.children,targetVariant,componentWidth,componentHeight)});}return element;};class InteractionManager{static getInstance(){if(!InteractionManager.instance){InteractionManager.instance=new InteractionManager;}return InteractionManager.instance;}addListener(interactionId,listener){if(!this.listeners[interactionId]){this.listeners[interactionId]=[];}// Add instanceId to help with cleanup\nconst wrappedListener=variant=>{if(InteractionManager.instanceId===this.getCurrentInstanceId()){listener(variant);}};this.listeners[interactionId].push(wrappedListener);}removeListener(interactionId,listener){if(!this.listeners[interactionId])return;this.listeners[interactionId]=this.listeners[interactionId].filter(l=>l!==listener);// Clean up empty listener arrays\nif(this.listeners[interactionId].length===0){delete this.listeners[interactionId];}}clearAllListeners(){this.listeners={};// Generate new instance ID to invalidate old listeners\nInteractionManager.instanceId=Math.random().toString(36).substring(7);}getCurrentInstanceId(){return InteractionManager.instanceId;}trigger(interactionId,variant){if(!this.listeners[interactionId])return;this.listeners[interactionId].forEach(listener=>listener(variant));}static clearPreviewOnce(){if(!InteractionManager.isPreviewCleared){InteractionManager.getInstance().clearAllListeners();InteractionManager.isPreviewCleared=true;}}constructor(){_define_property(this,\"listeners\",{});// Listen for preview reloads\nif(typeof window!==\"undefined\"){window.addEventListener(\"unload\",()=>{this.clearAllListeners();});}}}_define_property(InteractionManager,\"instance\",void 0);_define_property(InteractionManager,\"instanceId\",Math.random().toString(36).substring(7));_define_property(InteractionManager,\"isPreviewCleared\",false);CrossCompInteractions.displayName=\"Cross Comp Interactions\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CrossCompInteractions\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CrossCompInteractions_Prod.map","// ⚠️⚠️⚠️⚠️⚠️\n// Edit these files in https://github.com/framer/FramerCodeComponents\n// ⚠️⚠️⚠️⚠️⚠️\nimport{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\"],description:\"Only MP4 and 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\":{\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"112\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\",\"framerContractVersion\":\"1\"}},\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map"],"mappings":"maAAA,SAAS,EAAiB,EAAI,EAAI,EAAM,CAAmI,OAA/H,KAAO,EAAK,OAAO,eAAe,EAAI,EAAI,CAAO,QAAM,WAAW,GAAK,aAAa,GAAK,SAAS,EAAI,CAAC,EAAQ,EAAI,GAAK,EAAc,CAAI,CAmBnL,SAAwB,EAAsB,EAAM,CAAwB,EAAa,gBAAgB,EAAE,IAAM,EAAaA,EAAO,IAAI,EAAQ,EAAS,EAAU,EAAa,CAAC,KAAK,GAAM,OAAO,MAAM,CAAC,EAAQ,EAAkB,EAAM,YAAY,SAAQ,EAClQ,EAAW,CAAC,KAAK,EAAM,KAAkB,eAAa,cA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