{"version":3,"file":"ReliableProductVideo.Cr8sqlA7.mjs","names":["useRef","useState","useMemo","useCallback","useEffect","startTransition","_jsx","_jsxs","__esmMin","init_ssg_sandbox_shims","te","ne","window","_e","de","init_jsx_runtime","pe","c","init_npm_react_18_3_1","ce","RenderTarget","addPropertyControls","ControlType","init_framer_ChujFWHC","ReliableProductVideo","props","videoFile","file","poster","alt","autoPlay","loop","controls","showControls","background","radius","aspectRatio","fit","style","videoRef","containerRef","isPlaying","setIsPlaying","autoplayFailed","setAutoplayFailed","hasLoadError","setHasLoadError","reducedMotion","setReducedMotion","motionPreferenceReady","setMotionPreferenceReady","playButtonFocused","setPlayButtonFocused","shouldLoad","setShouldLoad","safeRatio","paddingTopPercent","hasFixedHeight","heightValue","normalized","isCanvas","resolvedControls","resolvedFit","isValidVideoSource","value","trimmed","extractVideoSource","input","depth","visited","candidate","objectValue","nextVisited","key","nested","resolvedVideoFile","resolvedPoster","hasResolvedVideoSource","node","observer","entries","entry","media","update","attemptPlay","video","playResult","setVideoRef","onCanPlay","onPlaying","onPause","onError","canShowPlayButton","statusMessage","handleManualPlay","p","init_ReliableProductVideo"],"sources":["https:/framerusercontent.com/modules/3RAziJxyNfpmJRGBmfTP/bTI9qGWhx50KhP7tTXAz/ReliableProductVideo.js"],"sourcesContent":["// User request:\n// Create a new ReliableProductVideo.tsx Framer code component for Purple Education with robust progressive enhancement:\n// reliable rendering, autoplay/load failure fallback, accessible play button, canvas/reduced-motion safe behavior,\n// object-fit contain video playback, error/unavailable state, SSR-safe guarded browser APIs, and editable controls without redesign.\n//\n// V2 changes (performance):\n// - Added a Poster property. The poster paints immediately and becomes the Largest Contentful Paint\n//   instead of the video, which is what was pushing LCP to 10.6s.\n// - Videos now load only when they come near the viewport (IntersectionObserver, 300px margin).\n//   Previously every video on a page downloaded on first load regardless of scroll position.\n// - preload changed from \"auto\" to \"none\".\n// All existing behaviour (autoplay fallback, play button, reduced motion, error states) is unchanged.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ReliableProductVideo(props){const{videoFile,file,poster,alt=\"Product video preview\",autoPlay=true,loop=true,controls,showControls,background=\"transparent\",radius=12,aspectRatio=1.78,fit=\"contain\",style}=props;const videoRef=useRef(null);const containerRef=useRef(null);const[isPlaying,setIsPlaying]=useState(false);const[autoplayFailed,setAutoplayFailed]=useState(false);const[hasLoadError,setHasLoadError]=useState(false);const[reducedMotion,setReducedMotion]=useState(false);const[motionPreferenceReady,setMotionPreferenceReady]=useState(false);const[playButtonFocused,setPlayButtonFocused]=useState(false);const[shouldLoad,setShouldLoad]=useState(false);const safeRatio=useMemo(()=>aspectRatio>0?aspectRatio:1.78,[aspectRatio]);const paddingTopPercent=useMemo(()=>`${1/safeRatio*100}%`,[safeRatio]);const hasFixedHeight=useMemo(()=>{if(!style)return false;const heightValue=style.height;if(heightValue===undefined||heightValue===null)return false;if(typeof heightValue===\"string\"){const normalized=heightValue.trim().toLowerCase();return normalized!==\"\"&&normalized!==\"auto\";}return typeof heightValue===\"number\";},[style]);const isCanvas=useMemo(()=>{try{return RenderTarget.current()===RenderTarget.canvas;}catch(_error){return false;}},[]);const resolvedControls=controls??showControls??false;const resolvedFit=useMemo(()=>{if(fit===\"cover\")return\"cover\";if(fit===\"fill\")return\"fill\";return\"contain\";},[fit]);const isValidVideoSource=useCallback(value=>{const trimmed=value.trim();if(!trimmed)return false;if(/^https?:\\/\\//i.test(trimmed))return true;if(/^blob:/i.test(trimmed))return true;if(/^data:/i.test(trimmed))return true;if(trimmed.startsWith(\"/\"))return true;if(trimmed.startsWith(\"./\")||trimmed.startsWith(\"../\"))return true;return false;},[]);const extractVideoSource=useCallback((input,depth=0,visited)=>{if(depth>6)return\"\";if(typeof input===\"string\"){const candidate=input.trim();return isValidVideoSource(candidate)?candidate:\"\";}if(!input||typeof input!==\"object\")return\"\";const objectValue=input;const nextVisited=visited??new WeakSet;if(nextVisited.has(objectValue))return\"\";nextVisited.add(objectValue);const keysToCheck=[\"src\",\"url\",\"asset\",\"file\",\"videoFile\"];for(const key of keysToCheck){if(!(key in objectValue))continue;const nested=extractVideoSource(objectValue[key],depth+1,nextVisited);if(nested)return nested;}return\"\";},[isValidVideoSource]);const resolvedVideoFile=useMemo(()=>{const primary=extractVideoSource(videoFile);if(primary)return primary;const legacy=extractVideoSource(file);if(legacy)return legacy;return\"\";},[extractVideoSource,file,videoFile]);const resolvedPoster=useMemo(()=>extractVideoSource(poster),[extractVideoSource,poster]);const hasResolvedVideoSource=resolvedVideoFile.length>0;// Only load the video once it is close to the viewport.\n// On the Framer canvas, and where IntersectionObserver is unavailable, load straight away.\nuseEffect(()=>{if(isCanvas){startTransition(()=>setShouldLoad(true));return;}if(typeof window===\"undefined\")return;if(!(\"IntersectionObserver\"in window)){startTransition(()=>setShouldLoad(true));return;}const node=containerRef.current;if(!node){startTransition(()=>setShouldLoad(true));return;}const observer=new IntersectionObserver(entries=>{for(const entry of entries){if(entry.isIntersecting){startTransition(()=>setShouldLoad(true));observer.disconnect();break;}}},{rootMargin:\"300px 0px\"});observer.observe(node);return()=>observer.disconnect();},[isCanvas]);useEffect(()=>{if(typeof window!==\"undefined\"){const media=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const update=()=>{startTransition(()=>{setReducedMotion(media.matches);setMotionPreferenceReady(true);});};update();media.addEventListener(\"change\",update);return()=>media.removeEventListener(\"change\",update);}startTransition(()=>{setReducedMotion(false);setMotionPreferenceReady(true);});},[]);useEffect(()=>{startTransition(()=>{setIsPlaying(false);setAutoplayFailed(false);setHasLoadError(false);setPlayButtonFocused(false);});},[resolvedVideoFile]);const attemptPlay=useCallback(video=>{if(!video)return;if(!video.currentSrc&&!video.src)return;video.defaultMuted=true;video.muted=true;video.playsInline=true;video.setAttribute(\"webkit-playsinline\",\"true\");const playResult=video.play();if(playResult&&typeof playResult.catch===\"function\"){playResult.then(()=>{startTransition(()=>{setAutoplayFailed(false);});}).catch(()=>{startTransition(()=>{setAutoplayFailed(true);});});}},[]);const setVideoRef=useCallback(node=>{videoRef.current=node;if(!node)return;node.defaultMuted=true;node.muted=true;node.playsInline=true;node.setAttribute(\"webkit-playsinline\",\"true\");},[]);const onCanPlay=useCallback(()=>{if(!hasResolvedVideoSource)return;if(!autoPlay)return;if(!motionPreferenceReady)return;if(reducedMotion)return;if(hasLoadError)return;attemptPlay(videoRef.current);},[attemptPlay,autoPlay,hasLoadError,hasResolvedVideoSource,motionPreferenceReady,reducedMotion]);useEffect(()=>{if(!shouldLoad)return;if(!hasResolvedVideoSource)return;if(!autoPlay)return;if(!motionPreferenceReady)return;if(reducedMotion)return;if(hasLoadError)return;attemptPlay(videoRef.current);},[attemptPlay,autoPlay,hasLoadError,hasResolvedVideoSource,motionPreferenceReady,reducedMotion,shouldLoad]);const onPlaying=useCallback(()=>{startTransition(()=>{setIsPlaying(true);setAutoplayFailed(false);});},[]);const onPause=useCallback(()=>{startTransition(()=>{setIsPlaying(false);});},[]);const onError=useCallback(()=>{startTransition(()=>{setHasLoadError(true);setIsPlaying(false);});},[]);const canShowPlayButton=shouldLoad&&hasResolvedVideoSource&&!hasLoadError&&!isPlaying&&(reducedMotion||autoplayFailed||!autoPlay);const statusMessage=useMemo(()=>{if(!shouldLoad)return\"\";if(!hasResolvedVideoSource)return\"\";if(hasLoadError)return\"Video unavailable\";if(isPlaying)return\"\";if(autoplayFailed)return\"Video paused\";if(!autoPlay)return\"Video paused\";if(reducedMotion&&motionPreferenceReady)return\"Video paused\";return\"\";},[autoPlay,autoplayFailed,hasLoadError,hasResolvedVideoSource,isPlaying,motionPreferenceReady,reducedMotion,shouldLoad]);const handleManualPlay=useCallback(()=>{if(!hasResolvedVideoSource||hasLoadError)return;if(!shouldLoad){startTransition(()=>setShouldLoad(true));return;}attemptPlay(videoRef.current);},[attemptPlay,hasLoadError,hasResolvedVideoSource,shouldLoad]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:hasFixedHeight?\"100%\":\"auto\",background,borderRadius:radius,overflow:\"hidden\",boxSizing:\"border-box\",...style},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:hasFixedHeight?\"100%\":\"auto\",minWidth:0},children:[!hasFixedHeight&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:\"100%\",height:0,paddingTop:paddingTopPercent,pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:hasFixedHeight?\"relative\":\"absolute\",inset:hasFixedHeight?\"auto\":0,width:\"100%\",height:hasFixedHeight?\"100%\":\"100%\"},children:[hasResolvedVideoSource?/*#__PURE__*/_jsx(\"video\",{ref:setVideoRef,src:shouldLoad?resolvedVideoFile:undefined,poster:resolvedPoster||undefined,\"aria-label\":alt,muted:true,autoPlay:shouldLoad&&autoPlay&&motionPreferenceReady&&!reducedMotion,loop:loop,playsInline:true,preload:\"none\",controls:resolvedControls,disablePictureInPicture:true,onCanPlay:onCanPlay,onPlaying:onPlaying,onPause:onPause,onError:onError,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:resolvedFit,background,display:\"block\"}}):isCanvas?/*#__PURE__*/_jsx(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#666666\",fontSize:12,lineHeight:1.3,textAlign:\"center\",padding:12,background:\"rgba(255,255,255,0.4)\"},children:\"Video asset not linked\"}):null,statusMessage&&/*#__PURE__*/_jsx(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#666666\",fontSize:12,lineHeight:1.3,textAlign:\"center\",padding:12,pointerEvents:\"none\"},children:statusMessage}),canShowPlayButton&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleManualPlay,onFocus:()=>{startTransition(()=>setPlayButtonFocused(true));},onBlur:()=>{startTransition(()=>setPlayButtonFocused(false));},style:{pointerEvents:\"auto\",appearance:\"none\",border:\"1px solid rgba(118,81,201,0.55)\",background:\"#2D2341\",color:\"#FBF8F2\",borderRadius:999,padding:\"8px 14px\",fontSize:14,lineHeight:1,fontWeight:600,fontFamily:\"inherit\",cursor:\"pointer\",outlineOffset:2,boxShadow:playButtonFocused?\"0 0 0 3px #FBF8F2, 0 0 0 6px #7651C9\":\"none\"},\"aria-label\":\"Play video\",children:\"Play video\"})}),hasLoadError&&/*#__PURE__*/_jsx(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:{position:\"absolute\",left:8,right:8,bottom:8,padding:\"6px 8px\",borderRadius:8,fontSize:11,lineHeight:1.3,textAlign:\"center\",color:\"#666666\",background:\"rgba(255,255,255,0.75)\",pointerEvents:\"none\"},children:\"Video unavailable\"})]})]})});}addPropertyControls(ReliableProductVideo,{videoFile:{type:ControlType.File,title:\"Video File\",allowedFileTypes:[\"mp4\",\"webm\"]},poster:{type:ControlType.ResponsiveImage,title:\"Poster\"},alt:{type:ControlType.String,title:\"Alt\",defaultValue:\"Product video preview\"},autoPlay:{type:ControlType.Boolean,title:\"Auto Play\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},file:{type:ControlType.File,title:\"Video File (Legacy)\",allowedFileTypes:[\"mp4\",\"webm\"],hidden:()=>true},showControls:{type:ControlType.Boolean,title:\"Controls (Legacy)\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",hidden:()=>true},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:120,step:1},aspectRatio:{type:ControlType.Number,title:\"Aspect Ratio\",defaultValue:1.78,min:.2,max:4,step:.01},fit:{type:ControlType.Enum,title:\"Fit\",defaultValue:\"contain\",options:[\"contain\",\"cover\",\"fill\"],optionTitles:[\"Contain\",\"Cover\",\"Fill\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReliableProductVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReliableProductVideo.map"],"mappings":"A,qOAeG,SAAwBwB,EAAqBC,EAAM,CAAC,GAAK,CAACC,YAAUC,OAAKC,SAAOC,MAAI,wBAAwBC,WAAS,GAAKC,OAAK,GAAKC,WAASC,eAAaC,aAAW,cAAcC,SAAO,GAAGC,cAAY,KAAKC,MAAI,UAAUC,SAAOb,EAAYc,EAASvC,EAAO,IAAI,EAAQwC,EAAaxC,EAAO,IAAI,EAAO,CAACyC,EAAUC,GAAczC,EAAS,EAAK,EAAO,CAAC0C,EAAeC,GAAmB3C,EAAS,EAAK,EAAO,CAAC4C,EAAaC,GAAiB7C,EAAS,EAAK,EAAO,CAAC8C,EAAcC,GAAkB/C,EAAS,EAAK,EAAO,CAACgD,EAAsBC,GAA0BjD,EAAS,EAAK,EAAO,CAACkD,EAAkBC,GAAsBnD,EAAS,EAAK,EAAO,CAACoD,EAAWC,GAAerD,EAAS,EAAK,EAAQsD,EAAUrD,MAAYkC,EAAY,EAAEA,EAAY,KAAK,CAACA,CAAW,CAAC,EAAQoB,EAAkBtD,MAAY,GAAG,EAAEq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